/* MERCHISMORE LEAD — design system
   Brand board: Pure White #FFF · Off Black #1E1E1E · Light Lime #DCFF78 · Bebas Neue (display) + Inter (text)
   Zasady: siatka 4 px, cienkie linie 1 px, zero zaokrągleń (jak na boardzie), lime tylko jako akcent/aktywny stan. */
:root {
  --white: #ffffff; --black: #1e1e1e; --lime: #dcff78; --lime-deep: #c6ec4f;
  --ink: var(--black); --ink-2: #4a4a47; --muted: #85857f; --bg: var(--white); --soft: #f4f4f1; --soft-2: #ebebe6; --hair: #e3e3de; --line: var(--black);
  --good: #1f7a3d; --warn: #9a6200; --bad: #b3261e; --bad-bg: #fdecea;
  --yt: #ff0033; --ig: #e1306c; --tt: #25f4ee; --tw: #9146ff; --kick: #53fc18; --live: #ff2d2d;
  --display: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --text: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: 32px;
  --top-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--text); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
body.locked { overflow: hidden; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.err { color: var(--bad); min-height: 1.2em; font-size: 13px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--black); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
kbd { font: 600 11px/1 var(--text); border: 1px solid var(--hair); border-bottom-width: 2px; padding: 2px 5px; background: var(--white); color: var(--ink-2); }
.wrap { padding: 0 var(--pad); }

/* (n) Etykiety sekcji */
.lbl { font-size: 11px; font-weight: 500; letter-spacing: .01em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.linkbtn { border: 0; background: none; padding: 0; font-size: 11px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }

/* Logo — mechanizm „O” */
.logo { font-family: var(--display); font-size: 28px; line-height: 1; text-decoration: none; display: inline-block; white-space: nowrap; }
.logo .o { display: inline-block; vertical-align: baseline; width: .42em; height: .7em; background: var(--black); margin: 0 .04em; transition: width .7s var(--ease), background-color .3s; background-size: cover; background-position: center; }
.logo sup { font-family: var(--text); font-size: .2em; vertical-align: 2.6em; margin-left: .1em; line-height: 0; }
.logo.xl { font-size: clamp(64px, 11vw, 150px); margin: 0; font-weight: 400; }
.logo.xl .o.open { width: 2.2em; background-color: var(--lime); }
a.logo:hover .o { background: var(--lime); outline: 1px solid var(--black); }

/* Przyciski */
.btn { border: 1px solid var(--black); background: var(--white); padding: 9px 16px; border-radius: 0; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .1s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover { background: var(--black); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn.dark { background: var(--black); color: var(--white); }
.btn.dark:hover { background: var(--lime); color: var(--black); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--black); }
.btn.lime:hover { border-color: var(--black); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn.icon { padding: 9px 11px; letter-spacing: .1em; }
.btn.big { padding: 14px 30px; font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: .02em; }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn:disabled:hover { background: inherit; color: inherit; }
input, select, textarea { background: var(--white); border: 1px solid var(--hair); border-radius: 0; padding: 8px 10px; transition: border-color .15s, box-shadow .15s; }
select { padding-right: 26px; cursor: pointer; }
input:hover, select:hover, textarea:hover { border-color: #cfcfc9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); box-shadow: inset 4px 0 0 var(--lime); }
input[type=checkbox] { accent-color: var(--black); width: 15px; height: 15px; margin: 0; cursor: pointer; }
.tog { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 7px 10px; border: 1px solid var(--hair); cursor: pointer; user-select: none; white-space: nowrap; }
.tog:has(input:checked) { border-color: var(--black); background: var(--soft); }
.seg { display: inline-flex; border: 1px solid var(--black); }
.seg button { border: 0; background: var(--white); padding: 7px 12px; cursor: pointer; font-family: var(--display); font-size: 17px; letter-spacing: .03em; line-height: 1; transition: background .15s; }
.seg button + button { border-left: 1px solid var(--black); }
.seg button:hover { background: var(--soft); }
.seg button.on { background: var(--black); color: var(--white); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { width: min(900px, 100%); }
.login-row { display: flex; margin-top: 28px; max-width: 480px; border-top: 1px solid var(--black); padding-top: 18px; }
.login-row input { flex: 1; font-size: 16px; padding: 13px 14px; border-color: var(--black); }
.login-row .btn { border-color: var(--black); }
.tag { font-weight: 600; font-size: 15px; margin-top: 40px; }
.tag::before { content: ''; display: inline-block; width: 6px; height: 15px; background: var(--black); margin-right: 5px; vertical-align: -2px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.pill { background: var(--lime); font-size: 10.5px; font-weight: 700; padding: 3px 7px; letter-spacing: .1em; margin-left: -8px; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 13px; padding: 8px 12px; position: relative; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); }
.nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 3px; background: var(--black); }
.nav a b { font-weight: 600; font-size: 10.5px; background: var(--soft-2); padding: 1px 5px; margin-left: 3px; }
.nav a b:empty { display: none; }
.nav a b.warn { background: var(--lime); }
.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; display: flex; }
.search input { flex: 1; padding-right: 40px; background: var(--soft); border-color: var(--soft); }
.search input:focus { background: var(--white); }
.kbd-hint { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search input:focus ~ .kbd-hint { display: none; }
.caret { position: absolute; right: 12px; top: 50%; width: 7px; height: 18px; margin-top: -9px; background: var(--lime); animation: blink 1.05s steps(1) infinite; pointer-events: none; display: none; outline: 1px solid var(--black); }
.search input:focus ~ .caret { display: block; }
@keyframes blink { 50% { opacity: 0; } }
.top-actions { display: flex; gap: 6px; position: relative; }
.menu { position: absolute; right: 0; top: 46px; background: var(--white); border: 1px solid var(--black); display: grid; min-width: 250px; z-index: 40; box-shadow: 8px 8px 0 var(--soft-2); }
.menu button { text-align: left; border: 0; background: none; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; }
.menu button:last-child { border-bottom: 0; }
.menu button:hover { background: var(--lime); }

.banner { margin: 16px var(--pad) 0; padding: 11px 14px; font-size: 13px; border: 1px solid var(--black); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner::before { content: ''; flex: none; width: 5px; height: 14px; background: var(--lime); outline: 1px solid var(--black); }
.banner.job { background: var(--lime); }
.banner a { font-weight: 600; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-top: 22px; }
.kpi { padding: 16px 18px 14px; cursor: pointer; transition: background .15s; position: relative; text-align: left; border: 0; background: none; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi:hover { background: var(--soft); }
.kpi .lbl { margin-bottom: 6px; color: var(--ink-2); }
.kpi b { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: .9; display: block; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi.hot { background: var(--lime); }
.kpi.hot:hover { background: var(--lime-deep); }
.kpi.alert b { color: var(--bad); }

/* Podium */
section.podium-wrap, section.toolbar, main { padding-top: 22px; }
#view-pipeline .wrap { padding-top: 22px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pod { position: relative; min-height: 236px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; cursor: pointer; border: 1px solid var(--black); transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-align: left; }
.pod:hover { transform: translateY(-3px); box-shadow: 0 10px 0 -2px var(--soft-2); }
.pod.p1 { background: var(--lime); }
.pod.p2 { background: var(--black); color: var(--white); }
.pod.p3 { background: var(--white); }
.pod-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; filter: grayscale(.2) contrast(1.05); transition: transform 1.2s var(--ease); }
.pod:hover .pod-img { transform: scale(1.04); }
.pod.p1 .pod-img, .pod.p3 .pod-img { display: none; }
.pod > * { position: relative; }
.pod-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; }
.pod-mid { display: flex; align-items: center; gap: 12px; }
.pod .ava-sq { width: 64px; height: 82px; object-fit: cover; background: var(--black); flex: none; color: var(--lime); display: grid; place-items: center; font-family: var(--display); font-size: 26px; }
.pod.p2 .ava-sq { display: none; }
.pod-rank { font-family: var(--display); font-size: 104px; line-height: .8; }
.pod-nick { font-family: var(--display); font-size: 36px; line-height: .92; word-break: break-word; }
.pod-meta { display: flex; gap: 18px; font-size: 11.5px; margin-top: 6px; flex-wrap: wrap; }
.pod-meta b { font-family: var(--display); font-size: 25px; font-weight: 400; display: block; line-height: 1; }

/* Toolbar */
.toolbar { border-bottom: 1px solid var(--line); padding-bottom: 16px !important; }
.ptabs { display: flex; gap: 0; border-bottom: 1px solid var(--hair); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.ptabs button { border: 0; background: none; padding: 9px 14px 11px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); position: relative; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.ptabs button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--black)); }
.ptabs button[data-p=""]::before { display: none; }
.ptabs button span { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.ptabs button:hover { color: var(--ink); }
.ptabs button.on { color: var(--ink); }
.ptabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: var(--black); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Lista */
.list-head, .row-main { display: grid; grid-template-columns: 26px 46px minmax(240px, 2.3fr) 84px minmax(140px, 1.05fr) minmax(120px, .9fr) minmax(150px, 1.1fr) 78px 132px; gap: 14px; align-items: center; }
.list-head { font-size: 11px; color: var(--muted); padding: 6px 12px 8px; border-bottom: 1px solid var(--line); position: sticky; top: var(--top-h); background: rgba(255,255,255,.95); z-index: 5; }
.row { border-bottom: 1px solid var(--hair); position: relative; }
.row-main { padding: 14px 12px; cursor: pointer; transition: background .15s; }
.row:hover .row-main { background: var(--soft); }
.row.cur .row-main { box-shadow: inset 4px 0 0 var(--lime); background: var(--soft); }
.row.sel .row-main { background: #f6fbe6; }
.row.rejected { opacity: .55; }
.rank { font-family: var(--display); font-size: 36px; line-height: 1; }
.who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ava { width: 52px; height: 52px; object-fit: cover; background: var(--black); color: var(--lime); display: grid; place-items: center; font-family: var(--display); font-size: 21px; flex: none; }
.ava.lg { width: 104px; height: 132px; font-size: 44px; }
.who-txt { min-width: 0; }
.nick { font-family: var(--display); font-size: 26px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.star { border: 0; background: none; cursor: pointer; font-size: 17px; line-height: 1; padding: 2px; color: #c9c9c3; transition: transform .2s var(--ease), color .15s; font-family: var(--text); }
.star:hover { color: var(--ink); transform: scale(1.15); }
.star.on { color: var(--black); }
.star.on::after { content: ''; }
.sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.chip { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border: 1px solid var(--hair); white-space: nowrap; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 4px; }
.chip.niche { background: var(--black); color: var(--white); border-color: var(--black); }
.chip.pf::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip.live { border-color: var(--live); color: var(--live); }
.chip.live::before { content: '●'; animation: blink 1.4s steps(1) infinite; }
.chip.merch { border-style: dashed; border-color: var(--black); }
.chip.demo { border-style: dashed; color: var(--muted); }
.chip.st { background: var(--soft-2); border-color: var(--soft-2); }
.chip.due { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-bg); }
.num { font-weight: 600; font-variant-numeric: tabular-nums; }
.num small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.er { font-family: var(--display); font-size: 29px; line-height: 1; }
.erop { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; }
.erop.best { background: var(--lime); outline: 1px solid var(--black); }
.erop.high { background: var(--lime); }
.erop.mid { background: var(--soft-2); }
.erop.low { color: var(--bad); background: var(--bad-bg); }
.erop.vlow { color: #fff; background: var(--bad); }
.erop.na { color: var(--muted); background: var(--soft); }
.pot { font-family: var(--display); font-size: 25px; line-height: 1; }
.pot small { display: block; font-family: var(--text); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.mail { font-size: 12.5px; min-width: 0; overflow: hidden; }
.mail a { text-decoration: none; border-bottom: 1px solid var(--hair); word-break: break-all; }
.mail a:hover { border-color: var(--black); }
.mail .src { color: var(--muted); font-size: 11px; display: block; }
.score-c { text-align: center; }
.score { font-family: var(--display); font-size: 42px; line-height: .9; }
.score.prov::after { content: '*'; font-size: 20px; vertical-align: top; }
.sbar { height: 5px; background: var(--hair); margin-top: 5px; }
.sbar i { display: block; height: 100%; background: var(--black); width: var(--p); transition: width .8s var(--ease); }
.sbar.go i { background: var(--lime); outline: 1px solid var(--black); }
.acts { display: grid; gap: 5px; }
.verdict { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 7px; text-align: center; border: 1px solid var(--black); line-height: 1.25; }
.verdict.go { background: var(--lime); }
.verdict.promising { background: var(--black); color: var(--white); }
.verdict.watch { background: var(--white); }
.verdict.weak { border-color: var(--hair); color: var(--muted); }
.stats-m { display: none !important; }

/* Skeleton */
.skel .row-main { cursor: default; }
.sk { background: linear-gradient(90deg, var(--soft) 0%, var(--soft-2) 50%, var(--soft) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

.empty { padding: 60px 20px; text-align: center; border-bottom: 1px solid var(--hair); }
.empty h3 { font-family: var(--display); font-size: 44px; font-weight: 400; margin: 0 0 8px; }
.empty p { color: var(--ink-2); margin: 0 0 18px; }
.more-wrap { display: flex; justify-content: center; padding: 28px 0 10px; }

/* Bulk */
.bulk { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--black); color: var(--white); display: flex; gap: 8px; align-items: center; padding: 10px 12px 10px 18px; z-index: 35; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: rise .3s var(--ease); max-width: calc(100vw - 24px); white-space: nowrap; }
.bulk b { font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--lime); line-height: 1; }
.bulk > span { font-size: 12px; margin-right: 8px; }
.bulk select { background: var(--black); color: var(--white); border-color: #555; }
.bulk .btn { background: transparent; color: var(--white); border-color: #555; }
.bulk .btn:hover { background: var(--lime); color: var(--black); border-color: var(--lime); }
.bulk .btn.danger { color: #ff8a80; }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } }

/* Pipeline */
.pipe-sum { display: flex; gap: 28px; flex-wrap: wrap; padding: 4px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pipe-sum div { font-size: 12px; color: var(--ink-2); }
.pipe-sum b { display: block; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--ink); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(214px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 20px; min-height: 60vh; align-items: start; }
.col { background: var(--soft); border-top: 3px solid var(--black); min-height: 300px; display: flex; flex-direction: column; transition: background .15s; }
.col.klient { border-top-color: var(--lime); }
.col.odrzucony { border-top-color: var(--hair); }
.col.drop { background: #f1f9d6; }
.col-h { padding: 12px 12px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.col-h h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.col-h span { font-size: 11px; color: var(--muted); text-align: right; }
.col-b { padding: 0 8px 10px; display: grid; gap: 8px; }
.card { background: var(--white); border: 1px solid var(--hair); padding: 10px; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; cursor: grab; transition: border-color .15s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--black); }
.card.dragging { opacity: .4; }
.card .ava { width: 40px; height: 40px; font-size: 16px; }
.card .nm { font-family: var(--display); font-size: 20px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .mt { font-size: 11px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.card .sc { font-family: var(--display); font-size: 26px; line-height: 1; text-align: right; }
.card .sc small { display: block; font-family: var(--text); font-size: 10.5px; color: var(--muted); }
.col-empty { font-size: 12px; color: var(--muted); padding: 16px 8px; text-align: center; border: 1px dashed var(--hair); }

/* Ustawienia */
.settings { padding-top: 26px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.settings > section { min-width: 0; }
.settings .full { grid-column: 1 / -1; }
.settings h2 { font-family: var(--display); font-weight: 400; font-size: 44px; margin: 0 0 12px; line-height: 1; }
.int { border: 1px solid var(--hair); margin-bottom: -1px; }
.int-h { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 12px; align-items: center; padding: 14px 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hair); }
.dot.ok { background: var(--good); box-shadow: 0 0 0 3px #dff1e4; }
.int-h b { display: block; font-size: 14px; }
.int-h small { color: var(--muted); font-size: 12px; }
.int .res { font-size: 12px; padding: 0 14px 12px 38px; }
.int .res.ok { color: var(--good); } .int .res.bad { color: var(--bad); }
.int details { padding: 0 14px 14px 38px; font-size: 13px; }
.int summary { cursor: pointer; font-weight: 600; font-size: 12.5px; }
.int ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; color: var(--ink-2); }
.int code, .settings code { background: var(--soft); padding: 1px 5px; font-size: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hair); }
.tbl th { font-size: 11px; font-weight: 500; color: var(--muted); }
.tbl td.n { font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 5px; margin-bottom: 12px; font-size: 12px; color: var(--ink-2); }
.field input, .field textarea { font-size: 14px; color: var(--ink); }

/* Drawer — profil twórcy */
.scrim { position: fixed; inset: 0; background: rgba(30,30,30,.35); z-index: 50; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(860px, 100vw); background: var(--white); z-index: 51; border-left: 1px solid var(--black); transform: translateX(102%); transition: transform .45s var(--ease); overflow-y: auto; overscroll-behavior: contain; }
.drawer.open { transform: none; }
.dr-top { position: sticky; top: 0; z-index: 3; background: var(--white); border-bottom: 1px solid var(--line); }
.dr-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; font-size: 11px; gap: 8px; }
.dr-bar .nav-btns { display: flex; gap: 4px; }
.dr-head { display: grid; grid-template-columns: 104px 1fr auto; gap: 20px; padding: 6px 24px 18px; align-items: end; }
.dr-head .nk { font-family: var(--display); font-size: clamp(38px, 5vw, 58px); line-height: .88; word-break: break-word; }
.dr-head .nm { color: var(--ink-2); margin-top: 6px; }
.dr-score { text-align: right; }
.dr-score b { font-family: var(--display); font-size: 84px; font-weight: 400; line-height: .8; display: block; }
.dr-score .verdict { margin-top: 8px; display: inline-block; }
.dr-actions { display: flex; gap: 6px; padding: 0 24px 16px; flex-wrap: wrap; }
.tabs { display: flex; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 12px 12px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink-2); position: relative; white-space: nowrap; }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: var(--black); }
.tabs button:hover { color: var(--ink); }
.dr-body { padding: 22px 24px 60px; display: grid; gap: 26px; }
.dr-body h4 { margin: 0 0 10px; font-size: 11px; font-weight: 500; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dr-body h4 span { color: var(--muted); font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vbox { border: 1px solid var(--black); padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.vbox.go { background: var(--lime); }
.vbox .vhead { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.vbox .vt { font-family: var(--display); font-size: 44px; line-height: .92; }
.vbox .est { text-align: right; }
.vbox .est b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; display: block; }
.vbox .est small { font-size: 11px; color: var(--ink-2); }
.vbox p { margin: 0; font-size: 13px; grid-column: 1 / -1; }
.vbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.vbox li { display: grid; grid-template-columns: 16px 1fr; }
.vbox .pros li::before { content: '+'; font-weight: 700; }
.vbox .cons li::before { content: '−'; font-weight: 700; color: var(--bad); }
.vbox.go .cons li::before { color: var(--black); }
.vbox li.none::before { content: '' !important; }
.ers { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--black); }
.ers div { padding: 10px 12px; }
.ers div + div { border-left: 1px solid var(--black); }
.ers div.on { background: var(--soft); }
.ers b { display: block; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1; }
.ers span { font-size: 11px; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.kv div { background: var(--white); padding: 9px 11px; font-size: 11px; color: var(--muted); }
.kv b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.bars { display: grid; gap: 8px; font-size: 12.5px; }
.bar { display: grid; grid-template-columns: 110px 1fr 60px; gap: 10px; align-items: center; }
.bar i { height: 8px; background: var(--hair); }
.bar i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--black); }
.bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bio { font-size: 13px; white-space: pre-wrap; max-height: 150px; overflow: auto; border-left: 3px solid var(--lime); padding-left: 10px; }

/* Wykresy */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax { font: 10.5px var(--text); fill: var(--muted); }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .bench { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .bench-l { font: 600 10.5px var(--text); fill: var(--ink-2); }
.chart .b { fill: var(--black); transition: opacity .15s; }
.chart .b.sh { fill: #a3a39d; }
.chart .b.dim { opacity: .35; }
.chart .ln { fill: none; stroke: var(--black); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dotm { fill: var(--black); stroke: var(--white); stroke-width: 2; }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-2); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.chart-empty { border: 1px dashed var(--hair); padding: 26px; text-align: center; font-size: 12.5px; color: var(--muted); }
.tip { position: fixed; z-index: 80; pointer-events: none; background: var(--black); color: var(--white); padding: 8px 10px; font-size: 12px; line-height: 1.4; max-width: 260px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.tip b { color: var(--lime); font-weight: 600; }

/* Treści */
.posts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 36px 1fr 90px 90px 90px; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--hair); text-decoration: none; font-size: 13px; }
.post:hover { background: var(--soft); }
.post .rk { font-family: var(--display); font-size: 22px; }
.post .cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .cap small { display: block; color: var(--muted); font-size: 11px; }
.post .v { text-align: right; font-variant-numeric: tabular-nums; }
.post .v small { display: block; font-size: 10.5px; color: var(--muted); }
.post.head { font-size: 11px; color: var(--muted); padding-top: 0; }
.post.head:hover { background: none; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-grid label { font-size: 11px; color: var(--muted); display: grid; gap: 4px; }
.contact-grid .full { grid-column: 1 / -1; }
.mailbox { border: 1px solid var(--black); }
.mailbox .mh { padding: 10px 12px; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; }
.mailbox input, .mailbox textarea { border: 0; padding: 4px 0; width: 100%; }
.mailbox input:focus, .mailbox textarea:focus { box-shadow: none; }
.mailbox textarea { padding: 12px; min-height: 190px; resize: vertical; line-height: 1.5; }
.mailbox .mf { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--hair); flex-wrap: wrap; align-items: center; }
.mailbox .mf .muted { margin-left: auto; font-size: 11px; }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.tl i { width: 22px; height: 22px; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--soft-2); }
.tl i.email, .tl i.dm, .tl i.call, .tl i.meeting { background: var(--lime); }
.tl i.status { background: var(--black); color: var(--white); }
.tl small { color: var(--muted); font-size: 11px; display: block; }
.note-form { display: flex; gap: 6px; margin-bottom: 8px; }
.note-form select { flex: none; }
.note-form input { flex: 1; }

/* Pomysły */
.ideas .op { background: var(--black); color: var(--white); padding: 16px 18px; display: grid; grid-template-columns: 190px 1fr; gap: 16px; }
.ideas .op b { font-family: var(--display); font-size: 32px; font-weight: 400; color: var(--lime); line-height: 1; }
.ideas .prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--black); border-left: 1px solid var(--black); margin: 14px 0; }
.ideas .p { border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); padding: 14px; font-size: 13px; }
.ideas .p b { display: block; font-family: var(--display); font-size: 23px; font-weight: 400; line-height: 1; margin-bottom: 4px; }
.ideas .p .meta { font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.ideas .p .meta::before { content: ''; display: inline-block; width: 4px; height: 10px; background: var(--lime); outline: 1px solid var(--black); margin-right: 5px; }
.ideas p { font-size: 13.5px; margin: 8px 0; }
.ideas pre { white-space: pre-wrap; font: inherit; background: var(--soft); padding: 14px; margin: 0; }
.ideas-cta { border: 1px solid var(--black); padding: 26px; display: grid; gap: 12px; justify-items: start; background: linear-gradient(90deg, var(--lime) 0 8px, var(--white) 8px); padding-left: 30px; }
.ideas-cta h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; }
.ideas-cta p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 520px; }
.loading-line { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 18px 0; }

/* Dialogi */
dialog { border: 1px solid var(--black); border-radius: 0; padding: 0; background: var(--white); color: var(--ink); width: min(580px, calc(100vw - 32px)); box-shadow: 14px 14px 0 rgba(30,30,30,.08); }
dialog[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }
dialog::backdrop { background: rgba(30,30,30,.5); }
.dlg { padding: 20px 22px; display: grid; gap: 12px; }
.dlg h3 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 400; line-height: 1; }
.dlg p { margin: 0; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; flex-wrap: wrap; }
.dlg-actions .muted { margin-right: auto; font-size: 13px; }
.dlg-row { display: flex; justify-content: space-between; align-items: center; }
.dlg-row .lbl { margin: 0; }
.seg.wrap-seg { flex-wrap: wrap; }
#dlgDiscover { width: min(880px, calc(100vw - 32px)); }
.disc-form { display: flex; gap: 6px; flex-wrap: wrap; } .disc-form input { flex: 1; min-width: 200px; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-row button { border: 1px solid var(--hair); background: var(--white); padding: 4px 9px; font-size: 12px; cursor: pointer; }
.chips-row button:hover { border-color: var(--black); }
.disc-results { max-height: 52vh; overflow: auto; border-top: 1px solid var(--black); }
.disc-item { display: grid; grid-template-columns: 22px 44px 1fr 100px; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--hair); cursor: pointer; }
.disc-item:hover { background: var(--soft); }
.disc-item .ava { width: 44px; height: 44px; font-size: 16px; }
.disc-item.known { opacity: .45; }
.disc-item .nk { font-family: var(--display); font-size: 22px; line-height: 1; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 13px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 12px 18px; font-weight: 600; z-index: 90; max-width: calc(100vw - 32px); border-left: 6px solid var(--lime); display: flex; gap: 14px; align-items: center; animation: rise .3s var(--ease); }
.toast button { background: none; border: 0; color: var(--lime); font-weight: 700; cursor: pointer; text-decoration: underline; }
.spin { display: inline-block; width: 7px; height: 14px; background: currentColor; vertical-align: -2px; animation: blink .6s steps(1) infinite; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px var(--pad) 26px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 30px; }

/* Responsywność */
@media (max-width: 1280px) {
  .search { max-width: 260px; }
}
@media (max-width: 1150px) {
  :root { --pad: 16px; }
  .top { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; gap: 10px; }
  .nav { order: 5; flex-basis: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
  .nav a.on::after { bottom: 0; }
  .search { order: 4; flex-basis: 100%; max-width: none; }
  .top-actions { margin-left: auto; }
  .list-head { display: none; }
  .row-main { grid-template-columns: 22px 1fr 64px; grid-template-areas: 'c w s' '. f f' '. a a'; row-gap: 10px; padding: 14px 4px; }
  .row-main > .cb { grid-area: c; align-self: start; padding-top: 4px; } .row-main > .rank { display: none; }
  .row-main > .who { grid-area: w; } .row-main > .score-c { grid-area: s; }
  .row-main > .stats-m { grid-area: f; display: flex !important; gap: 14px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
  .row-main > .acts { grid-area: a; grid-template-columns: 1fr 1fr; }
  .row-main > .d-only { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi b { font-size: 38px; }
  .podium { grid-template-columns: 1fr; } .pod { min-height: 160px; } .pod-rank { font-size: 76px; }
  .tools select { flex: 1 1 45%; }
  .settings { grid-template-columns: 1fr; }
  .grid2, .vbox, .contact-grid { grid-template-columns: 1fr; }
  .vbox .est { text-align: left; }
  .dr-head { grid-template-columns: 72px 1fr; padding: 6px 16px 14px; }
  .dr-head .ava.lg { width: 72px; height: 92px; font-size: 30px; }
  .dr-score { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 14px; }
  .dr-score b { font-size: 56px; }
  .dr-actions, .dr-body { padding-left: 16px; padding-right: 16px; }
  .post { grid-template-columns: 26px 1fr 70px 70px; } .post .v.vw { display: none; }
  .ideas .op { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
  .bulk { bottom: 10px; flex-wrap: wrap; white-space: normal; }
  .banner::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- FIRMY ---------- */
.logo-tile { position: relative; background: var(--white) !important; border: 1px solid var(--hair); color: var(--ink) !important; overflow: hidden; }
.logo-tile span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); color: var(--muted); }
.logo-tile img { position: relative; z-index: 1; width: 58%; height: 58%; object-fit: contain; background: var(--white); image-rendering: auto; }
.ava.lg.logo-tile img { width: 50%; height: 50%; }
.segi { font-style: normal; font-size: 12px; width: 14px; text-align: center; }
#coTabs button::before { display: none; }
.emails { display: grid; gap: 6px; }
.em { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--hair); background: var(--white); padding: 8px 10px; cursor: pointer; text-align: left; font-size: 13px; }
.em:hover { border-color: var(--black); background: var(--soft); }
.em span { font-size: 11px; color: var(--muted); white-space: nowrap; }
ul.sig { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
ul.sig li { padding-left: 14px; position: relative; }
ul.sig li::before { content: ''; position: absolute; left: 0; top: 6px; width: 5px; height: 9px; background: var(--lime); outline: 1px solid var(--black); }
.tbl.offer td { vertical-align: top; }
.tbl.offer td.n { white-space: nowrap; }
.chips-row button.on { background: var(--black); color: var(--white); border-color: var(--black); }
.dr-body a { text-decoration-color: var(--hair); }
body[data-view=companies] #keysBanner { display: none !important; }
#coDiscWoj { flex: none; width: 170px; }
.verdict.pending { border-style: dashed; color: var(--ink-2); }
