:root {
  --paper: #f8f7f1;
  --ink: #222622;
  --muted: #575e56;
  --rule: #bebfb3;
  --rust: #a73a20;
  --tint: #efeee4;
  --mono: Consolas, "Courier New", monospace;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #126b83;
  outline-offset: 3px;
}
button {
  touch-action: manipulation;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.08;
}
h2 {
  font-size: clamp(27px, 2.4vw, 37px);
  letter-spacing: -0.04em;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
}
.mast,
.content {
  max-width: 1550px;
  margin: auto;
  padding-inline: clamp(18px, 4.1vw, 68px);
}
.mastline,
.navwrap,
.controls,
.sectionhead,
.row,
.actionrow,
.modewrap,
.identity,
.intro,
.legend,
.foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mastline,
.controls,
.sectionhead,
.intro,
.row,
.navwrap {
  justify-content: space-between;
}
.mastline {
  padding: 16px 0 13px;
  border-bottom: 3px solid var(--ink);
}
.identity,
.export,
.nav,
.link,
.modebox button {
  border: 0;
  background: none;
}
.identity {
  padding: 0;
  font: 600 clamp(26px, 3vw, 45px) / 1 var(--serif);
  letter-spacing: -0.06em;
}
.identity .waveform {
  width: 42px;
  height: 38px;
  color: var(--rust);
}
.edition,
.micro,
.eyebrow,
.kicker,
.legend,
.breadcrumb,
.export,
.footnote,
.meterlabel,
.tinytext,
.hint,
.mini {
  font: 11px/1.45 var(--mono);
  letter-spacing: 0.05em;
}
.edition {
  text-align: right;
  color: var(--muted);
  font-size: 10px;
}
.edition b {
  color: var(--ink);
}
.mobile-ed {
  display: none;
}
.navwrap {
  border-bottom: 1px solid var(--ink);
  gap: 4px;
}
.index {
  display: flex;
  align-items: stretch;
  gap: clamp(7px, 1.55vw, 24px);
  overflow: auto;
}
.nav {
  position: relative;
  white-space: nowrap;
  padding: 13px 0 12px;
  font-size: 13px;
  font-weight: 600;
}
.nav.active {
  color: var(--rust);
  box-shadow: inset 0 -3px var(--rust);
}
.nav:hover,
.link:hover,
.export:hover {
  color: var(--rust);
  text-decoration: underline;
}
.export {
  white-space: nowrap;
}
.controls {
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb,
.micro,
.eyebrow,
.kicker,
.legend,
.footnote {
  font-size: 10px;
  letter-spacing: 0.09em;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
}
.breadcrumb i {
  width: 7px;
  height: 7px;
  background: #4c6450;
  border-radius: 50%;
}
.breadcrumb b {
  text-transform: uppercase;
}
.breadcrumb span {
  color: #777;
}
.modebox {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #929589;
}
.modebox button {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
}
.modebox button.on,
.btn {
  background: var(--ink);
  color: var(--paper);
}
.modebox button:hover:not(.on) {
  background: #e6e6da;
}
.page,
.extra {
  display: none;
}
.page.active,
.extra.visible {
  display: block;
}
.intro {
  align-items: flex-end;
  margin: 17px 0 29px;
}
.eyebrow,
.kicker {
  font-weight: 700;
  color: var(--rust);
}
.bar {
  display: inline-block;
  width: 21px;
  height: 3px;
  background: var(--rust);
  vertical-align: middle;
  margin-right: 5px;
}
.intro h1 {
  font-size: clamp(43px, 5.45vw, 82px);
  letter-spacing: -0.064em;
  line-height: 1.05;
  margin: 8px 0;
}
.intro p {
  font: normal clamp(17px, 1.5vw, 22px) / 1.35 var(--serif);
}
.btn {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.btn:hover {
  background: #454c40;
}
.btn.ghost,
.btn.danger {
  background: transparent;
  color: var(--ink);
  border-color: #95988c;
}
.btn.ghost:hover,
.btn.danger:hover {
  background: #e9e9df;
}
.btn.tiny {
  padding: 6px 10px;
  font-size: 12px;
}
.btn.danger {
  color: var(--rust);
}
.spread,
.lower {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(240px, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}
.plate {
  border: 1px solid #a3a79a;
  background: #eeefe6;
  min-width: 0;
}
.platehead {
  padding: 20px 24px 4px;
}
.platehead h2,
.bench h2,
.lower h2 {
  margin: 5px 0 8px;
}
.platehead p,
.bench p,
.lower p {
  font-size: 13px;
}
.platehead .eyebrow {
  color: #536451;
}
.lane {
  margin: 12px 18px 0;
}
.lane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 10px var(--mono);
  letter-spacing: 0.09em;
  color: var(--muted);
}
.lane-title:after {
  content: "";
  flex: 1;
  border-top: 1px solid #b9bdae;
}
.nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 17px;
}
.node {
  position: relative;
  background: none;
  border: none;
  padding: 7px 2px;
  color: var(--ink);
  min-width: 0;
  text-align: center;
}
.node:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 30%;
  color: #737c70;
  font: 20px var(--mono);
}
.node svg {
  display: block;
  height: 56px;
  width: min(100%, 108px);
  margin: auto;
  color: #303b32;
}
.node strong,
.node small {
  display: block;
}
.node strong {
  font:
    600 13px/1.25 "Segoe UI",
    sans-serif;
}
.node small {
  font: 10px/1.4 var(--mono);
  margin-top: 3px;
  color: var(--muted);
}
.node:hover {
  background: #e3e6db;
}
.node.missing {
  border: 1px dashed #999f91;
  align-self: center;
  padding: 8px 3px;
  color: var(--muted);
}
.node.missing svg {
  height: 29px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #c5c9b9;
  margin-top: 13px;
  padding: 10px 18px;
  gap: 15px;
  color: #51594d;
  letter-spacing: 0;
}
.legend i {
  display: inline-block;
  width: 13px;
  border-top: 2px solid #424d43;
  vertical-align: middle;
}
.legend i.dash {
  border-top-style: dashed;
}
.bench,
.lower > div,
.page:not(#page-home) > .sectionhead:first-child {
  border-top: 3px solid var(--ink);
}
.bench {
  padding-top: 16px;
}
.bench h2 {
  margin-bottom: 12px;
}
.observation {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 6px;
}
.observation > span,
.idx {
  color: var(--rust);
  font: 11px var(--mono);
  padding-top: 3px;
}
.observation b {
  display: block;
  font-size: 14px;
}
.bench p {
  margin-top: 3px;
  line-height: 1.45;
}
.link {
  padding: 3px 0;
  font-size: 12px;
  font-weight: 650;
}
.lower {
  margin: 28px 0;
}
.lower .sectionhead {
  margin: 10px 0 0;
}
.metrics > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  font-size: 13px;
}
.metrics strong,
.pref output {
  font: 15px var(--mono);
}
.lower .tinytext {
  font-size: 11px;
  margin-top: 14px;
}
.sectionhead {
  align-items: end;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}
.page:not(#page-home) > .sectionhead:first-child {
  margin-top: 10px;
  padding-top: 22px;
}
.sectionhead h2 {
  margin: 4px 0 8px;
}
.sectionhead p,
.card p {
  font-size: 14px;
}
.cols,
.cards3,
.songgrid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}
.cards3,
.songgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card,
.smallcard,
.song {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--rule);
}
.card h3,
.smallcard b,
.song b {
  display: block;
  margin-bottom: 9px;
}
.card p,
.song p,
.smallcard p {
  margin: 6px 0 14px;
}
.smallcard,
.song {
  background: var(--tint);
}
.smallcard p,
.song p {
  font-size: 13px;
}
.bigicon,
.song .disc {
  font: 24px var(--mono);
  color: var(--rust);
}
.gearline,
.regrow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.gearline small,
.regrow small,
.snapshot small,
.song .mini {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.gearline b,
.regrow b {
  font-size: 14px;
}
.gearicon {
  width: 37px;
  flex: none;
  text-align: center;
  color: #526452;
}
.gearicon img {
  max-width: 100%;
}
.gearline .trailing,
.regrow .link {
  margin-left: auto;
}
.regrow {
  display: grid;
  grid-template-columns: 24px 1.4fr 1fr auto;
}
.field {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 13px;
}
.fieldgrid,
.keyval {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
}
.fieldgrid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #929689;
  background: #fffef9;
  padding: 8px;
  font-size: 14px;
  border-radius: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 72px;
}
input[type="range"] {
  accent-color: var(--rust);
}
.formsection {
  margin: 18px 0;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
h4 {
  font-size: 20px;
  margin: 0 0 10px;
}
.notice,
.empty,
.readonly,
.filebox {
  background: var(--tint);
  border-left: 3px solid #71836d;
  padding: 12px 15px;
  margin: 12px 0;
  font-size: 13px;
}
.pref,
.checkrow,
.snapshot {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.pref label {
  width: 40%;
  font-size: 13px;
}
.pref input {
  flex: 1;
}
.checkrow {
  align-items: start;
}
.checkrow .dot {
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--rust);
  flex: none;
}
.checkrow p {
  font-size: 13px;
  margin: 3px 0;
}
.snapshot {
  justify-content: space-between;
}
.actionrow,
.foot {
  flex-wrap: wrap;
  margin: 10px 0;
}
.keyval {
  gap: 5px;
  grid-template-columns: 1fr 1fr auto;
  margin: 8px 0;
}
.view svg,
.imageprev {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.meter {
  height: 17px;
  background: #dddcd1;
  margin: 13px 0;
}
.meterfill {
  height: 100%;
  width: 0;
  background: #526f56;
}
.footnote {
  border-top: 1px solid var(--ink);
  margin-top: 28px;
  padding: 14px 0 30px;
  color: var(--muted);
}
.toast {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  max-width: 90vw;
  z-index: 80;
}
.toast.show {
  display: block;
}
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: #21251f88;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.modal-bg.open {
  display: flex;
}
.modal {
  width: min(680px, 100%);
  max-height: 92dvh;
  overflow: auto;
  background: var(--paper);
  border-top: 4px solid var(--rust);
  padding: 22px;
}
.modal h2 {
  margin-bottom: 18px;
}
.foot {
  justify-content: flex-end;
}
.bottomnav {
  display: none;
}
.skip {
  position: absolute;
  transform: translateY(-150%);
  background: white;
  color: black;
  z-index: 99;
  padding: 10px;
}
.skip:focus {
  transform: none;
}
.song .subtitle {
  font-size: 14px;
}
@media (max-width: 900px) {
  .spread,
  .lower {
    grid-template-columns: minmax(0, 1.65fr) minmax(210px, 1fr);
    gap: 18px;
  }
  .index {
    gap: 12px;
  }
  .nav {
    font-size: 12px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .export {
    font-size: 10px;
  }
  .controls {
    gap: 8px;
  }
}
@media (max-width: 720px) {
  .spread,
  .lower {
    grid-template-columns: 1fr;
  }
  .mastline {
    padding-block: 13px;
  }
  .index {
    overflow: visible;
    flex-wrap: wrap;
    gap: 0 13px;
  }
  .nav {
    padding: 8px 0;
  }
  .navwrap {
    align-items: start;
  }
  .export {
    display: none;
  }
  .controls {
    align-items: start;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .modewrap {
    flex-wrap: wrap;
    gap: 6px;
  }
  .modebox button {
    padding: 7px;
    font-size: 10px;
  }
  .intro {
    display: block;
    margin: 14px 0 20px;
  }
  .intro .btn {
    margin-top: 13px;
  }
  .platehead {
    padding: 16px 14px 4px;
  }
  .lane {
    margin: 12px 10px 0;
  }
  .nodes {
    gap: 12px;
  }
  .node:not(:last-child):after {
    right: -11px;
  }
  .node strong {
    font-size: 12px;
  }
  .node svg {
    height: 46px;
  }
  .bench {
    margin-top: 3px;
  }
  .edition {
    font-size: 8px;
  }
  .desktop-ed {
    display: none;
  }
  .mobile-ed {
    display: inline;
  }
  .identity {
    gap: 7px;
  }
  .identity .waveform {
    width: 31px;
  }
  .lower {
    margin-top: 20px;
  }
  .cards3,
  .songgrid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 15px;
  }
  .fieldgrid,
  .fieldgrid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sectionhead p {
    font-size: 13px;
  }
  .legend {
    padding: 8px 10px;
    gap: 8px;
  }
  .bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: var(--paper);
    border-top: 1px solid var(--ink);
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav button {
    border: 0;
    background: none;
    font-size: 10px;
    padding: 7px 4px;
    min-width: 44px;
  }
  .bottomnav .symbol {
    display: block;
    font-size: 14px;
  }
  .bottomnav .active {
    color: var(--rust);
    box-shadow: inset 0 2px var(--rust);
  }
  .content {
    padding-bottom: 65px;
  }
  .toast {
    bottom: 70px;
  }
  .regrow {
    gap: 6px;
    grid-template-columns: 20px 1.4fr 1fr auto;
  }
  .regrow small {
    font-size: 10px;
  }
}
@media (max-width: 420px) {
  .edition {
    max-width: 81px;
  }
  .modewrap {
    width: 100%;
  }
  .fieldgrid,
  .fieldgrid.two {
    grid-template-columns: 1fr;
  }
  .identity {
    font-size: 25px;
  }
  .gearline {
    gap: 6px;
  }
  .gearicon {
    width: 24px;
  }
}
@media (max-width: 720px) {
  .navwrap {
    display: none;
  }
  .mastline {
    gap: 5px;
  }
  .identity {
    white-space: nowrap;
    text-align: left;
    font-size: clamp(21px, 6.5vw, 31px);
  }
  .edition {
    max-width: none;
    font-size: 0;
  }
  .edition br,
  .edition .desktop-ed,
  .edition .mobile-ed {
    display: none;
  }
  .edition:after {
    content: "COMPANION / 04";
    font: 9px var(--mono);
  }
  .controls {
    align-items: center;
    padding: 10px 0;
    gap: 9px;
  }
  .breadcrumb {
    flex: 1;
  }
  .mobile-nav {
    display: block;
    font-size: 12px;
    width: auto;
    background: transparent;
    border: 1px solid var(--rule);
    padding: 5px 7px;
  }
  .modewrap {
    width: 100%;
  }
  .intro {
    margin-top: 10px;
  }
  .node {
    min-height: 76px;
  }
  .modebox button {
    min-height: 34px;
  }
}
@media (min-width: 721px) {
  .mobile-nav {
    display: none;
  }
}

.session-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 11px 0;
  margin: 0 0 22px;
}
.session-key {
  display: flex;
  flex-flow: column;
  gap: 3px;
  padding-right: 17px;
  border-right: 1px solid var(--rule);
}
.session-key strong {
  font: 22px/1 var(--mono);
}
.session-strip p,
.strip-tools small {
  font-size: 12px;
  color: var(--muted);
}
.strip-tools,
.snapshot-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.strip-tools {
  margin-left: auto;
}
.archive-detail {
  margin: 10px 0;
  border-top: 1px solid var(--rule);
  padding-top: 6px;
}
.archive-detail summary {
  cursor: pointer;
  font-weight: 600;
}
.archive-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.4 var(--mono);
}
.modal,
.snapshot,
.session-strip,
.bench {
  overflow-wrap: anywhere;
}
.modal label {
  min-width: 0;
}
.modal .foot {
  position: sticky;
  bottom: -22px;
  padding: 9px 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .session-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
  }
  .strip-tools {
    grid-column: 1/-1;
    justify-content: end;
    margin: 0;
  }
  .strip-tools small {
    margin-right: auto;
  }
  .snapshot {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .snapshot-actions {
    gap: 6px;
  }
}

.music-nav {
  display: flex;
  flex-wrap: wrap;
  border-block: 1px solid var(--rule);
  gap: 0 1rem;
}
.music-nav button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 9px 2px;
  font-weight: 600;
  font-size: 14px;
}
.music-nav [aria-pressed="true"] {
  border-bottom-color: var(--rust);
  color: var(--rust);
}
#music-heading {
  margin: 5px 0 8px;
}
.music-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.music-row:first-child {
  border-top: 1px solid var(--rule);
}
.music-row h4 {
  margin: 3px 0;
  font-size: 22px;
}
.music-row p,
.music-reader p {
  font-size: 14px;
  white-space: pre-line;
}
.music-row .actionrow {
  margin: 4px 0;
}
.music-meta {
  display: block;
  color: var(--muted);
  font: 11px/1.5 var(--mono);
  margin: 5px 0;
}
.music-picks {
  padding: 8px 12px 11px;
  border: 1px solid var(--rule);
  margin: 0 0 14px;
}
.music-picks legend,
.music-subhead {
  font-weight: 600;
  font-size: 13px;
}
.music-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 0;
  font-size: 13px;
}
.music-check input {
  accent-color: var(--rust);
}
.music-section {
  border-block-start: 1px solid var(--rule);
  padding: 10px 0 2px;
  margin: 7px 0;
}
.music-section summary {
  cursor: pointer;
  font:
    600 14px/1.6 "Segoe UI",
    sans-serif;
  padding: 3px 0;
  margin-bottom: 7px;
}
.music-section p {
  margin-bottom: 8px;
}
.music-track {
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.music-track textarea {
  min-height: 52px;
}
.music-track .actionrow {
  gap: 6px;
}
.music-reader,
.music-reader li {
  overflow-wrap: anywhere;
}
.music-reader dl {
  margin: 7px 0 12px;
}
.music-reader dt {
  color: var(--muted);
  font: 11px/1.4 var(--mono);
}
.music-reader dd {
  margin: 1px 0 6px;
  white-space: pre-line;
}
.music-reader ol {
  padding-left: 24px;
}
.music-reader pre {
  font: 12px/1.4 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.music-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.music-compare > div {
  min-width: 0;
}
@media (max-width: 560px) {
  .music-row {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 7px;
  }
  .music-row .actionrow {
    grid-column: 2;
  }
  .music-compare,
  .fieldgrid.music-fields {
    grid-template-columns: 1fr;
  }
  .music-nav {
    gap: 0 10px;
  }
  .music-nav button {
    font-size: 12px;
  }
}

.gearfinder {
  margin: 0 0 16px;
}
.gearfinder .tinytext {
  display: block;
  margin-top: 5px;
}
.gearreview {
  margin: 12px 0;
  padding: 14px;
  border-left: 3px solid var(--rust);
  background: var(--tint);
  overflow-wrap: anywhere;
}
.gearreview h4,
.tubes h4 {
  margin: 0 0 6px;
}
.gearreview label.choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.gearreview .choice input {
  width: 16px;
  height: 16px;
  margin: 2px 0;
}
.gearreview .choice small,
.gearprov {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.gearreview .actionrow {
  flex-wrap: wrap;
}
.gearsource,
.tubes > summary {
  cursor: pointer;
}
.gearsource {
  margin: 8px 0;
}
.gearsource > summary {
  font-size: 13px;
}
.gearprov {
  font: 10px/1.4 var(--mono);
  text-transform: none;
  letter-spacing: 0;
}
.tubes > summary {
  font: normal 21px/1.4 var(--serif);
}
.tubes h5 {
  font-size: 14px;
  margin: 16px 0 4px;
}
.tubes .socket {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
}
.tubes .sockethead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tubes p,
.gearreview p {
  font-size: 13px;
  margin: 5px 0 9px;
}
.gearreview select {
  max-width: 100%;
}
.gearhistory {
  font-size: 13px;
  padding-left: 20px;
}
.gearhistory li {
  margin: 6px 0;
}
.gearhistory p {
  margin: 2px 0;
}
.gearfield {
  min-width: 0;
}
#gear-editor .field input,
#gear-editor .field select,
#gear-editor input[type="file"] {
  max-width: 100%;
}
#gear-editor .field {
  min-width: 0;
}

.check-study {
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.check-study h4 {
  font: 600 1.35rem/1.15 var(--serif);
  margin: 0.3rem 0;
}
.check-study .fieldgrid {
  margin: 0.75rem 0;
}
.check-study .field,
.check-study select {
  min-width: 0;
  max-width: 100%;
}
.check-reading {
  border-left: 3px solid var(--rust);
  background: var(--tint);
  padding: 0.7rem 0.85rem;
  margin: 0.7rem 0;
}
.check-reading b {
  font: 600 1.15rem/1.2 var(--serif);
}
.check-reading p,
.check-study p {
  margin: 0.4rem 0;
}
.check-input {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 0.5rem;
  border-bottom: 1px dotted var(--rule);
  padding: 0.38rem 0;
  font-size: 0.8rem;
}
.check-input strong,
.check-input small {
  text-align: right;
}
.check-input small {
  grid-column: 1/-1;
  color: var(--muted);
  font: normal 0.72rem/1.4 var(--mono);
}
.check-study details {
  margin-top: 0.7rem;
}
.check-study summary {
  cursor: pointer;
  color: var(--rust);
  font-size: 0.85rem;
  font-weight: bold;
}
.check-observation {
  margin: 0.8rem 0;
}
@media (max-width: 620px) {
  .check-study .fieldgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
