/* 1Z216 – Prizpusobitelne rozlozeni karet (js/card-layout.js). Mimo rezim uprav pridava jen nenapadnou listu s tlacitkem. */
.cl-bar { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; position: relative; }
.cl-bar .cl-btn, .cl-ask .cl-btn { appearance: none; -webkit-appearance: none; background: #fff !important; background-image: none !important; color: #8a1d55 !important; border: 1px solid #e3c6d6 !important; box-shadow: none !important; border-radius: 999px !important; padding: 4px 12px !important; font-size: 12px !important; font-weight: 600; line-height: 1.4; min-height: 0; text-transform: none; cursor: pointer; }
.cl-btn { appearance: none; border: 1px solid #e3c6d6; background: #fff; color: #8a1d55; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; line-height: 1.4; cursor: pointer; box-shadow: none; background-image: none; }
.cl-btn:hover { border-color: #c4006a; color: #c4006a; }
.cl-btn:focus-visible, [data-cl-card]:focus-visible { outline: 3px solid #c4006a; outline-offset: 2px; }
.cl-bar .cl-btn:hover, .cl-ask .cl-btn:hover { border-color: #c4006a !important; color: #c4006a !important; }
.cl-ask .cl-btn.cl-strong, .cl-bar-on .cl-btn[aria-pressed="true"] { background: #c4006a !important; border-color: #c4006a !important; color: #fff !important; }
.cl-btn[hidden], .cl-ask[hidden] { display: none; }
.cl-hint { display: none; margin: 0 0 8px; font-size: 12px; color: #7a6671; text-align: right; }
.cl-ask { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #f0d6e4; background: #fff6fb; border-radius: 12px; font-size: 13px; color: #4a3a42; }
.cl-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cl-toast { position: absolute; right: 0; top: 100%; z-index: 30; margin-top: 4px; padding: 6px 12px; border-radius: 10px; background: #1f7a3d; color: #fff; font-size: 12px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.cl-toast.cl-bad { background: #b00020; }
.cl-toast.cl-show { opacity: 1; transform: none; }

/* rezim uprav */
.cl-editing [data-cl-col] { min-height: 60px; border-radius: 14px; outline: 2px dashed #ecc9dc; outline-offset: 4px; }
.cl-editing [data-cl-card] { overflow: visible !important; position: relative; cursor: grab; user-select: none; -webkit-user-select: none; outline: 2px dashed #d9a2c0; outline-offset: 1px; }
.cl-editing [data-cl-card] * { cursor: grab; }
.cl-editing [data-cl-card] a, .cl-editing [data-cl-card] button, .cl-editing [data-cl-card] input, .cl-editing [data-cl-card] select { pointer-events: none; }
.cl-handle { position: absolute; top: -10px; right: -8px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #c4006a; color: #fff !important; font-size: 18px; line-height: 1; touch-action: none; pointer-events: auto !important; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.cl-lifted { outline: 3px solid #c4006a !important; box-shadow: 0 10px 28px rgba(122,0,64,.25) !important; transform: scale(1.02); z-index: 5; }
.cl-dragging { position: fixed !important; z-index: 1000; margin: 0 !important; pointer-events: none; opacity: .92; box-shadow: 0 16px 36px rgba(122,0,64,.28) !important; cursor: grabbing; }
.cl-placeholder { display: block; box-sizing: border-box; border: 2px dashed #c4006a !important; background: rgba(196,0,106,.06) !important; border-radius: 12px; box-shadow: none !important; padding: 0 !important; }
.cl-noselect, .cl-noselect * { user-select: none !important; -webkit-user-select: none !important; cursor: grabbing !important; }
@media (prefers-reduced-motion: reduce) { .cl-toast, .cl-lifted { transition: none; transform: none; } }

/* tmavy rezim */
html[data-theme="dark"] .cl-bar .cl-btn, html[data-theme="dark"] .cl-ask .cl-btn { background: #23232a !important; border-color: #4a3a45 !important; color: #f2a9cf !important; }
html[data-theme="dark"] .cl-ask .cl-btn.cl-strong, html[data-theme="dark"] .cl-bar-on .cl-btn[aria-pressed="true"] { background: #c4006a !important; color: #fff !important; border-color: #c4006a !important; }
html[data-theme="dark"] .cl-ask { background: #2b2228; border-color: #4a3a45; color: #e6e6ea; }
html[data-theme="dark"] .cl-hint { color: #b9a9b2; }
html[data-theme="dark"] .cl-editing [data-cl-col] { outline-color: #5a3a4c; }
