/* The library page (issue 87): bird-and-flower prints on warm paper.
   Loaded after member.css on /library only. It replaces member.css tokens and
   resets the generic rules that member.css sets for the legal pages. */
:root {
  --page: #f7f2e9;
  --panel: #efe7d8;
  --ink: #2a2521;
  --muted: #463f39;
  --rule: #ddd2bf;
  --hover: #efe8da;
  --sel: #e9dcc2;
  --tint: #e9dcc2;
  --go: #3f5a3a;
  --go-dark: #2f4a2b;
  --go-pale: #e3eadb;
  --warn: #8a2a1d;
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito Sans", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  /* member.css names */
  --bone: var(--page);
  --paper: #fffdf8;
  --green: var(--go);
  --mist: var(--go-pale);
  --line: var(--rule);
  --sans: var(--body);
}
html {
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}
body.lib-page {
  background: var(--page);
  color: var(--ink);
  font: 400 18px/1.5 var(--body);
  overflow-x: hidden;
}
.lib-page a {
  color: inherit;
}
.lib-page p {
  max-width: none;
}
.lib-page h2 + p {
  color: inherit;
}
.lib-page nav {
  display: block;
  padding: 0;
}
.lib-page label {
  margin-top: 0;
}
.lib-page :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.lib-page h1,
.lib-page h2,
.lib-page h3,
.lib-page .wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
}
.lib-page .shell {
  width: min(1280px, calc(100% - 48px));
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* buttons: square-ish, dark ink or green */
.lib-page button,
.lib-page .button {
  border-radius: 6px;
  min-height: 44px;
  background: var(--go);
  border: 2px solid var(--go);
  color: #fff;
  font-weight: 700;
}
.lib-page button:hover {
  background: var(--go-dark);
}
.lib-page button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.lib-page button.secondary:hover {
  background: var(--hover);
}
.lib-page button.text {
  background: none;
  border: 0;
  color: var(--ink);
  padding: 8px 4px;
  text-decoration: underline;
}
.lib-page button.danger {
  background: transparent;
  color: #8b3128;
  border-color: #8b3128;
}
.lib-page button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.lib-page .actions a,
.lib-page .support a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}
.lib-page summary {
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* header */
.lib-page .site-header {
  position: static;
  border-bottom: 0;
  background: var(--page);
}
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  padding: 6px 0;
}
.lib-page .wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
#member-nav {
  display: flex;
  align-items: center;
  gap: 0 22px;
  margin-left: auto;
  font-size: 17px;
}
#member-nav[hidden] {
  display: none;
}
#member-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.who {
  color: var(--muted);
  font-size: 16px;
}
.lib-page .signin {
  margin-left: auto;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  white-space: nowrap;
}
#member-nav:not([hidden]) + .signin {
  margin-left: 0;
}
.lib-page .signin:hover {
  background: var(--ink);
  color: var(--page);
}
#page-message {
  margin: 8px 0;
}

/* intro and the create buttons */
.lib-page .intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 32px;
  max-width: none;
  padding: 6px 0 18px;
}
.intro-t {
  display: grid;
  gap: 10px;
}
.lib-page h1 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
  margin: 0;
}
.lib-page .intro p {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}
.make-box {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}
.lib-page .make-box p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}
.lib-page .make-go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  background: var(--go);
  color: #fff;
  border: 2px solid var(--go);
  font-size: 20px;
  white-space: nowrap;
}
.make-go .plus {
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}
.make-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin: 0;
  padding: 24px 28px;
  background: var(--go-pale);
  border-top: 1px solid var(--rule);
}
.lib-page .make-end h2 {
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 6px;
}
.make-end p {
  margin: 0;
  max-width: 60ch;
}

/* the free list */
.lib {
  display: grid;
  border-top: 2px solid var(--ink);
}
#list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
#list li + li .row {
  border-top: 1px solid var(--rule);
}
#list .loading {
  padding: 24px 6px;
}
.lib-page .row {
  display: grid;
  grid-template-columns: 2.2ch 64px minmax(0, 1fr) auto auto;
  grid-template-areas: "n mk t m go" "n mk d m go";
  column-gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 4px 20px 4px 6px;
  border: 0;
  border-left: 6px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 400;
}
.row .n {
  grid-area: n;
  font: 600 19px/1 var(--body);
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}
.row .mk {
  grid-area: mk;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(42, 37, 33, 0.16);
}
.row .t {
  grid-area: t;
  font: 500 21px/1.15 var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  align-self: end;
}
.row .d {
  grid-area: d;
  font-size: 18px;
  line-height: 1.3;
  color: var(--muted);
  text-wrap: pretty;
  align-self: start;
  margin-top: 2px;
}
.row .m {
  grid-area: m;
  font-size: 17px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.row .go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.lib-page .row:hover {
  background: color-mix(in srgb, var(--tint) 22%, var(--page));
}
.lib-page .row[aria-expanded="true"] {
  background: color-mix(in srgb, var(--tint) 70%, var(--page));
  border-left-color: color-mix(in srgb, var(--tint) 60%, var(--ink));
}
.row[aria-expanded="true"] .n,
.row[aria-expanded="true"] .d {
  color: var(--ink);
}
.row[aria-expanded="true"] .go {
  font-size: 0;
}
.row[aria-expanded="true"] .go::after {
  content: "\2713  Chosen";
  font-size: 16px;
}
.row:focus-visible {
  outline-offset: -3px;
}

/* detail panel */
.panel {
  background: color-mix(in srgb, var(--tint) 30%, var(--page));
  padding: 16px 22px 24px;
}
.panel.is-start {
  background: transparent;
}
.sheetbar {
  display: none;
}
.phead {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
}
.big {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(42, 37, 33, 0.16);
}
.lib-page .panel h2 {
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.desc {
  margin: 0 0 10px;
  font-size: 18px;
  text-wrap: pretty;
}
.note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 4px solid color-mix(in srgb, var(--tint) 60%, var(--ink));
  background: color-mix(in srgb, var(--tint) 45%, var(--page));
  font-size: 17px;
  line-height: 1.4;
}
.pick {
  margin: 0 0 6px;
  font-weight: 700;
}
.vbs {
  display: grid;
  gap: 8px;
  scroll-margin-bottom: 140px;
}
.lib-page .vb {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas: "vi vn vs" "vi vk vs";
  column-gap: 14px;
  align-items: center;
  justify-content: stretch;
  min-height: 64px;
  padding: 6px 18px 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--page);
  color: var(--ink);
  text-align: left;
}
.lib-page .vb:hover {
  background: var(--hover);
}
.vi {
  grid-area: vi;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--page);
}
.vi .ico {
  width: 18px;
  height: 18px;
}
.vn {
  grid-area: vn;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
}
.vk {
  grid-area: vk;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  font-variant-numeric: tabular-nums lining-nums;
}
.vs {
  grid-area: vs;
  font-weight: 700;
  font-size: 17px;
}
.lib-page .vb.cur {
  background: var(--go-pale);
  border: 3px solid var(--go);
}
.vb.cur .vi {
  background: var(--go);
  color: #fff;
}
.vb.cur .vs {
  color: var(--go);
}
.vb.cur .vi .ico {
  display: none;
}
.vb.cur .vi::after {
  content: "\266A";
  font-size: 22px;
  line-height: 1;
}
.psafe {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.45;
}
.dls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 12px 0 0;
  font-size: 16px;
}
.dlh {
  flex-basis: 100%;
  margin: 0;
}
.dls .dl,
.lib-page .dls .dlsign {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--page);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.dls .dl:hover,
.lib-page .dls .dlsign:hover {
  background: var(--ink);
  color: var(--page);
}
.dlwhy {
  font-size: 16px;
}
.start {
  padding: 8px 0;
}
.lib-page .start h2 {
  margin: 0 0 12px;
}
.start ol {
  margin: 0 0 14px;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
  font-size: 19px;
}
.start p {
  margin: 0;
  color: var(--muted);
}
.ico {
  width: 16px;
  height: 16px;
  flex: none;
}
[aria-pressed="true"] .i-play,
.is-playing .pp .i-play {
  display: none;
}
[aria-pressed="false"] .i-pause,
#player:not(.is-playing) .pp .i-pause {
  display: none;
}

/* the shared player */
#player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 44px 52px minmax(200px, 340px) minmax(0, 1fr) auto auto;
  grid-template-areas: "img pp meta seek time x";
  gap: 16px;
  align-items: center;
  padding: 10px max(16px, calc(50vw - 616px)) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--page);
}
#player[hidden] {
  display: none;
}
#player .pimg {
  grid-area: img;
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: var(--page);
}
#player.no-img .pimg {
  visibility: hidden;
}
.lib-page #player .pp {
  grid-area: pp;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--page);
  color: var(--ink);
}
#player .pp .ico {
  width: 20px;
  height: 20px;
}
#player .pmeta {
  grid-area: meta;
  min-width: 0;
}
#player .ptitle {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#player .psub,
#player .ptime {
  font-size: 17px;
}
#player .seek {
  grid-area: seek;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 44px;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
#player .seek::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--page) 35%, transparent);
}
#player .seek::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--page) 35%, transparent);
}
#player .seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--page);
  border: 0;
}
#player .seek::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--page);
  border: 0;
}
#player .ptime {
  grid-area: time;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.lib-page #player .px {
  grid-area: x;
  min-width: 64px;
  height: 44px;
  border: 1.5px solid var(--page);
  background: none;
  color: var(--page);
  font-size: 16px;
}
body.has-player {
  padding-bottom: calc(var(--pb, 0px) + 24px);
}

/* wide screens: list and panel side by side */
@media (min-width: 900px) {
  .lib {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  #side {
    background: var(--panel);
  }
  #side .panel {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow: auto;
    border-left: 4px solid color-mix(in srgb, var(--tint) 75%, var(--ink));
  }
  #side .panel.is-start {
    border-left: 0;
  }
  #player.is-docked {
    position: sticky;
    bottom: 0;
    z-index: 5;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas: "pp meta x" "seek seek time";
    gap: 4px 12px;
    padding: 12px 20px;
  }
  #player.is-docked .pimg {
    display: none;
  }
  body.has-player:has(#player.is-docked) {
    padding-bottom: 0;
  }
  body.has-player #side .panel {
    max-height: calc(100vh - var(--pb, 0px));
  }
  /* creating: the form takes the page; the list waits behind Close */
  body.creating .intro,
  body.creating .lib,
  body.creating .make-end,
  body.creating .tail,
  body.creating #personal {
    display: none;
  }
}

/* ---------- Create your own session ---------- */
.create {
  background: color-mix(in srgb, var(--tint) 30%, var(--page));
}
.create[hidden] {
  display: none;
}
@media (min-width: 900px) {
  .create {
    max-width: 760px;
    margin: 20px auto 40px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    padding: 24px 32px 28px;
  }
}
.create .sheetbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.lib-page .create .close,
.lib-page .panel .close {
  min-width: 88px;
  height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
}
.mk-kept {
  font-size: 16px;
  color: var(--muted);
}
.mk-step-count {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--go);
}
.lib-page .mk-q {
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.12;
  margin: 0 0 14px;
  outline: none;
}
.mk-opt {
  font: 400 18px var(--body);
  color: var(--muted);
}
.mk-sub {
  margin: 14px 0 8px;
  font-weight: 700;
}
.mk-small {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--muted);
}
.mk-after {
  margin-top: 8px;
}
.mk-choices {
  display: grid;
  gap: 10px;
}
.mk-choices.mk-row {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.lib-page .mk-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 56px;
  margin: 0;
  padding: 8px 18px 8px 46px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--page);
  font-weight: 700;
  font-size: 19px;
  cursor: pointer;
}
.mk-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.mk-choice small {
  font-weight: 400;
  font-size: 16px;
  color: inherit;
}
.mk-choice:has(input:checked) {
  background: var(--go);
  border-color: var(--go);
  color: #fff;
}
.mk-choice:has(input:checked)::before {
  content: "\2713";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}
.mk-choice:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.mk-choice:has(input:disabled) {
  opacity: 0.6;
  border-style: dashed;
  cursor: not-allowed;
}
.mk-row .mk-choice {
  align-items: center;
  text-align: center;
  padding-left: 34px;
}
.mk-row .mk-choice:has(input:checked)::before {
  left: 10px;
}
.mk-voices {
  display: grid;
  gap: 10px;
}
.lib-page .mk-group {
  font: 700 18px/1.3 var(--body);
  margin: 10px 0 0;
}
.mk-voice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.lib-page .mk-listen {
  min-height: 56px;
  min-width: 88px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.lib-page .mk-listen:hover {
  background: var(--hover);
}
.lib-page .mk-field {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  font-weight: 700;
}
.lib-page .mk-field textarea {
  font: 400 18px/1.4 var(--body);
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
}
.mk-field textarea::placeholder {
  font-style: italic;
  color: #6f655c;
}
.mk-field small {
  font-weight: 400;
  font-size: 16px;
  color: var(--muted);
}
.mk-note,
.mk-signed {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-left: 4px solid var(--go);
  background: color-mix(in srgb, var(--page) 60%, transparent);
}
.mk-signed {
  margin: 0 0 12px;
  background: var(--go-pale);
  font-weight: 700;
}
.mk-note:empty {
  display: none;
}
.mk-qs {
  display: grid;
  gap: 8px;
}
.lib-page .mk-yn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 76px;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
}
.mk-yn legend {
  float: left;
  grid-column: 1;
  padding: 0;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
}
.mk-qn {
  font-weight: 700;
}
.mk-yn label {
  position: relative;
  margin: 0;
}
.mk-yn input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.mk-yn label span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
}
.mk-yn input:checked + span {
  background: var(--go);
  border-color: var(--go);
  color: #fff;
}
.mk-yn input:checked + span::before {
  content: "\2713";
}
.mk-yn input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.lib-page .mk-check {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 16px 0 0;
  font-weight: 400;
  font-size: 17px;
  cursor: pointer;
}
.lib-page .mk-check input {
  width: 32px;
  height: 32px;
  margin: 2px 0 0;
  accent-color: var(--go);
}
.mk-check[hidden] {
  display: none;
}
.mk-check a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.need {
  outline: 3px solid #b3261e;
  outline-offset: 4px;
  border-radius: 4px;
}
.need-msg {
  margin: 6px 0 0;
  font-weight: 700;
  color: var(--warn);
  grid-column: 1 / -1;
}
#safety-warning,
#safety-resources,
#session-error {
  margin-top: 14px;
}
.mk-sum {
  margin: 0 0 8px;
  display: grid;
  gap: 4px;
}
.mk-sum div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.mk-sum dt {
  font-weight: 700;
}
.mk-sum dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.lib-page .mk-h3 {
  font: 700 19px/1.3 var(--body);
  margin: 16px 0 6px;
}
.mk-next-steps {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 4px;
}
.mk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 20px 0 4px;
}
.mk-hint {
  flex-basis: 100%;
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--warn);
}
.mk-hint:empty {
  display: none;
}
.lib-page .mk-back {
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.lib-page .mk-back:hover {
  background: var(--hover);
}
.lib-page .mk-next,
.lib-page .mk-go {
  min-height: 56px;
  padding: 0 28px;
  margin-left: auto;
  font-size: 19px;
}

/* ---------- Your sessions ---------- */
.mine {
  margin: 8px 0 24px;
  padding: 0 0 8px;
  max-width: 860px;
}
.mine[hidden] {
  display: none;
}
.lib-page .mine h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 6px;
}
.mine > p {
  margin: 0 0 12px;
  font-size: 18px;
}
.mine-row {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.mine-row:focus {
  outline: 3px solid var(--go);
  outline-offset: 2px;
}
.mine-row.is-new {
  background: var(--go-pale);
  padding: 12px;
}
.mine-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "t s" "m s";
  gap: 2px 16px;
  align-items: center;
}
.lib-page .mine-t {
  grid-area: t;
  margin: 0;
  font: 700 19px/1.3 var(--body);
}
.mine-m {
  grid-area: m;
  margin: 0;
  color: var(--muted);
}
.mine-s {
  grid-area: s;
  text-align: right;
}
.mine-new {
  display: inline-block;
  padding: 0 8px;
  background: var(--go);
  color: #fff;
  font-size: 15px;
  border-radius: 4px;
  vertical-align: 2px;
}
.mine-act {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--go);
}
.mine-act-stop {
  color: var(--warn);
}
.mine-wait {
  display: grid;
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.mine-wait small {
  font-weight: 400;
  font-size: 16px;
  color: var(--muted);
}
.lib-page .mine-s button {
  min-height: 44px;
  padding: 0 18px;
}
.mine-body {
  margin-top: 6px;
}
.mine-body > details,
.mine-review {
  margin: 8px 0;
}
.mine-review[hidden] {
  display: none;
}
.mine-body pre {
  white-space: pre-wrap;
  font: 18px/1.7 var(--body);
  max-width: 70ch;
  overflow-wrap: anywhere;
  padding: 18px;
  background: var(--paper);
  border-radius: 8px;
}
.mine-body .actions {
  margin: 8px 0;
}
.mine-body textarea {
  min-height: 90px;
}
.mine-body label {
  margin-top: 14px;
}
.revision-form button {
  margin-top: 10px;
}
.mine-dl {
  font-weight: 700;
}
.mine-error {
  color: var(--warn);
}
.mine-delete summary {
  font-weight: 600;
}
.lib-page .account-box {
  margin-top: 20px;
  padding: 4px 20px 12px;
  border-radius: 8px;
  background: var(--panel);
}
.lib-page .account-box > summary {
  font-weight: 700;
}
.empty {
  padding: 12px 0;
}

/* ---------- tail and footer ---------- */
.tail {
  margin: 40px 0 0;
  padding: 18px 0 8px;
  border-top: 2px solid var(--ink);
  max-width: 76ch;
}
.tail a,
.mine-body .form-note a,
.dlh a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.lib-page .tail .form-note,
.lib-page .support {
  font-size: 16px;
  color: var(--muted);
}
.lib-page .support {
  border-top: 0;
}
.lib-page .support .actions {
  gap: 4px 16px;
}

/* ---------- sign-in dialog ---------- */
.lib-page dialog {
  border: 2px solid var(--ink);
  border-radius: 8px;
  max-width: 460px;
  background: var(--page);
}
.lib-page dialog::backdrop {
  background: rgba(30, 26, 22, 0.72);
}
.lib-page dialog h2 {
  font-size: 28px;
  margin: 0;
}
.lib-page .dialog-header {
  align-items: center;
  margin-bottom: 12px;
}
.lib-page .dialog-header button {
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.lib-page #auth-form label {
  margin-top: 14px;
}
.lib-page #auth-form input:not([type="checkbox"]) {
  min-height: 48px;
  font-size: 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.lib-page label.check {
  min-height: 44px;
  align-items: center;
  margin-top: 10px;
}
.lib-page label.check a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.lib-page #auth-form .check input {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-top: 0;
}
#password-hint {
  margin: 2px 0 6px;
}
.si-pw {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 6px;
}
.lib-page .si-show {
  min-height: 48px;
}
.lib-page #auth-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  font-size: 19px;
}
.si-why {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--go-pale);
  border-left: 4px solid var(--go);
}
.si-pick {
  display: grid;
  gap: 12px;
}
.lib-page .si-pick button {
  min-height: 56px;
  font-size: 19px;
}
.auth-more {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.auth-more[hidden],
.si-pick[hidden] {
  display: none;
}
.lib-page #recover-open {
  justify-self: start;
}
.si-or {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.si-or p {
  margin: 0;
  font-weight: 700;
}
.lib-page #auth-switch {
  min-height: 52px;
  border-color: var(--go);
  background: var(--go-pale);
}
#auth-offer {
  margin: 14px 0 0;
}
.lib-page .recovery-code {
  background: var(--panel);
}

/* ---------- phones ---------- */
@media (max-width: 899px) {
  .lib-page .shell {
    width: calc(100% - 32px);
  }
  .top {
    justify-content: space-between;
    padding: 2px 0;
  }
  #member-nav {
    order: 4;
    flex-basis: 100%;
    margin-left: 0;
    font-size: 16px;
  }
  .who {
    display: none;
  }
  .lib-page .signin {
    padding: 0 16px;
  }
  .lib-page h1 {
    font-size: 28px;
  }
  .lib-page .intro {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 14px;
  }
  .make-box {
    justify-items: stretch;
    text-align: left;
  }
  .lib-page .make-go {
    justify-content: center;
    font-size: 19px;
    white-space: normal;
  }
  .make-box p {
    display: none;
  }
  .make-end {
    padding: 20px 16px;
    margin: 0 -16px;
  }
  .lib-page .row {
    position: relative;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas: "mk t" "mk d" "mk m";
    column-gap: 12px;
    row-gap: 2px;
    padding: 8px 22px 8px 0;
    border-left: 0;
    min-height: 72px;
  }
  .lib-page .row[aria-expanded="true"] {
    box-shadow: -16px 0 0 color-mix(in srgb, var(--tint) 70%, var(--page)), 16px 0 0 color-mix(in srgb, var(--tint) 70%, var(--page));
  }
  .row .n,
  .row .go {
    display: none;
  }
  .row .mk {
    width: 56px;
    height: 56px;
    align-self: center;
  }
  .row .t {
    font-size: 19px;
    line-height: 1.2;
  }
  .row .d {
    font-size: 16px;
    margin: 0;
  }
  .row .m {
    padding: 2px 0 0;
    font-size: 16px;
    color: var(--muted);
  }
  .row::after {
    content: "\203A";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-55%);
    font-size: 30px;
    line-height: 1;
  }
  .panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: var(--pb, 0px);
    z-index: 45;
    overflow: auto;
    padding: 12px 16px 24px;
  }
  .panel .sheetbar {
    display: flex;
    margin: 0 0 14px;
  }
  .phead {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 12px;
  }
  .big {
    width: 88px;
    height: 88px;
  }
  .lib-page .panel h2 {
    font-size: 24px;
  }
  .desc {
    font-size: 17px;
  }
  .vb {
    min-height: 72px;
  }
  body.sheet-open {
    overflow: hidden;
  }
  #player {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas: "pp meta x" "seek seek time";
    gap: 6px 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  #player .pimg {
    display: none;
  }
  #player .psub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* creating: a full-screen sheet with Back and Next fixed at the bottom */
  .create {
    position: fixed;
    inset: 0 0 var(--pb, 0px) 0;
    z-index: 45;
    overflow: auto;
    padding: 12px 16px 120px;
    background: var(--page);
  }
  .mk-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--pb, 0px);
    z-index: 46;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--page);
    border-top: 2px solid var(--ink);
  }
  body.has-player .mk-nav {
    padding-bottom: 12px;
  }
  .mk-kept {
    display: none;
  }
  .lib-page .mk-q {
    font-size: 24px;
  }
  .lib-page .mk-yn {
    grid-template-columns: 1fr 1fr;
  }
  .mk-yn legend {
    grid-column: 1 / -1;
    float: none;
  }
  .mk-choices.mk-row {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .mk-sum div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mine-head {
    grid-template-columns: 1fr;
    grid-template-areas: "t" "m" "s";
  }
  .mine-s,
  .mine-wait {
    text-align: left;
  }
  .mine-s {
    margin-top: 6px;
  }
  .mine-row.is-new {
    margin: 0 -16px;
    padding: 12px 16px;
  }
  .lib-page dialog {
    padding: 20px;
  }
}
/* disclosure summaries keep a visible arrow */
.lib-page summary {
  list-style: none;
  cursor: pointer;
}
.lib-page summary::-webkit-details-marker {
  display: none;
}
.lib-page summary::before {
  content: "\25B8";
  display: inline-block;
  width: 1.2em;
  flex: none;
}
.lib-page details[open] > summary::before {
  content: "\25BE";
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
