:root {
  --navy: #2C3E50; --navy-2: #22313F; --ink: #1F2933; --muted: #6B7280; --line: #E3E4E6; --bg: #F5F5F3; --card: #FFFFFF;
  --gold: #A88B5E; --ok: #2F7D5B; --warn: #9A6700; --err: #B42318; --radius: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); font-weight: 700; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type]), input[type=text], input[type=password], input[type=email], input[type=date], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #CDD0D4; border-radius: var(--radius); background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(44,62,80,.12); }
textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; letter-spacing: .02em; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid #CDD0D4; background: #fff; border-radius: var(--radius); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--navy); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.danger { color: var(--err); border-color: #E7B4AE; }
.btn.danger.solid { background: var(--err); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.sm { padding: 5px 9px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; margin-top: 18px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.muted { color: var(--muted); }
.err { color: var(--err); font-size: 13px; min-height: 18px; margin-top: 10px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; background: #EEF0F2; color: var(--navy); letter-spacing: .03em; }
.pill.ok { background: #E3F2EA; color: var(--ok); } .pill.warn { background: #FFF4D6; color: var(--warn); } .pill.err { background: #FDE8E6; color: var(--err); }

/* Logowanie */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: var(--navy); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h1 { color: #fff; font-size: 34px; font-weight: 300; letter-spacing: .02em; margin: 0; }
.auth-side h1 b { font-weight: 700; }
.auth-side p { color: #C9D2DC; max-width: 460px; line-height: 1.6; }
.auth-side .stripe { position: absolute; right: -60px; top: 0; bottom: 0; width: 120px; background: var(--gold); opacity: .18; transform: skewX(-12deg); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { margin: 0 0 6px; font-size: 24px; }

/* Górny pasek */
.top { height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; gap: 14px; position: sticky; top: 0; z-index: 20; }
.brand { font-weight: 300; font-size: 18px; color: var(--navy); letter-spacing: .03em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand b { font-weight: 700; }
.brand i { width: 6px; height: 26px; background: var(--navy); display: inline-block; box-shadow: 9px 0 0 var(--gold); margin-right: 10px; }
.top .user { color: var(--muted); font-size: 13px; }
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 60px; }
.page h1 { font-size: 24px; margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.card + .card { margin-top: 18px; }
.card h3 { margin: 0 0 12px; font-size: 16px; }

/* Lista projektów */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 22px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 6px 22px rgba(0,0,0,.08); }
.pcard .thumb { aspect-ratio: 16/9; background: #fff; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; cursor: pointer; }
.pcard .body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pcard .title { font-weight: 700; color: var(--navy); line-height: 1.3; }
.pcard .meta { color: var(--muted); font-size: 12px; }
.pcard .acts { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.thumb-holder { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }

/* Kategoria (button box) */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { padding: 14px 10px; border: 1.5px solid #CDD0D4; border-radius: var(--radius); background: #fff; cursor: pointer; text-align: center; }
.seg button b { display: block; color: var(--navy); }
.seg button span { font-size: 12px; color: var(--muted); }
.seg button.on { border-color: var(--navy); background: #F2F4F7; box-shadow: inset 0 0 0 1px var(--navy); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { border: 1.5px solid #D7D9DC; border-radius: var(--radius); background: #fff; cursor: pointer; padding: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.choice.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); }
.choice .mini { aspect-ratio: 16/9; position: relative; overflow: hidden; border: 1px solid var(--line); margin-bottom: 5px; background: #fff; }
.swatch { display: flex; height: 22px; margin-bottom: 5px; border-radius: 3px; overflow: hidden; }
.swatch i { flex: 1; }
.logo-drop { border: 1.5px dashed #C3C7CC; border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 14px; background: #FAFAF9; }
.logo-drop img { max-height: 54px; max-width: 200px; object-fit: contain; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(20,28,38,.45); display: flex; align-items: flex-start; justify-content: center; z-index: 100; padding: 50px 16px; overflow: auto; }
.modal { background: #fff; border-radius: 10px; padding: 26px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 860px; }
.modal h2 { margin: 0 0 4px; font-size: 20px; }
.confirm-text { margin: 0; line-height: 1.5; }

/* Edytor */
.ed { height: 100vh; display: grid; grid-template-rows: 56px 1fr; }
.ed-top { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
.ed-top .ttl { font-weight: 700; color: var(--navy); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-top .saved { font-size: 12px; color: var(--muted); min-width: 90px; }
.ed-body { display: grid; grid-template-columns: 210px 1fr 320px; min-height: 0; }
.ed-list { border-right: 1px solid var(--line); background: #FAFAF9; overflow: auto; padding: 10px; }
.ed-list .sl { position: relative; margin-bottom: 10px; cursor: pointer; display: flex; gap: 6px; }
.ed-list .sl .n { width: 18px; font-size: 11px; color: var(--muted); text-align: right; padding-top: 2px; }
.ed-list .sl .tb { flex: 1; aspect-ratio: 16/9; border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; border-radius: 3px; }
.ed-list .sl.on .tb { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.ed-list .sl.drag-over .tb { box-shadow: 0 -3px 0 var(--gold); }
.ed-list .add { width: 100%; }
.ed-stage { background: #E9EAEA; overflow: auto; display: flex; flex-direction: column; min-width: 0; }
.ed-tools { display: flex; gap: 6px; padding: 8px 12px; background: #F4F4F3; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ed-canvas-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 0; }
.ed-canvas { position: relative; box-shadow: 0 4px 24px rgba(0,0,0,.15); background: #fff; }
.ed-canvas .slide { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.ed-canvas .el { cursor: move; }
.ed-canvas .el:hover { outline: 1px dashed rgba(44,62,80,.45); }
.ed-canvas .el.sel { outline: 2px solid #2F6FEB; }
.ed-canvas .handle { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid #2F6FEB; right: -8px; bottom: -8px; cursor: nwse-resize; z-index: 5; }
.ed-canvas [data-edit]:hover { outline: 1px dashed rgba(44,62,80,.45); cursor: text; }
.ed-notes { border-top: 1px solid var(--line); background: #fff; padding: 8px 12px; }
.ed-notes textarea { min-height: 54px; font-size: 13px; }
.ed-props { border-left: 1px solid var(--line); background: #fff; overflow: auto; padding: 14px 16px 40px; }
.ed-props h4 { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ed-props h4:first-child { margin-top: 0; }
.ed-props textarea.big { min-height: 220px; font-size: 13px; }
.menu { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 6px; z-index: 50; min-width: 230px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 5px; cursor: pointer; }
.menu button:hover { background: #F1F3F5; }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-height: 300px; overflow: auto; }
.icon-grid button { border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 6px; cursor: pointer; aspect-ratio: 1; }
.icon-grid button:hover { border-color: var(--navy); }
.icon-grid svg { width: 100%; height: 100%; }

/* Panel AI */
.ai-box { background: #F7F7F5; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-top: 12px; }
.progress { height: 4px; background: #E3E4E6; border-radius: 2px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; width: 35%; background: var(--navy); animation: prog 1.4s infinite ease-in-out; }
@keyframes prog { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.ver { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; font-size: 13px; }
.ver .big { font-size: 30px; font-weight: 700; color: var(--navy); }
.reflist { max-height: 160px; overflow: auto; font-size: 12px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
.reflist div { padding: 2px 0; }

/* Tabela */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid #F0F0EF; vertical-align: middle; }
pre.log { background: #1E2530; color: #D9E1EA; padding: 12px; border-radius: 6px; max-height: 300px; overflow: auto; font-size: 12px; white-space: pre-wrap; }

/* Prezentacja */
.pres { position: fixed; inset: 0; background: #000; z-index: 1000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pres .stage { position: relative; overflow: hidden; background: #000; }
.pres .stage .sw { position: absolute; inset: 0; will-change: transform, opacity, filter; }
.pres .stage .slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pres .stage .slide.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pres.laser, .pres.laser * { cursor: none !important; }
.pres .laser-dot { position: fixed; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle, #ff3b30 0 35%, rgba(255,59,48,.55) 50%, rgba(255,59,48,0) 72%); pointer-events: none; z-index: 1002; display: none; box-shadow: 0 0 14px 4px rgba(255,40,40,.45); }
.pres.laser .laser-dot { display: block; }
.pres .bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(20,24,30,.82); color: #fff; border-radius: 30px; padding: 6px 10px; display: flex; gap: 4px; align-items: center; opacity: 0; transition: opacity .25s; z-index: 1003; }
.pres .bar.show { opacity: 1; }
.pres .bar button { background: none; border: 0; color: #fff; padding: 7px 11px; border-radius: 20px; cursor: pointer; font-size: 13px; }
.pres .bar button:hover, .pres .bar button.on { background: rgba(255,255,255,.16); }
.pres .bar .cnt { font-size: 12px; color: #B8C0CA; padding: 0 8px; min-width: 60px; text-align: center; }
.pres .endscreen { position: absolute; inset: 0; background: #0E131A; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; z-index: 1001; }
.pres .endscreen h2 { color: #fff; font-weight: 300; letter-spacing: .08em; font-size: 30px; margin: 0; text-transform: uppercase; }
.pres .endscreen .row button { padding: 12px 22px; font-size: 15px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; }
.pres .endscreen .row button.primary { background: #fff; color: #0E131A; }

/* Eksport */
.export-host { position: fixed; left: -20000px; top: 0; width: 1280px; height: 720px; overflow: hidden; }

#toast { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 2000; }
.toast { background: #1F2933; color: #fff; padding: 10px 14px; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 420px; transition: opacity .35s; font-size: 13px; }
.toast-err { background: var(--err); } .toast-ok { background: var(--ok); }
.toast.out { opacity: 0; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; } .auth-side { display: none; }
  .ed-body { grid-template-columns: 120px 1fr; } .ed-props { display: none; }
  .grid2 { grid-template-columns: 1fr; }
}

/* Pomoc */
.help { max-width: 920px; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 22px; }
.help-toc a { color: var(--accent, #2c3e55); font-size: 14px; }
.help-sec { margin-bottom: 18px; line-height: 1.6; scroll-margin-top: 70px; }
.help-sec h2 { margin-top: 0; }
.help-sec h4 { margin: 18px 0 6px; }
.help-sec li { margin: 3px 0; }
.help-sec code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }
.help-sec .note { background: #f6f1e6; border-left: 3px solid #b8955a; padding: 10px 14px; }

/* Projekty przypięte przez administratora */
.pcard.pinned { box-shadow: 0 0 0 2px #b8955a; }
.pin-badge { font-size: 12px; color: #8a6a35; margin-bottom: 4px; }
.assign-list { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.assign-list .chk { display: flex; align-items: center; font-weight: 400; }

/* Źródła tekstów przepisów w edytorze */
.srclist { display: grid; gap: 10px; font-size: 12.5px; line-height: 1.45; }
.srcitem a { font-size: 12px; }
.src-warn-s { color: #8a5a1a; font-size: 11.5px; margin-top: 3px; }
/* Edytor motywu */
.te { display: grid; grid-template-columns: 1fr 380px; gap: 22px; margin-top: 12px; }
.te-fields { display: grid; gap: 8px; }
.te-row { display: grid; grid-template-columns: 44px 1fr 92px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.te-row input[type=color] { width: 44px; height: 34px; border: 1px solid #CDD0D4; border-radius: var(--radius); padding: 2px; background: #fff; cursor: pointer; }
.te-row b { font-size: 13px; }
.te-hex { font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 7px 8px !important; }
.te-prev { display: grid; gap: 12px; align-content: start; }
.te-prev > div { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-height: 60px; }
@media (max-width: 860px) { .te { grid-template-columns: 1fr; } }
/* Panel właściwości: kolory, formatowanie, animacje, wzorzec */
.colorpick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.colorpick .sw { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; background: #fff; font-size: 12px; color: var(--muted); line-height: 1; }
.colorpick .sw.on, .colorpick input.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.colorpick input[type=color] { width: 34px; height: 26px; border: 1px solid #CDD0D4; border-radius: 6px; padding: 1px; background: #fff; cursor: pointer; }
.ed-props .seg { grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ed-props .seg button { padding: 6px 2px; font-size: 11.5px; }
label.chk { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0; color: var(--ink); font-size: 12.5px; }
label.chk input { width: auto; margin: 0; }
.chkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
details.pgroup { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 10px; margin-top: 14px; }
details.pgroup summary { cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 0; }
.animlist { margin: 4px 0 8px; padding-left: 20px; }
.animlist li { display: flex; gap: 4px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.animlist li .btn { padding: 3px 7px; }
.master-badge { background: #FFF6E5; color: #7A5200; border: 1px solid #F1D9A6; border-radius: 6px; padding: 6px 10px; font-size: 12px; margin-bottom: 10px; }
.ed-canvas .slide.master-edit { outline: 3px dashed var(--gold); outline-offset: -3px; }
.mats { display: grid; gap: 4px; margin-bottom: 6px; }
.mat { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: #F7F7F5; border-radius: 6px; font-size: 13px; }
.mail-prev { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fff; max-height: 420px; overflow: auto; }
/* Katalog tematów w oknie „Generuj z AI” */
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; max-height: 150px; overflow-y: auto; }
.topic { border: 1px solid var(--line, #d6dae1); background: #fff; color: inherit; border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.topic:hover { border-color: #9aa3b2; }
.topic.ready { background: #e8f5ec; border-color: #9fd1b0; color: #1e6b3a; }
.topic.on { outline: 2px solid var(--gold, #b08d57); outline-offset: 1px; }
.ok-hint { color: #1e6b3a !important; }
/* Własne ikony w oknie wyboru */
.icon-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--muted, #6b7280); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.icon-sep::before, .icon-sep::after { content: ''; flex: 1; border-top: 1px solid var(--line, #d6dae1); }
.icon-grid.mine { min-height: 40px; }
.mine-ic { position: relative; display: inline-block; }
.mine-ic .ic-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--line, #d6dae1); background: #fff; color: #a33; font-size: 13px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.mine-ic:hover .ic-del, .mine-ic .ic-del:focus { opacity: 1; }
.mine-ic button[data-n] { width: 100%; }
.icon-grid.mine > .muted { grid-column: 1 / -1; }

/* Temat prezentacji: pole z listą tematów z katalogu */
.combo { position: relative; display: flex; }
.combo input { flex: 1; padding-right: 40px; }
.combo-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 16px; color: var(--muted, #667); cursor: pointer; padding: 4px 10px; }
.combo-btn[hidden] { display: none; }
.combo-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; overflow: auto; background: #fff; border: 1px solid #d5d9e0; border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 30, 50, .15); }
.combo-list button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #eef0f3; background: transparent; padding: 8px 12px; cursor: pointer; font: inherit; }
.combo-list button:hover { background: #f4f6f9; }
.combo-list button b { font-weight: 600; }
.combo-list button.ready b { color: #1e6b3a; }
.combo-list button .ok { margin-left: 8px; font-size: 11px; color: #1e6b3a; background: #e6f3ea; border-radius: 8px; padding: 1px 7px; }
.combo-list button small { display: block; color: #778; font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Wybór czcionki z podglądem */
.fsel { position: relative; }
.fsel-btn { width: 100%; display: flex; align-items: baseline; gap: 8px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.fsel-btn i { margin-left: auto; font-style: normal; color: var(--muted); }
.fsel-name { font-size: 17px; }
.fsel small { color: var(--muted); font-size: 11px; }
.fsel-list { position: absolute; z-index: 40; top: calc(100% + 3px); left: 0; right: 0; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(20, 30, 50, .15); }
.fsel-list button { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f0f1f3; background: transparent; padding: 7px 10px; cursor: pointer; color: var(--ink); }
.fsel-list button:hover { background: #f4f6f9; }
.fsel-list button.on { background: #eef2f7; }
.fsel-list button small { margin-left: auto; }

/* Zasobnik przejść: kafelki z zapętlonym podglądem */
.tpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 4px; }
.ed-props .tpick { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
.tp { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.tp:hover { border-color: #b9c0ca; }
.tp.on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(44, 62, 80, .25); }
.tp-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #111; perspective: 300px; }
.tp-slide { position: absolute; inset: 0; padding: 12% 10%; display: flex; flex-direction: column; gap: 6%; }
.tp-slide.a { background: #f3f1ec; }
.tp-slide.b { background: #2c3e50; }
.tp-slide b { display: block; height: 11%; width: 62%; border-radius: 2px; background: #2c3e50; }
.tp-slide.b b { background: #c9a96e; }
.tp-slide s { display: block; height: 7%; width: 80%; border-radius: 2px; background: #c9ccd2; text-decoration: none; }
.tp-slide.b s { background: #7d8da0; }
.tp-slide .tp-bar { position: absolute; right: 0; top: 0; bottom: 0; width: 7%; background: #2c3e50; }
.tp-slide.b .tp-bar { background: #c9a96e; }
.tp-slide em { position: absolute; right: 12%; bottom: 8%; font-style: normal; font-size: 12px; font-weight: 700; color: #2c3e50; }
.tp-slide.b em { color: #fff; }
.tp-name { font-size: 11px; line-height: 1.25; text-align: center; color: var(--muted); text-transform: lowercase; }
.tp.on .tp-name { color: var(--ink); font-weight: 600; }
