/* My playbook (the playbook manager): a binder of taped paper, a scoreboard for the counts, a bar on the bottom edge
   with the one gold thing to do next. On the shared look, site/kit/web.css. */
.mine-score { min-width: min(100%, 24rem); }
.mine-tabs { margin: 0.2rem 0 0.6rem; }
.mine-tabs button { font-size: 1.05rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.mine-count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.35rem; border-radius: 999px; font-size: 0.8125rem; background: oklch(0.3 0.018 250); color: var(--fhk-chalk); }
.mine-tools { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; margin: 0 0 1rem; }
.mine-search { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.8rem; min-height: 2.75rem; border-radius: 0.625rem; background: oklch(0.2 0.016 250); border: 1px solid oklch(0.36 0.022 250); color: var(--fhk-chalk-dim); }
.mine-search:focus-within { border-color: var(--fhk-chalk); }
.mine-search input { background: none; border: 0; color: var(--fhk-chalk); font: 600 1rem var(--fhk-body); width: 14rem; max-width: 50vw; outline: none; }
.mine-status { margin-left: auto; font-family: var(--fhk-handwriting); }

/* the binder */
.mine-sheet { min-height: 12rem; }
.mine-rows { list-style: none; margin: 0; padding: 0; }
.mine-row { display: grid; grid-template-columns: 1.2rem 1.8rem 8.5rem minmax(0, 1fr) auto; gap: 0.4rem 0.9rem; align-items: center; padding: 0.6rem 0.3rem; border-bottom: 1px solid oklch(0.24 0.016 250 / 0.15); border-radius: 0.4rem; transition: background 0.2s; }
.mine-row:last-child { border-bottom: 0; }
.mine-row:hover, .mine-row:focus-visible { background: oklch(1 0 0 / 0.45); outline: none; }
.mine-row:focus-visible { box-shadow: 0 0 0 3px var(--fhk-gold); }
.mine-row.dragging { opacity: 0.4; }
.mine-row.over { box-shadow: inset 0 3px 0 var(--fhk-marker); }
.mine-handle { cursor: grab; color: var(--fhk-ink-dim); font-weight: 900; letter-spacing: -0.2em; user-select: none; }
.mine-row[draggable='false'] .mine-handle { visibility: hidden; }
.mine-n { font-family: var(--fhk-display); font-size: 1.3rem; color: var(--fhk-ink); text-align: right; }
.mine-thumb { display: block; border-radius: 0.4rem; overflow: hidden; background: #1c2922; box-shadow: 0 0 0 3px oklch(0.4 0.012 250); }
.mine-thumb svg { display: block; width: 100%; height: auto; }
.mine-mid { display: grid; gap: 0.1rem; min-width: 0; }
.mine-name { justify-self: start; background: none; border: 0; padding: 0.1rem 0.2rem; margin-left: -0.2rem; font: 800 1.1rem var(--fhk-body); color: var(--fhk-ink); cursor: text; border-radius: 0.3rem; text-align: left; }
.mine-name:hover { background: oklch(0.24 0.016 250 / 0.08); text-decoration: underline dotted; }
.mine-rename { font: 800 1.1rem var(--fhk-body) !important; max-width: 20rem; }
.mine-meta { margin: 0; font-size: 0.875rem; color: var(--fhk-ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-from { font-size: 0.8125rem; color: var(--fhk-ink-dim); }
.mine-acts { display: flex; gap: 0.15rem; }
/* ghost icon buttons: nothing until the pointer is on them (CLAUDE.md "Icon buttons with ghost style") */
.mine-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 0.625rem; background: transparent; color: var(--fhk-ink-dim); cursor: pointer; transition: background 0.2s, color 0.2s; }
.mine-icon:hover, .mine-icon:focus-visible { background: oklch(0.24 0.016 250 / 0.1); color: var(--fhk-ink); }
.mine-icon.off { opacity: 0.25; pointer-events: none; }
.mine-icon.on { color: var(--fhk-marker); }
.mine-icon.on svg { fill: currentColor; }
.mine-icon.danger:hover { color: var(--fhk-marker); }
@media (max-width: 720px) {
  .mine-row { grid-template-columns: 1.5rem 6rem minmax(0, 1fr); }
  .mine-handle { display: none; }
  .mine-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .mine-meta { white-space: normal; }
}

.mine-empty { display: grid; justify-items: center; text-align: center; gap: 0.5rem; padding: 1.6rem 1rem; }
.mine-empty-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: oklch(0.24 0.016 250 / 0.1); color: var(--fhk-ink); }
.mine-empty-icon .fw-icon { width: 2rem; height: 2rem; }
.mine-empty h2 { margin: 0.3rem 0 0; }
.mine-empty p { max-width: 32rem; color: var(--fhk-ink-dim); margin: 0 0 0.6rem; }
.mine-join { max-width: 40rem; }
.mine-join .fw-row { margin-top: 0.8rem; }
.mine-help { margin-top: 1.4rem; color: var(--fhk-chalk-dim); max-width: 46rem; }
.mine-help summary { cursor: pointer; font-weight: 700; min-height: 2.5rem; display: flex; align-items: center; }
.mine-help ul { margin: 0.2rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }

/* the dialogs: a play opened, the book */
.fw-dialog.mine-wide { width: min(64rem, calc(100% - 1.5rem)); }
.mine-open .fhk-chalk svg { display: block; width: 100%; height: auto; }
.mine-book { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.8rem; max-height: 56vh; overflow: auto; padding: 0.3rem; }
.mine-bookplay { display: grid; gap: 0.25rem; text-align: left; padding: 0.4rem; border: 2px solid transparent; border-radius: 0.625rem; background: oklch(1 0 0 / 0.4); cursor: pointer; font: 500 0.875rem var(--fhk-body); color: var(--fhk-ink); transition: border-color 0.2s, background 0.2s; }
.mine-bookplay:hover { border-color: var(--fhk-ink); background: oklch(1 0 0 / 0.7); }
.mine-bookplay .fhk-chalk { border-width: 0.6rem; padding: 0.2rem; }
.mine-bookplay svg { display: block; width: 100%; height: auto; }
.mine-bookplay small { color: var(--fhk-ink-dim); }
.mine-bookplay.have { border-color: var(--fhk-marker); }
.mine-have { font-family: var(--fhk-handwriting); color: var(--fhk-marker); font-weight: 700; }

/* printing: only the print area, in ink on white */
#print { display: none; }
@media print {
  body.fw { background: #fff !important; color: #111; }
  body.fw > *:not(#print) { display: none !important; }
  #print { display: block; font: 11pt/1.4 Inter, system-ui, sans-serif; color: #111; }
  .pr-page { page-break-after: always; padding: 0.2in 0; }
  .pr-page:last-child { page-break-after: auto; }
  .pr-cover { display: grid; align-content: center; min-height: 9in; text-align: center; }
  .pr-cover h1 { font: 900 40pt 'Alfa Slab One', 'Arial Black', sans-serif; margin: 0; }
  .pr-page h2 { font-size: 20pt; margin: 0 0 4pt; }
  .pr-line { margin: 0 0 8pt; }
  .pr-diagram svg { width: 100%; max-height: 4.6in; }
  .pr-jobs { columns: 2; column-gap: 0.3in; padding-left: 1em; font-size: 10pt; }
  .pr-jobs li { break-inside: avoid; margin-bottom: 4pt; }
  .pr-small { font-size: 9pt; color: #555; }
  .pr-band { display: grid; grid-template-columns: repeat(3, 1fr); width: 4.25in; height: 2.75in; border: 1px dashed #777; margin: 0 0.15in 0.2in 0; float: left; page-break-inside: avoid; }
  .pr-cell { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; border: 0.5px solid #bbb; padding: 2pt; overflow: hidden; }
  .pr-cell b { font-size: 12pt; grid-row: span 2; padding-right: 2pt; }
  .pr-cell span { font-size: 6.5pt; line-height: 1.1; }
  .pr-mini svg { width: 100%; height: 0.48in; }
}

/* the shelf move, in words (the review: an arrow alone could not be guessed) */
.mine-shelfbtn { align-self: center; min-height: 2.4rem; padding: 0 0.7rem; border: 0; border-radius: 0.625rem; background: transparent; color: var(--fhk-ink-dim); font: 700 0.8125rem var(--fhk-body); cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.mine-shelfbtn:hover, .mine-shelfbtn:focus-visible { background: oklch(0.24 0.016 250 / 0.1); color: var(--fhk-ink); }
.mine-score .fhk-bulbs { white-space: nowrap; }
@media (max-width: 760px) {
  .fw-bar { flex-wrap: nowrap; gap: 0.4rem; }
  .fw-bar .fhk-btn.quiet .lbl { display: none; }
  .fw-bar .fhk-btn.quiet { padding: 0.7em 1.1em 0.64em; }
  .fw-bar .fhk-btn:not(.quiet) { font-size: 0.875rem; padding: 0.7em 1.2em 0.64em; }
  .mine-help { display: none; }
  .mine-score { grid-auto-flow: row; grid-template-columns: 1fr 1fr; row-gap: 0.6rem; }
}
@media (max-width: 760px) { .fw-bar .fhk-btn:not(.quiet) { white-space: nowrap; } }
