/* Návrh 22 · Karta postavy a miesta v jazyku záberu (Peter 19. 10.: „či je v súlade aj tvorba karty“), ported from
   docs/navrh-portalu-2026-10/navrh-22/navrh22.css. Only what is new against navrh21.css: the card's panel uses the
   frame panel's parts (.h21 head, .b21 body, .pic21/.big21 picture, .sec21/.lb21 sections, .pr10/.pe10 rows, .md21
   Model dostane, .f21 footer); the pictures stay the portal's grid (.cgrid/.cslot, navrh06.css). */

/* the page: the panel is the right column at full height, as the frame's panel of návrh 21 (body.split21) */
@media (min-width: 761px) {
  body:has(aside.p22) main.page { padding-right: calc(var(--pw21) + 20px); }
}
.split2:has(> aside.p22) { display: block; }
.cards-head .cmrow { display: flex; align-items: center; gap: 10px; }
.cards-head .btn.small.up22 { height: 30px; min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.cards-head .cards-bulk { display: inline-flex; }
.p22 .h21 { padding: 14px 14px 10px 18px; }
.p22 .b21 { flex: 1; min-height: 0; overflow: auto; }
.p22 input.nm22 { width: calc(100% + 6px); margin: 3px 0 0 -6px; padding: 2px 6px; height: auto; min-height: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; box-shadow: none; color: var(--text); font: 700 18px/1.3 Inter, system-ui, sans-serif; }
.p22 input.nm22:hover { border-color: var(--line); } .p22 input.nm22:focus { outline: none; border-color: var(--accent-line); background: var(--field); }
.p22 input.nm22::placeholder { color: var(--muted); font-weight: 600; }

/* the main picture: the card's face, big, in colour (a card is the look, not a plan on paper) */
.p22 .big21 { aspect-ratio: auto; height: clamp(190px, 38vh, 360px); background: var(--well, #0E1113); border: 1px solid var(--line); border-radius: 8px; }
.p22 .big21 img { object-fit: contain; filter: none; mix-blend-mode: normal; }
.p22.k-location .big21, .p22.k-style .big21 { height: auto; aspect-ratio: 16 / 9; }
.p22.k-location .big21 img { object-fit: cover; }
.p22 .big21.e21 { border: 1.5px dashed var(--line2); background: transparent; color: var(--muted); cursor: default; align-content: center; gap: 10px; padding: 16px; text-align: center; }
.p22 .big21.e21 .btn { justify-self: center; }
.p22 .big21.e21 small { font-size: 12px; color: var(--muted); max-width: 26ch; justify-self: center; }
.p22 .big21.mk21 { background: repeating-linear-gradient(135deg, #14171A 0 8px, #191D20 8px 16px); border-style: solid; color: var(--text2); }
.p22 .src21 .tag22 { color: var(--text2); }
.up22 { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.up22 .price { font-weight: 600; color: var(--muted); font-size: 12px; }

/* the one question at the photo of a person (návrh 22 § 7) */
.ask22 { margin-top: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--accent-line); background: rgba(232, 176, 75, .06); display: grid; gap: 8px; }
.ask22 .q22 { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.ask22 .seg { width: 100%; }

/* a version a shot uses: an edit becomes the next version (one quiet line, the reason behind (i)) */
.ver22 { margin: 6px 0 0; font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.p22 .pe10 textarea.field { width: 100%; font-size: 14px; line-height: 1.45; resize: vertical; }
.hist22 { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--text2); }
.hist22 b { color: var(--text); font-weight: 600; }

/* footer: the action, the model under it in one small line (návrh 21 follow-up: "Qwen · SAV") */
.p22 .f21 { flex-wrap: wrap; position: relative; }
.p22 .f21 .f22 { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.p22 .f21 .why21 { font-size: 12px; color: var(--muted); }
.p22 .f21 .done22 { font-size: 13px; color: var(--text2); display: inline-flex; align-items: center; gap: 6px; }
.p22 .f21 .done22 i { color: var(--ok, #6BC28C); font-style: normal; }
.p22 .f21 .sv21 { font-size: 12px; color: var(--muted); }
/* the menus above the footer are never cut by the panel (Peter 19. 10.): the panel lets them out, they fit the window */
.drawer.d21.p22 { overflow: visible; }
.p22 .f21m > .pop { top: auto; bottom: calc(100% + 6px); height: auto; max-height: calc(100vh - 120px); overflow: auto; }

/* on a phone the card's panel is under its pictures' head, not over the page */
@media (max-width: 760px) {
  .drawer.d21.p22 { position: static; overflow: visible; width: auto; height: auto; max-height: none; margin: 0 -16px 18px; border-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: none; transform: none; }
  .p22 .b21 { overflow: visible; }
  .p22 .f21 { position: sticky; bottom: 0; background: var(--panel); z-index: 5; }
}
/* the main picture big: the card's look in colour, unlike a storyboard frame */
.p22 .lb21x img { filter: none; background: none; border: 1px solid var(--line); }
/* a phone: the panel first (name, picture, description), the views under it */
@media (max-width: 760px) {
  .split2:has(> aside.p22) { display: flex; flex-direction: column; }
  .split2 > aside.p22 { order: -1; }
  .split2:has(> aside.p22) > section { min-width: 0; width: 100%; }
  .split2:has(> aside.p22) .cards-head { flex-wrap: wrap; gap: 8px; }
  .split2:has(> aside.p22) .cards-head .cmrow { flex-wrap: wrap; }
}
.p22 .h21 .eyebrow { flex-wrap: wrap; row-gap: 2px; }
