/* The images checklist (images.js): the pictures used in a book, on the author's book page (dashboard.html) and in
   the studio's Images dialog (studio.html). Built on the dashboard's own colours (desk.css, gilded.css): --ink,
   --muted, --edge, --edge-strong, --accent, --kicker, --glass, so it follows Gilded Night and Gilded Dawn.
   Its dialogs live inside .dash-main, so the phone scale in desk.css (44px buttons, 48px fields) applies to them too.
   Nothing moves with "reduce motion" on, or with the site's calm mode (html.calm). */

.gwi, .gwi-lb, .gwi-dlg, .gwi-folders, .gwi-rep, .pc-groups, .gwi-menu, .gwi-pk, .gwi-toast {
  --gwi-ok: #25502a; --gwi-ok-bg: #d6ead2;
  --gwi-imp: #6a4a0c; --gwi-imp-bg: #f5e3b3;
  --gwi-no: #7a2b2b; --gwi-no-bg: #f3dcdc;
  --gwi-wait: #5a4a30; --gwi-wait-bg: #ece4d4;
  --gwi-tile: rgba(255, 255, 255, .62);
  --gwi-well: repeating-conic-gradient(rgba(120, 100, 70, .1) 0 25%, transparent 0 50%) 0 0 / 16px 16px, #fffdf8;
  --gwi-field: #fffdf8;
  --fold-1: #e3c37c; --fold-2: #d2ac5e; --fold-3: #f3dba2; --fold-4: #e2bd70; --fold-ink: #4a3410; --fold-badge: rgba(90, 60, 10, .16); --fold-edge: rgba(255, 255, 255, .55);
}
.gwi { margin-top: 28px; }
.gwi-dlg .gwi { margin-top: 0; }
.dash-app.dark-ui :is(.gwi, .gwi-lb, .gwi-dlg, .gwi-folders, .gwi-rep, .pc-groups, .gwi-menu, .gwi-pk, .gwi-toast) {
  --gwi-ok: #9fe3b0; --gwi-ok-bg: rgba(120, 210, 140, .12);
  --gwi-imp: #f3d48a; --gwi-imp-bg: rgba(240, 211, 140, .12);
  --gwi-no: #f2aebb; --gwi-no-bg: rgba(240, 160, 175, .12);
  --gwi-wait: #d9cfbd; --gwi-wait-bg: rgba(255, 255, 255, .08);
  --gwi-tile: rgba(255, 255, 255, .045);
  --gwi-well: repeating-conic-gradient(rgba(255, 255, 255, .05) 0 25%, transparent 0 50%) 0 0 / 16px 16px, #0d0c11;
  --gwi-field: rgba(255, 255, 255, .06);
  --fold-1: #5e4a26; --fold-2: #3a2e1b; --fold-3: #7a6232; --fold-4: #4a3a20; --fold-ink: #f3d48a; --fold-badge: rgba(0, 0, 0, .35); --fold-edge: rgba(240, 211, 140, .45);
}
.gwi *, .gwi-lb * { box-sizing: border-box; }
.gwi svg, .gwi-lb svg { width: 18px; height: 18px; flex: none; }
.gwi :is(button, a, input, textarea, select, summary):focus-visible,
.gwi-lb :is(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--accent, #c9a24a); outline-offset: 2px; }
.gwi [hidden], .gwi-lb [hidden] { display: none !important; }

/* ---------- Heading, summary and progress ---------- */
.gwi-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.gwi-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--kicker, #87672a); }
.gwi-h { margin: 4px 0 2px; font: 600 clamp(24px, 2.4vw, 30px)/1.15 "Cormorant Garamond", Georgia, serif; color: var(--ink); }
.gwi-sub { margin: 0; max-width: 62ch; font-size: 14px; color: var(--muted); }
.gwi-sum { flex: 1 1 260px; max-width: 460px; }
.gwi-sum-text { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); text-align: right; }
.gwi-sum-text b { color: var(--ink); font-weight: 600; }
.gwi-prog { display: flex; height: 8px; overflow: hidden; border-radius: 999px; background: var(--gwi-wait-bg); }
.gwi-prog i { display: block; height: 100%; }
.gwi-prog .is-approved { background: var(--gwi-ok); }
.gwi-prog .is-improve { background: var(--gwi-imp); }
.gwi-prog .is-rejected { background: var(--gwi-no); }

/* ---------- The status badges ---------- */
.gwi-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.gwi-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gwi-st--approved { color: var(--gwi-ok); background: var(--gwi-ok-bg); }
.gwi-st--improve { color: var(--gwi-imp); background: var(--gwi-imp-bg); }
.gwi-st--rejected { color: var(--gwi-no); background: var(--gwi-no-bg); }
.gwi-st--waiting { color: var(--gwi-wait); background: var(--gwi-wait-bg); }

/* ---------- Adding pictures (the team) ---------- */
.gwi-drop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 0; padding: 16px 18px;
  border: 1.5px dashed var(--edge-strong); border-radius: 16px; background: var(--gwi-tile);
}
.gwi-drop.is-over { border-color: var(--accent); background: var(--gwi-imp-bg); }
.gwi-drop-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gwi-imp-bg); color: var(--gwi-imp); }
.gwi-drop-text { flex: 1 1 220px; margin: 0; font-size: 14px; color: var(--muted); }
.gwi-drop-text b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.gwi-mailme { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.gwi-mailme input { width: 18px; height: 18px; margin: 0; accent-color: #c49a45; }
.gwi-queue { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.gwi-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 8px 12px; border-radius: 10px; background: var(--gwi-tile); font-size: 13.5px; }
.gwi-q b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink); }
.gwi-q small { color: var(--muted); white-space: nowrap; }
.gwi-q.is-bad small { color: var(--gwi-no); white-space: normal; }
.gwi-q.is-done small { color: var(--gwi-ok); }
.gwi-q-bar { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 999px; background: var(--gwi-wait-bg); }
.gwi-q-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.gwi-done { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Filters and the grid / list switch ---------- */
.gwi-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 20px 0 14px; }
.gwi-bar .chips { flex: 1 1 auto; min-width: 0; }
.gwi-views { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge-strong); }
.gwi-view {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; color: var(--ink); font-family: inherit; font-size: 13.5px; font-weight: 500; line-height: 1; cursor: pointer;
}
.gwi-view[aria-pressed="true"] { background: var(--gold-btn, linear-gradient(180deg, #f6dc94, #c49a45)); color: #2a1a06; font-weight: 600; }
.gwi-status { min-height: 1.2em; margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.gwi-status.is-bad { color: var(--gwi-no); }
.gwi-empty { margin: 6px 0 0; padding: 22px; border-radius: 16px; background: var(--gwi-tile); color: var(--muted); font-size: 14px; text-align: center; }
.gwi-empty b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }

/* ---------- The pictures ---------- */
.gwi-items { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.gwi-items--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.gwi-item {
  position: relative; min-width: 0; padding: 10px; border-radius: 16px; background: var(--gwi-tile);
  box-shadow: inset 0 0 0 1px var(--edge); container-type: inline-size;
}
.gwi-item.is-dragging { opacity: .45; }
.gwi-item.is-drop-before { box-shadow: inset 4px 0 0 var(--accent), inset 0 0 0 1px var(--edge); }
.gwi-item.is-drop-after { box-shadow: inset -4px 0 0 var(--accent), inset 0 0 0 1px var(--edge); }
.gwi-items--list .gwi-item.is-drop-before { box-shadow: inset 0 4px 0 var(--accent), inset 0 0 0 1px var(--edge); }
.gwi-items--list .gwi-item.is-drop-after { box-shadow: inset 0 -4px 0 var(--accent), inset 0 0 0 1px var(--edge); }
.gwi-item::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: transparent; }
.gwi-item.is-approved::before { background: var(--gwi-ok); }
.gwi-item.is-improve::before { background: var(--gwi-imp); }
.gwi-item.is-rejected::before { background: var(--gwi-no); }

.gwi-thumb {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden;
  border: 0; border-radius: 10px; background: var(--gwi-well); cursor: zoom-in;
}
.gwi-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gwi-thumb .gwi-n {
  position: absolute; left: 8px; top: 8px; min-width: 28px; padding: 3px 8px; border-radius: 999px;
  background: rgba(20, 16, 12, .72); color: #f7f0e0; font: 600 12px/1.4 "Jost", system-ui, sans-serif;
}
.gwi-thumb .gwi-zoom-ic { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(20, 16, 12, .6); color: #f7f0e0; opacity: 0; transition: opacity .2s; }
.gwi-thumb:hover .gwi-zoom-ic, .gwi-thumb:focus-visible .gwi-zoom-ic { opacity: 1; }
.gwi-body { min-width: 0; padding: 10px 2px 0; }
.gwi-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.gwi-meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.gwi-cap { margin: 4px 0 0; font-weight: 500; font-size: 14.5px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.gwi-cap.is-none { color: var(--muted); font-style: italic; font-weight: 400; }
.gwi-why { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--edge-strong); font-size: 13.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.gwi-why small { display: block; color: var(--muted); font-size: 12px; white-space: normal; }
.gwi-item.is-rejected .gwi-why { border-color: var(--gwi-no); }
.gwi-item.is-improve .gwi-why { border-color: var(--gwi-imp); }
.gwi-item.is-approved .gwi-why { border-color: var(--gwi-ok); }

/* Buttons on a picture */
.gwi-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gwi .gwi-acts .dash-pill { flex: 1 1 auto; min-height: 40px; padding: 0 12px; }
.gwi-ans { gap: 6px; }
.gwi-ans[aria-pressed="true"].is-approved { background: var(--gwi-ok-bg); border-color: var(--gwi-ok); color: var(--gwi-ok); font-weight: 600; }
.gwi-ans[aria-pressed="true"].is-improve { background: var(--gwi-imp-bg); border-color: var(--gwi-imp); color: var(--gwi-imp); font-weight: 600; }
.gwi-ans[aria-pressed="true"].is-rejected { background: var(--gwi-no-bg); border-color: var(--gwi-no); color: var(--gwi-no); font-weight: 600; }
.gwi-short { display: none; }
.gwi-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gwi-ib {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--edge-strong); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
}
.gwi-ib:hover { background: rgba(201, 162, 74, .16); }
.gwi-ib[disabled] { opacity: .35; cursor: default; }
.gwi-ib--danger { color: #8f1d1d; border-color: rgba(143, 29, 29, .4); }
.dash-app.dark-ui .gwi-ib--danger { color: #f0a6a0; border-color: rgba(240, 166, 160, .4); }
.gwi-tools .gwi-grow { flex: 1 1 auto; }
.gwi-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Captions and pages (the team, in the list and the large view) */
.gwi-fields { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; margin-top: 8px; }
.gwi-field { display: grid; gap: 3px; min-width: 0; }
.gwi-field span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gwi .gwi-field input, .gwi-lb .gwi-field input, .gwi-pk .gwi-field input, .gwi .gwi-form textarea, .gwi-lb .gwi-form textarea {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--edge-strong); border-radius: 10px;
  background: var(--gwi-field); color: var(--ink); font-family: inherit; font-size: 14.5px; font-weight: 400; line-height: 1.4; box-shadow: none;
}
.gwi .gwi-form textarea, .gwi-lb .gwi-form textarea { min-height: 88px; resize: vertical; }
.gwi :is(.gwi-field input, .gwi-form textarea):focus, .gwi-lb :is(.gwi-field input, .gwi-form textarea):focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 1px var(--accent); }
.gwi-saved { min-height: 1.2em; margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* The "why" box and the comment box */
.gwi-form { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--gwi-wait-bg); }
.gwi-form.is-rejected { background: var(--gwi-no-bg); }
.gwi-form.is-improve { background: var(--gwi-imp-bg); }
.gwi-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.gwi-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.gwi-form-foot small { flex: 1 1 auto; font-size: 12px; color: var(--muted); }
.gwi-err { margin: 6px 0 0; font-size: 13px; color: var(--gwi-no); }
.gwi-err:empty { display: none; }

/* The comments */
.gwi-thread { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gwi-note { padding: 8px 12px; border-radius: 12px; background: var(--gwi-tile); box-shadow: inset 0 0 0 1px var(--edge); font-size: 13.5px; }
.gwi-note.is-author { border-left: 3px solid var(--accent); }
.gwi-note-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; color: var(--muted); font-size: 12.5px; }
.gwi-note-top b { color: var(--ink); font-weight: 600; }
.gwi-note-top .gwi-st { padding: 1px 8px; font-size: 12px; }
.gwi-note p { margin: 4px 0 0; color: var(--ink); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.gwi-note.is-version { background: transparent; box-shadow: none; padding: 2px 12px; border-left: 2px dashed var(--edge-strong); border-radius: 0; }

/* Grid cards: the answer buttons when the card is wide enough; otherwise one "Answer" button opens it large */
.gwi-items--grid .gwi-ans-one { display: none; }
@container (max-width: 250px) {
  .gwi-items--grid .gwi-acts .gwi-ans { display: none; }
  .gwi-items--grid .gwi-ans-one { display: inline-flex; }
  .gwi-items--grid .gwi-tools .gwi-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .gwi-items--grid .gwi-tools .dash-pill { flex: 0 0 auto; width: 44px; padding: 0; }
}
.gwi-items--grid .gwi-fields, .gwi-items--grid .gwi-thread, .gwi-items--grid .gwi-more-c { display: none; }

/* ---------- List rows ---------- */
.gwi-items--list .gwi-item { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 4px 18px; align-items: start; padding: 12px; }
.gwi-items--list .gwi-body { padding-top: 0; }
.gwi-items--list .gwi-acts { justify-content: flex-start; }
.gwi .gwi-items--list .gwi-acts .dash-pill { flex: 0 1 auto; }
.gwi-items--list .gwi-ans-one { display: none; }

/* ---------- The large view ---------- */
dialog.gwi-lb {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: #0b0a0e; color: var(--ink);
}
dialog.gwi-lb[open] { display: grid; grid-template-columns: minmax(0, 1fr) min(400px, 38vw); }
dialog.gwi-lb::backdrop { background: rgba(6, 5, 8, .85); }
.gwi-lb-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: repeating-conic-gradient(rgba(255,255,255,.035) 0 25%, transparent 0 50%) 0 0 / 22px 22px, #0b0a0e; touch-action: none; user-select: none; -webkit-user-select: none; }
/* The picture is placed and sized by images.js (fitted to the stage at first, then zoomed and moved) */
.gwi-lb-stage img { position: absolute; left: 0; top: 0; max-width: none; max-height: none; transform: translate(-9999px, 0); cursor: zoom-in; box-shadow: 0 20px 60px -20px #000; -webkit-user-drag: none; }
.gwi-lb-stage.is-zoomed img { cursor: grab; }
.gwi-lb-stage.is-dragging img { cursor: grabbing; }
.gwi-lb-zoom {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 4px; transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(20, 18, 24, .78); color: #f7f0e0;
}
.gwi-lb-zoom button {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px;
  background: none; color: inherit; font: 500 22px/1 "Jost", system-ui, sans-serif; cursor: pointer;
}
.gwi-lb-zoom button:hover { background: rgba(201, 162, 74, .22); }
.gwi-lb-zoom button[disabled] { opacity: .35; cursor: default; background: none; }
.gwi-lb-zoom .gwi-lb-fit { font-size: 14px; letter-spacing: .04em; }
.gwi-lb-zoom .gwi-lb-fit[aria-pressed="true"] { color: var(--accent, #c9a24a); }
.gwi-lb-pct { min-width: 48px; text-align: center; font: 500 13px/1 "Jost", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.gwi-lb-nav {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(20, 18, 24, .7); color: #f7f0e0; cursor: pointer;
}
.gwi-lb-nav:hover { background: rgba(60, 50, 30, .9); }
.gwi-lb-nav[disabled] { opacity: .3; cursor: default; }
.gwi-lb-prev { left: 12px; }
.gwi-lb-next { right: 12px; }
.gwi-lb-nav svg { width: 22px; height: 22px; }
.gwi-lb-count { position: absolute; left: 14px; top: 12px; z-index: 2; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(20, 18, 24, .7); color: #f7f0e0; font-size: 13px; }
.gwi-lb-panel {
  position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  background: var(--solid, #fffdf8); border-left: 1px solid var(--edge);
}
.gwi-lb-x {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer;
}
.gwi-lb-x:hover { background: rgba(201, 162, 74, .16); }
.gwi-lb-panel .gwi-kicker { padding-right: 44px; }
.gwi-lb-h { margin: 4px 44px 6px 0; font: 600 26px/1.15 "Cormorant Garamond", Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.gwi-lb-facts { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.gwi-vers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.gwi-ver { min-width: 44px; min-height: 32px; padding: 0 10px; border: 1px solid var(--edge-strong); border-radius: 999px; background: none; color: var(--ink); font-family: inherit; font-size: 12.5px; font-weight: 500; line-height: 1; cursor: pointer; }
.gwi-ver[aria-pressed="true"] { background: var(--gold-btn, linear-gradient(180deg, #f6dc94, #c49a45)); border-color: transparent; color: #2a1a06; font-weight: 600; }
.gwi-old { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--gwi-imp-bg); color: var(--gwi-imp); font-size: 13px; }
.gwi-lb-panel h4 { margin: 18px 0 2px; font: 600 12px/1.3 "Jost", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker, #87672a); }
.gwi-lb .gwi-acts .dash-pill { flex: 1 1 auto; }

/* ---------- The studio's Images dialog (the team) ---------- */
dialog.gwi-dlg {
  width: min(1120px, calc(100vw - 32px)); max-width: none; height: min(92dvh, 1100px); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 24px;
  background: var(--solid, #fffdf8); color: var(--ink); box-shadow: 0 40px 90px -30px #000; overflow: hidden;
}
dialog.gwi-dlg[open] { display: flex; flex-direction: column; }
dialog.gwi-dlg::backdrop { background: rgba(6, 5, 8, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gwi-dlg-head { position: relative; padding: 22px 64px 14px 26px; border-bottom: 1px solid var(--edge); }
.gwi-dlg-h { margin: 4px 0 0; font: 600 clamp(22px, 3vw, 30px)/1.15 "Cormorant Garamond", Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.gwi-dlg-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px 26px 26px; }

/* ---------- The pictures by book: folders with a photo stack (the studio) ---------- */
.gwi-folders { margin: 4px 0 30px; }
.gwi-fold-head .dash-h { margin: 0 0 4px; }
.gwi-fold-head .gwi-sub { margin: 0 0 16px; }
.gwi-fold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.gwi-fold-grid > li { display: flex; min-width: 0; }
.gwi-fold {
  display: flex; flex-direction: column; width: 100%; padding: 14px 12px 14px; border: 0; border-radius: 20px;
  background: var(--glass, var(--card)); box-shadow: inset 0 0 0 1px var(--glass-line, var(--edge)), var(--glass-shadow, none);
  color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.gwi-fold:hover { box-shadow: inset 0 0 0 1px var(--edge-strong), var(--glass-shadow, none); }
.gwi-fold:focus-visible { outline: 2px solid var(--accent, #c9a24a); outline-offset: 3px; }
/* The folder: its back with a tab, the photos standing in it, and the front pocket with how many there are */
.gwi-fold-art { position: relative; display: block; aspect-ratio: 5 / 4; margin: 8px 8px 14px; }
.gwi-fold-back { position: absolute; inset: 12% 0 0; border-radius: 3px 12px 12px 12px; background: linear-gradient(180deg, var(--fold-1), var(--fold-2)); box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .6); }
.gwi-fold-back::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 40%; height: 14%; border-radius: 10px 10px 0 0; background: var(--fold-1); }
.gwi-stack { position: absolute; left: 13%; right: 13%; top: 2%; bottom: 26%; }
.gwi-ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 4px solid #fffdf8; border-radius: 3px;
  background: #fffdf8; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .55);
}
.gwi-ph--1 { z-index: 3; transform: rotate(-2deg); }
.gwi-ph--2 { z-index: 2; transform: translate(-10%, 4%) rotate(-9deg); }
.gwi-ph--3 { z-index: 1; transform: translate(10%, 5%) rotate(8deg); }
.gwi-fold-front {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 50%; border-radius: 5px 5px 12px 12px;
  background: linear-gradient(180deg, var(--fold-3), var(--fold-4)); box-shadow: inset 0 1px 0 var(--fold-edge), 0 -8px 16px -10px rgba(0, 0, 0, .45);
}
.gwi-fold-front b {
  position: absolute; right: 10px; bottom: 9px; min-width: 30px; padding: 3px 9px; border-radius: 999px; background: var(--fold-badge);
  color: var(--fold-ink); font: 600 13px/1.3 "Jost", system-ui, sans-serif; text-align: center;
}
.gwi-fold-art.is-empty .gwi-fold-front b { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); min-width: 0; padding: 0 12px; font-size: 24px; line-height: 1.3; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.calm) .gwi-ph { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  html:not(.calm) .gwi-fold:is(:hover, :focus-visible) .gwi-ph--1 { transform: translateY(-12%) rotate(-1deg); }
  html:not(.calm) .gwi-fold:is(:hover, :focus-visible) .gwi-ph--2 { transform: translate(-20%, -3%) rotate(-13deg); }
  html:not(.calm) .gwi-fold:is(:hover, :focus-visible) .gwi-ph--3 { transform: translate(20%, -1%) rotate(12deg); }
}
.gwi-fold-body { display: grid; gap: 5px; min-width: 0; padding: 0 4px; }
.gwi-fold-t { font: 600 19px/1.2 "Cormorant Garamond", Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.gwi-fold-m { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.gwi-fold-bar { display: flex; height: 6px; margin-top: 2px; overflow: hidden; border-radius: 999px; background: var(--gwi-wait-bg); }
.gwi-fold-bar i { display: block; height: 100%; }
.gwi-fold-bar .is-approved { background: var(--gwi-ok); }
.gwi-fold-bar .is-improve { background: var(--gwi-imp); }
.gwi-fold-bar .is-rejected { background: var(--gwi-no); }
.gwi-fold-chips { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; line-height: 1.5; }
.gwi-fold-chips i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-weight: 600; }
.gwi-fold-chips i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gwi-fold-chips .is-approved { color: var(--gwi-ok); }
.gwi-fold-chips .is-improve { color: var(--gwi-imp); }
.gwi-fold-chips .is-rejected { color: var(--gwi-no); }
.gwi-fold-chips .is-waiting { color: var(--gwi-wait); }
.gwi-fold-new { flex-direction: column; padding: 14px 12px; border: 1.5px dashed var(--edge-strong); border-radius: 20px; }
.gwi-fold-new .gwi-fold-art { opacity: .7; }
.gwi-fold-new .gwi-fold-body { gap: 8px; }
.gwi-fold-new select {
  width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--edge-strong); border-radius: 10px;
  background: var(--gwi-field); color: var(--ink); font-family: inherit; font-size: 14px;
}
.gwi-fold-new select option { color: #1d160e; background: #fffdf8; }
.gwi-dlg-back { display: inline-flex; margin: -6px 0 6px -2px; white-space: nowrap; }
.gwi-dlg-report { margin-top: 4px; }
.gwi-fold-lead { margin: 0 0 14px; }

/* ---------- An author's control panel (people.js): their answers and comments on pictures ---------- */
.gwi-rep { margin-top: 22px; }
.gwi-rep-h small { margin-left: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.gwi-rep .chips { margin: 8px 0 12px; }
.gwi-rep-book { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--gwi-tile); box-shadow: inset 0 0 0 1px var(--edge); }
.gwi-rep-bh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--edge-strong); }
.gwi-rep-bh b { font: 600 18px/1.25 "Cormorant Garamond", Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.gwi-rep-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gwi-rep-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--edge); }
.gwi-rep-item:last-child { border-bottom: 0; }
.gwi-rep-pic { display: block; width: 64px; height: 52px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: var(--gwi-well); cursor: zoom-in; }
.gwi-rep-pic img { width: 100%; height: 100%; object-fit: cover; }
.gwi-rep-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 14px; color: var(--ink); }
.gwi-rep-top b { font-weight: 600; overflow-wrap: anywhere; }
.gwi-rep-body { margin: 4px 0 2px; font-size: 14px; line-height: 1.45; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.gwi-rep-text small { font-size: 12.5px; color: var(--muted); }

/* ---------- The control panel's book groups (people.js): published, sent for proofreading, approved, with the team ---------- */
.pc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 4px 0 16px; }
.pc-group { min-width: 0; padding: 12px 14px; border-radius: 16px; background: var(--gwi-tile); box-shadow: inset 0 0 0 1px var(--edge); border-top: 3px solid var(--gwi-wait); }
.pc-group.is-published { border-top-color: var(--gwi-ok); }
.pc-group.is-proof { border-top-color: var(--gwi-imp); }
.pc-group.is-approved { border-top-color: var(--accent); }
.pc-group-h { display: flex; align-items: baseline; gap: 8px; margin: 0; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.pc-group-h b { font: 600 26px/1 "Cormorant Garamond", Georgia, serif; }
.pc-group > small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.pc-group ul { display: grid; gap: 2px; margin: 8px 0 0; padding: 0; list-style: none; }
.pc-group li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.pc-group li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font-size: 14px; text-decoration: underline; text-decoration-color: var(--edge-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.pc-group li a:hover { text-decoration-color: var(--accent); }
.pc-group li small { font-size: 12px; color: var(--muted); }
.pc-group-none { margin: 8px 0 0; font-size: 13px; color: var(--muted); }


/* ---------- Phones and tablets ---------- */
@media (max-width: 860px) {
  .gwi-sum { max-width: none; }
  .gwi-sum-text { text-align: left; }
  .gwi .gwi-acts .dash-pill, .gwi-lb .gwi-acts .dash-pill { min-height: 44px; }
  .gwi-ib { width: 44px; height: 44px; }
  .gwi-view { min-height: 44px; }
  .gwi-views { padding: 0; }
  .gwi-link { min-height: 44px; }
  .gwi .gwi-field input, .gwi-lb .gwi-field input { min-height: 48px; font-size: 16px; }
  .gwi .gwi-form textarea, .gwi-lb .gwi-form textarea { font-size: 16px; }
  .gwi-mailme { min-height: 48px; }
  .gwi-ver { min-height: 44px; }

  dialog.gwi-lb[open] { grid-template-columns: 1fr; grid-template-rows: minmax(220px, 52dvh) minmax(0, 1fr); }
  .gwi-lb-nav { top: auto; bottom: 10px; margin-top: 0; }
  .gwi-lb-zoom { bottom: 8px; }
  .gwi-lb-zoom button { min-width: 44px; height: 44px; }
  .gwi-lb-pct { min-width: 42px; }
  .gwi-lb-panel { border-left: 0; border-top: 1px solid var(--edge); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .gwi-lb-h { font-size: 22px; }

  dialog.gwi-dlg { width: 100vw; height: 100dvh; border-radius: 0; }
  .gwi-fold-new select { min-height: 48px; font-size: 16px; }
  .pc-group li a { min-height: 44px; }
  .gwi-rep-pic { width: 64px; height: 52px; }
  .gwi-dlg-report { display: inline-flex; align-items: center; min-height: 44px; }
  .gwi-rep-bh .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .gwi-dlg-head { padding: 16px 56px 12px 16px; }
  .gwi-dlg-body { padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .gwi-head { align-items: flex-start; }
  .gwi-h { font-size: 22px; }
  .gwi-bar { margin-top: 16px; }
  .gwi-bar .chips { flex-basis: 100%; }
  .gwi-items--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gwi-items--grid .gwi-item { padding: 8px; }
  /* A list row: the picture and its first lines side by side, then everything else across the whole row */
  .gwi-items--list .gwi-item { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 12px; padding: 10px; }
  .gwi-items--list .gwi-body { display: contents; }
  .gwi-items--list .gwi-thumb { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .gwi-items--list .gwi-top { grid-column: 2; grid-row: 1; }
  .gwi-items--list .gwi-cap { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
  .gwi-items--list .gwi-body > :not(.gwi-top):not(.gwi-cap) { grid-column: 1 / -1; }
  .gwi-items--list .gwi-acts, .gwi-items--list .gwi-tools, .gwi-items--list .gwi-why, .gwi-items--list .gwi-form { margin-top: 4px; }
  .gwi .gwi-items--list .gwi-acts .gwi-ans { flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .gwi-items--list .gwi-long, .gwi-lb .gwi-long { display: none; }
  .gwi-items--list .gwi-short, .gwi-lb .gwi-short { display: inline; }
  .gwi-fields { grid-template-columns: minmax(0, 1fr) 96px; }
  .gwi-drop { padding: 14px; }
  .gwi-drop .dash-pill { flex: 1 1 100%; }
  .gwi-fold-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gwi-fold { padding: 10px 8px 12px; border-radius: 16px; }
  .gwi-fold-art { margin: 6px 4px 10px; }
  .gwi-fold-t { font-size: 17px; }
  .gwi-fold-new { grid-column: 1 / -1; }
  .gwi-fold-new .gwi-fold-art { width: 120px; margin: 4px auto 8px; }
}

/* ---------- More for a picture: the ⋯ menu, a selection, the chooser, short messages ---------- */
.gwi-top .gwi-meta { flex: 1 1 auto; min-width: 0; }
.gwi-top .gwi-more { width: 32px; height: 32px; border-color: transparent; }
.gwi-top .gwi-more:hover, .gwi-top .gwi-more[aria-expanded="true"] { border-color: var(--edge-strong); }
.gwi-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gwi-tick { position: absolute; z-index: 2; right: 18px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(20, 16, 12, .62); cursor: pointer; }
.gwi-tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent, #c9a24a); cursor: pointer; }
.gwi-item.is-picked { box-shadow: inset 0 0 0 2px var(--accent, #c9a24a); }
.gwi-selbar {
  position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 12px; padding: 10px 12px;
  border-radius: 14px; background: var(--solid, #fffdf8); box-shadow: inset 0 0 0 1px var(--edge-strong), 0 10px 24px -16px rgba(0, 0, 0, .6);
}
.gwi-selbar-n { margin: 0; font-size: 14px; }
.gwi-selbar-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.gwi-selbar .dash-pill, .gwi-lb-acts .dash-pill { display: inline-flex; align-items: center; gap: 6px; }
.gwi-selbar .dash-pill[disabled] { opacity: .45; cursor: default; }
.gwi-danger { color: #8f1d1d; }
.dash-app.dark-ui .gwi-danger { color: #f0a6a0; }
.gwi-lb-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.gwi-menu {
  position: fixed; z-index: 50; min-width: 230px; max-width: calc(100vw - 16px); padding: 6px; border-radius: 14px;
  background: var(--solid, #fffdf8); color: var(--ink, #2b2116); box-shadow: 0 0 0 1px var(--edge-strong, rgba(0, 0, 0, .2)), 0 18px 40px -12px rgba(0, 0, 0, .5);
}
.gwi-menu-i {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px;
  background: none; color: inherit; font: 500 14px/1.2 "Jost", system-ui, sans-serif; text-align: left; cursor: pointer;
}
.gwi-menu-i:hover, .gwi-menu-i:focus-visible { background: rgba(201, 162, 74, .2); outline: none; }
.gwi-menu-i.is-danger { color: #8f1d1d; }
.dash-app.dark-ui .gwi-menu-i.is-danger { color: #f0a6a0; }
.gwi-menu svg { width: 18px; height: 18px; flex: none; }
dialog.gwi-pk {
  width: min(460px, calc(100vw - 24px)); max-height: min(640px, calc(100dvh - 24px)); padding: 0; border: 0; border-radius: 18px;
  background: var(--solid, #fffdf8); color: var(--ink, #2b2116); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}
dialog.gwi-pk::backdrop { background: rgba(6, 5, 8, .6); }
.gwi-pk-in { display: flex; flex-direction: column; gap: 12px; max-height: inherit; padding: 20px; }
.gwi-pk-h { margin: 0; font: 600 24px/1.15 "Cormorant Garamond", Georgia, serif; color: var(--ink, #2b2116); }
.gwi-pk-p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.gwi-pk-list { flex: 1 1 auto; min-height: 120px; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; list-style: none; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--edge); }
.gwi-pk-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; border: 0;
  border-bottom: 1px solid var(--edge); background: none; color: inherit; font: 15px/1.3 "Jost", system-ui, sans-serif; text-align: left; cursor: pointer;
}
.gwi-pk-item:hover, .gwi-pk-item:focus-visible { background: rgba(201, 162, 74, .16); outline: none; }
.gwi-pk-item b { font-weight: 500; overflow-wrap: anywhere; }
.gwi-pk-item small { flex: none; font-size: 12px; color: var(--muted); }
.gwi-pk-none { padding: 14px; font-size: 14px; color: var(--muted); }
.gwi-pk-none.is-bad { color: var(--gwi-no); }
.gwi-pk-foot { display: flex; justify-content: flex-end; gap: 8px; }
.gwi-pk .gwi-err { margin: 0; min-height: 1em; font-size: 13px; color: var(--gwi-no); }
.gwi-pk :is(button, input):focus-visible { outline: 2px solid var(--accent, #c9a24a); outline-offset: 2px; }
.gwi-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; max-width: min(520px, calc(100vw - 32px)); margin: 0; padding: 12px 18px;
  border-radius: 14px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: #1d1a22; color: #f7f0e0; font-size: 14px; line-height: 1.4;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); transition: opacity .2s, transform .2s;
}
.gwi-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.gwi-toast.is-bad { background: #5a1c1c; }
@media (max-width: 860px) {
  .gwi-top .gwi-more, .gwi-tick { width: 44px; height: 44px; }
  .gwi-menu-i { min-height: 44px; }
  .gwi-selbar-acts { width: 100%; margin-left: 0; }
  .gwi-selbar .dash-pill, .gwi-lb-acts .dash-pill { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .gwi-pk .gwi-field input { min-height: 48px; font-size: 16px; }
  .gwi-pk-foot .dash-pill { min-height: 44px; }
  .gwi-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Pictures into a chat: tick several (Send into a chat), and the chat's 📎 → Photos ---------- */
dialog.gwi-ps { width: min(780px, calc(100vw - 24px)); height: min(820px, calc(100dvh - 24px)); max-height: none; }
.gwi-ps *, .gwi-ps *::before { box-sizing: border-box; }
.gwi-ps svg { width: 18px; height: 18px; flex: none; }
.gwi-ps-in { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px 20px 18px; }
.gwi-ps-head { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.gwi-ps-head .gwi-pk-h { flex: 1 1 auto; min-width: 0; }
.gwi-ps-back { margin-right: 6px; text-decoration: none; }
.gwi-ps-back:not([hidden]) + .gwi-pk-h { font-size: 20px; }
.gwi-ps-x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.gwi-ps-x:hover { background: rgba(201, 162, 74, .16); }
.gwi-ps-top:empty { display: none; }
.gwi-ps-lead { margin: 0; font-size: 14px; color: var(--muted); }
.gwi-ps-lead:empty { display: none; }
.gwi-ps-lead b { color: var(--ink); font-weight: 600; }
.gwi-ps-lead .gwi-link { margin-left: 8px; min-height: 28px; }
.gwi-ps-body { flex: 1 1 auto; min-height: 0; margin: 0 -6px; padding: 4px 6px; overflow: auto; overscroll-behavior: contain; }
.gwi-ps .gwi-err:empty { display: none; }
.gwi-ps-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.gwi-ps-foot:empty { display: none; }
.gwi-ps-foot .dash-pill[disabled] { opacity: .45; cursor: default; }
.gwi-ps-n { margin-right: auto; font-size: 14px; font-weight: 600; color: var(--ink); }
/* From your computer or a drive */
.gwi-ps-device {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1.5px dashed var(--edge-strong); border-radius: 14px;
  background: var(--gwi-tile); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.gwi-ps-device:hover { border-color: var(--accent); background: var(--gwi-imp-bg); }
.gwi-ps-device-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gwi-imp-bg); color: var(--gwi-imp); }
.gwi-ps-device-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gwi-ps-device-t b { font-size: 15px; font-weight: 600; }
.gwi-ps-device-t small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
/* The books, as small folders */
.gwi-ps-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gwi-ps-book {
  display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 8px 8px 10px; border: 0; border-radius: 14px;
  background: var(--gwi-tile); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.gwi-ps-book:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.gwi-ps-cover { display: grid; gap: 3px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--gwi-well); }
.gwi-ps-cover img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.gwi-ps-cover--2 { grid-template-columns: 1fr 1fr; }
.gwi-ps-cover--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gwi-ps-cover--3 img:first-child { grid-row: 1 / 3; }
.gwi-ps-book-t { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gwi-ps-book small { font-size: 12.5px; color: var(--muted); }
.gwi-ps-k { color: var(--gwi-imp); font-weight: 600; }
/* The pictures, with a round tick like a phone's Photos */
.gwi-ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px 10px; margin: 0; padding: 0; list-style: none; }
.gwi-ps-li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gwi-ps-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 10px;
  background: var(--gwi-well); cursor: pointer;
}
.gwi-ps-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .15s, border-radius .15s; }
.gwi-ps-tile.is-on { box-shadow: 0 0 0 3px var(--accent, #c9a24a); }
.gwi-ps-tile.is-on img { transform: scale(.9); border-radius: 8px; }
.gwi-ps-tile:focus-visible { outline: 2px solid var(--accent, #c9a24a); outline-offset: 3px; }
.gwi-ps-num { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(20, 16, 12, .62); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.4; }
.gwi-ps-tick {
  position: absolute; right: 7px; bottom: 7px; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%;
  background: rgba(20, 16, 12, .28); color: transparent; box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
}
.gwi-ps-tick svg { width: 16px; height: 16px; }
.gwi-ps-tile.is-on .gwi-ps-tick { background: var(--gold-btn, linear-gradient(180deg, #f6dc94, #c49a45)); color: #2a1a06; }
.gwi-ps-cap { overflow: hidden; font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
/* Choose who */
.gwi-ps-who { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.gwi-ps-people { min-height: 160px; }
.gwi-ps-people .gwi-pk-item[aria-pressed="true"] { background: var(--gwi-imp-bg); box-shadow: inset 4px 0 0 var(--accent, #c9a24a); }
.gwi-ps-people .gwi-pk-item[aria-pressed="true"] b { font-weight: 600; }
.gwi-ps .gwi-q { margin-top: 6px; }
@media (max-width: 640px) {
  dialog.gwi-ps { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .gwi-ps-in { gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom)); }
  .gwi-ps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; }
  .gwi-ps-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gwi-ps-device { min-height: 52px; padding: 8px 12px; }
  .gwi-ps-device-t small { font-size: 12px; }
  .gwi-ps-foot .dash-pill { min-height: 44px; }
  .gwi-ps .gwi-field input { min-height: 48px; font-size: 16px; }
}

/* ---------- No motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gwi *, .gwi-lb *, .gwi-ps * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .gwi-toast { transition: none; }
}
html.calm .gwi *, html.calm .gwi-lb *, html.calm .gwi-ps * { transition: none !important; animation: none !important; }
html.calm .gwi-toast { transition: none; }
