/* B8 (5. 11. 2026): Prodejní kartička ptáka v rozložení Koček – převzato z okna-styl.css Koček (jen čtení), ID přejmenována, barvy ptačí modrá. */
/* ── Prodejní kartička koťátka / Sdílet (#bird-card-options-overlay): dva sloupce, podklady a dlaždice (25. 10. 2026) ── */
#bird-card-options-overlay { --xl:#2a5a7a; --xs:#cfe2ee; --xi:#163448; --xm:#3f596a; --g-bg:#e3eef6; --g-fg:#0b3a5a; --y-bg:#fff6d9; --y-fg:#7a5a00; --b-bg:#e6f0fd; --b-fg:#1a5299; --l-bg:#e9f6ff; --l-fg:#1f567a; }
html.dark #bird-card-options-overlay { --xl:#7fabc8; --xs:#314d60; --xi:#e4f4ff; --xm:#9bbed6; --g-bg:#162a38; --g-fg:#9ccae8; --y-bg:#3b3210; --y-fg:#f0d36a; --b-bg:#14283f; --b-fg:#a3cbf8; --l-bg:#1f394a; --l-fg:#b8e3ff; }
html body #bird-card-options-overlay .kc-win { width:96% !important; max-width:1100px !important; max-height:94vh !important; max-height:min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px)) !important; padding:0 !important; display:flex !important; flex-direction:column; overflow:hidden !important; border:1px solid var(--xl) !important; border-radius:6px !important; background:var(--surface) !important; box-shadow:none !important; color:var(--xi); }
#bird-card-options-overlay .kc-hd { position:relative; flex:0 0 auto; text-align:center; padding:16px 64px 14px; border-bottom:1px solid var(--xs); min-height:72px; box-sizing:border-box; display:flex; align-items:center; justify-content:center; }
#bird-card-options-overlay .kc-hd h2 { margin:0; font-size:22px; font-weight:800; line-height:1.2; color:var(--xi); }
#bird-card-options-overlay .kc-x { position:absolute; right:14px; top:14px; width:44px; height:44px; padding:0; display:flex; align-items:center; justify-content:center; border:1px solid var(--xs); border-radius:6px; background:var(--surface); color:var(--xm); font-size:15px; cursor:pointer; }
#bird-card-options-overlay .kc-bd { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); overflow:hidden; background:var(--l-bg); }
#bird-card-options-overlay .kc-col { padding:6px; overflow-y:auto; display:flex; flex-direction:column; gap:12px; min-width:0; }
#bird-card-options-overlay .kc-col + .kc-col { border-left:1px solid var(--xs); }
#bird-card-options-overlay .kc-panel { padding:14px; border:1px solid var(--l-fg); border-radius:6px; background:var(--surface); }
#bird-card-options-overlay .kc-panel.g { border-color:var(--g-fg); background:var(--g-bg); }
#bird-card-options-overlay .kc-panel.y { border-color:var(--y-fg); background:var(--y-bg); }
#bird-card-options-overlay .kc-cap { margin:0 0 10px; text-align:center; font-size:16px; font-weight:800; color:var(--xi); }
#bird-card-options-overlay .kc-sub { margin:0 0 6px; text-align:center; font-size:12px; font-weight:700; color:var(--xi); }
#bird-card-options-overlay .kc-panel .kc-sub:not(:first-child) { margin-top:12px; }
#bird-card-options-overlay .kc-photos { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:0 0 12px; }
#bird-card-options-overlay .kc-ph { position:relative; width:72px; height:72px; border:3px solid transparent; border-radius:6px; overflow:hidden; cursor:pointer; flex:0 0 auto; box-shadow:0 0 0 1px var(--xl); }
#bird-card-options-overlay .kc-ph img { width:100%; height:100%; object-fit:cover; display:block; }
#bird-card-options-overlay .kc-ph-no { position:absolute; top:2px; right:2px; width:20px; height:20px; display:flex; align-items:center; justify-content:center; border-radius:6px; color:#fff; font-size:12px; font-weight:700; }
#bird-card-options-overlay #bc-photo-adjust { color:var(--xi); }
#bird-card-options-overlay #bc-photo-adjust > div:first-child { text-align:center; }
#bird-card-options-overlay #bc-photo-adjust > div + div { justify-content:center; }
#bird-card-options-overlay .kc-colors { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:0 0 4px; }
#bird-card-options-overlay .kc-sw { width:44px; height:44px; border:2px solid var(--xs); border-radius:6px; cursor:pointer; flex:0 0 auto; }
#bird-card-options-overlay .kc-sw-on { border:3px solid var(--xi); box-shadow:0 0 0 2px var(--surface) inset; }
#bird-card-options-overlay .kc-templates { display:flex; gap:8px; }
html body #bird-card-options-overlay .kc-tp { flex:1; min-height:48px; min-width:0; padding:4px 6px; border:1px solid var(--l-fg) !important; border-radius:6px !important; background:var(--surface); color:var(--l-fg); font-size:14px !important; font-weight:700 !important; box-shadow:none !important; overflow-wrap:anywhere; line-height:1.15; }
#bird-card-options-overlay .kc-togs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 10px; }
#bird-card-options-overlay .kc-tog { position:relative; display:flex; align-items:center; justify-content:center; min-height:56px; padding:4px 8px; border:1px solid var(--l-fg); border-radius:6px; background:var(--l-bg); color:var(--l-fg); text-align:center; cursor:pointer; margin:0; }
#bird-card-options-overlay .kc-tog input { position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
#bird-card-options-overlay .kc-tog b { font-size:14px; line-height:1.2; overflow-wrap:anywhere; }
#bird-card-options-overlay .kc-tog:has(input:checked) { background:color-mix(in srgb,currentColor 24%,var(--surface)); }
#bird-card-options-overlay .kc-tog:has(input:checked) b { font-weight:800; }
#bird-card-options-overlay .kc-win textarea, #bird-card-options-overlay .kc-win input[type=text] { display:block; width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid var(--xl); border-radius:6px; background:var(--surface); color:var(--xi); font-family:inherit; font-size:15px; line-height:1.4; }
#bird-card-options-overlay .kc-win textarea { min-height:70px; resize:vertical; }
#bird-card-options-overlay #bc-banner-text { margin:0 0 4px; }
#bird-card-options-overlay .kc-ft { flex:0 0 auto; display:flex; justify-content:center; gap:8px; padding:12px 16px; border-top:1px solid var(--xs); background:var(--surface); }
html body #bird-card-options-overlay .kc-ft .btn { min-height:48px; min-width:160px; padding:4px 16px; border:1px solid !important; border-radius:6px !important; font-weight:700 !important; box-shadow:none !important; }
html body #bird-card-options-overlay .kc-ft .kc-cancel { background:var(--b-bg) !important; color:var(--b-fg) !important; border-color:var(--b-fg) !important; }
html body #bird-card-options-overlay .kc-ft .kc-make { background:#b2d6c8 !important; color:#0c5848 !important; border-color:#0f6e5a !important; }
html.dark body #bird-card-options-overlay .kc-ft .kc-make { background:#16382f !important; color:#86dcc4 !important; border-color:#86dcc4 !important; }
/* Vybraná šablona má plochu v barvě kartičky a bílé písmo; v tmavém režimu ho obecné pravidlo tlačítek přebarvilo na světle fialové (2,8 : 1, test 25. 10. 2026). */
html.dark body #bird-card-options-overlay .kc-tp.kc-tp-on { color:#fff !important; }
@media (max-width:820px) {
html body #bird-card-options-overlay .kc-win { width:100% !important; max-height:98vh !important; max-height:min(98dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px)) !important; }
#bird-card-options-overlay .kc-hd h2 { font-size:18px; }
#bird-card-options-overlay .kc-bd { display:flex; flex-direction:column; overflow-y:auto; }
#bird-card-options-overlay .kc-col { overflow:visible; flex:none; }
#bird-card-options-overlay .kc-col + .kc-col { border-left:0; }
html body #bird-card-options-overlay .kc-ft .btn { flex:1; min-width:0; }
/* ── Náhled kartičky koťátka (#bird-card-preview-overlay), návrh 1 (26. 10. 2026): stejný rám jako okno s volbami ── */
#bird-card-preview-overlay { --xl:#2a5a7a; --xs:#cfe2ee; --xi:#163448; --xm:#3f596a; --g-bg:#e3eef6; --g-fg:#0b3a5a; --y-bg:#fff6d9; --y-fg:#7a5a00; --b-bg:#e6f0fd; --b-fg:#1a5299; --l-bg:#e9f6ff; --l-fg:#1f567a; }
html.dark #bird-card-preview-overlay { --xl:#7fabc8; --xs:#314d60; --xi:#e4f4ff; --xm:#9bbed6; --g-bg:#162a38; --g-fg:#9ccae8; --y-bg:#3b3210; --y-fg:#f0d36a; --b-bg:#14283f; --b-fg:#a3cbf8; --l-bg:#1f394a; --l-fg:#b8e3ff; }
html body #bird-card-preview-overlay .kc-win { width:96% !important; max-width:1100px !important; max-height:94vh !important; max-height:min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px)) !important; padding:0 !important; display:flex !important; flex-direction:column; overflow:hidden !important; border:1px solid var(--xl) !important; border-radius:6px !important; background:var(--surface) !important; box-shadow:none !important; color:var(--xi); }
#bird-card-preview-overlay .kc-hd { position:relative; flex:0 0 auto; text-align:center; padding:16px 64px 14px; border-bottom:1px solid var(--xs); min-height:72px; box-sizing:border-box; display:flex; align-items:center; justify-content:center; }
#bird-card-preview-overlay .kc-hd h2 { margin:0; font-size:22px; font-weight:800; line-height:1.2; color:var(--xi); }
#bird-card-preview-overlay .kc-x { position:absolute; right:14px; top:14px; width:44px; height:44px; padding:0; display:flex; align-items:center; justify-content:center; border:1px solid var(--xs); border-radius:6px; background:var(--surface); color:var(--xm); font-size:15px; cursor:pointer; }
#bird-card-preview-overlay .kc-ft { flex:0 0 auto; display:flex; justify-content:center; gap:8px; padding:12px 16px; border-top:1px solid var(--xs); background:var(--surface); }
html body #bird-card-preview-overlay .kc-ft .btn { min-height:48px; min-width:160px; padding:4px 16px; border:1px solid !important; border-radius:6px !important; font-weight:700 !important; box-shadow:none !important; }
html body #bird-card-preview-overlay .kc-ft .kc-cancel { background:var(--b-bg) !important; color:var(--b-fg) !important; border-color:var(--b-fg) !important; }
html body #bird-card-preview-overlay .kc-ft .kc-make { background:#b2d6c8 !important; color:#0c5848 !important; border-color:#0f6e5a !important; }
html.dark body #bird-card-preview-overlay .kc-ft .kc-make { background:#16382f !important; color:#86dcc4 !important; border-color:#86dcc4 !important; }
html body #bird-card-preview-overlay .kc-win { max-width:760px !important; }
#bird-card-preview-overlay .kc-sub { position:absolute; left:64px; right:64px; bottom:6px; font-size:13px; color:var(--xm); text-align:center; }
#bird-card-preview-overlay .kc-hd { flex-direction:column; padding-bottom:22px; }
#bird-card-preview-overlay .kc-bd { flex:1 1 auto; min-height:0; overflow-y:auto; padding:6px; background:var(--l-bg); }
#bird-card-preview-overlay #bird-card-preview-container { display:flex; align-items:center; justify-content:center; margin:0 !important; border:1px solid var(--xs); border-radius:6px; background:var(--surface); padding:10px; }
#bird-card-preview-overlay #bird-card-preview-img { display:block; max-width:100%; max-height:62vh; max-height:min(62dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px)); border-radius:6px !important; border:1px solid var(--xs); box-shadow:none !important; }
html body #bird-card-preview-overlay .kc-ft .kc-back { background:var(--b-bg) !important; color:var(--b-fg) !important; border-color:var(--b-fg) !important; }
@media (max-width:700px) { #bird-card-preview-overlay #bird-card-preview-img { max-height:52vh; max-height:min(52dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px)); } }
/* Obě okna kartičky: dole dvě stejná tlačítka přes celou šířku, 56 px (jako ostatní okna) */
#bird-card-options-overlay .kc-ft, #bird-card-preview-overlay .kc-ft { display:grid !important; grid-template-columns:1fr 1fr; gap:6px; padding:6px !important; }
html body #bird-card-options-overlay .kc-ft .btn, html body #bird-card-preview-overlay .kc-ft .btn { min-height:56px !important; min-width:0 !important; width:100%; margin:0 !important; font-size:15px !important; }
/* Obě okna kartičky se vejdou nad spodní lištu (vrstva .overlay si dole nechává místo na lištu; 98vh na 820 px přetékalo o ~30 px) */
html body #bird-card-options-overlay .kc-win, html body #bird-card-preview-overlay .kc-win { max-height: min(94dvh, calc(100dvh - 20px - var(--nav-bar-height, 0px) - var(--keyboard-height, 0px) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important; }
/* Na tabletu/telefonu obecné .modal posouvá okno o -45 % výšky (o 5 % níž než střed); okna kartičky centruje flex vrstvy */
@media (max-width: 820px) { html body #bird-card-options-overlay .kc-win, html body #bird-card-preview-overlay .kc-win { position: relative !important; top: auto !important; left: auto !important; transform: none !important; } }
#bird-card-preview-overlay .kc-hd h2 { max-width: 100%; overflow-wrap: anywhere; }

/* Hodnocení (#review-prompt-modal): hvězdy jako dlaždice od růžové po zelenou, jednotná tlačítka – převzato z Koček, rámeček ptačí modrý */
/* ── Hodnocení aplikace (#review-prompt-modal): hvězdy jako dlaždice od růžové po zelenou, jednotná tlačítka (25. 10. 2026, návrh 3) ── */
html body #review-prompt-modal > div { border:1px solid #2a5a7a !important; border-radius:6px !important; box-shadow:none !important; }
html.dark body #review-prompt-modal > div { border-color:#7fabc8 !important; }
html body #review-prompt-modal .rv-x { position:absolute; right:10px; top:10px; width:44px; height:44px; padding:0; display:flex; align-items:center; justify-content:center; border:1px solid #2a5a7a; border-radius:6px; background:var(--surface,#fff); color:var(--text,#1a1814); font-size:15px; cursor:pointer; touch-action:manipulation; }
html.dark body #review-prompt-modal .rv-x { border-color:#7fabc8; }
html body #review-prompt-modal #review-stars-row { display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px !important; }
html body #review-prompt-modal .rev-star-btn { filter:none !important; opacity:1 !important; border:1px solid !important; border-radius:6px !important; min-height:64px; font-size:30px !important; padding:0 !important; }
html body #review-prompt-modal .rev-star-btn:nth-child(1) { background:#fdeaf0 !important; border-color:#a02a5c !important; }
html body #review-prompt-modal .rev-star-btn:nth-child(2) { background:#ffe9d9 !important; border-color:#b4531a !important; }
html body #review-prompt-modal .rev-star-btn:nth-child(3) { background:#fff6d9 !important; border-color:#7a5a00 !important; }
html body #review-prompt-modal .rev-star-btn:nth-child(4) { background:#e6f0fd !important; border-color:#1f5fb0 !important; }
html body #review-prompt-modal .rev-star-btn:nth-child(5) { background:#e3f6ef !important; border-color:#0f6e5a !important; }
html.dark body #review-prompt-modal .rev-star-btn:nth-child(1) { background:#3d1a2a !important; border-color:#f2a0c0 !important; }
html.dark body #review-prompt-modal .rev-star-btn:nth-child(2) { background:#40231a !important; border-color:#f0b48a !important; }
html.dark body #review-prompt-modal .rev-star-btn:nth-child(3) { background:#3b3210 !important; border-color:#f0d36a !important; }
html.dark body #review-prompt-modal .rev-star-btn:nth-child(4) { background:#14283f !important; border-color:#8dbcf5 !important; }
html.dark body #review-prompt-modal .rev-star-btn:nth-child(5) { background:#16382f !important; border-color:#86dcc4 !important; }
html body #review-prompt-modal #review-btn-later, html body #review-prompt-modal #review-btn-done, html body #review-prompt-modal #review-low-close { display:flex !important; align-items:center; justify-content:center; width:100%; min-height:48px; margin-top:10px; border:1px solid #1f5fb0 !important; border-radius:6px !important; background:#e6f0fd !important; color:#1f5fb0 !important; font-weight:700 !important; font-size:14px !important; }
html body #review-prompt-modal #review-high-send, html body #review-prompt-modal #review-low-send { min-height:48px; border:1px solid #0f6e5a !important; border-radius:6px !important; background:#b2d6c8 !important; color:#0c5848 !important; font-weight:700 !important; box-shadow:none !important; }
html.dark body #review-prompt-modal #review-btn-later, html.dark body #review-prompt-modal #review-btn-done, html.dark body #review-prompt-modal #review-low-close { background:#14283f !important; color:#8dbcf5 !important; border-color:#8dbcf5 !important; }

/* B8: formuláře Výstava / Připomenutí / Trénink / Zranění / Voliéra byly v B9 převedeny na OF (okna-b9.js, okna-b9.css), pravidla odstraněna. */
