/* KinemIQ Studio - PROTOTYPE of the simpler UI, v2 (proposal 2026-11-21). Added by serve.py only; not part of the app.
 * html.ui2 = the new layout · .ui2-tools = the tools panel open · .ui2-all = classic controls (every old control back).
 * One colour per part of the app, so the sections are told apart at a glance:
 *   create = violet/blue · video = coral · library = amber · playback + timeline = cyan · block settings = teal
 *   tools = green · character = pink · export = orange gradient */
html.ui2 {
  --ui2-top: 58px; --ui2-side: 390px; --ui2-right: 380px;
  --c-create: #8b6bff; --c-video: #ff6b5a; --c-lib: #ffb13d; --c-play: #38c9ff; --c-block: #2fd6b0; --c-tools: #5ee08a;
  --c-char: #ff5fa8; --c-proj: #9aa7c0;
  --ui2-bg: #0b0e14; --ui2-panel: #121722; --ui2-panel2: #182030; --ui2-line: #243046;
}
html.ui2 body { background: var(--ui2-bg); }
html.ui2 .ui2-hide { display: none !important; }
html.ui2 svg.ic { width: 18px; height: 18px; flex: none; }
.ui2-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 99; background: #1d2433; border: 1px solid var(--ui2-line); color: #e8ecf5;
  padding: 9px 14px; border-radius: 10px; font-weight: 600; box-shadow: 0 10px 30px #000a; }

/* ================================================================ panel title strips (one colour per section) */
.ui2-ph { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px;
  padding: 0 0 8px; border-bottom: 2px solid var(--ph, var(--ui2-line)); color: var(--ph, #cfd6e6); }
.ui2-ph b { font-weight: 800; }
.ui2-ph span { margin-left: auto; font-size: 10.5px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); }
.ui2-ph svg.ic { stroke: var(--ph); }
.ui2-ph-create { --ph: var(--c-create); }
.ui2-ph-tools { --ph: var(--c-tools); }
.ui2-ph-block { --ph: var(--c-block); }

/* ================================================================ top bar */
#ui2Top { position: fixed; top: 0; left: 0; right: 0; height: var(--ui2-top); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(#111621, #0d1119); border-bottom: 1px solid var(--ui2-line); }
#ui2Top h1 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
#ui2Top .ui2-sp { flex: 1; min-width: 4px; }
.ui2-grp { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: #ffffff06; border: 1px solid var(--ui2-line); }
.ui2-proj { padding-left: 9px; }
.ui2-proj .ui2-gl svg.ic { stroke: var(--c-proj); }
#ui2Top #projName { color: #dfe5f2; font-weight: 700; cursor: text; padding: 4px 4px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui2Top .ui2-ib, #ui2Top .hist-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border-radius: 9px; background: transparent;
  border: 1px solid transparent; color: #e8ecf5; font-size: 16px; cursor: pointer; }
#ui2Top .ui2-ib:hover, #ui2Top .hist-btn:hover:not(:disabled) { background: #ffffff12; }
#ui2Top .hist-btn:disabled { opacity: .35; }
#ui2Top .ui2-chev { width: 26px; }
#ui2Top > #onbHelp, #ui2Top > .ui2-mwrap > .ui2-ib { border: 1px solid var(--ui2-line); }
.ui2-tb { display: inline-flex !important; align-items: center; gap: 7px; height: 36px; padding: 0 12px !important; border-radius: 9px !important; background: transparent !important;
  border: 1px solid transparent !important; color: #e8ecf5 !important; font: 700 13px system-ui, sans-serif !important; white-space: nowrap; cursor: pointer; margin: 0 !important;
  width: auto !important; min-width: 0 !important; box-shadow: none !important; }
.ui2-tb:hover { background: #ffffff12 !important; }
.ui2-tb.on, .ui2-tb[aria-pressed="true"] { background: #ffffff1a !important; border-color: #ffffff38 !important; }
.ui2-g-char { border-color: #ff5fa855; background: #ff5fa80d; }
.ui2-g-char svg.ic { stroke: var(--c-char); }
.ui2-g-edit { border-color: #8b6bff55; background: #8b6bff0d; }
.ui2-g-edit svg.ic { stroke: #b6a4ff; }
.ui2-g-edit .sfx-grp { display: inline-flex; align-items: center; }
.ui2-g-edit .sfx-grp button { height: 36px; border-radius: 9px; background: transparent; border: 1px solid transparent; color: #e8ecf5; }
#ui2Top .ui2-export { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 12px; border: 0; font-weight: 800; font-size: 14.5px;
  color: #170a05; background: linear-gradient(90deg, #ffb13d, #ff3d8b); box-shadow: 0 4px 20px #ff3d8b40; cursor: pointer; }
#ui2Top .ui2-export svg.ic { stroke: #170a05; }
.ui2-mwrap { position: relative; }
.ui2-menu { position: absolute; top: 46px; left: 0; z-index: 70; min-width: 250px; background: #141a26; border: 1px solid var(--ui2-line); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 40px #000a; display: flex; flex-direction: column; }
.ui2-menu[hidden] { display: none; }
.ui2-menu-r { left: auto; right: 0; }
.ui2-menu button { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: #e8ecf5; text-align: left; padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ui2-menu button:hover { background: #ffffff10; }
.ui2-menu hr { border: 0; border-top: 1px solid var(--ui2-line); margin: 4px 2px; }
@media (max-width: 1380px) { .ui2-g-edit .ui2-tb:not(.ui2-tb-pose) span { display: none; } #ui2Top h1 > span:last-child { display: none; } }

/* ================================================================ grid: create | preview | (block settings or tools) */
html.ui2 #app { margin-top: var(--ui2-top); height: calc(100dvh - var(--ui2-top)); grid-template-columns: var(--ui2-side) minmax(0, 1fr) !important; gap: 0; }
html.ui2 body:not(.insp-off) #app, html.ui2.ui2-tools #app { grid-template-columns: var(--ui2-side) minmax(0, 1fr) var(--ui2-right) !important; }
html.ui2 #app:has(#vmModal:not([hidden])) { grid-template-columns: var(--ui2-side) minmax(0, 1fr) 440px !important; }
html.ui2 #sideResizer, html.ui2 #inspResizer, html.ui2 #inspOpen { display: none !important; }

/* ================================================================ left: create */
html.ui2 #side { padding: 14px 14px 28px; background: var(--ui2-panel); border-right: 1px solid var(--ui2-line); }
html.ui2 #side > header, html.ui2 #projBar, html.ui2:not(.ui2-all) #modeSel, html.ui2 #tabs, html.ui2 #spaceSw:not(.ui2-space), html.ui2 #phSideBack,
html.ui2 #addHead, html.ui2 #addActs, html.ui2 #tab-lib > .subtabs, html.ui2 #tab-gen > .subtabs { display: none !important; }
.ui2-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui2-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; min-height: 112px; padding: 14px;
  border-radius: 16px; border: 2px solid transparent; color: #fff; cursor: pointer; overflow: hidden; transition: transform .12s, filter .12s; }
.ui2-card b { font-size: 21px; font-weight: 800; line-height: 1.1; }
.ui2-card small { font-size: 12px; opacity: .9; margin-top: 2px; }
.ui2-card .ui2-hic { position: absolute; top: 12px; left: 13px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #ffffff2b; }
.ui2-card .ui2-hic svg.ic { width: 21px; height: 21px; stroke: #fff; }
.ui2-card .ui2-pill { position: absolute; top: 13px; right: 11px; font-size: 10.5px; font-weight: 800; background: #00000038; border-radius: 20px; padding: 2px 8px; }
.ui2-text { background: linear-gradient(135deg, #2a6cf0, #7b3cff); }
.ui2-video { background: linear-gradient(135deg, #ff4d6d, #ff9a2e); }
.ui2-card:hover { transform: translateY(-1px); }
.ui2-card:not(.on) { filter: saturate(.85) brightness(.85); }
.ui2-card.on { border-color: #fff; box-shadow: 0 0 0 4px #ffffff14, 0 10px 28px #0009; filter: none; }
.ui2-minis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.ui2-mini { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--ui2-panel2); border: 1px solid var(--ui2-line); border-radius: 12px; padding: 10px 8px;
  font-weight: 700; color: #e8ecf5; cursor: pointer; font-size: 13px; }
.ui2-mini:hover { border-color: #ffffff40; }
.ui2-mini-try svg.ic { stroke: #5ee08a; }
.ui2-mini[data-m="lib"] svg.ic { stroke: var(--c-lib); }
.ui2-mini[data-up] svg.ic { stroke: #8fb7ff; }
.ui2-mini.on { border-color: var(--c-lib); background: #2a2214; }
.ui2-back { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; background: transparent; border: 0; color: var(--muted); font-weight: 700; padding: 4px 0; cursor: pointer; }
.ui2-back[hidden] { display: none; }
#ui2Video { display: none; }
html.ui2 #side[data-ui2="video"] #ui2Video { display: block; }
html.ui2 #side[data-ui2="video"] > .tab { display: none !important; }
html.ui2 #side > .tab { margin-top: 12px; }
.ui2-pane { margin-top: 12px; background: var(--ui2-panel2); border: 1px solid var(--ui2-line); border-top: 3px solid var(--c-video); border-radius: 14px; padding: 13px; }
html.ui2 #side[data-ui2="text"] #t2mPanel { background: var(--ui2-panel2); border: 1px solid var(--ui2-line); border-top: 3px solid var(--c-create); border-radius: 14px; padding: 12px 13px; }
html.ui2 #side[data-ui2="lib"] > #tab-lib { background: var(--ui2-panel2); border: 1px solid var(--ui2-line); border-top: 3px solid var(--c-lib); border-radius: 14px; padding: 12px; }
html.ui2 #side[data-ui2="other"] > .tab:not([hidden]) { background: var(--ui2-panel2); border: 1px solid var(--ui2-line); border-top: 3px solid var(--c-char); border-radius: 14px; padding: 12px; }
#ui2Video #vmDrop { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-height: 120px; justify-content: center;
  border: 2px dashed #ff7a59; border-radius: 14px; background: #1c1214; margin: 0; padding: 16px; cursor: pointer; }
#ui2Video #vmDrop b { font-size: 16px; }
.ui2-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.ui2-alt .sample-btn { display: flex !important; align-items: center; justify-content: center; gap: 7px; margin: 0 !important; padding: 10px !important; min-height: 0 !important; border-radius: 11px; }
.ui2-alt .sample-btn b { font-size: 13px; }
.ui2-go { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 13px !important; border: 0 !important;
  border-radius: 12px !important; color: #fff !important; font-size: 15px !important; font-weight: 800 !important; cursor: pointer; }
.ui2-go svg.ic { stroke: #fff; }
.ui2-go-video { background: linear-gradient(90deg, #ff4d6d, #ff9a2e) !important; }
.ui2-go-text { background: linear-gradient(90deg, #2f7bff, #8b5cff) !important; }
.ui2-note { color: var(--muted); font-size: 11.5px; margin-top: 8px; }
html.ui2 #t2mPrompt { min-height: 92px; font-size: 15px; border: 2px solid #4b6bff; border-radius: 12px; padding: 10px 12px; }
html.ui2 #t2mSet { display: flex !important; gap: 8px; align-items: flex-end; }
html.ui2 #t2mSet > div { flex: 0 0 auto; }
html.ui2 #t2mSet > #t2mGo { flex: 1 1 auto; min-height: 44px; margin-top: 0; }
/* (Quick ideas: its own resize corner works - the height is not locked; 132 px at the start) */
html.ui2 #t2mChips { height: 132px; min-height: 60px; max-height: 70vh; overflow: auto; resize: vertical; }
html.ui2 .t2m-credits { font-size: 10px; opacity: .6; }
/* staff-only parts the customers never see (the app hides them on the web; this local studio runs as staff) */
/* (admin: text modes, quality check and the variant lab stay where the app puts them - the app hides them for customers) */

/* ================================================================ center: preview */
html.ui2 #main { background: var(--ui2-bg); }
html.ui2:not(.ui2-all) #main { grid-template-rows: minmax(240px, 1fr) auto auto !important; }
html.ui2:not(.ui2-all) #resizer, html.ui2:not(.ui2-all) #strip, html.ui2:not(.ui2-all) #tlResizer { display: none !important; }
html.ui2:not(.ui2-all):not(.ui2-dock) #dock { display: none !important; }
html.ui2:not(.ui2-all) #viewCtl, html.ui2:not(.ui2-all) #hudInfo { display: none !important; }
html.ui2:not(.ui2-all):not(.ui2-help) #viewHelp { display: none !important; }
html.ui2:not(.ui2-all):not(.ui2-weapon) #weaponRow { display: none !important; }

/* ================================================================ playback + timeline: one full row of playback controls */
html.ui2:not(.ui2-all) #transport { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px 10px !important; margin: 0 !important;
  background: var(--ui2-panel) !important; border: 0 !important; border-top: 3px solid var(--c-play) !important; border-radius: 0 !important; }
html.ui2:not(.ui2-all) #transport::before { content: attr(data-l); order: 0; flex: 1 0 100%; font: 800 11px system-ui, sans-serif; letter-spacing: .1em; color: var(--c-play); margin-bottom: 2px; }
html.ui2:not(.ui2-all) #transport > .tp-g { display: contents !important; }
html.ui2:not(.ui2-all) #transport .tp-g > :not(#tpStart):not(#tpBack10):not(#stepBack):not(#play):not(#stepFwd):not(#tpFwd10):not(#tpEnd):not(#time):not(#tpFrameWrap):not(.chk:has(#loop)):not(#rate):not(#tpZoomOut):not(#tpZoomIn):not(#tpFit),
html.ui2:not(.ui2-all) #transport > .tp-br, html.ui2:not(.ui2-all) #transport > #tpClip, html.ui2:not(.ui2-all) #tlNav { display: none !important; }
html.ui2:not(.ui2-all) #transport .tp-g > button, html.ui2:not(.ui2-all) #transport .tp-g > select { height: 36px; min-width: 36px; border-radius: 9px; background: var(--ui2-panel2); border: 1px solid var(--ui2-line);
  color: #e8ecf5; margin: 0 !important; }
html.ui2:not(.ui2-all) #tpStart { order: 1; } html.ui2:not(.ui2-all) #tpBack10 { order: 2; } html.ui2:not(.ui2-all) #stepBack { order: 3; }
html.ui2:not(.ui2-all) #play { order: 4; width: 48px !important; height: 48px !important; border-radius: 50% !important; background: linear-gradient(135deg, #38c9ff, #2f7bff) !important;
  border: 0 !important; color: #fff !important; box-shadow: 0 4px 16px #38c9ff55; margin: 0 4px !important; }
html.ui2:not(.ui2-all) #play svg.ic { stroke: #fff; fill: #fff; width: 20px; height: 20px; }
html.ui2:not(.ui2-all) #stepFwd { order: 5; } html.ui2:not(.ui2-all) #tpFwd10 { order: 6; } html.ui2:not(.ui2-all) #tpEnd { order: 7; }
html.ui2:not(.ui2-all) #time { order: 8; font: 700 14px ui-monospace, monospace; color: #e8ecf5; padding: 0 10px; min-width: 120px; text-align: center; }
html.ui2:not(.ui2-all) #tpFrameWrap { order: 9; }
html.ui2:not(.ui2-all) #transport .chk:has(#loop) { order: 10; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--ui2-line); }
html.ui2:not(.ui2-all) #rate { order: 11; }
html.ui2:not(.ui2-all) #tpZoomOut { order: 12; margin-left: 10px !important; } html.ui2:not(.ui2-all) #tpZoomIn { order: 13; } html.ui2:not(.ui2-all) #tpFit { order: 14; }
html.ui2:not(.ui2-all) #transport > .ui2-tp { order: 20; margin-left: auto; }
html.ui2:not(.ui2-all) #transport > #scrubScroll { order: 30; flex: 1 0 100%; margin-top: 4px; }
html.ui2.ui2-all #transport > .ui2-tp { display: none; }
.ui2-tp { display: flex; gap: 6px; align-items: center; }
.ui2-ab { display: inline-flex !important; align-items: center; gap: 7px; height: 38px !important; padding: 0 13px !important; border-radius: 10px !important; font-weight: 800; font-size: 13px;
  cursor: pointer; background: var(--ui2-panel2) !important; border: 1px solid var(--ui2-line) !important; color: #e8ecf5 !important; white-space: nowrap; }
.ui2-ab-add svg.ic { stroke: var(--c-lib); }
.ui2-ab-edit { border-color: #93a4c866 !important; background: #93a4c814 !important; }
.ui2-ab-edit svg.ic { stroke: var(--c-block); }
.ui2-ab-tools { border-color: #5ee08a66 !important; background: #5ee08a14 !important; }
.ui2-ab-tools svg.ic { stroke: var(--c-tools); }
.ui2-ab.on { border-color: #fff !important; box-shadow: 0 0 0 3px #ffffff14; }
html.ui2 #dock { border-top: 3px solid var(--c-proj); }

/* ================================================================ right: block settings (teal) */
html.ui2 #insp { position: relative !important; inset: auto !important; width: auto !important; border-left: 1px solid var(--ui2-line); background: var(--ui2-panel);
  border-top: 3px solid var(--c-block); overflow: auto; }
html.ui2 #insp .insp-head { padding: 12px 14px 8px; margin: 0; }
html.ui2 #insp .insp-head b { color: var(--c-block); }
html.ui2 #inspTabs { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 4px 12px 10px; }
html.ui2 #inspTabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 10px; border: 1px solid var(--ui2-line);
  background: var(--ui2-panel2); color: #cfd6e6; font-size: 11.5px; font-weight: 700; --tc: #9aa7c0; }
html.ui2 #inspTabs button svg { stroke: var(--tc); }
html.ui2 #inspTabs button.on, html.ui2 #inspTabs button[aria-selected="true"] { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, var(--ui2-panel2)); color: #fff; }
html.ui2 #inspTabs [data-tab="blk"] { --tc: #93a4c8; } html.ui2 #inspTabs [data-tab="body"] { --tc: #a68bff; } html.ui2 #inspTabs [data-tab="phys"] { --tc: #5ee08a; }
html.ui2 #inspTabs [data-tab="rag"] { --tc: #ff6b6b; } html.ui2 #inspTabs [data-tab="idle"] { --tc: #38c9ff; } html.ui2 #inspTabs [data-tab="mask"] { --tc: #ff5fa8; }
html.ui2 #inspTabs [data-tab="more"] { --tc: #ffb13d; }
html.ui2 #inspBody { padding: 0 12px 20px; }
html.ui2 #inspBody details.sec, html.ui2 #inspBody .box { border-radius: 12px; border: 1px solid var(--ui2-line); border-left: 3px solid var(--c-block); background: var(--ui2-panel2); }

/* ================================================================ right: tools (green) */
#ui2Tools { display: none; }
html.ui2.ui2-tools #ui2Tools { display: block; grid-column: 3; grid-row: 1; overflow: auto; background: var(--ui2-panel); border-left: 1px solid var(--ui2-line);
  border-top: 3px solid var(--c-tools); padding: 12px 12px 24px; }
html.ui2.ui2-tools #insp { display: none !important; }
.ui2-x { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: transparent; border: 1px solid var(--ui2-line); color: #e8ecf5; cursor: pointer; }
.ui2-tg { margin: 0 0 12px; padding: 10px; border-radius: 12px; background: var(--ui2-panel2); border: 1px solid var(--ui2-line); border-left: 4px solid var(--tg); }
.ui2-tg[hidden] { display: none; }
.ui2-tg h4 { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tg); }
.ui2-c-teal { --tg: #2fd6b0; } .ui2-c-violet { --tg: #a68bff; } .ui2-c-blue { --tg: #38c9ff; } .ui2-c-green { --tg: #5ee08a; } .ui2-c-amber { --tg: #ffb13d; }
.ui2-c-rose { --tg: #ff5fa8; } .ui2-c-gold { --tg: #ffd34d; }
.ui2-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ui2-tile { display: flex; align-items: center; gap: 8px; text-align: left; padding: 9px 10px; border-radius: 10px; background: #0f141e; border: 1px solid var(--ui2-line); color: #e8ecf5;
  font-size: 12.5px; font-weight: 650; cursor: pointer; line-height: 1.2; }
.ui2-tile svg.ic { stroke: var(--tg); }
.ui2-tile:hover { border-color: var(--tg); }
.ui2-tile.on { border-color: var(--tg); background: color-mix(in srgb, var(--tg) 18%, #0f141e); color: #fff; }
.ui2-extra { margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.ui2-extra select, .ui2-extra input { height: 32px; border-radius: 8px; }
.ui2-tmore { padding: 4px 2px; }
.ui2-link { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; padding: 6px 0; }

/* ================================================================ phone (≤ 700 px) */
#ui2Nav { display: none; }
@media (max-width: 700px) {
  html.ui2 { --ui2-top: 52px; }
  #ui2Top { padding: 0 8px; gap: 6px; }
  #ui2Top .ui2-proj, #ui2Top .ui2-g-edit, #ui2Top .ui2-g-char .ui2-tb:not(.ui2-tb-char), #ui2Top #undoBtn, #ui2Top #redoBtn, #ui2Top .ui2-export { display: none !important; }
  #ui2Top .ui2-grp { padding: 2px; }
  #ui2Top h1 { font-size: 15px; }
  html.ui2 #app, html.ui2 body:not(.insp-off) #app, html.ui2.ui2-tools #app, html.ui2 #app:has(#vmModal:not([hidden])) { grid-template-columns: 1fr !important; height: auto; }
  .ui2-card { min-height: 88px; padding: 11px; }
  .ui2-card b { font-size: 17px; }
  .ui2-card .ui2-hic { width: 28px; height: 28px; top: 9px; left: 10px; }
  html.ui2 #insp, html.ui2.ui2-tools #ui2Tools { position: fixed !important; left: 0; right: 0; bottom: 62px; top: auto; max-height: 64vh; z-index: 55; border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px #000c; grid-column: auto; }
  #ui2Nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 62px; z-index: 60; background: #0e1219;
    border-top: 1px solid var(--ui2-line); padding-bottom: env(safe-area-inset-bottom); }
  .ui2-nb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: var(--muted); font-size: 10.5px; }
  .ui2-nb svg.ic { width: 21px; height: 21px; }
  .ui2-nb.on { color: #fff; }
  .ui2-nb[data-k="text"] svg.ic { stroke: var(--c-create); } .ui2-nb[data-k="lib"] svg.ic { stroke: var(--c-lib); } .ui2-nb[data-k="edit"] svg.ic { stroke: var(--c-block); }
  .ui2-nb[data-k="tools"] svg.ic { stroke: var(--c-tools); }
  .ui2-nb-exp { color: #170a05; background: linear-gradient(90deg, #ffb13d, #ff3d8b); margin: 7px 5px; border-radius: 12px; }
  .ui2-nb-exp svg.ic { stroke: #170a05 !important; }
  html.ui2 #phDock, html.ui2 #phStart, html.ui2 #phAddMenu { display: none !important; }
  html.ui2 body { padding-bottom: 70px; }
  html.ui2 #main { order: 1; }
  html.ui2 #ui2Hero { order: 2; padding: 12px 10px 0; }
  html.ui2 #ui2Video, html.ui2 #side > .tab, html.ui2 #jobBox { order: 3; margin-left: 10px; margin-right: 10px; }
  html.ui2 #view { height: 38vh !important; min-height: 0 !important; }
  html.ui2 .ui2-tp, html.ui2 #tpZoomOut, html.ui2 #tpZoomIn, html.ui2 #tpFit, html.ui2 #tpBack10, html.ui2 #tpFwd10, html.ui2 #tpFrameWrap { display: none !important; }
  html.ui2:not(.ui2-all) #timelineBlocks, html.ui2:not(.ui2-all) #ticks { display: none !important; }
  html.ui2:not(.ui2-all) #scrubScroll { height: auto !important; min-height: 0 !important; }
  html.ui2:not(.ui2-all) #transport { padding: 6px 10px !important; gap: 4px; }
  html.ui2:not(.ui2-all) #time { min-width: 0; font-size: 12px; padding: 0 4px; }
}
html.ui2:not(.ui2-all):not(.ui2-help) #viewHelpBtn { display: none !important; }
html.ui2:not(.ui2-all) #magicBtn, html.ui2:not(.ui2-all) #magicScope, html.ui2:not(.ui2-all) #reviewBtn { display: none !important; } /* in Tools -> Advanced (staff) */

/* ================================================================ v2.1: even edges, nothing clipped */
/* the app's floating-panel look (margins, rounded corners, its own frames) is replaced by flat, evenly aligned columns */
html.ui2 #side { margin: 0 !important; border-radius: 0 !important; padding: 16px 16px 28px !important; border: 0 !important; border-right: 1px solid var(--ui2-line) !important;
  box-shadow: none !important; outline: 0 !important; }
html.ui2 #main { padding: 0 !important; gap: 0 !important; }
html.ui2 #view { margin: 0 !important; border-radius: 0 !important; border: 0 !important; box-shadow: none !important; }
html.ui2 #insp, html.ui2.ui2-tools #ui2Tools { margin: 0 !important; border-radius: 0 !important; }
html.ui2 #ui2Hero { padding-top: 2px; }
.ui2-card.on { box-shadow: 0 0 0 3px #ffffff1c, 0 8px 22px #0008; }
/* playback row: never wraps into a ragged second line - labels fold to icons when the column is narrow */
html.ui2:not(.ui2-all) #transport { container-type: inline-size; flex-wrap: wrap; row-gap: 6px; }
html.ui2:not(.ui2-all) #transport > .ui2-tp { order: 20; margin-left: auto; }
html.ui2:not(.ui2-all) #tpZoomOut, html.ui2:not(.ui2-all) #tpZoomIn, html.ui2:not(.ui2-all) #tpFit { order: 21; }
html.ui2:not(.ui2-all) #tpZoomOut { margin-left: 6px !important; }
html.ui2:not(.ui2-all) #rate { height: 36px !important; }
html.ui2:not(.ui2-all) #time, html.ui2:not(.ui2-all) #tpFrameWrap { align-self: center; }
@container (max-width: 1250px) { .ui2-ab:not(.ui2-ab-edit):not(.ui2-ab-tools) span { display: none; } .ui2-ab { padding: 0 10px !important; } }
@container (max-width: 980px) { #tpBack10, #tpFwd10, #tpFrameWrap, #tpZoomOut, #tpZoomIn { display: none !important; } }
@container (max-width: 760px) { #tpStart, #tpEnd { display: none !important; } #time { min-width: 0 !important; } }
/* an empty timeline: the "add the first animation" button and its four choices in one row, never cut off */
html.ui2 #scrubScroll:has(#tlEmpty:not([hidden])) { height: auto !important; overflow: visible !important; }
html.ui2 #scrubWrap:has(#tlEmpty:not([hidden])) { height: auto !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; }
html.ui2 #scrubWrap:has(#tlEmpty:not([hidden])) > #scrub, html.ui2 #scrubWrap:has(#tlEmpty:not([hidden])) > #ticks { display: none !important; }
html.ui2 #transport .tl-empty { margin: 0 !important; }
html.ui2 #transport .tl-add-pick { margin: 0 !important; grid-template-columns: repeat(4, 120px); }
/* library: Free | Premium first, then search; sources and categories as compact chip rows */
.ui2-libsw, html.ui2 #kqLibSw { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 10px; }
.ui2-libsw button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 11px; border: 1px solid var(--ui2-line); background: #0f141e;
  color: #e8ecf5; font-weight: 800; font-size: 13px; cursor: pointer; }
.ui2-libsw button svg.ic { stroke: var(--c-lib); }
.ui2-libsw button em { font-style: normal; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 6px; background: linear-gradient(90deg, #ffb13d, #ff3d8b); color: #170a05; }
.ui2-libsw button.on { border-color: var(--c-lib); background: #2a2214; }
html.ui2 #libHead .chips { gap: 4px; }
html.ui2 #libHead .chips button { padding: 3px 9px; font-size: 11.5px; border-radius: 20px; }
html.ui2 #libHead .chips-lab { flex-basis: 100%; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.ui2-libsw button { white-space: nowrap; }

/* ================================================================ v3: tools as a clear list (search · groups that open · one tool per row) */
html.ui2.ui2-tools #ui2Tools { padding: 14px 14px 24px; }
.ui2-tsearch { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--ui2-line); background: #0d121b; color: #e8ecf5; padding: 0 12px; font-size: 13px; margin: 0 0 12px; }
.ui2-tg { margin: 0 0 8px; padding: 0; border-radius: 12px; background: var(--ui2-panel2); border: 1px solid var(--ui2-line); border-left: 4px solid var(--tg); overflow: hidden; }
.ui2-tgh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; background: none; border: 0; color: #e8ecf5; cursor: pointer; text-align: left; }
.ui2-tgh b { font-size: 13.5px; font-weight: 800; flex: 1; }
.ui2-tgh em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--tg); background: color-mix(in srgb, var(--tg) 15%, transparent); border-radius: 20px; padding: 1px 8px; }
.ui2-tgh > svg.ic:last-child { stroke: var(--muted); transition: transform .15s; }
.ui2-tg.open .ui2-tgh > svg.ic:last-child, .ui2-tg.found .ui2-tgh > svg.ic:last-child { transform: rotate(180deg); }
.ui2-tlist { display: none; padding: 0 8px 8px; }
.ui2-tg.open .ui2-tlist, .ui2-tg.found .ui2-tlist { display: block; }
.ui2-tic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--tg) 16%, transparent); }
.ui2-tic svg.ic { stroke: var(--tg); width: 17px; height: 17px; }
.ui2-trow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; margin: 0 0 2px; border-radius: 10px; background: none; border: 1px solid transparent; color: #e8ecf5;
  cursor: pointer; text-align: left; }
.ui2-trow[hidden] { display: none; }
.ui2-trow:hover { background: #ffffff0a; border-color: var(--ui2-line); }
.ui2-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ui2-tx b { font-size: 13px; font-weight: 700; }
.ui2-tx small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui2-go2 svg.ic { stroke: var(--muted); }
.ui2-do { font-size: 11px; font-weight: 800; color: var(--tg); border: 1px solid color-mix(in srgb, var(--tg) 50%, transparent); border-radius: 8px; padding: 3px 8px; }
.ui2-sw { width: 34px; height: 20px; flex: none; border-radius: 20px; background: #2a3346; position: relative; transition: background .15s; }
.ui2-sw i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #cfd6e6; transition: left .15s; }
.ui2-trow.on .ui2-sw { background: var(--tg); }
.ui2-trow.on .ui2-sw i { left: 17px; background: #fff; }
.ui2-trow.on { background: color-mix(in srgb, var(--tg) 9%, transparent); }
.ui2-extra { cursor: default; margin-top: 4px; border-top: 1px solid var(--ui2-line); border-radius: 0; padding-top: 10px; }
.ui2-extra:hover { background: none; border-color: transparent; border-top-color: var(--ui2-line); }
.ui2-extra select, .ui2-extra input, .ui2-extra label { height: 32px; border-radius: 8px; }
.ui2-extra #endWrap { display: inline-flex; align-items: center; gap: 6px; }
.ui2-extra #endWrap > span { display: none; }
.ui2-extra #endWrap input { width: 80px; }
.ui2-tiles, .ui2-tile { display: none; }

/* top bar: sounds as one clean button; the look button in line (it was positioned over the preview) */
#ui2Top .sfx-grp { gap: 2px; }
#ui2Top #lookBtn { position: static !important; inset: auto !important; transform: none !important; margin: 0 !important; }
#ui2Top .sfx-grp .ui2-chev { width: 24px; height: 36px; }
/* the timeline: room for the end ＋ and the block cards at full height */
html.ui2:not(.ui2-all) #scrubScroll { padding-right: 46px; overflow-y: visible !important; }
html.ui2:not(.ui2-all) #scrubWrap { overflow: visible; }
/* cards under the timeline on demand (Tools -> Timeline) */
html.ui2.ui2-strip:not(.ui2-all) #strip { display: block !important; max-height: 180px; overflow: auto; border-top: 3px solid var(--c-lib); }
html.ui2.ui2-strip:not(.ui2-all) #main { grid-template-rows: minmax(200px, 1fr) auto auto auto !important; }
@media (max-width: 700px) { .ui2-nb { margin: 0; padding: 0; min-height: 0; height: 100%; box-sizing: border-box; } .ui2-nb-exp { height: auto; } }
html.ui2:not(.ui2-all) #transport #tlNav[id], html.ui2:not(.ui2-all) #transport #tlNav[id]:not([hidden]) { display: none !important; }
/* history / edits panel under the timeline: its own close button (opened from Tools -> Timeline) */
html.ui2 #dock .dock-head { display: flex; align-items: center; }
html.ui2 #dock .dock-head .ui2-dockx { margin-left: auto; width: 30px; height: 30px; }
/* a tool the app does not offer this account (customer, or not on this page) is not listed */
#ui2Tools .ui2-trow.ui2-na, #ui2Tools .ui2-tg.ui2-na { display: none !important; }
/* PC: the page itself never scrolls (each column scrolls on its own) - it could slide 58 px under the top bar */
@media (min-width: 701px) { html.ui2, html.ui2 body { height: 100dvh; overflow: hidden !important; } }
/* library tiles: a long clip name ends with … on its 2nd line (whole name in the tooltip), never cut mid-line */
html.ui2 #side .clip.tile .nm { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
/* v4.1 (the owner's screenshot "orezané, nerovnomerné"): the app gives EVERY button padding 7px 11px and its own hover
 * (button:hover:not(:disabled) beats a class) - the 30 px ✕ cut its icon, a row under the mouse changed colour */
#ui2Tools .ui2-x, #ui2Top .ui2-ib, #ui2Top .ui2-chev, #dock .ui2-dockx { padding: 0 !important; box-sizing: border-box; flex: none; display: inline-grid; place-items: center; }
#ui2Tools .ui2-ph-tools { padding-right: 2px; }
#ui2Tools .ui2-x:hover:not(:disabled) { background: #ffffff0f; border-color: #ffffff40; }
#ui2Tools .ui2-trow:hover:not(:disabled) { background: #ffffff0a; border-color: var(--ui2-line); }
#ui2Tools .ui2-trow.on:hover:not(:disabled) { background: color-mix(in srgb, var(--tg) 13%, transparent); }
#ui2Tools .ui2-tgh:hover:not(:disabled) { background: #ffffff06; border-color: transparent; }
/* the right end of every row in one 58 px column: Apply, the switch and › line up under each other */
#ui2Tools .ui2-do { flex: 0 0 58px; box-sizing: border-box; text-align: center; padding: 4px 0; line-height: 1.2; }
#ui2Tools .ui2-sw { margin: 0 12px; }
#ui2Tools .ui2-go2 { flex: 0 0 58px; display: flex; justify-content: center; }
#ui2Tools .ui2-extra > :last-child { flex: 0 0 auto; max-width: 58%; }
/* v4.1: the same app rule turned every new button grey under the mouse (the From text / From video cards lost their colour,
 * Sample / Library / Upload, the phone bar, Free / Premium, the video window's buttons) - each keeps its own look, a bit lighter */
html.ui2 .ui2-card.ui2-text:hover:not(:disabled) { background: linear-gradient(135deg, #3a78f5, #8a4dff); }
html.ui2 .ui2-card.ui2-video:hover:not(:disabled) { background: linear-gradient(135deg, #ff5f7c, #ffa845); }
html.ui2 .ui2-card:hover:not(:disabled):not(.on) { border-color: #ffffff55; }
html.ui2 .ui2-card.on:hover:not(:disabled) { border-color: #fff; }
html.ui2 .ui2-mini:hover:not(:disabled) { background: #1d2638; border-color: #ffffff40; }
html.ui2 .ui2-mini.on:hover:not(:disabled) { background: #33291a; border-color: var(--c-lib); }
html.ui2 .ui2-link:hover:not(:disabled) { background: none; border-color: transparent; color: #e8ecf5; }
html.ui2 .ui2-libsw button:hover:not(:disabled) { background: #161d2a; border-color: #ffffff40; }
html.ui2 .ui2-libsw button.on:hover:not(:disabled) { background: #33291a; border-color: var(--c-lib); }
html.ui2 .ui2-nb:hover:not(:disabled) { background: #ffffff08; border-color: transparent; color: #e8ecf5; }
html.ui2 .ui2-nb-exp:hover:not(:disabled) { background: linear-gradient(90deg, #ffbd57, #ff5299); color: #170a05; }
html.ui2 .ui2-alt .sample-btn:hover:not(:disabled) { background: linear-gradient(90deg, #ff8a3d44, #ff3d8b44); border-color: var(--accent); }
html.ui2 .ui2-menu button:hover:not(:disabled) { background: #ffffff10; border-color: transparent; }
/* v4.1: a narrow preview (1366 px with Tools open) cannot hold playback + the four actions in one row - the actions get
 * their own full row on the right, all four with a label (before: a ragged 2nd row, Add without its label) */
@container (max-width: 760px) {
  #transport > .ui2-tp { flex: 1 0 100%; justify-content: flex-end; order: 25; margin-left: 0; }
  #transport > .ui2-tp .ui2-ab span { display: inline !important; }
  #transport > .ui2-tp .ui2-ab { padding: 0 12px !important; }
  #transport #tpFit, #transport #tpZoomOut, #transport #tpZoomIn { order: 12 !important; }
}
/* phone: Undo / Redo are hidden there - their empty frame stayed as a dot next to ⋯ */
@media (max-width: 700px) { #ui2Top .ui2-g-hist { display: none !important; } }
/* the web plugin's Free | ✦ Premium switch (#kqLibSw, also local now) in the new look - it went grey under the mouse */
html.ui2 #kqLibSw button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--ui2-line);
  background: #0f141e; color: #e8ecf5; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; }
html.ui2 #kqLibSw button.on { border-color: var(--c-lib); background: #2a2214; }
html.ui2 #kqLibSw button:hover:not(:disabled) { background: #161d2a; border-color: #ffffff40; }
html.ui2 #kqLibSw button.on:hover:not(:disabled) { background: #33291a; border-color: var(--c-lib); }
/* v4.1 library (the owner: "nevyužité miesto, zbytočný riadok pri náhľadoch"): categories and sources in ONE row that
 * slides sideways (wheel or drag), the length of a clip in the preview's top-right corner - no row of its own */
html.ui2 #kqLib > .kqlib-note:first-child { display: none; }
html.ui2 .kqlib-cats, html.ui2 #libCats, html.ui2 #libSrc { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; gap: 5px;
  padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: thin; scrollbar-color: #3a4560 transparent; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
html.ui2 .kqlib-cats > *, html.ui2 #libCats > *, html.ui2 #libSrc > * { flex: none; white-space: nowrap; }
html.ui2 #libCats .chips-lab, html.ui2 #libSrc .chips-lab { align-self: center; margin-right: 2px; }
html.ui2 #side .clip.tile { position: relative; }
html.ui2 #side .clip.tile > .meta > .tg { position: absolute; top: 5px; right: 5px; left: 5px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; margin: 0; pointer-events: none; z-index: 1; }
html.ui2 #side .clip.tile > .meta > .tg > * { background: #0b0f17cc !important; color: #e8ecf5 !important; border: 0 !important; border-radius: 6px; padding: 1px 6px; font-size: 10.5px; font-weight: 700; line-height: 16px; backdrop-filter: blur(2px); }
html.ui2 #side .clip.tile > .meta > .tg > a { display: none; }
html.ui2 #libCats .chips-lab, html.ui2 #libSrc .chips-lab { width: auto !important; flex: none !important; display: inline-block !important; margin: 0 4px 0 0 !important; font-size: 10px; }
html.ui2 #side .clip.tile > .meta > .tg { flex-wrap: nowrap; justify-content: flex-start; }
/* the length top-right, where the clip came from (video / uploaded / test) small top-left - one line over the picture */
html.ui2 #side .clip.tile > .meta > .tg > .tag:not(.gen):not(.upload):not(.test):not(.pending) { order: 9; margin-left: auto; }
html.ui2 #side .clip.tile > .meta > .tg > :is(.gen, .upload, .test, .pending) { font-size: 9.5px; font-weight: 600; opacity: .9; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 👁 the admin's view switch: Admin | People (shown to staff only) */
.ui2-view { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; border: 1px solid var(--ui2-line); background: #0d121b; }
.ui2-view[hidden] { display: none !important; }
html.ui2 .ui2-view button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 12px; cursor: pointer; white-space: nowrap; }
html.ui2 .ui2-view button svg.ic { width: 15px; height: 15px; }
html.ui2 .ui2-view button:hover:not(:disabled) { background: #ffffff0a; border-color: transparent; color: #e8ecf5; }
html.ui2 .ui2-view button.on, html.ui2 .ui2-view button.on:hover:not(:disabled) { background: #ffd16622; color: #ffd166; }
html.ui2.ui2-cust .ui2-view button.on, html.ui2.ui2-cust .ui2-view button.on:hover:not(:disabled) { background: #8fb7ff22; color: #8fb7ff; }
.ui2-menu .ui2-mview[hidden] { display: none; }
@media (min-width: 701px) { .ui2-menu .ui2-mview { display: none !important; } }
@media (max-width: 700px) { #ui2Top .ui2-view { display: none !important; } }
@media (max-width: 1380px) { #ui2Top .ui2-view button span { display: none; } #ui2Top .ui2-view button { padding: 0 8px; } }
/* People view: what the app shows only to staff is gone (it hides the same for a Free account) */
html.ui2-cust :is(#ui2Tools .ui2-tg[data-k="adv"], #t2mModes [data-m="pk"], #pkBox, #qcCard, #vlab, #vmServerBox, #fcBox, #fixCard, .lib-loco, #magicBtn, #magicScope,
  #reviewBtn, #reviewPop, #tpSolid, #modeSel) { display: none !important; }
html.ui2-cust label:has(> #liveKeepVideo), html.ui2-cust label.chk:has(> #solidOn) { display: none !important; }
/* the length on a tile never breaks into two lines */
html.ui2 #side .clip.tile > .meta > .tg > .tag:not(.gen):not(.upload):not(.test):not(.pending) { white-space: nowrap; flex: none; }
/* tiles: only the length (and test / getting ready) over the picture - "uploaded" / "video" got cut to "uploa…"; the list view shows them */
html.ui2 #side .clip.tile > .meta > .tg > :is(.gen, .upload) { display: none !important; }

/* ================================================================ v4.2 window sizes: drag handles (ui2.js buildGrips) */
html.ui2 #app:has(#vmModal:not([hidden])) { grid-template-columns: var(--ui2-side) minmax(0, 1fr) var(--ui2-vm, 440px) !important; }
.ui2-grip { position: fixed; z-index: 58; touch-action: none; }
.ui2-grip[hidden] { display: none !important; }
.ui2-grip-side, .ui2-grip-right { width: 8px; cursor: col-resize; }
.ui2-grip-tl { height: 8px; cursor: row-resize; }
.ui2-grip-sheet { height: 14px; cursor: row-resize; z-index: 57; }
.ui2-grip::after { content: ''; position: absolute; border-radius: 4px; background: transparent; transition: background .12s; }
.ui2-grip-side::after, .ui2-grip-right::after { left: 3px; width: 2px; top: 0; bottom: 0; }
.ui2-grip-tl::after { top: 3px; height: 2px; left: 0; right: 0; }
.ui2-grip-sheet::after { top: 4px; height: 4px; width: 44px; left: 50%; margin-left: -22px; background: #ffffff40; }
.ui2-grip:hover::after, .ui2-grip.on::after { background: var(--c-play, #38c9ff); }
body.ui2-resizing, body.ui2-resizing * { user-select: none !important; cursor: inherit; }
body.ui2-resizing iframe, body.ui2-resizing canvas { pointer-events: none; }
/* the timeline height the owner set (the preview gets the rest) */
html.ui2.ui2-tlsz:not(.ui2-all) #transport > #scrubScroll { height: var(--ui2-tl) !important; max-height: none !important; overflow-y: auto !important; }
/* phone: the bottom sheets (Tools / Edit) - their height from the drag */
@media (max-width: 700px) { html.ui2 #insp, html.ui2.ui2-tools #ui2Tools { max-height: var(--ui2-sheet, 64vh) !important; height: var(--ui2-sheet, auto); } }
/* floating windows of the app: drag the bottom-right corner to resize */
html.ui2 :is(#lookPanel, #sfxPop, #markPop, #pkeyPop, #projPop, #swapPop, #varyPop, #reviewPop, #guPop, #posePanel, #chatPanel, #magicPop, #ownWPanel):not([hidden]) {
  resize: both; overflow: auto; min-width: 220px; min-height: 110px; max-width: 92vw; max-height: 86vh; }
/* the view switch takes icons only below 1700 px (its label in the tooltip) - at 1600 it pushed Export off the screen */
@media (max-width: 1700px) { #ui2Top .ui2-view button span { display: none; } #ui2Top .ui2-view button { padding: 0 8px; } }

/* ================================================================ v4.2 the top bar fits (ui2.js fitTop adds f1..f8 while it overflows) */
/* (#ui2Top stays overflow: visible - hidden cut the ⋯ and Project menus; fitTop measures scrollWidth either way) */
#ui2Top.ui2-f1 h1 > span:last-child, #ui2Top.ui2-f1 .ui2-view button span { display: none; }
#ui2Top.ui2-f1 .ui2-view button { padding: 0 8px; }
#ui2Top.ui2-f2 .ui2-g-edit .ui2-tb:not(.ui2-tb-pose) span { display: none; }
#ui2Top.ui2-f2 .ui2-g-edit .ui2-tb:not(.ui2-tb-pose) { padding: 0 10px !important; }
#ui2Top.ui2-f3 #projName { max-width: 110px; }
#ui2Top.ui2-f4 .ui2-g-char .ui2-tb span { display: none; }
#ui2Top.ui2-f4 .ui2-g-char .ui2-tb { padding: 0 10px !important; }
#ui2Top.ui2-f5 .ui2-tb-pose span { display: none; }
#ui2Top.ui2-f5 .ui2-tb-pose { padding: 0 10px !important; }
#ui2Top.ui2-f5 #lookBtn, #ui2Top.ui2-f5 .sfx-grp { display: none !important; } /* (both in Tools -> Compare and look) */
#ui2Top.ui2-f6 #ui2Ghost { display: none !important; } /* (Tools -> Compare and look -> Original) */
#ui2Top.ui2-f6 { gap: 6px; }
#ui2Top.ui2-f7 #projName { display: none !important; }
#ui2Top.ui2-f7 .ui2-export span { display: none; }
#ui2Top.ui2-f8 .ui2-g-hist { display: none !important; } /* (Ctrl+Z / Ctrl+Y still work) */
/* narrower screens: narrower default columns (a size the owner dragged still wins) */
@media (max-width: 1500px) { html.ui2 { --ui2-side: clamp(300px, 26vw, 390px); --ui2-right: clamp(320px, 26vw, 380px); } }
/* below 1000 px the right panel opens over the preview instead of squeezing it to nothing */
@media (min-width: 701px) and (max-width: 1000px) {
  html.ui2 body:not(.insp-off) #app, html.ui2.ui2-tools #app { grid-template-columns: var(--ui2-side) minmax(0, 1fr) !important; }
  html.ui2 body:not(.insp-off) #insp, html.ui2.ui2-tools #ui2Tools { position: fixed !important; right: 0; top: var(--ui2-top); bottom: 0; width: var(--ui2-right); z-index: 50; box-shadow: -12px 0 30px #0009; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  html.ui2 body:not(.insp-off) #insp, html.ui2.ui2-tools #ui2Tools { left: auto !important; width: var(--ui2-right) !important; max-width: calc(100vw - 120px); }
}
/* a narrow left column (a small screen or dragged narrower): 2 tiles a row in the library, Create on its own line */
html.ui2 #side { container: ui2side / inline-size; }
@container ui2side (max-width: 345px) {
  #side :is(#lib, #kqLibG):has(> .clip.tile) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #t2mSet { flex-wrap: wrap !important; }
  #t2mSet > #t2mGo { flex: 1 1 100% !important; }
}
/* 701-980 px: the app's own tablet layout (the left panel above the preview, 46 % high) is not used - the columns stay */
@media (min-width: 701px) and (max-width: 980px) {
  html.ui2 #app { grid-template-rows: minmax(0, 1fr) !important; height: calc(100dvh - var(--ui2-top)) !important; min-height: 0 !important; }
  html.ui2 #side { max-height: none !important; border-bottom: 0 !important; border-right: 1px solid var(--ui2-line) !important; }
  html.ui2 #main { height: auto !important; }
}
/* a narrow left column: the card title never runs over the card's icon */
@container ui2side (max-width: 345px) {
  .ui2-card { padding-top: 54px !important; min-height: 0 !important; }
  .ui2-card b { font-size: 18px !important; }
}

/* ================================================================ v5 Tools panel: compact, every group open, 2 columns */
html.ui2.ui2-tools #ui2Tools { padding: 12px 12px 20px; }
#ui2Tools .ui2-tsearch { height: 34px; margin: 0 0 10px; }
#ui2Tools .ui2-tg { margin: 0 0 12px; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
#ui2Tools .ui2-tgh { display: flex; align-items: center; gap: 7px; padding: 0 2px 5px; margin: 0 0 7px; border-bottom: 1px solid var(--ui2-line); cursor: default; }
#ui2Tools .ui2-tgh b { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--tg); flex: none; }
#ui2Tools .ui2-tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--tg); flex: none; }
#ui2Tools .ui2-tlist, #ui2Tools .ui2-tg.open .ui2-tlist { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 0; }
#ui2Tools .ui2-trow { height: 36px; margin: 0; padding: 0 9px 0 6px; gap: 7px; border-radius: 9px; background: var(--ui2-panel2); border: 1px solid var(--ui2-line); min-width: 0; }
#ui2Tools .ui2-trow:hover:not(:disabled) { background: #1f2738; border-color: color-mix(in srgb, var(--tg) 55%, transparent); }
#ui2Tools .ui2-tic { width: 24px; height: 24px; border-radius: 7px; }
#ui2Tools .ui2-tic svg.ic { width: 15px; height: 15px; }
#ui2Tools .ui2-tx { min-width: 0; }
#ui2Tools .ui2-tx b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#ui2Tools .ui2-pip { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #5b6680; margin-left: auto; }
#ui2Tools .ui2-trow.on { background: color-mix(in srgb, var(--tg) 14%, var(--ui2-panel2)); border-color: color-mix(in srgb, var(--tg) 70%, transparent); }
#ui2Tools .ui2-trow.on:hover:not(:disabled) { background: color-mix(in srgb, var(--tg) 20%, var(--ui2-panel2)); }
#ui2Tools .ui2-trow.on .ui2-pip { background: var(--tg); border-color: var(--tg); box-shadow: 0 0 6px var(--tg); }
#ui2Tools .ui2-extra { grid-column: 1 / -1; height: auto; min-height: 36px; padding: 4px 9px; cursor: default; }
#ui2Tools .ui2-extra .ui2-tx b { font-size: 12px; color: var(--muted); }
#ui2Tools .ui2-tmore { margin-top: 4px; }
#ui2Tools .ui2-tg.ui2-na, #ui2Tools .ui2-tg[hidden] { display: none !important; }
/* the owner: no frame behind the end ＋ - the "end of the animation" handle (drag = length) stays, without its box */
html.ui2 #timelineBlocks .tl-end, html.ui2 #timelineBlocks .tl-end:hover:not(:disabled) { border: 0 !important; background: transparent !important; box-shadow: none !important; }
html.ui2 #timelineBlocks .tl-end svg.ic, html.ui2 #timelineBlocks .tl-end svg { opacity: 0; }

/* ================================================================ v6 the timeline's own bar (#ui2Tl) right above the ruler */
html.ui2:not(.ui2-all) #transport > .ui2-tlbar { order: 28; flex: 1 0 100%; display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 6px 0 0;
  border-top: 1px solid var(--ui2-line); min-width: 0; }
html.ui2.ui2-all #transport > .ui2-tlbar { display: none; }
.ui2-tlg { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ui2-tlsep { width: 1px; height: 20px; background: var(--ui2-line); margin: 0 4px; flex: none; }
html.ui2 .ui2-tlb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--ui2-line);
  background: var(--ui2-panel2); color: #e8ecf5; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; flex: none; }
html.ui2 .ui2-tlb svg.ic { width: 15px; height: 15px; stroke: var(--c-play, #38c9ff); }
html.ui2 .ui2-tlb-add svg.ic { stroke: var(--c-lib); }
html.ui2 .ui2-tlb:hover:not(:disabled) { background: #1f2738; border-color: #ffffff40; }
html.ui2 .ui2-tlb.on, html.ui2 .ui2-tlb.on:hover:not(:disabled) { background: #38c9ff1f; border-color: #38c9ffaa; color: #fff; }
html.ui2 .ui2-tlz > button { height: 32px !important; min-width: 32px !important; margin: 0 !important; }
/* the bar gets narrower: labels go first (icons + tooltip stay), Add keeps its label longest */
#transport { container-type: inline-size; }
@container (max-width: 1150px) { .ui2-tlg-r .ui2-tlb span { display: none; } .ui2-tlg-r .ui2-tlb { padding: 0 9px; } }
@container (max-width: 900px) { .ui2-tlg .ui2-tlb:not(.ui2-tlb-add) span { display: none; } .ui2-tlg .ui2-tlb:not(.ui2-tlb-add) { padding: 0 9px; } }
@container (max-width: 600px) { .ui2-tlb-add span { display: none; } .ui2-tlbar { gap: 4px; } .ui2-tlsep { margin: 0 1px; } }
/* the zoom buttons live on the bar now - the older order rules of the playback row do not move them */
html.ui2:not(.ui2-all) #ui2Tl .ui2-tlz > :is(#tpZoomOut, #tpZoomIn, #tpFit) { order: 0 !important; display: inline-flex !important; }
/* a PC has these on the timeline bar - Tools lists them only on a phone */
@media (min-width: 701px) { #ui2Tools .ui2-phone-only { display: none !important; } }
@media (max-width: 700px) { html.ui2 #transport > .ui2-tlbar { display: none !important; } } /* (a phone shows no timeline - these tools are in Tools there) */
/* a narrow timeline: the right group goes under the left one instead of overlapping it */
html.ui2:not(.ui2-all) #transport > .ui2-tlbar { flex-wrap: wrap; row-gap: 6px; }
.ui2-tlbar > .ui2-tlg { flex: none; }
.ui2-tlbar > .ui2-sp { flex: 1 1 0; min-width: 0; }
/* the zoom buttons on the timeline bar look like its other buttons (they kept the app's grey hover) */
html.ui2 #ui2Tl .ui2-tlz > button { display: inline-flex !important; align-items: center; justify-content: center; width: 32px; padding: 0 !important; border-radius: 8px !important;
  border: 1px solid var(--ui2-line) !important; background: var(--ui2-panel2) !important; color: #e8ecf5; }
html.ui2 #ui2Tl .ui2-tlz > button:hover:not(:disabled) { background: #1f2738 !important; border-color: #ffffff40 !important; }
html.ui2 #ui2Tl .ui2-tlz > button svg { width: 15px; height: 15px; }

/* ================================================================ v7 nothing twice (the owner: "nikde nenechávaj tie isté nástroje viackrát") */
html.ui2 #ui2Video #vmSampleBtn { display: none !important; }            /* = Sample under the cards */
html.ui2 .ui2-alt { grid-template-columns: 1fr; }
html.ui2 #dock .dock-head > button[data-d] { display: none !important; } /* = History / Edits on the timeline bar */
html.ui2 #timelineBlocks .tlr-tools .tlr-t[title^="Vymeniť"], html.ui2 #timelineBlocks .tlr-tools .tlr-t[title^="Swap"] { display: none !important; } /* = Swap on the block */
@media (min-width: 701px) { html.ui2 #side #charUpBtn { display: none !important; } }  /* = Your character on the top bar (a phone has it only here) */
.ui2-menu .ui2-mfit[hidden] { display: none; }
/* the block's ⋯ (clip tools) opens its panel again - it was hidden with the old playback rows */
html.ui2:not(.ui2-all) #transport > #tpClip:not([hidden]) { display: flex !important; }

/* the timeline bar (v7: Add / Split gone - more room): labels go later */
@container (max-width: 1150px) { .ui2-tlg-r .ui2-tlb span { display: inline; } .ui2-tlg-r .ui2-tlb { padding: 0 10px; } }
@container (max-width: 900px) { .ui2-tlg .ui2-tlb:not(.ui2-tlb-add) span { display: inline; } .ui2-tlg .ui2-tlb:not(.ui2-tlb-add) { padding: 0 10px; } }
@container (max-width: 860px) { .ui2-tlg-r .ui2-tlb span { display: none; } .ui2-tlg-r .ui2-tlb { padding: 0 9px; } }
@container (max-width: 640px) { .ui2-tlg .ui2-tlb span { display: none; } .ui2-tlg .ui2-tlb { padding: 0 9px; } }
html.ui2 #timelineBlocks .tlr-more[hidden] { display: none !important; }
/* an empty timeline: its ＋ opens the app's own 4 choices (tlAddPick) like the original (v17.2 - the old hide rule removed) */
/* phone: the bottom bar has 3 buttons now (Create / Library are the cards on the page) - spread evenly */
@media (max-width: 700px) { html.ui2 #ui2Nav { grid-template-columns: repeat(3, 1fr) !important; } }
/* the physics strength list shows in Tools on a phone too (the app hides its own copy there) */
html.ui2 #ui2Tools .ui2-extra > select, html.ui2 #ui2Tools #physAmt { display: inline-block !important; visibility: visible !important; }

/* v8: Ragdoll here + Get up on the timeline bar (the owner: "ragdoll a getup súvisia s časovou osou") */
html.ui2 .ui2-tlb[data-k="rag"] svg.ic, html.ui2 .ui2-tlb[data-k="getup"] svg.ic { stroke: var(--c-phys, #5ee08a); }
html.ui2 .ui2-tlb[hidden] { display: none !important; }
/* a narrow timeline: a group of the bar wraps inside too (720-800 px pushed Ragdoll / Get up off the screen) */
.ui2-tlbar > .ui2-tlg { flex: 0 1 auto; flex-wrap: wrap; row-gap: 4px; }

/* ================================================================ v8 Export in the right panel (not a window over the page) */
@media (min-width: 701px) {
  html.ui2.ui2-exp #app { grid-template-columns: var(--ui2-side) minmax(0, 1fr) var(--ui2-right) !important; }
  html.ui2.ui2-exp #expModal { position: fixed !important; top: var(--ui2-top) !important; right: 0 !important; bottom: 0 !important; left: auto !important;
    width: var(--ui2-right) !important; max-width: none !important; margin: 0 !important; z-index: 40 !important; transform: none !important;
    background: var(--ui2-panel) !important; border-left: 1px solid var(--ui2-line); border-top: 3px solid #ff8a3d; box-shadow: none !important; overflow: auto; }
  html.ui2.ui2-exp #expModal > #expForm { width: auto !important; max-width: none !important; min-height: 100%; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; background: transparent !important; box-sizing: border-box; }
  html.ui2.ui2-exp #expModal::backdrop { display: none; }
}
html.ui2 #projExport.on { box-shadow: 0 0 0 3px #ffffff33 !important; }
@media (min-width: 701px) and (max-width: 1000px) {
  html.ui2.ui2-exp #app { grid-template-columns: var(--ui2-side) minmax(0, 1fr) !important; }
  html.ui2.ui2-exp #expModal { box-shadow: -12px 0 30px #0009 !important; max-width: calc(100vw - 120px) !important; }
}
/* the video result preview (body.vm-only-preview): the app switches the timeline off - its tools, Block settings and Tools
 * are hidden like in the app (they did nothing: "keď uploadnem video, nefunguje nič"); the video window's own buttons stay */
html.ui2 body.vm-only-preview #ui2Tl, html.ui2 body.vm-only-preview #transport .ui2-tp,
html.ui2 body.vm-only-preview #ui2Tools { display: none !important; }
/* v17.2 Block settings stay as in the original: the app shows only its "Iba náhľad" note + Export / New / Add (#inspPreviewNote)
 * - hiding the whole panel left an empty dark column during every text / video / library preview */
html.ui2 body.vm-only-preview #insp > :not(.insp-head):not(#inspPreviewNote):not(#vmModal):not(#liveModal) { display: none !important; }
/* v17.2 the timeline bar in a preview: only the player stays (the original hides Marker / Ragdoll / snapping / history / zoom
 * there - they do nothing to a preview); the v14 grid rule below re-showed the whole bar */
html.ui2 body.vm-only-preview #ui2Tl > :is(.ui2-tlg-l, .ui2-tlrw) { visibility: hidden !important; pointer-events: none !important; }

/* ================================================================ v9 the playback row + the timeline bar, tidier */
/* playback: the time on the left, the player controls in the middle without boxes (the big ▶ in the centre),
   loop + speed after them, Block settings on the right */
html.ui2:not(.ui2-all) #time { order: 1 !important; min-width: 0 !important; padding: 0 4px 0 0 !important; font-size: 13px !important; color: #cfd6e6 !important; }
html.ui2:not(.ui2-all) #tpFrameWrap { order: 2 !important; }
html.ui2:not(.ui2-all) #tpStart { order: 3 !important; margin-left: auto !important; }
html.ui2:not(.ui2-all) #tpBack10 { order: 4 !important; } html.ui2:not(.ui2-all) #stepBack { order: 5 !important; }
html.ui2:not(.ui2-all) #play { order: 6 !important; margin: 0 6px !important; }
html.ui2:not(.ui2-all) #stepFwd { order: 7 !important; } html.ui2:not(.ui2-all) #tpFwd10 { order: 8 !important; }
html.ui2:not(.ui2-all) #tpEnd { order: 9 !important; margin-right: auto !important; }
html.ui2:not(.ui2-all) #transport .chk:has(#loop) { order: 10 !important; }
html.ui2:not(.ui2-all) #rate { order: 11 !important; }
html.ui2:not(.ui2-all) #transport > .ui2-tp { order: 12 !important; margin-left: 10px !important; flex: none !important; }
html.ui2:not(.ui2-all) :is(#tpStart, #tpBack10, #stepBack, #stepFwd, #tpFwd10, #tpEnd) { background: transparent !important; border: 0 !important; color: #aeb7c8 !important; min-width: 34px !important; }
html.ui2:not(.ui2-all) :is(#tpStart, #tpBack10, #stepBack, #stepFwd, #tpFwd10, #tpEnd):hover:not(:disabled) { background: #ffffff0d !important; color: #fff !important; }
@container (max-width: 760px) { html.ui2:not(.ui2-all) #transport > .ui2-tp { flex: none !important; order: 12 !important; } }
/* the timeline bar: buttons that belong together in one rounded group (no row of separate boxes) */
html.ui2 #ui2Tl .ui2-tlsep { display: none !important; }
html.ui2 #ui2Tl .ui2-tlg { gap: 0; padding: 2px; border: 1px solid var(--ui2-line); border-radius: 10px; background: var(--ui2-panel2); }
html.ui2 #ui2Tl .ui2-tlb, html.ui2 #ui2Tl .ui2-tlz > button { border: 0 !important; background: transparent !important; height: 30px !important; border-radius: 8px !important; }
html.ui2 #ui2Tl .ui2-tlb:hover:not(:disabled), html.ui2 #ui2Tl .ui2-tlz > button:hover:not(:disabled) { background: #ffffff10 !important; }
html.ui2 #ui2Tl .ui2-tlb.on, html.ui2 #ui2Tl .ui2-tlb.on:hover:not(:disabled) { background: #38c9ff26 !important; color: #fff; box-shadow: inset 0 0 0 1px #38c9ff88; }
html.ui2 #ui2Tl .ui2-tlg:first-child::before { content: attr(data-l); align-self: center; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--muted); padding: 0 6px 0 8px; text-transform: uppercase; }
/* Block settings: Weapon in the 8th cell of the tabs; the admin tools in one row under them */
html.ui2 #inspTabs .ui2-wtab svg.ic { width: 18px; height: 18px; stroke: #ffb13d; }
html.ui2 #inspTabs .ui2-wtab.on { border-color: #ffb13d !important; background: #ffb13d1f !important; }
.ui2-adm { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 8px 0 4px; padding: 6px; border: 1px dashed #ffd16655; border-radius: 10px; }
.ui2-adm[hidden] { display: none !important; }
.ui2-adm-l { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffd166; margin-right: 4px; }
.ui2-adm-l svg.ic { width: 13px; height: 13px; stroke: #ffd166; }
html.ui2 .ui2-admb { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--ui2-line); background: var(--ui2-panel2); color: #e8ecf5; font-size: 11.5px; font-weight: 700; cursor: pointer; }
html.ui2 .ui2-admb svg.ic { width: 14px; height: 14px; stroke: #ffd166; }
html.ui2 .ui2-admb:hover:not(:disabled) { background: #1f2738; border-color: #ffffff40; }
html.ui2 .ui2-admb.on, html.ui2 .ui2-admb.on:hover:not(:disabled) { background: #ffd1661f; border-color: #ffd166aa; }
html.ui2 .ui2-admb[hidden] { display: none !important; }
/* the block's own ✂ = Split in Block settings -> Trim (always open) */
html.ui2 #timelineBlocks .tlr-t[data-a="cut"] { display: none !important; }
/* the timeline's scroll bar (the owner: "chýba posúvnik"): the app's navigator (#tlNav - a strip with the blocks and a light
 * window to drag) under the timeline, full width; the app shows it only while the timeline is zoomed in */
html.ui2:not(.ui2-all) #transport > #tlNav[id]:not([hidden]):not(.ui2-x) { display: block !important; order: 31 !important; flex: 1 0 100% !important; margin: 4px 46px 0 0 !important; min-height: 14px; }
/* the admin row is the last full-width row of the tab grid (it fell to the bottom of #insp's grid) */
html.ui2 #inspTabs > .ui2-adm { grid-column: 1 / -1; margin: 2px 0 0; }
/* the admin buttons sit inside #inspTabs - the app's tab style (column, fixed height) must not reach them */
html.ui2 #inspTabs .ui2-adm .ui2-admb { display: inline-flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important;
  width: auto !important; height: 28px !important; min-height: 0 !important; padding: 0 9px !important; gap: 5px !important; margin: 0 !important; font-size: 11.5px !important; line-height: 1 !important; }
html.ui2 #inspTabs .ui2-adm .ui2-admb span { display: inline !important; font-size: 11.5px !important; margin: 0 !important; }
html.ui2 #inspTabs .ui2-adm .ui2-admb svg.ic { width: 14px !important; height: 14px !important; margin: 0 !important; }

/* ================================================================ v10 the playback row + timeline bar on one grid */
html.ui2:not(.ui2-all) #transport > .ui2-prow { order: 0; flex: 1 0 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
html.ui2.ui2-all #transport > .ui2-prow { display: contents; }
.ui2-pl, .ui2-pc, .ui2-pr { display: flex; align-items: center; min-width: 0; }
.ui2-pl { justify-self: start; gap: 10px; }
.ui2-pc { justify-self: center; gap: 2px; }
.ui2-pr { justify-self: end; gap: 8px; }
.ui2-pr > .ui2-tp { margin: 0 0 0 4px !important; }
html.ui2:not(.ui2-all) .ui2-pc > :is(#tpStart, #tpEnd) { margin: 0 !important; }
html.ui2:not(.ui2-all) .ui2-pc > #play { margin: 0 8px !important; }
html.ui2:not(.ui2-all) .ui2-pl > #time { padding: 0 !important; }
html.ui2:not(.ui2-all) .ui2-pr > .chk, html.ui2:not(.ui2-all) .ui2-pr > #rate { height: 36px !important; box-sizing: border-box; }
/* the timeline bar under it: the same left / right edges, one height for every group */
html.ui2:not(.ui2-all) #transport > .ui2-tlbar { gap: 10px; padding-top: 8px; }
html.ui2 #ui2Tl .ui2-tlg { height: 36px; box-sizing: border-box; }
html.ui2 #ui2Tl .ui2-tlg-r { margin-left: auto; }
/* narrow: the player gets its own centred line, time left / settings right under it */
@container (max-width: 620px) {
  html.ui2:not(.ui2-all) #transport > .ui2-prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 6px; }
  .ui2-pc { grid-column: 1 / -1; grid-row: 1; }
  .ui2-pl { grid-column: 1; grid-row: 2; } .ui2-pr { grid-column: 2; grid-row: 2; }
}
/* the side parts never narrower than what they hold (at 1366 the right one ran over the player) */
html.ui2:not(.ui2-all) #transport > .ui2-prow { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
@container (max-width: 860px) {
  html.ui2:not(.ui2-all) #transport > .ui2-prow { grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr); row-gap: 6px; }
  .ui2-pc { grid-column: 1 / -1; grid-row: 1; }
  .ui2-pl { grid-column: 1; grid-row: 2; } .ui2-pr { grid-column: 2; grid-row: 2; }
}
html.ui2:not(.ui2-all) .ui2-pr > .ui2-tp { order: 20 !important; }  /* Block settings at the far right edge (mirrors the time on the left) */
/* phone: the app moves the playback items into its own row (#phTr) - the timeline bar is hidden wherever it lands */
@media (max-width: 700px) { html.ui2 #ui2Tl { display: none !important; } }

/* ================================================================ v11 the timeline panel: one toolbar row above the timeline */
html.ui2:not(.ui2-all) #transport > .ui2-tp, html.ui2:not(.ui2-all) #transport > .ui2-prow { display: none !important; }   /* (Block settings: the edge tab) */
html.ui2:not(.ui2-all) #transport > .tp-g > :is(#tpBack10, #tpFwd10, #tpFrameWrap) { display: none !important; }      /* (Shift + ◁ ▷ = 10 frames) */
html.ui2:not(.ui2-all) #transport { padding: 10px 14px 10px !important; row-gap: 8px !important; }
html.ui2:not(.ui2-all) #transport::before { display: none !important; }
html.ui2:not(.ui2-all) #transport > .ui2-tlbar { order: 0 !important; flex: 1 0 100% !important; display: grid !important; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center; gap: 12px; margin: 0 !important; padding: 0 0 10px !important; border: 0 !important; border-bottom: 1px solid var(--ui2-line) !important; }
.ui2-tlbar > .ui2-tlg-l { justify-self: start; }
.ui2-tlbar > .ui2-pc { justify-self: center; }
.ui2-tlbar > .ui2-tlrw { justify-self: end; display: flex; align-items: center; gap: 8px; }
/* every group the same: 38 px high, one rounded frame, buttons inside without their own frames */
html.ui2 #ui2Tl .ui2-tlg, html.ui2 #ui2Tl .ui2-pc { height: 38px; box-sizing: border-box; display: flex; align-items: center; gap: 2px; padding: 3px; margin: 0;
  border: 1px solid var(--ui2-line); border-radius: 12px; background: #121826; }
html.ui2 #ui2Tl .ui2-tlb, html.ui2 #ui2Tl .ui2-tlz > button, html.ui2 #ui2Tl .ui2-pc > button { height: 30px !important; min-width: 30px !important; padding: 0 10px !important; border: 0 !important; border-radius: 9px !important;
  background: transparent !important; color: #cfd6e6 !important; font-size: 12px; font-weight: 700; box-shadow: none !important; margin: 0 !important; }
html.ui2 #ui2Tl .ui2-tlz > button, html.ui2 #ui2Tl .ui2-pc > button:not(#play) { padding: 0 !important; width: 30px; }
html.ui2 #ui2Tl :is(.ui2-tlb, .ui2-tlz > button, .ui2-pc > button:not(#play)):hover:not(:disabled) { background: #ffffff12 !important; color: #fff !important; }
html.ui2 #ui2Tl .ui2-tlb.on, html.ui2 #ui2Tl .ui2-tlb.on:hover:not(:disabled) { background: #38c9ff24 !important; color: #fff !important; box-shadow: inset 0 0 0 1px #38c9ff80 !important; }
html.ui2 #ui2Tl .ui2-tlg-l svg.ic { stroke: #ffb13d; } html.ui2 #ui2Tl .ui2-tlb[data-k="rag"] svg.ic, html.ui2 #ui2Tl .ui2-tlb[data-k="getup"] svg.ic { stroke: #5ee08a; }
html.ui2 #ui2Tl .ui2-tlg-r svg.ic { stroke: #38c9ff; }
/* the player in the middle: time | ⏮ ◁ ▶ ▷ ⏭ | loop speed - the round ▶ a little larger, set into the frame */
html.ui2 #ui2Tl .ui2-pc { gap: 1px; padding: 3px 6px; }
html.ui2 #ui2Tl .ui2-pc > #time { order: 0 !important; font: 700 12.5px ui-monospace, monospace !important; color: #e8ecf5 !important; padding: 0 10px 0 4px !important; min-width: 0 !important; white-space: nowrap; }
html.ui2 #ui2Tl .ui2-pc > #play { width: 40px !important; height: 40px !important; min-width: 40px !important; border-radius: 50% !important; margin: -4px 6px !important; padding: 0 !important;
  background: linear-gradient(135deg, #38c9ff, #2f7bff) !important; box-shadow: 0 4px 14px #2f7bff55 !important; }
html.ui2 #ui2Tl .ui2-pc > #play:hover:not(:disabled) { filter: brightness(1.1); }
html.ui2 #ui2Tl .ui2-pc > .chk { order: 0 !important; height: 30px !important; margin: 0 0 0 8px !important; padding: 0 6px !important; border: 0 !important; border-left: 1px solid var(--ui2-line) !important; border-radius: 0 !important; }
html.ui2 #ui2Tl .ui2-pc > #rate { order: 0 !important; height: 30px !important; border: 0 !important; background: transparent !important; color: #cfd6e6 !important; padding: 0 4px !important; }
html.ui2 #ui2Tl .ui2-pc > :is(#tpStart, #stepBack, #stepFwd, #tpEnd) { order: 0 !important; color: #aeb7c8 !important; }
/* narrower: labels go (icons + tooltips stay) - first the view group, then the add group; at the end the player on its own line */
#transport { container-type: inline-size; }
@container (max-width: 1250px) { #ui2Tl .ui2-tlg-r .ui2-tlb span { display: none !important; } #ui2Tl .ui2-tlg-r .ui2-tlb { padding: 0 !important; width: 30px; } }
@container (max-width: 1000px) { #ui2Tl .ui2-tlg-l .ui2-tlb span { display: none !important; } #ui2Tl .ui2-tlg-l .ui2-tlb { padding: 0 !important; width: 30px; } }
@container (max-width: 720px) {
  html.ui2:not(.ui2-all) #transport > .ui2-tlbar { grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr); row-gap: 8px; }
  .ui2-tlbar > .ui2-pc { grid-column: 1 / -1; grid-row: 1; }
  .ui2-tlbar > .ui2-tlg-l { grid-column: 1; grid-row: 2; } .ui2-tlbar > .ui2-tlrw { grid-column: 2; grid-row: 2; }
}
/* the slim tab on the right edge: Block settings back after it was closed */
.ui2-itab-edge { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 45; writing-mode: vertical-rl; display: flex; align-items: center; gap: 8px;
  padding: 14px 7px !important; border-radius: 10px 0 0 10px !important; border: 1px solid #93a4c888 !important; border-right: 0 !important; background: #10221f !important; color: #8ff0d8 !important;
  font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: -6px 0 18px #0007; }
.ui2-itab-edge svg.ic { width: 15px; height: 15px; stroke: #93a4c8; transform: rotate(90deg); }
.ui2-itab-edge:hover:not(:disabled) { background: #163029 !important; }
.ui2-itab-edge[hidden] { display: none !important; }
html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > #time { order: 1 !important; }
html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > #tpStart { order: 2 !important; margin: 0 !important; }
html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > #stepBack { order: 3 !important; }
html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > #play { order: 4 !important; }
html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > #stepFwd { order: 5 !important; }
html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > #tpEnd { order: 6 !important; margin: 0 !important; }
html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > .chk { order: 7 !important; }
html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > #rate { order: 8 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > .chk:has(#loop) { order: 7 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #rate { order: 8 !important; }
/* very narrow timeline panel: player, add group, view + zoom - each on its own centred line */
@container (max-width: 520px) {
  html.ui2:not(.ui2-all) #transport > .ui2-tlbar { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ui2-tlbar > .ui2-pc { grid-column: 1; grid-row: 1; }
  .ui2-tlbar > .ui2-tlg-l { grid-column: 1; grid-row: 2; justify-self: center; }
  .ui2-tlbar > .ui2-tlrw { grid-column: 1; grid-row: 3; justify-self: center; }
}
/* both side groups the same: labels on both when there is room, icons on both when not (not one with and one without) */
@container (max-width: 1300px) {
  #ui2Tl .ui2-tlg-l .ui2-tlb span, #ui2Tl .ui2-tlg-r .ui2-tlb span { display: none !important; }
  #ui2Tl .ui2-tlg-l .ui2-tlb, #ui2Tl .ui2-tlg-r .ui2-tlb { padding: 0 !important; width: 30px; }
}
html.ui2 #phTr > .ph-tr-g[data-ui2empty="1"] { display: none !important; }
/* ================================================================ v12 each panel its own colour (the owner: "dolíšiť farebne všetky panely")
 * a light tint of the panel's colour + a coloured edge toward the preview; the preview itself stays neutral dark */
html.ui2 {
  --t-create: color-mix(in srgb, var(--c-create) 7%, #0f131d); --t-play: color-mix(in srgb, var(--c-play) 6%, #0d121b);
  --t-block: color-mix(in srgb, var(--c-block) 6%, #11151c); --t-exp: color-mix(in srgb, #ff8a3d 6%, #15110f);
}
/* left: create (violet) */
html.ui2 #side { background: linear-gradient(180deg, color-mix(in srgb, var(--c-create) 11%, #0f131d) 0, var(--t-create) 260px) !important;
  border-right: 2px solid color-mix(in srgb, var(--c-create) 55%, transparent) !important; }
/* bottom: playback + timeline (cyan) */
html.ui2:not(.ui2-all) #transport { background: linear-gradient(180deg, color-mix(in srgb, var(--c-play) 10%, #0d121b) 0, var(--t-play) 70px) !important; }
html.ui2:not(.ui2-all) #main > #transport, html.ui2:not(.ui2-all) #transport { border-top: 2px solid color-mix(in srgb, var(--c-play) 70%, transparent) !important; }
html.ui2 #ui2Tl .ui2-tlg, html.ui2 #ui2Tl .ui2-pc { background: color-mix(in srgb, var(--c-play) 7%, #10161f) !important; border-color: color-mix(in srgb, var(--c-play) 22%, var(--ui2-line)) !important; }
html.ui2:not(.ui2-all) #transport > .ui2-tlbar { border-bottom-color: color-mix(in srgb, var(--c-play) 22%, var(--ui2-line)) !important; }
/* right: Block settings (teal) */
html.ui2 #insp { background: linear-gradient(180deg, color-mix(in srgb, var(--c-block) 10%, #11151c) 0, var(--t-block) 260px) !important;
  border-left: 2px solid color-mix(in srgb, var(--c-block) 55%, transparent) !important; }
html.ui2 #insp .insp-head { border-bottom-color: color-mix(in srgb, var(--c-block) 60%, transparent) !important; }
/* right, when open instead: Export (orange) and Tools (green - phone) */
@media (min-width: 701px) { html.ui2.ui2-exp #expModal { background: linear-gradient(180deg, color-mix(in srgb, #ff8a3d 10%, #15110f) 0, var(--t-exp) 260px) !important;
  border-left: 2px solid #ff8a3d88 !important; } }
html.ui2.ui2-tools #ui2Tools { background: linear-gradient(180deg, color-mix(in srgb, var(--c-tools) 8%, #0f1512) 0, #10141a 260px) !important; }
/* the preview between them: neutral, a hair darker so the coloured panels frame it */
html.ui2 #view { background: #0a0d13; }
/* the space under the timeline belongs to the timeline panel too (it was a plain dark strip) */
html.ui2:not(.ui2-all) #main { background: var(--t-play) !important; }
/* a little stronger tints (v12 was too faint to tell the panels apart) */
html.ui2 { --t-create: color-mix(in srgb, var(--c-create) 11%, #0f131d); --t-play: color-mix(in srgb, var(--c-play) 9%, #0d121b);
  --t-block: color-mix(in srgb, var(--c-block) 10%, #11151c); --t-exp: color-mix(in srgb, #ff8a3d 10%, #15110f); }
html.ui2 #side { background: linear-gradient(180deg, color-mix(in srgb, var(--c-create) 17%, #0f131d) 0, var(--t-create) 300px) !important; }
html.ui2:not(.ui2-all) #transport { background: linear-gradient(180deg, color-mix(in srgb, var(--c-play) 14%, #0d121b) 0, var(--t-play) 80px) !important; }
html.ui2 #insp { background: linear-gradient(180deg, color-mix(in srgb, var(--c-block) 15%, #11151c) 0, var(--t-block) 300px) !important; }
@media (min-width: 701px) { html.ui2.ui2-exp #expModal { background: linear-gradient(180deg, color-mix(in srgb, #ff8a3d 15%, #15110f) 0, var(--t-exp) 300px) !important; } }
/* the timeline panel much darker (the owner: "v paneli s časovou osou daj oveľa viac tmavý") - a deep blue-black, its colour
 * only in the top edge and the frames of its groups */
html.ui2 { --t-play: #070a10; }
html.ui2:not(.ui2-all) #transport { background: linear-gradient(180deg, #0a1018 0, #070a10 60px) !important; }
html.ui2:not(.ui2-all) #main { background: #070a10 !important; }
html.ui2 #ui2Tl .ui2-tlg, html.ui2 #ui2Tl .ui2-pc { background: #0c121b !important; }

/* the value key's small editor (same look as the app's pose-key editor) */
html.ui2 #ui2KeyPop { width: 270px; z-index: 70; }
html.ui2 #ui2KeyPop .pk-joints { line-height: 1.4; max-height: 120px; overflow: auto; }
html.ui2 #ui2KeyPop .btnrow { display: flex; gap: 6px; margin-top: 8px; }
html.ui2 #ui2KeyPop .btnrow button { flex: 1 1 auto; padding: 6px 8px; }
html.ui2 #ui2KeyPop .btnrow button[data-x="del"] { flex: 0 0 auto; }
html.ui2 #ui2KeyPop .btnrow { flex-wrap: nowrap; }
html.ui2 #ui2KeyPop .btnrow button { white-space: nowrap; padding: 6px 7px; font-size: 12px; min-width: 0; }
html.ui2 #ui2KeyPop .btnrow button[data-x="del"] { width: 34px; padding: 6px 0; }

/* v13 (function test 2026-11-22): every function of the original reachable once */
/* player: frame field after the time, previous / next block next to start / end */
html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > #tpFrameWrap { order: 1 !important; display: inline-flex !important; align-items: center; gap: 4px; margin: 0 6px 0 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: #8b95a8; font-size: 11px; }
html.ui2 #ui2Tl .ui2-pc > #tpFrameWrap input { width: 52px; height: 26px; padding: 0 4px; border-radius: 7px; border: 1px solid #ffffff1a; background: #ffffff08; color: #e8ecf5; font: 600 12px ui-monospace, monospace; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpPrevBlock { order: 2 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpNextBlock { order: 6 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > :is(#tpPrevBlock, #tpNextBlock) { display: inline-flex !important; align-items: center; gap: 3px; width: auto !important; padding: 0 7px !important; font-size: 11.5px; color: #aeb7c8 !important; background: transparent !important; border: 0 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > :is(#tpPrevBlock, #tpNextBlock):hover:not(:disabled) { background: #ffffff12 !important; color: #fff !important; }
html.ui2 #ui2Tl .ui2-pc > #tpPrevBlock svg { width: 13px; height: 13px; }
@container (max-width: 1300px) { html.ui2 #ui2Tl .ui2-pc > #tpFrameWrap > span { display: none; } }
@container (max-width: 720px) { html.ui2:not(.ui2-all) #ui2Tl .ui2-pc > #tpFrameWrap { display: none !important; } }
/* (the app's 🔍 % menu stays out: in the rich timeline it holds only − + ⤢ = the zoom group) */
/* admin row: Magic Heal scope + the duel's hit indicator / opponent */
html.ui2 #ui2Adm .ui2-adms { height: 28px; border-radius: 7px; padding: 0 4px; background: #ffffff08; border: 1px solid #ffffff1a; color: #e8ecf5; font-size: 11.5px; }
html.ui2 #ui2Adm .ui2-admc { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #cfd6e6; padding: 0 4px; margin: 0; }
html.ui2 #ui2Adm .ui2-admc[hidden], html.ui2 #ui2Adm .ui2-adms[hidden] { display: none !important; }
html.ui2 #inspTabs #ui2Adm .ui2-adms { width: auto !important; flex: 0 0 auto; max-width: 110px; }

/* v13 duplicates (duplicate test 2026-11-22): one place for each function */
html.ui2 #ui2Back { display: none !important; }                                   /* = the "From text" card, always on screen */
html.ui2 #dock :is([data-act="undo"], [data-act="redo"]) { display: none !important; } /* = Undo / Redo in the top bar */
html.ui2 #dock #dockToggle { display: none !important; }                          /* = History / Edits on the timeline bar + its ✕ */
/* Block settings never wider than its column (its grid column took the widest content - Ragdoll's death presets cut on the right) */
html.ui2 #insp .death-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
/* v13.1 player: time | ‹ frame › | ⏮ ◁ ▶ ▷ ⏭ | loop speed - the block jumps are small chevrons around the frame field */
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #time { order: 1 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpPrevBlock { order: 2 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpFrameWrap { order: 3 !important; margin: 0 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpNextBlock { order: 4 !important; margin-right: 6px !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpStart { order: 5 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #stepBack { order: 6 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #play { order: 7 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #stepFwd { order: 8 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpEnd { order: 9 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > .chk:has(#loop) { order: 10 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #rate { order: 11 !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > :is(#tpPrevBlock, #tpNextBlock) { font-size: 0 !important; width: 20px !important; min-width: 20px !important; padding: 0 !important; justify-content: center; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > :is(#tpPrevBlock, #tpNextBlock) svg { display: none; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpPrevBlock::before { content: '‹'; font-size: 17px; line-height: 1; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpNextBlock::before { content: '›'; font-size: 17px; line-height: 1; }
html.ui2 #ui2Tl .ui2-pc > #tpFrameWrap > span { display: none !important; }
html.ui2 #ui2Tl .ui2-pc > #tpFrameWrap input { width: 46px; }
@container (max-width: 760px) { html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > #tpFrameWrap { display: none !important; } }
/* the three small buttons under the cards fit a narrow left column (they pushed 5 px under its scrollbar at <= 1100 px) */
html.ui2 .ui2-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.ui2 .ui2-mini { min-width: 0; overflow: hidden; }
html.ui2 .ui2-mini > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 300px) { html.ui2 .ui2-mini { gap: 4px; padding: 10px 4px; } }
/* v13.2 (owner 2026-11-22) -------------------------------------------------------------------------------------------- */
/* Cards: the strip got a 1 px row (an auto grid row with overflow hidden collapses) - it now has its own height */
html.ui2.ui2-strip:not(.ui2-all) #strip { height: min(200px, 26vh) !important; min-height: 120px; overflow: auto !important; }
/* icons in the middle of the icon-only buttons (the 10 px side padding of the labelled look pushed them 2.5 px right) */
@container (max-width: 1300px) {
  html.ui2 #ui2Tl .ui2-tlg .ui2-tlb { padding: 0 !important; gap: 0 !important; justify-content: center !important; width: 34px !important; }
}
html.ui2 #ui2Tl .ui2-tlb { justify-content: center; }
/* a bit bigger icons on the whole timeline panel */
html.ui2 #ui2Tl .ui2-tlg, html.ui2 #ui2Tl .ui2-pc { height: 42px !important; }
html.ui2 #ui2Tl :is(.ui2-tlb, .ui2-tlz > button, .ui2-pc > button:not(#play)) { height: 34px !important; min-width: 34px !important; }
html.ui2 #ui2Tl :is(.ui2-tlz > button, .ui2-pc > button:not(#play):not(#tpPrevBlock):not(#tpNextBlock)) { width: 34px !important; }
html.ui2 #ui2Tl :is(.ui2-tlb, .ui2-tlz > button, .ui2-pc > button) svg { width: 18px !important; height: 18px !important; }
html.ui2 #ui2Tl .ui2-pc > #play { width: 44px !important; height: 44px !important; min-width: 44px !important; }
html.ui2 #ui2Tl .ui2-pc > #play svg { width: 17px !important; height: 17px !important; }
html.ui2 #ui2Tl .ui2-pc > .chk:has(#loop) svg { width: 17px; height: 17px; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > :is(#tpPrevBlock, #tpNextBlock) { width: 22px !important; min-width: 22px !important; }
html.ui2:not(.ui2-all) #transport #ui2Tl .ui2-pc > :is(#tpPrevBlock, #tpNextBlock)::before { font-size: 21px; }
html.ui2 #ui2Tl .ui2-pc > #time { font-size: 13.5px !important; }
html.ui2 #ui2Tl .ui2-pc > #tpFrameWrap input { height: 28px; font-size: 13px; }
/* Block settings: steel blue-grey instead of the green-teal ("nepáči sa mi tá zelená") */
html.ui2 { --c-block: #93a4c8; }
/* v14 timeline bar layout - ONE rule set for every width (the owner: "pri každej šírke pekne rovnomerne rozmiestnené a
   zarovnané"); overrides the earlier layers. The boxes' edges line up with each other and with the timeline.
   wide:   [    add    ]  [ player ]  [ view ][ zoom ]     (the two sides equally wide - the player exactly in the middle)
   medium: [                 player                 ]
           [    add     ][    view    ][    zoom    ]      (3 equal boxes, icons spread evenly)
   narrow: every box full width, one under the other */
html.ui2:not(.ui2-all) #transport > #ui2Tl.ui2-tlbar { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  column-gap: 8px !important; row-gap: 8px !important; align-items: center !important; justify-items: stretch !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlg-l { grid-column: 1 !important; grid-row: 1 !important; justify-self: stretch !important; justify-content: space-evenly !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc { grid-column: 2 !important; grid-row: 1 !important; justify-self: center !important; justify-content: center !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw { grid-column: 3 !important; grid-row: 1 !important; justify-self: stretch !important; display: flex !important; gap: 8px !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw > .ui2-tlg-r { flex: 1 1 auto !important; justify-content: space-evenly !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw > .ui2-tlz { flex: 0 0 auto !important; justify-content: space-evenly !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl :is(.ui2-tlg, .ui2-pc) { box-sizing: border-box; min-width: max-content; }
/* (one row: the side buttons 32 px so the row fits a 1910 px screen with both side panels open) */
@container (max-width: 1560px) { /* (icon-only buttons; with labels (a wide timeline) they keep their own width) */
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlg-l > .ui2-tlb, html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw > .ui2-tlg > button { width: 32px !important; min-width: 32px !important; }
}
html.ui2:not(.ui2-all) #transport > #ui2Tl .ui2-tlb { width: auto; }
@container (max-width: 1110px) {
  html.ui2:not(.ui2-all) #transport > #ui2Tl.ui2-tlbar { grid-template-columns: repeat(3, minmax(max-content, 1fr)) !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc { grid-column: 1 / -1 !important; grid-row: 1 !important; justify-self: stretch !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw { display: contents !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlg-l { grid-column: 1 !important; grid-row: 2 !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw > .ui2-tlg-r { grid-column: 2 !important; grid-row: 2 !important; justify-self: stretch !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw > .ui2-tlz { grid-column: 3 !important; grid-row: 2 !important; justify-self: stretch !important; }
}
@container (max-width: 440px) {
  html.ui2:not(.ui2-all) #transport > #ui2Tl.ui2-tlbar { grid-template-columns: minmax(0, 1fr) !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlg-l { grid-column: 1 !important; grid-row: 2 !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw > .ui2-tlg-r { grid-column: 1 !important; grid-row: 3 !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw > .ui2-tlz { grid-column: 1 !important; grid-row: 4 !important; }
}
@container (max-width: 440px) {  /* (narrow: the player row tighter so it never runs out of its box) */
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc { min-width: 0 !important; padding: 3px 4px !important; gap: 0 !important; justify-content: space-evenly !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc > button:not(#play):not(#tpPrevBlock):not(#tpNextBlock) { width: 28px !important; min-width: 28px !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc > #play { width: 38px !important; height: 38px !important; min-width: 38px !important; margin: -2px 2px !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc > #time { font-size: 11.5px !important; padding: 0 4px 0 2px !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc > .chk { margin-left: 2px !important; padding: 0 3px !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc > #rate { padding: 0 1px !important; }
}
/* (the app gives #time and some playback buttons auto / side margins - inside the player box only the gap spaces them) */
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc > :not(#play) { margin-left: 0 !important; margin-right: 0 !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc { gap: 1px !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc > #time { margin-right: 4px !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-pc > .chk:has(#loop) { margin-left: 6px !important; }
/* labels on the side buttons only where the one row has room for them (both sides labelled = ~1560 px of timeline) */
@container (max-width: 1560px) {
  html.ui2:not(.ui2-all) #transport > #ui2Tl :is(.ui2-tlg-l, .ui2-tlg-r) .ui2-tlb span { display: none !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl :is(.ui2-tlg-l, .ui2-tlg-r) .ui2-tlb { padding: 0 !important; gap: 0 !important; justify-content: center !important; }
}

/* v14.1 the empty timeline: the app's ＋ Add the first animation is a button again (it opens 4 cards: text, video, own, library) */
html.ui2 #tlEmpty { pointer-events: auto !important; cursor: pointer !important; }
html.ui2 #tlEmpty > b { display: inline-grid !important; }
/* Trim: 5 equal buttons, icon over label on one line (the "…" of Precise pushed its label lower) */
html.ui2 #inspBody .iconrow { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; }
html.ui2 #inspBody .iconrow > button { font-size: 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 6px !important; }
html.ui2 #inspBody .iconrow > button > span { font-size: 10.5px !important; line-height: 1.15; }
html.ui2 #inspBody .iconrow > button > svg { width: 17px !important; height: 17px !important; margin: 0 !important; }
html.ui2 #inspBody .sl[hidden] { display: none !important; }
html.ui2 #inspBody .iconrow > button { line-height: 0 !important; }   /* (the stray "…" text of Precise took a 17 px line) */
html.ui2 #inspBody .iconrow > button > span { line-height: 1.15 !important; }
html.ui2 #inspBody .iconrow > button { gap: 0 !important; }
html.ui2 #inspBody .iconrow > button > svg { margin: 0 0 6px !important; }
/* v14.3 the add group always with labels (the owner: "k týmto ikonám daj aj text"); its box takes the room it needs
   (the 3 boxes stay equal where all fit, the grid is minmax(max-content, 1fr)); one under another below 600 px */
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlg-l > .ui2-tlb { width: auto !important; min-width: 0 !important; padding: 0 9px !important; gap: 5px !important; }
html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlg-l > .ui2-tlb > span { display: inline !important; font-size: 12px; white-space: nowrap; }
@container (max-width: 600px) {
  html.ui2:not(.ui2-all) #transport > #ui2Tl.ui2-tlbar { grid-template-columns: minmax(0, 1fr) !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlg-l { grid-column: 1 !important; grid-row: 2 !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw > .ui2-tlg-r { grid-column: 1 !important; grid-row: 3 !important; }
  html.ui2:not(.ui2-all) #transport > #ui2Tl > .ui2-tlrw > .ui2-tlz { grid-column: 1 !important; grid-row: 4 !important; }
}

/* ===================================================================================================================
   v15 the duel page (2026-11-22, "nový dizajn pre súbojový systém, prehľadný, jednoduchý, pekný")
   third create card ⚔ Súboj (combat + admin) -> one page: header + status · 1 Útoky · 2 Reakcie (+ ⋯ Viac) · 3 Pozri · ⚙
   =================================================================================================================== */
html.ui2 { --c-duel: #ff7a45; }
/* the card: only in combat mode, never in the "people" view; three cards then */
html.ui2 #ui2Hero .ui2-duel { display: none; }
html.ui2:not(.ui2-cust) body[data-mode="combat"] #ui2Hero .ui2-duel { display: flex; }
html.ui2:not(.ui2-cust) body[data-mode="combat"] #ui2Hero .ui2-cards { grid-template-columns: 1fr 1fr 1fr; }
html.ui2 #ui2Hero .ui2-duel { background: linear-gradient(150deg, #ff7a45 0%, #c2410c 100%) !important; border-color: #ffb08a66 !important; }
html.ui2 #ui2Hero .ui2-duel.on { box-shadow: 0 0 0 2px #fff, 0 8px 24px #ff7a4555 !important; }
html.ui2 #ui2Hero .ui2-duel .ui2-pill { background: #ffd34d; color: #3a2400; }
html.ui2:not(.ui2-cust) body[data-mode="combat"] #ui2Hero .ui2-cards .ui2-card b { font-size: 15px; }
html.ui2:not(.ui2-cust) body[data-mode="combat"] #ui2Hero .ui2-cards .ui2-card small { font-size: 10.5px; }

/* the page itself: shown only on the duel page */
html.ui2 #ui2Duel { display: none; }
html.ui2:not(.ui2-all) #side[data-ui2="duel"] #ui2Duel { display: block; }
html.ui2:not(.ui2-all) #side[data-ui2="duel"] > .tab { display: none !important; }
html.ui2 #ui2Duel { background: var(--ui2-panel2); border: 1px solid var(--ui2-line); border-top: 3px solid var(--c-duel); border-radius: 14px; padding: 0 12px 12px; margin-top: 10px; }
html.ui2 #ui2Duel .ui2-dh { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 11px 0 8px; background: var(--ui2-panel2); }
html.ui2 #ui2Duel .ui2-dh b { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-duel); }
html.ui2 #ui2Duel .ui2-dh svg { width: 16px; height: 16px; }
html.ui2 #ui2Duel .ui2-dtag { font-size: 10px; font-weight: 700; color: #3a2400; background: #ffd34d; border-radius: 99px; padding: 2px 8px; }
html.ui2 #ui2Duel .ui2-dstat { position: sticky; top: 38px; z-index: 3; background: var(--ui2-panel2); }
html.ui2 #ui2Duel .ui2-dstat #duelInfo:empty { display: none; }
html.ui2 #ui2Duel .ui2-dstat #duelInfo { margin: 0 0 8px; padding: 7px 10px; border-radius: 9px; background: #ffffff0a; border: 1px solid var(--ui2-line); font-size: 12px; }

/* the app's card inside: no own frame, its header shown by the page; steps as clean sections */
html.ui2 #ui2Duel #duelCard { display: block !important; background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
html.ui2 #ui2Duel #duelCard > .duel-h, html.ui2 #ui2Duel #duelCard > .duel-sub { display: none !important; }
html.ui2 #ui2Duel #duelCard { display: grid !important; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
html.ui2 #ui2Duel #duelCard > .duel-rw { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; font-size: 12px; color: #aeb7c8; }
html.ui2 #ui2Duel #duelCard > .duel-rw select { height: 36px; border-radius: 9px; }
html.ui2 #ui2Duel #duelCard > #duelRandom { grid-column: 2; grid-row: 1; height: 36px; margin: 0 !important; width: 100%; border-radius: 10px !important; font-weight: 700; background: linear-gradient(135deg, #ff7a45, #e8590c) !important; border: 0 !important; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
html.ui2 #ui2Duel #duelCard > #duelRandom:hover:not(:disabled) { filter: brightness(1.1); background: linear-gradient(135deg, #ff7a45, #e8590c) !important; }
html.ui2 #ui2Duel #duelCard > .duel-step { grid-column: 1 / -1; margin: 6px 0 0 !important; padding: 12px 0 0 !important; border: 0 !important; border-top: 1px solid var(--ui2-line) !important; background: none !important; }
html.ui2 #ui2Duel .duel-body { padding: 0 !important; }
html.ui2 #ui2Duel .duel-t { display: flex; align-items: center; gap: 8px; margin: 0 0 9px !important; font-weight: 700; font-size: 13px; color: #e8ecf5; }
html.ui2 #ui2Duel .duel-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-duel); color: #fff; font-size: 12px; font-weight: 800; }
html.ui2 #ui2Duel .duel-gen { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
html.ui2 #ui2Duel #duelPrompt { min-height: 54px; border-radius: 10px; resize: vertical; }
html.ui2 #ui2Duel #duelGo { align-self: stretch; border-radius: 10px !important; padding: 0 14px !important; display: inline-flex; align-items: center; gap: 6px; }
html.ui2 #ui2Duel #duelChips { margin-top: 8px; }
html.ui2 #ui2Duel #duelChips .tlp-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
html.ui2 #ui2Duel #duelChips .tlp-grid button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 6px !important; font-size: 11.5px; border-radius: 8px !important; }
html.ui2 #ui2Duel #duelLib { margin-top: 6px; font-size: 12px; background: none !important; border: 0 !important; color: #9fb4ff !important; padding: 2px 0 !important; display: inline-flex; align-items: center; gap: 5px; }
/* step 2: the 7 reactions as one tidy 4 + 3 tile grid */
html.ui2 #ui2Duel #duelReact { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
html.ui2 #ui2Duel #duelReact > button { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 56px; padding: 6px 2px !important; border-radius: 10px !important; font-size: 11px; line-height: 1.15; text-align: center; }
html.ui2 #ui2Duel #duelReact > button > i { font-style: normal; display: inline-grid; place-items: center; }
html.ui2 #ui2Duel #duelReact > button svg { width: 18px; height: 18px; }
html.ui2 #ui2Duel #duelReact > button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
html.ui2 #ui2Duel #duelReact > button.on { background: #ff7a4524 !important; border-color: #ff7a45 !important; color: #fff !important; }
html.ui2 #ui2Duel .duel-apply { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
html.ui2 #ui2Duel .duel-apply #duelTarget { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #cfd6e6; background: #ffffff08; border: 1px solid var(--ui2-line); border-radius: 99px; padding: 4px 10px; }
html.ui2 #ui2Duel #duelForce { margin-top: 8px; }
html.ui2 #ui2Duel #duelForce .duel-gaze, html.ui2 #ui2Duel label:has(> #duelGaze) { display: none !important; } /* (#setGaze in ⚙ is the one place) */
html.ui2 #ui2Duel .duel-note { display: none !important; }                                                       /* (its text = the reach line's tooltip) */
/* ⋯ more on reactions, 3 Pozri, ⚙ settings */
html.ui2 #ui2Duel details.ui2-dmore, html.ui2 #ui2Duel details.ui2-dset { margin-top: 10px; border: 1px solid var(--ui2-line); border-radius: 10px; background: #ffffff05; }
html.ui2 #ui2Duel details > summary { cursor: pointer; list-style: none; padding: 9px 11px; font-size: 12.5px; font-weight: 600; color: #cfd6e6; display: flex; align-items: center; gap: 7px; }
html.ui2 #ui2Duel details > summary::-webkit-details-marker { display: none; }
html.ui2 #ui2Duel details > summary::after { content: '›'; margin-left: auto; transition: transform .15s; color: #8b95a8; }
html.ui2 #ui2Duel details[open] > summary::after { transform: rotate(90deg); }
html.ui2 #ui2Duel details > summary svg { width: 15px; height: 15px; }
html.ui2 #ui2Duel .ui2-dmore-b, html.ui2 #ui2Duel .ui2-dsec { padding: 0 11px 10px; }
html.ui2 #ui2Duel .ui2-dview { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ui2-line); }
html.ui2 #ui2Duel .ui2-dview-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
html.ui2 #ui2Duel .ui2-dview-b > label.chk { margin: 0 !important; font-size: 12.5px; }
html.ui2 #ui2Duel .ui2-dview-b > #duelChar { flex: 1 0 100%; font-size: 11.5px; color: #8b95a8; }
html.ui2 #ui2Duel .ui2-dsh { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-duel); margin: 6px 0 6px; }
html.ui2 #ui2Duel .ui2-dsec + .ui2-dsec { border-top: 1px solid var(--ui2-line); padding-top: 6px; }
html.ui2 #ui2Duel .ui2-dsec-try .ui2-dsh { color: #ffd34d; }
html.ui2 #ui2Duel .ui2-dsec:not(:has(> :not(.ui2-dsh))) { display: none; }       /* (an empty section - e.g. Kolízia only with advanced) */
html.ui2 #ui2Duel #setOpp label:has(#setContact) { display: none !important; }  /* (Zásah in 3 Pozri is the one place) */
html.ui2 #ui2Duel .ui2-dlink { margin: 4px 11px 11px; background: none !important; border: 0 !important; color: #9fb4ff !important; padding: 0 !important; font-size: 12px; }
html.ui2 #ui2Duel .ui2-dlink:hover:not(:disabled) { text-decoration: underline; background: none !important; }
/* the boxes the app keeps elsewhere are empty once their contents sit on the duel page */
html.ui2:not(.ui2-all) [data-ui2emptied="1"] { display: none !important; }
/* the card's own text lines on a narrow column */
@container ui2side (max-width: 345px) {
  html.ui2 #ui2Duel #duelReact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.ui2 #ui2Duel #duelChips .tlp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) { html.ui2 #ui2Duel #duelReact > button { min-height: 56px; } }
html.ui2 #ui2Duel #duelReact > button { grid-column: auto !important; width: auto !important; }
html.ui2 #ui2Duel #duelReact > [data-r="auto"] { order: 1; } html.ui2 #ui2Duel #duelReact > [data-r="stagger"] { order: 2; }
html.ui2 #ui2Duel #duelReact > [data-r="fall"] { order: 3; } html.ui2 #ui2Duel #duelReact > [data-r="die"] { order: 4; }
html.ui2 #ui2Duel #duelReact > [data-r="block"] { order: 5; } html.ui2 #ui2Duel #duelReact > [data-r="evade"] { order: 6; }
html.ui2 #ui2Duel #duelReact > [data-r="kimodo"] { order: 7; grid-column: span 2 !important; }
html.ui2 #ui2Duel .ui2-dh, html.ui2 #ui2Duel .ui2-dstat { position: static; }
html.ui2 #ui2Duel .ui2-dview[hidden] { display: none !important; }
html.ui2 #ui2Duel .duel-body > .ui2-dview-b { margin-bottom: 8px; }
html.ui2 #ui2Duel .duel-body > details.ui2-dmore { margin-top: 10px; }

/* v16 (2026-11-22) the 4 main cards = the Studio's modes: Z textu · Z videa · Combat · Loco sety (2 x 2), for everyone */
html.ui2 #ui2Hero .ui2-cards { grid-template-columns: 1fr 1fr !important; }
html.ui2 #ui2Hero .ui2-duel, html.ui2 #ui2Hero .ui2-loco { display: flex !important; }
html.ui2 #ui2Hero .ui2-duel { background: linear-gradient(150deg, #e5484d 0%, #8f1d22 100%) !important; border-color: #ff9a9e55 !important; }
html.ui2 #ui2Hero .ui2-duel.on { box-shadow: 0 0 0 2px #fff, 0 8px 24px #e5484d55 !important; }
html.ui2 #ui2Hero .ui2-loco { background: linear-gradient(150deg, #2b9fd9 0%, #1456a8 100%) !important; border-color: #8fd3ff55 !important; }
html.ui2 #ui2Hero .ui2-loco.on { box-shadow: 0 0 0 2px #fff, 0 8px 24px #2b9fd955 !important; }
html.ui2 #ui2Hero .ui2-duel .ui2-pill, html.ui2 #ui2Hero .ui2-loco .ui2-pill { background: #ffffffd9; color: #1a1d24; }
html.ui2 #ui2Hero .ui2-cards .ui2-card b { font-size: 17px !important; }
html.ui2 #ui2Hero .ui2-cards .ui2-card small { font-size: 11px !important; }
html.ui2 { --c-duel: #e5484d; }
/* the loco set is a main card now - its tab in the text panel would be the same thing twice */
html.ui2:not(.ui2-all) #t2mModes [data-m="lc"] { display: none !important; }

/* v16 the old-UI switch on the top bar (not for new users) */
html.ui2 #ui2Top .ui2-oldui { color: #cfd6e6; border: 1px dashed #ffffff33 !important; background: transparent !important; }
html.ui2 #ui2Top .ui2-oldui:hover:not(:disabled) { color: #fff; border-color: #ffffff66 !important; background: #ffffff0d !important; }
html.ui2 #ui2Top .ui2-oldui[hidden] { display: none !important; }
html.ui2 #ui2Top .ui2-oldui > span { white-space: nowrap; }
@media (max-width: 1500px) { html.ui2 #ui2Top .ui2-oldui > span { display: none; } html.ui2 #ui2Top .ui2-oldui { padding: 0 9px !important; } }
/* (a phone shows no timeline bar - its tools are in Tools there; the v14 layout rule must not bring it back) */
@media (max-width: 700px) { html.ui2:not(.ui2-all) #transport > #ui2Tl.ui2-tlbar { display: none !important; } }
html.ui2 #ui2Top .ui2-oldui { flex: 0 0 auto !important; min-width: 34px !important; width: auto !important; overflow: visible !important; }

/* v17 exports left on the top bar, right before Export (the account chip keeps only its icon - the number is here once) */
html.ui2 #ui2Top .ui2-credits { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 11px !important; border-radius: 10px !important;
  background: #ffffff08 !important; border: 1px solid #ffffff1f !important; color: #cfd6e6 !important; font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
html.ui2 #ui2Top .ui2-credits:hover:not(:disabled) { background: #ffffff12 !important; border-color: #ffffff40 !important; color: #fff !important; }
html.ui2 #ui2Top .ui2-credits svg { width: 15px; height: 15px; }
html.ui2 #ui2Top .ui2-credits b { font-size: 14px; color: #fff; }
html.ui2 #ui2Top .ui2-credits.low { border-color: #ffb13d99 !important; } html.ui2 #ui2Top .ui2-credits.low b { color: #ffb13d; }
html.ui2 #ui2Top .ui2-credits.out { border-color: #ff5a5a99 !important; } html.ui2 #ui2Top .ui2-credits.out b { color: #ff6b6b; }
html.ui2 #ui2Top .ui2-credits[hidden] { display: none !important; }
html.ui2 #ui2Top #kqAcct.in { font-size: 0 !important; } html.ui2 #ui2Top #kqAcct.in::before { content: '👤'; font-size: 15px; }
@media (max-width: 1500px) { html.ui2 #ui2Top .ui2-credits span { display: none; } }
@media (max-width: 700px) { html.ui2 #ui2Top .ui2-credits { height: 32px; padding: 0 8px !important; } }
html.ui2 .ui2-xbadge { display: none; }
@media (max-width: 1100px) {
  html.ui2 #ui2Top .ui2-credits { display: none !important; }
  html.ui2 #projExport { position: relative; overflow: visible !important; }
  html.ui2 #projExport .ui2-xbadge { display: inline-grid; place-items: center; position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #fff; color: #1a1d24; font: 800 10.5px system-ui, sans-serif; font-style: normal; box-shadow: 0 2px 6px #0007; }
}
html.ui2 #ui2Nav [data-k="exp"] { position: relative; }
@media (max-width: 700px) { html.ui2 #ui2Nav [data-k="exp"] .ui2-xbadge { display: inline-grid; place-items: center; position: absolute; top: 2px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #fff; color: #1a1d24; font: 800 10px system-ui, sans-serif; font-style: normal; } }
html.ui2 .ui2-xbadge.low { background: #ffb13d !important; } html.ui2 .ui2-xbadge.out { background: #ff6b6b !important; color: #fff !important; }
/* v17.2 the empty timeline's ＋ choices: on a phone 2 × 2 like the original (4 × 120 px ran off a 390 px screen) */
@container (max-width: 560px) { html.ui2 #transport .tl-add-pick { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: 100%; } }
@media (max-width: 700px) { html.ui2 #transport .tl-add-pick { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: 100%; } }
/* v17.3 Combat / Loco sets cards only when the app allows them (web: staff) - a hidden card leaves no gap */
html.ui2 #ui2Hero .ui2-cards > [hidden] { display: none !important; }

/* v17.3 the web's Studio | Public library switch (community library) in the left panel under Sample / Library / Upload */
html.ui2 #ui2Hero #spaceSw.ui2-space { margin: 8px 0 0; }
html.ui2 #ui2Hero #spaceSw.ui2-space[hidden] { display: none !important; }
html.ui2 #ui2Hero #spaceSw.ui2-space button { height: 34px; font-size: 13px; }

/* v17.3 the classic-look switch: the top bar on a PC, the ⋯ menu on a phone (it pushed ⋯ off a 390 px screen) */
@media (min-width: 701px) { html.ui2 .ui2-menu .ui2-mobonly { display: none !important; } }
@media (max-width: 700px) { html.ui2 #ui2Top .ui2-oldui { display: none !important; } }
/* v17.4 (the owner 2026-11-23: "kategórie musia byť viditeľné aj filtre"): categories, weapon sub-categories and sources WRAP
 * into rows again like the original - the one sliding row (v4.1) hid most of them */
html.ui2 .kqlib-cats, html.ui2 #libCats, html.ui2 #libSrc { flex-wrap: wrap !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; padding-bottom: 0 !important; margin-bottom: 6px !important; gap: 4px !important; }
html.ui2 .kqlib-cats > *, html.ui2 #libCats > *, html.ui2 #libSrc > * { flex: 0 0 auto; }
/* v17.5 the block cards under the timeline (the owner 2026-11-23 "keď prepnem na block, sú tu chyby UI"): the "Blocks" label
 * got its own line (the first card covered it), "↔ auto" sits on that line on the right (it lay over the add tile), the
 * strip is as tall as a card (the card was cut at the bottom); the add tile is not shown here - the timeline's ⊕ after the
 * last block adds a block the same way (one place), and aligned under the blocks it fell outside the strip */
html.ui2.ui2-strip:not(.ui2-all) #strip { height: auto !important; max-height: min(300px, 42vh) !important; min-height: 0 !important; padding-top: 20px !important; overflow-x: auto !important; overflow-y: auto !important; }
html.ui2.ui2-strip:not(.ui2-all) #strip > .autow-quick { position: absolute !important; top: 3px !important; right: 12px !important; left: auto !important; bottom: auto !important; margin: 0 !important; z-index: 2; }
html.ui2.ui2-strip:not(.ui2-all) #blocks > .addcol { display: none !important; }

/* (the owner 2026-11-23 "keď dám project settings, toto nech zmizne, nech je jasné kde má človek settingy hľadať po otvorení, tak to zvýrazni
   trochu, a hore musí byť jasne viditeľné back tlačidlo": the settings view - no creation cards, Back on top (sticky), the settings framed) */
html.ui2 #side[data-ui2="other"] #ui2Hero .ui2-cards, html.ui2 #side[data-ui2="other"] #ui2Hero .ui2-duel { display: none !important; }
html.ui2 #side[data-ui2="other"] > #ui2Back { display: flex !important; align-items: center; justify-content: center; gap: 8px; position: sticky; top: 0; z-index: 6; width: 100%; height: 42px; margin: 0 0 10px;
  border-radius: 12px; border: 2px solid var(--c-char); background: var(--ui2-panel2); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); cursor: pointer; }
html.ui2 #side[data-ui2="other"] > #ui2Back:hover { background: var(--c-char); }
html.ui2 #side[data-ui2="other"] > #ui2Back .kqi, html.ui2 #side[data-ui2="other"] > #ui2Back svg { width: 18px; height: 18px; }
html.ui2 #side[data-ui2="other"] > .tab:not([hidden]) { border: 2px solid var(--c-char); border-top-width: 4px; box-shadow: 0 0 0 4px rgba(255, 122, 47, .12), 0 8px 24px rgba(0, 0, 0, .3); }

/* (the owner 2026-11-23 "tieto tlačidlá nemusia byť také veľké, urob ich kompaktnejšie … a daj na ne dropdown ako v origináli, create
   defaultne otvorený": the creation cards in one row - the icon over the name, no subtitle - and the heading folds them) */
html.ui2 #ui2Hero .ui2-cards { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; gap: 6px !important; }
html.ui2 #ui2Hero .ui2-cards .ui2-card { min-height: 0 !important; padding: 34px 8px 8px !important; align-items: center !important; text-align: center !important; justify-content: flex-end !important; border-radius: 12px !important; }
html.ui2 #ui2Hero .ui2-cards .ui2-card b { font-size: 13px !important; line-height: 1.15 !important; }
html.ui2 #ui2Hero .ui2-cards .ui2-card small { display: none !important; }
html.ui2 #ui2Hero .ui2-cards .ui2-card .ui2-hic { top: 7px !important; left: 50% !important; transform: translateX(-50%); width: 24px !important; height: 24px !important; border-radius: 7px !important; }
html.ui2 #ui2Hero .ui2-cards .ui2-card .ui2-hic svg.ic { width: 15px !important; height: 15px !important; }
html.ui2 #ui2Hero .ui2-cards .ui2-card .ui2-pill { top: 5px !important; right: 5px !important; font-size: 8.5px !important; padding: 1px 5px !important; }
html.ui2 #ui2Hero .ui2-fold { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: 0; padding: 2px 0; margin-bottom: 8px; cursor: pointer; color: inherit; text-align: left; }
html.ui2 #ui2Hero .ui2-fold b { flex: 1; }
html.ui2 #ui2Hero .ui2-fold-ic { transition: transform .15s; opacity: .8; }
html.ui2 #ui2Hero.ui2-shut .ui2-fold-ic { transform: rotate(-90deg); }
html.ui2 #ui2Hero.ui2-shut .ui2-cards, html.ui2 #ui2Hero.ui2-shut .ui2-minis { display: none !important; }
html.ui2 #side[data-ui2="other"] #ui2Hero .ui2-fold, html.ui2 #side[data-ui2="other"] #ui2Hero .ui2-minis, html.ui2 #side[data-ui2="other"] #ui2Hero .ui2-space { display: none !important; } /* (the settings alone under Back) */
/* (a clip that only plays - no blocks, no end ＋: its scrub bar to the very end, the owner 2026-11-23 "časová os sa nezobrazuje pekne do konca") */
html.ui2:not(.ui2-all) body.vm-only-preview #scrubScroll { padding-right: 0; }
html.ui2 body.vm-only-preview #transport.tp-grouped #scrub { width: 100%; }
/* (the block settings panel follows its column: its own grid kept the wide panel's 355 px and cut the tabs, Hide and the values on 900-1300 px screens - the site check 2026-11-24) */
html.ui2 #insp { grid-template-columns: minmax(0, 1fr); }
