/* Bank pomysłów – przeniesiony 1:1 z prototypu Designera (design/bank.css, 25.10). Bez reguł karty setu (.kp, .krys, legenda) –
   te są już w app.css (wariant A). Dopiski aplikacji na końcu pliku. */

/* górny pasek: wejście do banku z każdego ekranu */
.topbar .bank-link { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: 13.5px; }
.topbar .bank-link:hover, .topbar .bank-link.on { color: var(--text); border-color: #57534a; background: var(--surface); }
.topbar .bank-link .cnt { font-variant-numeric: tabular-nums; color: var(--muted); }
.bank-ico { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }

/* ── karta setu: akcje banku w nagłówku (obok „W sesji” i „Scal z…”), status w linii faktów ── */
.acc { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer; }
.acc:hover { color: var(--text); border-color: #57534a; }
.acc .ck { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.acc.on { background: rgba(92, 158, 98, .16); border-color: rgba(92, 158, 98, .7); color: #a9d6ad; }
.acc.on .ck { background: #5c9e62; border-color: #5c9e62; }
.acc.on .ck::after { content: ""; width: 6px; height: 3.5px; border-left: 1.8px solid #0e1a0f; border-bottom: 1.8px solid #0e1a0f; transform: rotate(-45deg) translate(0.5px, -0.5px); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.menu[hidden] { display: none; }
.menu button { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); padding: 9px 11px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.menu button small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.menu button:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 6px; }
.bank-state { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.bank-state a { color: inherit; }
.bank-state.newer { color: var(--amber); }
.bank-state .lnk { background: none; border: 0; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; padding: 0; font: inherit; cursor: pointer; }
.rest-note { margin-top: 26px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13.5px; }

/* ── widok banku ── */
.bank-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin: 0 0 22px; }
.bank-filters .search { flex: 1 1 260px; max-width: 360px; }
.bank-filters .select { height: 38px; width: auto; min-width: 150px; padding-top: 0; padding-bottom: 0; padding-right: 30px; line-height: 36px; }
.bank-filters .seg button .k { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.bank-filters .seg button.on .k { color: var(--bg); opacity: .6; }
.clear { color: var(--text-2); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.idea { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: var(--bg); text-decoration: none; color: inherit; }
.idea:hover { border-color: var(--line); }
.idea .cov { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 16 / 9; background: #000; }
.idea .cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idea .cov img:first-child { grid-row: span 2; }
.idea .istatus { position: absolute; left: 10px; top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(18,17,16,.82); backdrop-filter: blur(6px); border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.czeka { color: #f0c46a; border-color: rgba(240,196,106,.5); }
.badge.wplanie { color: #9cc2ff; border-color: rgba(156,194,255,.5); }
.badge.zrob { color: #a9d6ad; border-color: rgba(169,214,173,.5); }
.idea .ibody { display: grid; grid-template-columns: 1fr 132px; gap: 14px; padding: 14px 16px 12px; align-items: start; flex: 1; }
.idea h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.05; margin: 0 0 6px; }
.idea .isrc { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 12px; }
.idea .imini svg.sp { width: 100%; height: auto; display: block; border-radius: 8px; }
.idea .newer { margin: 0 16px; padding: 8px 10px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.idea .ifoot { display: flex; gap: 8px; align-items: center; padding: 10px 16px 14px; border-top: 1px solid var(--line-soft); margin-top: 10px; }
.idea .ifoot .where { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
.empty-bank { padding: 60px 20px; text-align: center; color: var(--text-2); border: 1px dashed var(--line); border-radius: 14px; }

/* ── szczegóły pomysłu: jak karta setu (wariant A), tylko do odczytu, z akcjami banku ── */
.idea-page .sc-head .letter { font-size: 40px; padding-top: 6px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.hist li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; color: var(--text-2); }
.hist li time { color: var(--muted); font-variant-numeric: tabular-nums; }
/* ── okno „Wstaw do sesji…” ── */
.pick { display: grid; gap: 8px; margin: 4px 0 16px; }
.pick label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pick label:hover { border-color: #57534a; }
.pick input { margin-top: 3px; accent-color: var(--text); }
.pick b { display: block; font-weight: 600; } .pick small { color: var(--muted); font-size: 12.5px; }
.pick .warn { display: block; margin-top: 4px; color: var(--amber); font-size: 12.5px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 860px) {
  .topbar .bank-link .lbl { display: none; }
  .ideas { grid-template-columns: 1fr; }
  .idea .ibody { grid-template-columns: 1fr 112px; }
  .bank-filters .search { max-width: none; flex-basis: 100%; }
  .bank-filters .seg { overflow-x: auto; max-width: 100%; }
  .bank-filters .select { flex: 1 1 140px; min-width: 0; }
  .menu { right: auto; left: 0; width: min(300px, calc(100vw - 32px)); }
  .hist li { grid-template-columns: 1fr; gap: 0; }
}
.toast a { color: inherit; font-weight: 600; margin-left: 6px; }
/* postęp kadrów „Zrobione” na stronie pomysłu */
.postep { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; color: var(--text-2); font-size: 13.5px; }
.postep b { color: var(--text); font-weight: 600; }
.pbar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; } .pbar span { display: block; height: 100%; background: #5c9e62; border-radius: 999px; }
.postep .lnk { background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; padding: 0; font: inherit; cursor: pointer; }
@media (max-width: 860px) { .postep { grid-template-columns: 1fr; } }

/* ── dopiski aplikacji ── */
.rest-note { display: none; }
.pick input[type=text] { margin-top: 8px; }
.idea-page .kp .krys { width: 520px; max-width: 100%; }
/* długa nazwa sesji (Designer): plakietka na okładce kończy się wielokropkiem, lista „Sesja” nie rośnie ponad 240 px */
.idea .istatus { right: 10px; }
.idea .istatus .badge { display: block; width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.idea .istatus .badge::before { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.bank-filters .select { max-width: 240px; text-overflow: ellipsis; }
