/* Inbox page: address band, Polar Dial, log, reader, notes. */

/* ---------- Address band ---------- */
.band { border-bottom: 1px solid var(--ink); }
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  grid-template-areas:
    "label   dial"
    "addr    dial"
    "actions dial"
    "status  dial";
  column-gap: var(--s8);
  padding-block: var(--s7) var(--s6);
}
.band-label { grid-area: label; }
.addr-box { grid-area: addr; margin-top: var(--s3); min-width: 0; }
.addr {
  position: relative;
  overflow: hidden;
  font-family: var(--mono);
  font-size: var(--fs-addr);
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  /* reserve the line so nothing jumps when the address arrives */
  min-height: 1.12em;
}
.addr-text { display: block; overflow-wrap: anywhere; }
.addr-text.is-pending { color: var(--ink-3); font-weight: 400; }
.addr-incoming { position: absolute; inset: 0 0 auto 0; }

.actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
  margin-top: var(--s5);
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
  padding: 0 var(--s3) 0 var(--s4);
  border: 0;
  border-radius: 0;
  background: var(--signal);
  color: var(--signal-ink);
  font-size: var(--fs-m);
  font-weight: 650;
  line-height: 1;
}
.btn-copy kbd { border-color: var(--signal-ink); color: var(--signal-ink); }
.btn-copy:hover { background: var(--ink); color: var(--bg); }
.btn-copy:hover kbd { border-color: var(--bg); color: var(--bg); }
.btn-copy:disabled { opacity: .5; }
.btn-copy.copyable::after { bottom: -6px; }

.act-grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); }
.act {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s1);
  background: none;
  border: 0;
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
}
.act-label { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.act:hover .act-label { text-decoration-color: var(--ink); }
.act:disabled { color: var(--ink-3); }
.act:disabled .act-label { text-decoration: none; }
.act[data-act="burn"]:hover .act-label { text-decoration-color: var(--err); color: var(--err); }

.status {
  grid-area: status;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: .8125rem;
  font-stretch: 100%;
  color: var(--ink-2);
  min-height: 40px;
}
.status-text { margin-left: calc(-1 * var(--s2)); }
.status-count::before { content: "·"; margin-right: var(--s4); color: var(--ink-3); }
.live {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
}
.live.is-on { background: var(--signal); animation: breathe 2.4s ease-in-out infinite; }

.keys-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 32px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  font-stretch: 112.5%;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.keys-btn:hover { color: var(--ink); }

/* Saved inboxes */
.saved { position: relative; }
.saved-summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 32px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 4px;
}
.saved-summary::-webkit-details-marker { display: none; }
.saved-summary::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.saved[open] .saved-summary::after { transform: translateY(1px) rotate(225deg); }
.saved-panel {
  position: absolute;
  z-index: var(--z-menu);
  top: calc(100% + var(--s2));
  left: 0;
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  background: var(--bg);
  border: 1px solid var(--ink);
  font-family: var(--sans);
}
.saved-list { list-style: none; }
.saved-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.saved-open {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: var(--s2) var(--s4);
  background: none;
  border: 0;
  text-align: left;
  color: var(--ink);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}
.saved-open:hover { background: var(--paper); }
.saved-forget {
  flex: none;
  min-height: 44px;
  padding: 0 var(--s4);
  background: none;
  border: 0;
  border-left: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-stretch: 112.5%;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.saved-forget:hover,
.saved-forget.is-armed { color: var(--err); }
.saved-note { padding: var(--s3) var(--s4); font-size: var(--fs-s); color: var(--ink-2); line-height: 1.45; }

/* ---------- Polar Dial ---------- */
.dial {
  grid-area: dial;
  align-self: center;
  position: relative;
  width: 168px;
  height: 168px;
}
.dial-svg { width: 100%; height: 100%; overflow: visible; }
.d-grat { fill: none; stroke: var(--rule); stroke-width: 1; }
.d-ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.d-tick { stroke: var(--ink-3); stroke-width: 1; }
.d-tick-major { stroke: var(--ink); }
.d-arc { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: butt; }
.d-north { fill: var(--ink); }
.d-end { fill: var(--signal); }
.d-mark { stroke: var(--signal); stroke-width: 2; }
.d-mark.is-new { transform-box: fill-box; transform-origin: center; animation: mark-in var(--t-med) var(--ease) both; }
@keyframes mark-in {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.dial-centre {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  pointer-events: none;
}
.dial-time {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
  font-stretch: 87.5%;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.dial-left { line-height: 1; }

/* ---------- Work area: log + reader ---------- */
.work {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  align-items: start;
  min-height: 62vh;
}
.strip {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
}
.strip-meta { color: var(--signal-text); }
.strip-btn {
  margin-left: auto;
  min-height: 44px;
  padding: 0 0 0 var(--s3);
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  font-stretch: 112.5%;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.strip-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.strip-btn:disabled { opacity: .5; }

.log {
  border-right: 1px solid var(--rule);
  align-self: stretch;
  padding-bottom: var(--s7);
}
.log .strip { padding-right: var(--s4); }

.rows { list-style: none; margin-left: calc(-1 * var(--s4)); }
.row { position: relative; border-bottom: 1px solid var(--rule-2); }
.row.is-unfolding { overflow: hidden; }
/* New arrival: an orange tick at the left edge that fades over six seconds. */
.row.is-new::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--signal);
  animation: tick-fade 6s linear forwards;
  z-index: 1;
}
@keyframes tick-fade {
  0%, 30% { opacity: 1; }
  100% { opacity: 0; }
}
.row-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  width: 100%;
  padding: var(--s4) var(--s4) var(--s4) var(--s4);
  background: none;
  border: 0;
  text-align: left;
  color: var(--ink);
}
.row.has-chip .row-open { padding-right: 8.5rem; }
.row-open:hover { background: var(--paper); }
.row-open[aria-current="true"] { background: var(--paper); }
/* The open message: a 2px ink bar at the left edge (a drawn rule, not a shadow). */
.row.is-open::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink);
  pointer-events: none;
}
.row-open:focus-visible { box-shadow: var(--focus-inset); }
.row-meta {
  display: flex;
  gap: var(--s3);
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--ink-3);
}
.row-files { text-transform: uppercase; letter-spacing: .06em; }
.row-from {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  min-width: 0;
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--ink-2);
}
.row-from-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-tag { flex: none; font-family: var(--mono); font-size: var(--fs-label); font-stretch: 100%; color: var(--ink-3); }
.row-subj {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-body);
  line-height: 1.35;
}
.row-prev {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-s);
  color: var(--ink-2);
}
.row.is-unseen .row-subj { font-weight: 650; }
.row.is-unseen .row-from { color: var(--ink); }
.row.is-unseen .row-seq { color: var(--ink); }

.chip {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 var(--s2);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: .02em;
}
.chip:hover { background: var(--ink); color: var(--bg); }
.chip.copyable::after { bottom: -4px; }

/* Empty log: a listening line and ruled log paper. */
.empty { padding: var(--s5) 0 var(--s4); }
.empty-line {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: .8125rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.empty-text { margin-top: var(--s2); padding-left: calc(8px + var(--s3)); color: var(--ink-2); font-size: var(--fs-s); max-width: 44ch; }
.paper { display: grid; }
.paper span { height: 76px; border-bottom: 1px solid var(--rule-2); }
.paper span:first-child { border-top: 0; }

/* ---------- Reader ---------- */
.reader {
  position: sticky;
  top: var(--header-h);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.reader-strip { padding-left: var(--s6); padding-right: var(--s3); position: sticky; top: 0; z-index: 2; background: var(--bg); }
.back {
  display: none;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  margin-left: calc(-1 * var(--s2));
  padding: 0 var(--s3) 0 var(--s2);
  background: none;
  border: 0;
  font-weight: 600;
  color: var(--ink);
}
.back svg { width: 16px; height: 16px; }
.strip-actions { margin-left: auto; display: flex; align-items: center; }
.reader-body { padding: var(--s5) var(--s3) var(--s7) var(--s6); }

.idle { max-width: 52ch; padding-top: var(--s2); }
.idle-text { color: var(--ink-2); }
.idle-label { margin-top: var(--s6); }
.procedure { list-style: none; margin-top: var(--s2); border-top: 1px solid var(--rule); }
.procedure li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
}
.procedure .label { padding-top: 3px; }

.reader-state { padding-top: var(--s2); color: var(--ink-2); display: grid; gap: var(--s4); justify-items: start; }

.meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--s1) var(--s5);
  margin: 0;
}
.meta dt { padding-top: 4px; }
.meta dd {
  margin: 0;
  min-width: 0;
  font-family: var(--mono);
  font-size: .8125rem;
  font-stretch: 100%;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.meta-name { font-family: var(--sans); font-size: var(--fs-s); font-weight: 600; }
.meta-addr, .meta-tag { color: var(--ink-2); }
.auth { margin-right: var(--s3); white-space: nowrap; }
.auth-ok { color: var(--ok); }
.auth-bad { color: var(--err); }
.auth-none { color: var(--ink-3); }

.subject {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-l);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  max-width: 40ch;
}
.subject:focus { outline: none; }
.subject:focus-visible { box-shadow: var(--focus); }

.readout { margin-top: var(--s5); }
.readout-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s4) var(--s5); margin-top: var(--s2); }
.readout-cells {
  display: inline-flex;
  border-bottom: 2px solid var(--signal);
  max-width: 100%;
}
.readout-cell {
  display: inline-grid;
  place-items: center;
  min-width: 1.15em;
  padding: var(--s2) clamp(4px, 1vw, 10px) var(--s2);
  border-left: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--fs-xl);
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1;
  color: var(--ink);
}
.readout-cell:first-child { border-left: 0; padding-left: 0; }
.readout-copy { margin-bottom: 2px; }
.readout-more { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.readout-more .chip { position: static; }

.verify-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); margin-top: var(--s5); }
.verify {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 32px;
  color: var(--signal-text);
  font-weight: 650;
  text-decoration-color: currentColor;
}
.verify:hover { text-decoration-thickness: 2px; }
.verify .arrow { width: 13px; height: 13px; flex: none; }
.verify-host { font-size: .8125rem; color: var(--ink-3); }

/* The email always renders on white paper, in both themes, never inverted. */
.sheet {
  margin-top: var(--s5);
  background: #FFFFFF;
  border: 1px solid var(--rule);
  color: #111417;
  color-scheme: light;
}
.sheet-frame { display: block; width: 100%; height: 160px; border: 0; background: #FFFFFF; }
.sheet-text {
  margin: 0;
  padding: var(--s4);
  font-family: var(--mono);
  font-size: .8125rem;
  font-stretch: 100%;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #111417;
}
.sheet-text a { color: #111417; text-decoration-color: #5E656C; }

.msg-foot { margin-top: var(--s4); display: grid; gap: var(--s4); }
.atts .label { margin-bottom: var(--s1); }
.att-list { list-style: none; border-top: 1px solid var(--rule); }
.att-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s4);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--rule);
}
.att-name { font-weight: 600; overflow-wrap: anywhere; min-height: 32px; display: inline-flex; align-items: center; }
.att-meta { font-size: var(--fs-label); color: var(--ink-3); }
.msg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); margin-left: calc(-1 * var(--s2)); }
.tool-note { font-size: var(--fs-s); color: var(--ink-3); padding: 0 var(--s2); }
.tool-note.mono { font-size: var(--fs-label); }
.headers summary { list-style: none; cursor: pointer; margin-left: calc(-1 * var(--s2)); display: inline-flex; }
.headers summary::-webkit-details-marker { display: none; }
.header-list {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr);
  gap: 2px var(--s4);
  margin-top: var(--s2);
  padding: var(--s3) var(--s4);
  background: var(--paper);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-stretch: 100%;
  line-height: 1.6;
}
.header-list dt { color: var(--ink-3); overflow-wrap: anywhere; }
.header-list dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }

/* ---------- Notes strip ---------- */
.notes { border-top: 1px solid var(--ink); margin-top: -1px; }
.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
}
.note {
  display: grid;
  align-content: start;
  gap: var(--s3);
  padding: var(--s6) var(--s5) var(--s7);
  border-left: 1px solid var(--rule);
}
.note:first-child { padding-left: 0; border-left: 0; }
.note:last-child { padding-right: 0; }
.note p { max-width: 40ch; color: var(--ink-2); font-size: var(--fs-s); }
.note-example { display: grid; gap: var(--s1); }
.note-example .mono { color: var(--ink); font-size: .8125rem; overflow-wrap: anywhere; }
.snippet {
  padding: var(--s3) var(--s4);
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: .75rem;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--ink);
}
.note-link { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font-size: var(--fs-s); }
.noscript { padding-block: var(--s5); }

/* Help table */
.keys { border-collapse: collapse; width: 100%; }
.keys th, .keys td { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.keys th { width: 6rem; font-weight: 400; }
.keys tr:first-child th, .keys tr:first-child td { border-top: 1px solid var(--rule); }
.hint { font-size: var(--fs-s); color: var(--ink-2); }

/* Choose-name dialog */
.field { display: grid; gap: var(--s2); }
.name-row { display: flex; align-items: center; gap: var(--s2); }
.name-input { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-stretch: 100%; font-size: var(--fs-body); }
.name-at { font-family: var(--mono); color: var(--ink-2); }
.name-domain { flex: none; max-width: 45%; font-family: var(--mono); font-size: var(--fs-s); }
.name-row.one-domain .name-at { display: none; }
.name-row.one-domain::after {
  content: attr(data-domain);
  font-family: var(--mono);
  font-size: var(--fs-s);
  color: var(--ink-2);
  white-space: nowrap;
}
.field-error { font-size: var(--fs-s); color: var(--err); font-weight: 600; }
.name-preview { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); padding-top: var(--s3); border-top: 1px solid var(--rule); }
.name-preview .mono { font-size: var(--fs-s); overflow-wrap: anywhere; }

/* QR dialog */
.qr-body { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--s5); }
.qr-plate {
  display: grid;
  place-items: center;
  width: 232px;
  height: 232px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  color: #111417;
}
.qr-plate.is-expired .qr-img { opacity: .12; }
.qr-img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-state { font-size: var(--fs-s); text-align: center; color: #41474D; }
.qr-text { display: grid; gap: var(--s3); justify-items: start; }
.qr-expiry { font-size: .8125rem; color: var(--ink-2); min-height: 1.5em; }

/* ---------- Mobile (< 900px) ---------- */
@media (max-width: 899.98px) {
  .band-grid {
    grid-template-columns: minmax(0, 1fr) 56px;
    grid-template-areas:
      "label   dial"
      "addr    addr"
      "actions actions"
      "status  status";
    column-gap: var(--s4);
    padding-block: var(--s5) var(--s4);
  }
  .band-label { align-self: center; }
  .dial { width: 56px; height: 56px; align-self: center; }
  .dial-centre,
  .d-grat,
  .d-tick:not(.d-tick-major) { display: none; }
  .addr-box { margin-top: var(--s4); }

  .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--s5); }
  .btn-copy { justify-content: center; min-height: 52px; font-size: var(--fs-m); }
  .btn-copy kbd, .act kbd, .keys-btn { display: none; }
  .act-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    margin-top: var(--s4);
    border-top: 1px solid var(--rule);
  }
  .act {
    justify-content: flex-start;
    min-height: 52px;
    padding: 0 var(--s3);
    border-bottom: 1px solid var(--rule);
  }
  .act:nth-child(odd) { border-right: 1px solid var(--rule); padding-left: 0; }
  .act-label { text-decoration-color: var(--ink-3); }

  .status { margin-top: var(--s3); border-top: 0; padding-top: 0; }
  .saved-summary { min-height: 44px; }
  .note-link { min-height: 44px; }
  .verify, .att-name { min-height: 44px; }

  .work { display: block; min-height: 0; }
  .log { border-right: 0; padding-bottom: var(--s6); }
  .log .strip { padding-right: 0; }
  .rows { margin-inline: calc(-1 * var(--gutter)); }
  .row-open { padding-inline: var(--gutter); }
  .row.has-chip .row-open { padding-right: calc(var(--gutter) + 7.5rem); }
  .chip { right: var(--gutter); min-height: 36px; }
  .chip::before { content: ""; position: absolute; inset: -6px -4px; }

  /* The reader becomes a full-screen sheet. */
  .reader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-sheet);
    max-height: none;
    background: var(--bg);
    scrollbar-gutter: auto;
  }
  .reader.is-open { display: block; }
  .reader-strip { padding-inline: var(--gutter); min-height: var(--header-h); border-bottom-color: var(--ink); }
  .back { display: inline-flex; }
  .reader-body { padding: var(--s5) var(--gutter) var(--s8); }
  .subject { max-width: none; }

  .notes-grid { grid-template-columns: minmax(0, 1fr); }
  .note { padding: var(--s5) 0; border-left: 0; border-top: 1px solid var(--rule); }
  .note:first-child { border-top: 0; }

  .qr-body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .qr-text { justify-items: stretch; }
}
@media (max-width: 899.98px) {
  html.sheet-open, html.sheet-open body { overflow: hidden; }
}
@media (min-width: 900px) and (max-width: 1199.98px) {
  .band-grid { column-gap: var(--s6); }
  .work { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
  .notes-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .note-api { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}
@media (max-width: 559.98px) {
  .meta { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .meta dd { margin-bottom: var(--s2); }
  .readout-row { gap: var(--s3); }
  .readout-copy { width: 100%; }
}
