/* ========== 21b. A board's cover: a picture on its icon's tile, cropped (app/js/cover.js) ========== */
/* On the tile: the picture fills it, cut to its rounded square; the glyph and the dots go. A card shows what it holds,
   not its cover. */
.obj.board > .binner > .bcov { position: absolute; max-width: none; pointer-events: none; user-select: none; -webkit-user-select: none; }
.obj.board:not([data-view="icon"]) > .binner > .bcov { display: none; }
.obj.board[data-view="icon"]:has(> .binner > .bcov) > .binner { overflow: hidden; background-image: none; }
.obj.board[data-view="icon"]:has(> .binner > .bcov) > .binner::after { display: none; }
.obj.board[data-view="icon"]:has(> .binner > .bcov) > .binner::before {     /* a hairline edge, so a pale picture keeps its shape */
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); pointer-events: none;
}
/* In the side view (section 19c) the cover is in a frame of its own, cut to the tile's face as the face changes: as the
   tile opens into a layer showing its canvas, the cover goes as its glyph would (--gk: its picture's glyph part, zpCard),
   and the layer is as any other. */
#cards > * > .obj.c3 > .binner > .bcvw { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; opacity: var(--gk); pointer-events: none; }
#cards > * > .obj.c3 > .binner > .bcvw > .bcov { position: absolute; max-width: none; }
#cards > * > .obj.c3 > .binner > .bcvw::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
#cards > * > .obj.c3:has(> .binner > .bcvw) > .binner::after { display: none; }

/* The card: with no cover, one big press to upload (the tile's own shape, a plus); with one, the crop. */
.cv-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 14px 10px 13px; box-sizing: border-box;
  border: 1px dashed var(--rule-2); border-radius: 6px; background: transparent; color: var(--ink); font: 500 13px/18px var(--f-ui); cursor: pointer;
}
.cv-drop svg { width: 52px; height: 52px; margin-bottom: 6px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cv-drop small { font: 400 11.5px/15px var(--f-ui); color: var(--ink-3); text-align: center; }
@media (hover: hover) { .cv-drop:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); border-color: var(--ink-3); } }
.cv-drop:has(> .pick-in:focus-visible) { outline: 2px solid var(--ink); outline-offset: 1px; }   /* its file input's (covIn) */
/* The crop: the whole picture, dimmed, and over it the tile's square (its corners the tile's, 15 of 88) showing the
   part the tile will. A drag moves the picture; it is the size COV.ED_W × COV.ED_H says. */
.cv-ed {
  position: relative; width: 220px; height: 184px; margin: 0 auto; overflow: hidden; border-radius: 6px; touch-action: none; cursor: grab;
  background: color-mix(in srgb, var(--ink) 8%, var(--surface));
}
.cv-ed.moving { cursor: grabbing; }
.cv-ed img { position: absolute; max-width: none; pointer-events: none; user-select: none; -webkit-user-select: none; }
.cv-all { opacity: .32; }
.cv-fr {
  position: absolute; left: calc(50% - var(--fr) / 2); top: calc(50% - var(--fr) / 2); width: var(--fr); height: var(--fr); overflow: hidden;
  border-radius: calc(var(--fr) * 15 / 88); box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px color-mix(in srgb, var(--ink) 30%, transparent), var(--raise-sm);
}
.cv-z { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; }
.cv-z svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.cv-zi { flex: 1; min-width: 0; margin: 0; accent-color: var(--ink); }
.cv-z + .ip-row { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
