/* Photo book sheet: the looks, the cover picker, the dedication box and the print guide.
   (Loaded by photobook.js if index.html doesn't link it.) */

.pb-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.pb-theme {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 7px 6px 8px;
  border: 2px solid transparent; border-radius: 14px; background: var(--chip); color: var(--fg);
  font: inherit; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer;
}
.pb-theme canvas { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.pb-theme[aria-checked="true"] { border-color: var(--fg); }

.pb-cover { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.pb-cover-preview { flex: none; width: 100px; height: auto; border-radius: 2px; box-shadow: 0 2px 10px rgba(0,0,0,.22); background: #fff; }
.pb-covers {
  flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 60px); grid-auto-columns: 60px;
  gap: 6px; overflow-x: auto; padding: 0 0 4px; scroll-snap-type: x proximity;
}
.pb-pick { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--tile); cursor: pointer; scroll-snap-align: start; }
.pb-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-pick img:not([src]) { visibility: hidden; }
.pb-pick[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px rgba(0,0,0,.35); }
.pb-pick[aria-pressed="true"]::after {
  content: "✓"; position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #111; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}
.pb-pick.fav::before { content: "♥"; position: absolute; left: 5px; top: 3px; color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

.pb-text {
  display: block; width: 100%; min-height: 64px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 13px;
  background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; line-height: 1.35; resize: vertical;
}

.pb-guide { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--chip); font-size: 14px; line-height: 1.45; }
.pb-guide summary { font-weight: 800; cursor: pointer; }
.pb-guide p { margin: 9px 0 0; }
.pb-guide b { font-weight: 700; }
