/* Záložka Sabotáž v emote hubu (core/sabotage.js createSabotageTab) — 1:1 se schválenou maketou
   docs/mockups/2026-10-20-sabotaz.html. Jen tmavé téma. Přepínač nahoře = sdílený core/seg-switch.css. */
.uc-sb {
  --uc-sab-prank: #ff4fa3; --uc-sab-prank-2: #a970ff; --uc-sab-ok: #3fd28a; --uc-sab-danger: #ff6b6b; --uc-sab-warn: #ffb300;
  flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; position: relative;
  color: var(--text-primary, #efeff1); font-size: 13px; line-height: 1.4;
}
.uc-sb [hidden] { display: none !important; }
.uc-sb .uc-stash-ico { width: 22px; height: 22px; flex: none; object-fit: contain; margin: -4px 0; }

/* ikona záložky s růžovou tečkou (fronta není prázdná) */
.uc-sab-tabico { position: relative; display: inline-flex; }
.uc-sab-dot { position: absolute; top: -3px; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: #ff4fa3; box-shadow: 0 0 6px #ff4fa3; }

/* Sabotáže | Fronta N */
.uc-sab-seg { margin: 8px 10px 8px; }

/* řazení dlaždic (Název / Nejlevnější / Nejdražší) — kompaktní segmenty jako v nastavení (.uc-set-seg) */
/* hledání: pole vypadá jako hledání emotů (sidepanel.css .uc-ep-search input) */
.uc-sab-search { flex: none; padding: 8px 10px 0; }
.uc-sab-tools { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 10px 0; font-size: 11.5px; font-weight: 600; color: var(--text-muted, #848494); }

/* stavový pruh */
.uc-sab-st { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12px; font-weight: 600; border-top: 1px solid var(--border, #2f2f35); border-bottom: 1px solid var(--border, #2f2f35); }
.uc-sab-lamp { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #555; }
.uc-sab-st.ok { color: #9ff0c4; background: linear-gradient(90deg, rgba(63, 210, 138, .12), transparent 80%); }
.uc-sab-st.ok .uc-sab-lamp { background: var(--uc-sab-ok); box-shadow: 0 0 6px var(--uc-sab-ok); animation: uc-sab-pulse 1.8s ease-in-out infinite; }
.uc-sab-st.off { color: var(--text-secondary, #adadb8); background: rgba(255, 255, 255, .02); }
.uc-sab-st.warn { color: #ffd27a; background: linear-gradient(90deg, rgba(255, 179, 0, .13), transparent 80%); }
.uc-sab-st.warn .uc-sab-lamp { background: var(--uc-sab-warn); }
.uc-sab-st.bad { color: #ffb3b3; background: linear-gradient(90deg, rgba(255, 107, 107, .15), transparent 80%); }
.uc-sab-st.bad .uc-sab-lamp { background: var(--uc-sab-danger); box-shadow: 0 0 6px var(--uc-sab-danger); }
.uc-sab-st-r { margin-left: auto; color: var(--text-muted, #848494); font-weight: 500; }
@keyframes uc-sab-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .uc-sab-st.ok .uc-sab-lamp { animation: none; } }

/* právě běží */
.uc-sab-now { flex: none; margin: 10px 10px 2px; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 79, 163, .4); background: linear-gradient(120deg, rgba(255, 79, 163, .16), rgba(169, 112, 255, .1)); display: flex; align-items: center; gap: 10px; }
.uc-sab-ic { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .3); font-size: 18px; }
.uc-sab-nowem.img { width: 24px; height: 24px; object-fit: contain; }
.uc-sab-now .uc-sab-t { flex: 1; min-width: 0; }
.uc-sab-k { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--uc-sab-prank); }
.uc-sab-n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-sab-b { color: var(--text-secondary, #adadb8); font-size: 12px; }
.uc-sab-b b { color: #ff7ac8; }

/* seznam */
.uc-sab-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 12px; scrollbar-width: thin; scrollbar-color: #3a3a42 transparent; }
.uc-sab-sec { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #848494); margin: 10px 2px 6px; }
.uc-sab-list > .uc-sab-sec:first-child { margin-top: 4px; }
.uc-sab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.uc-sab-list > .uc-sab-grid:first-child { margin-top: 4px; }
.uc-sab-pk { position: relative; text-align: left; border: 1px solid var(--border, #2f2f35); background: var(--bg-secondary, #18181b); color: var(--text-primary, #efeff1); border-radius: 9px; padding: 8px 9px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 58px; transition: border-color .15s, background-color .15s, transform .15s; }
.uc-sab-pk:hover:not(:disabled) { background: var(--bg-hover, #26262c); border-color: rgba(255, 79, 163, .5); }
.uc-sab-pk:active:not(:disabled) { transform: scale(.98); }
.uc-sab-pk.armed { border-color: var(--uc-sab-prank); background: linear-gradient(120deg, rgba(255, 79, 163, .22), rgba(169, 112, 255, .14)); }
.uc-sab-pk.armed .uc-sab-pr { color: #ffd1e8; }
.uc-sab-pk:disabled { opacity: .45; cursor: default; }
/* Skupina zamčená kvůli aplikaci na herním PC (ZL withLocked): pod aktivními, zašedlá, s větou kdy se odemkne. */
.uc-sab-pk.locked { opacity: .38; filter: grayscale(.85); border-style: dashed; }
.uc-sab-sec.locked { display: flex; align-items: center; gap: 5px; margin-top: 14px; }
.uc-sab-lockhint { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-muted, #848494); margin: -2px 2px 7px; line-height: 1.35; }
.uc-sab-list > .uc-sab-lockhint:first-child { margin-top: 4px; }
.uc-sab-lockhint > span { min-width: 0; }
.uc-sab-golink { flex: none; margin-left: auto; padding: 1px 8px; border: 1px solid rgba(255, 140, 0, .45); border-radius: 999px; background: none; color: #ffb347; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.uc-sab-golink:hover { background: rgba(255, 140, 0, .14); border-color: #ff8c00; }
.uc-sab-lvl { font-size: 11px; font-weight: 700; color: var(--text-muted, #848494); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-sab-lock { flex: none; opacity: .8; }
.uc-sab-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.uc-sab-em { flex: none; font-size: 17px; line-height: 1; }
.uc-sab-em.img { width: 20px; height: 20px; object-fit: contain; }
.uc-sab-nm { font-weight: 700; font-size: 12.5px; line-height: 1.2; overflow-wrap: anywhere; }
.uc-sab-pr { margin-top: auto; width: 100%; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.uc-sab-cost { display: inline-flex; align-items: center; gap: 4px; }
.uc-sab-was { color: var(--text-muted, #848494); font-weight: 600; font-size: 11px; }
.uc-sab-free { color: var(--uc-sab-ok); font-size: 11px; font-weight: 800; }
/* Kvóta „Prvních X Akcí“: počet zbývajících za zvýhodněnou cenu. */
.uc-sab-qt { color: var(--text-muted, #a5a5b4); font-size: 11px; font-weight: 700; white-space: nowrap; }
.uc-sab-why { margin-left: auto; font-size: 11px; color: #ff9b9b; font-weight: 700; white-space: nowrap; }
.uc-sab-empty { color: var(--text-muted, #848494); padding: 8px 2px; }
.uc-sab-gate { margin-top: 4px; min-height: 37px; padding: 4px 6px 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px dashed #3a3a42; color: var(--text-secondary, #adadb8); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.uc-sab-gate .uc-mu-pill { margin-left: auto; }

/* fronta */
.uc-sab-q { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.uc-sab-qr { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; background: var(--bg-secondary, #18181b); border: 1px solid transparent; }
.uc-sab-mod .uc-sab-qr { background: var(--bg-tertiary, #1f1f23); }
.uc-sab-pos { flex: none; width: 16px; text-align: center; color: var(--text-muted, #848494); font-weight: 800; font-size: 12px; }
.uc-sab-qr .uc-sab-t { flex: 1; min-width: 0; }
.uc-sab-m { font-size: 11.5px; color: var(--text-secondary, #adadb8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-sab-who { font-weight: 700; color: #ff7ac8; }
.uc-sab-qr.mine { background: rgba(255, 200, 0, .07); border-color: rgba(255, 200, 0, .18); }
.uc-sab-qr.mine .uc-sab-who { color: var(--accent-light, #ffc800); }
.uc-sab-qr.pop-on { outline: 1px solid rgba(255, 107, 107, .5); }
.uc-sab-price { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--text-primary, #efeff1); }
.uc-sab-tag { flex: none; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.uc-sab-tag.run { color: #ffd1e8; background: rgba(255, 79, 163, .2); }
.uc-sab-tag.wait { color: var(--text-secondary, #adadb8); background: rgba(255, 255, 255, .06); }
.uc-sab-x { flex: none; width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border, #2f2f35); background: transparent; color: var(--text-secondary, #adadb8); display: grid; place-items: center; cursor: pointer; padding: 0; }
.uc-sab-x:hover:not(:disabled) { color: var(--uc-sab-danger); border-color: rgba(255, 107, 107, .5); }
.uc-sab-x:disabled { opacity: .5; cursor: default; }
.uc-sab-x svg { width: 16px; height: 16px; }

/* popover zrušení — v .uc-sb (mimo posuvný seznam), pod / nad řádkem */
.uc-sab-pop { position: absolute; right: 10px; top: 0; width: 230px; z-index: 5; background: #232328; border: 1px solid var(--border, #2f2f35); border-radius: 10px; padding: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 6px; }
.uc-sab-pop p { margin: 0 0 2px; font-weight: 600; overflow-wrap: anywhere; }
.uc-sab-pop small { color: var(--text-secondary, #adadb8); }
.uc-sab-pop button { border: 1px solid var(--border, #2f2f35); background: var(--bg-hover, #26262c); color: var(--text-primary, #efeff1); font: inherit; font-weight: 700; padding: 7px 8px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.uc-sab-pop button.red { border-color: rgba(255, 107, 107, .55); color: #ffb3b3; background: rgba(255, 107, 107, .1); }
.uc-sab-pop button.ghost { background: transparent; color: var(--text-secondary, #adadb8); }

/* hláška (toast) dole v panelu */
.uc-sab-toast { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; padding: 9px 11px; border-radius: 8px; font-weight: 600; font-size: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); animation: uc-seg-fade .2s ease-out; }
.uc-sab-toast.ok { background: #143326; color: #9ff0c4; border: 1px solid rgba(63, 210, 138, .4); }
.uc-sab-toast.err { background: #3a1717; color: #ffb3b3; border: 1px solid rgba(255, 107, 107, .4); }
@media (prefers-reduced-motion: reduce) { .uc-sab-toast { animation: none; } }

/* Posílení Kleteb odměnou (ZL 2026-11-07): štítek nad dlaždicemi + odznak ⚡ u akcí, které budou zesílené / prodloužené. */
.uc-sab-boost { margin: 0 0 8px; padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 800; color: #ffe38a; background: linear-gradient(90deg, color-mix(in srgb, #ffc800 22%, transparent), color-mix(in srgb, #ff8c00 10%, transparent)); border: 1px solid color-mix(in srgb, #ffc800 45%, transparent); }
.uc-sab-bst { margin-left: auto; flex: none; font-size: 13px; line-height: 1; filter: drop-shadow(0 0 4px rgba(255, 200, 0, .6)); }
.uc-sab-pk.boosted { border-color: color-mix(in srgb, #ffc800 45%, transparent); }
