:root {
  --navy: #003368;
  --navy-mid: #194875;
  --navy-deep: #002F5C;
  --green: #7AC319;
  --green-deep: #61AA00;
  --red: #AD0000;
  --amber: #C47A00;
  --muted: #5C656E;
  --line: rgba(0, 51, 104, .12);
  --ice: #EDF3F7;
  --white: #fff;
  --soft: 0 10px 20px rgba(0, 0, 0, .08);
  --radius: 2px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Montserrat, sans-serif; color: var(--navy); background: var(--white); font-size: 16px; line-height: 1.5; }
a { color: var(--navy); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.topbar { border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 39px -21px rgba(0,0,0,.35); }
.topbar-inner, .wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav a[aria-current="page"] { font-weight: 700; }
.who { color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 24px; border: 0; border-radius: var(--radius); color: #fff; font: 500 15px/18px Montserrat, sans-serif; cursor: pointer; }
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-blue { background: linear-gradient(180deg, var(--navy-mid), var(--navy-deep)); box-shadow: var(--soft); }
.btn-ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero { background: var(--ice); border-bottom: 1px solid var(--line); padding: 28px 0 24px; }
h1 { margin: 0 0 8px; font-size: 32px; font-weight: 600; }
h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.lede { margin: 0; color: var(--muted); }
.hint, .note, .crumb { color: var(--muted); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.kpi { background: var(--white); box-shadow: var(--soft); padding: 18px; }
.kpi b { display: block; font-size: 26px; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi.good b { color: var(--green-deep); }
.kpi.warn b { color: var(--amber); }
.kpi.hot b { color: var(--red); }
main.wrap, .wrap + main { padding: 28px 0 64px; min-width: 0; }
.wrap { min-width: 0; }
.card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--soft); padding: 20px; overflow: hidden; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.refresh { margin: 0 0 18px; }
.alert { background: #fff6e8; border-left: 4px solid var(--amber); padding: 12px 14px; margin-bottom: 18px; }
.alert.ok { background: #eef8dc; border-left-color: var(--green-deep); }
.alert a { text-decoration: underline; }
.mock-flag { display: inline-flex; margin: 0 0 10px; padding: 4px 10px; background: #eef8dc; color: #3d6d00; font-size: 12px; font-weight: 600; }
.btn-green { background: linear-gradient(180deg, var(--green), var(--green-deep)); box-shadow: var(--soft); color: #fff; }
.desk { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.queue { display: grid; gap: 8px; max-height: 720px; overflow: auto; }
.queue-item { display: grid; gap: 4px; width: 100%; text-align: left; padding: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: inherit; color: inherit; text-decoration: none; }
.queue-item:hover, .queue-item.is-on { border-color: var(--navy); background: var(--ice); }
.queue-item strong { font-size: 13px; }
.q-from { font-size: 12px; color: var(--muted); word-break: break-all; }
.queue-item em { font-style: normal; font-size: 13px; color: var(--navy); }
.pri { display: inline-flex; width: max-content; padding: 2px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pri-wysoki { background: #f8e4e4; color: var(--red); }
.pri-sredni { background: #fff6e8; color: var(--amber); }
.pri-niski { background: var(--ice); color: var(--muted); }
.detail { display: none; }
.detail.is-on { display: block; }
.detail-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.facts { display: grid; gap: 12px; margin: 16px 0; }
.facts dt { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 4px 0 0; }
.cms-box, .skill-box { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.skill-box code, .cluster code { font-size: 13px; background: var(--ice); padding: 2px 6px; }
.bot-prompt { margin: 10px 0 12px; padding: 8px 12px 8px 28px; background: var(--ice); }
.bot-prompt li { margin: 6px 0; font-size: 13px; line-height: 1.45; }
.office-flag { background: #fff4d6; padding: 8px 10px; font-size: 13px; line-height: 1.4; }
.facts-box { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.facts-list { margin: 8px 0 12px 18px; padding: 0; font-size: 13px; line-height: 1.45; }
.facts-list.later { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.report-card { display: block; min-height: 160px; }
.report-card h2 { margin-top: 10px; }
.report-card.soon { opacity: .72; }
.badge { display: inline-flex; padding: 4px 10px; background: var(--ice); font-size: 12px; font-weight: 600; }
.badge.ok { background: #eef8dc; color: #3d6d00; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 20px; }
.chart-frame { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.chart { display: flex; align-items: flex-end; gap: 14px; height: 240px; width: 100%; max-width: 100%; min-width: 0; }
.chart.days { gap: 2px; height: 260px; }
.chart.days .col { flex: 1 1 0; min-width: 0; }
.chart.days .bars { gap: 1px; }
.chart.days .bar { width: 42%; max-width: 7px; min-width: 2px; }
.chart.days .col label { font-size: 8px; line-height: 1.1; writing-mode: vertical-rl; transform: rotate(180deg); margin-top: 6px; max-height: 42px; overflow: hidden; }
.hour-24 { gap: 1px; height: 220px; }
.hour-24 .bar { width: 100%; max-width: 8px; min-width: 2px; }
.hour-24 .col label { writing-mode: horizontal-tb; transform: none; max-height: none; font-size: 8px; margin-top: 4px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bars { display: flex; align-items: flex-end; gap: 5px; width: 100%; flex: 1; justify-content: center; }
.bar { width: 16px; min-height: 2px; }
.bar.in { background: var(--navy); }
.bar.out { background: var(--green); }
.col label { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.legend { display: flex; gap: 16px; font-size: 13px; font-weight: 500; }
.dot { width: 10px; height: 10px; display: inline-block; margin-right: 6px; }
.dot.in { background: var(--navy); }
.dot.out { background: var(--green); }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 72px 1fr 48px; gap: 10px; align-items: center; }
.line span { font-size: 12px; font-weight: 600; color: var(--muted); }
.track { height: 10px; background: var(--ice); position: relative; }
.fill { position: absolute; inset: 0 auto 0 0; height: 100%; }
.fill.in { background: var(--navy); }
.fill.out { background: var(--green); top: 4px; height: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.keys { list-style: none; margin: 0; padding: 0; }
.keys li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.login-wrap { min-height: 60vh; display: grid; place-items: center; padding: 40px 20px; background: var(--ice); }
.login-card { width: min(420px, 100%); display: grid; gap: 8px; }
.login-card input { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); font: 16px Montserrat, sans-serif; color: var(--navy); }
.phases { margin: 12px 0 0; padding-left: 20px; }
.phases li { margin: 8px 0; }
.cluster-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 12px; }
.cluster { border: 1px solid var(--line); padding: 14px; background: var(--ice); }
.cluster p { margin: 8px 0 0; font-size: 14px; }
.case-table-wrap { overflow-x: auto; margin-top: 12px; }
.case-table { min-width: 720px; }
.page-dense .case-table { min-width: 0; font-size: 12px; }
.case-table td { vertical-align: top; font-size: 13px; }
footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 13px; }
.page-dense { font-size: 13px; line-height: 1.4; }
.page-dense .topbar-inner { min-height: 56px; }
.page-dense .brand span { font-size: 13px; }
.page-dense .nav { gap: 10px; font-size: 13px; }
.page-dense .nav .btn { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.hero-slim { padding: 16px 0 14px; }
.page-dense h1 { font-size: 20px; margin-bottom: 6px; }
.h1-meta { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.statline { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.statline b { color: var(--navy); font-size: 16px; margin-right: 4px; }
.statline .hot b { color: var(--red); }
.statline .good b { color: var(--green-deep); }
.dense-main { padding-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { min-height: 32px; padding: 5px 10px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font: 500 12px/1 Montserrat, sans-serif; cursor: pointer; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.ew-toggle { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
a.chip { text-decoration: none; }
.timeline .rola-moderator .who { color: var(--navy); font-weight: 600; }
.timeline .rola-uzytkownik .who, .timeline .rola-system .who { color: var(--muted); }
.chip-cat { color: var(--muted); }
.page-dense .card { padding: 12px; }
.page-makieta main.wrap.dense-main { width: min(1880px, calc(100% - 20px)); }
.page-makieta .desk {
  display: grid;
  grid-template-columns: 210px minmax(280px, 1.25fr) minmax(240px, 1.05fr) minmax(240px, 1fr);
  grid-template-areas: "queue thread draft desk";
  gap: 10px;
  align-items: start;
}
.page-makieta .queue-card { grid-area: queue; }
.page-makieta .thread-card { grid-area: thread; }
.page-makieta .draft-card { grid-area: draft; }
.page-makieta .detail-card { grid-area: desk; }
.page-makieta .desk > .card {
  max-height: calc(100vh - 148px);
  overflow: auto;
}
.page-makieta .acct-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.page-makieta .thread-card .wiz-fields {
  grid-template-columns: 1fr 1fr;
}
.page-makieta .draft-body { min-height: 160px; max-height: 42vh; }
.page-makieta .pipe-url { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: 11px; }
.page-makieta .film-skills { margin-top: 16px; }
.page-makieta .film-skills > summary { cursor: pointer; font-weight: 600; }
.rules-box { margin-top: 10px; }
.rules-box > summary { cursor: pointer; font-size: 11px; color: var(--muted); }
.reply-card { max-height: 78vh; overflow: auto; }
.thread { display: grid; gap: 8px; margin: 8px 0 14px; }
.turn blockquote { margin: 4px 0 0; padding: 8px 10px; font-size: 12px; white-space: pre-wrap; max-height: 160px; overflow: auto; }
.turn-klient blockquote { background: var(--ice); border-left: 3px solid #94AEC7; }
.turn-biuro blockquote { background: #f4faea; border-left: 3px solid var(--green-deep); }
.draft-box { border-top: 1px solid var(--line); padding-top: 10px; }
.draft-label { display: block; margin: 8px 0 4px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.draft-subject, .draft-body { width: 100%; box-sizing: border-box; border: 1px solid var(--line); padding: 8px; font: 12px/1.45 Montserrat, sans-serif; color: var(--navy); background: var(--white); }
.draft-body { min-height: 200px; resize: vertical; }
.rules { margin: 8px 0 0; padding-left: 16px; color: var(--muted); font-size: 11px; }
.photo-box { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.photo-box h3 span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.thumb { width: 96px; margin: 0; }
.thumb img { display: block; width: 96px; height: 128px; object-fit: cover; background: var(--ice); }
.thumb figcaption { display: grid; gap: 2px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.thumb figcaption b { color: var(--navy); font-weight: 600; }
.thumb figcaption em { font-style: normal; color: var(--amber); }
.thumb-st-2 { outline: 2px solid var(--red); }
.thumb-st-1, .thumb-st-3 { outline: 2px solid var(--green-deep); }
.page-dense .queue { gap: 2px; max-height: 70vh; }
#queue-items { display: contents; }
.queue-sent { height: 8px; }
.queue-status { margin: 6px 0 0; }
.page-dense .queue-item { display: grid; grid-template-columns: 8px 1fr; gap: 8px; align-items: start; padding: 8px 8px 8px 6px; border: 0; border-left: 2px solid transparent; }
.page-dense .queue-item.is-on { background: var(--ice); border-left-color: var(--navy); }
.pri-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; display: block; }
.pri-dot.pri-wysoki { background: var(--red); }
.pri-dot.pri-sredni { background: var(--amber); }
.pri-dot.pri-niski { background: #94AEC7; }
.q-body { display: grid; gap: 2px; min-width: 0; }
.q-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.q-when { font-size: 11px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.q-badge { font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.q-badge-open { color: var(--red); }
.q-badge-waiting { color: var(--amber); }
.q-badge-replied { color: var(--green-deep); }
.q-badge-done { color: var(--muted); }
.page-dense .queue-item.is-replied { opacity: .72; }
.mark-box, .acct-strip, .dossier-box, .wiz-preview { margin: 10px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mark-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.mark-bar input[type="text"] { flex: 1 1 180px; min-height: 32px; font-size: 12px; }
.acct-status { font-size: 13px; margin: 4px 0 8px; }
.wiz-fields { display: grid; gap: 8px; margin: 8px 0 0; }
.wiz-fields dt { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.wiz-fields dd { margin: 2px 0 0; font-size: 13px; white-space: pre-wrap; }
.msg-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.msg-list li { display: grid; gap: 2px; font-size: 12px; }
.json-box { margin-top: 12px; }
.json-box pre { max-height: 240px; overflow: auto; font-size: 11px; background: var(--ice); padding: 8px; }
.q-line { font-size: 12px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-meta { font-size: 11px; color: var(--muted); }
.page-dense .detail h2 { font-size: 16px; margin-bottom: 4px; }
.page-dense .fact { margin: 8px 0 0; font-size: 13px; }
.page-dense .fact b { display: block; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.page-dense .cms-box, .page-dense .skill-box { margin-top: 10px; padding-top: 10px; }
.page-dense .cms-box { background: var(--ice); padding: 10px; border-top: 0; }
.page-dense h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 4px; }
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.archive { margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.archive > summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.archive > summary span { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 6px; }
.playbook { margin-top: 16px; border: 1px solid var(--line); padding: 8px 12px; }
.playbook > summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.playbook > summary span { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 8px; }
.play-list { margin-top: 8px; display: grid; gap: 4px; }
.play-item { padding: 6px 0; border-top: 1px solid var(--line); }
.play-item summary { cursor: pointer; font-size: 12px; }
.play-item p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.queue-empty { margin: 8px 0 0; font-size: 12px; }
.mail-box { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mail-item { margin: 8px 0; }
.mail-item blockquote { margin: 4px 0 0; padding: 8px 10px; background: var(--ice); font-size: 12px; white-space: pre-wrap; max-height: 220px; overflow: auto; }
.timeline { margin: 8px 0 0; padding-left: 16px; }
.timeline li { margin: 0 0 8px; font-size: 12px; }
.timeline time { display: block; font-size: 11px; color: var(--muted); }
.timeline .who { display: block; font-weight: 600; }
.timeline .dowod { display: block; font-size: 11px; color: var(--muted); }
.pipe { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 6px 0 0; padding: 0; }
.pipe li { display: flex; flex-direction: column; gap: 2px; max-width: 220px; padding: 6px 8px; border: 1px solid var(--line); background: var(--white); font-size: 11px; position: relative; }
.pipe li + li { margin-left: 12px; }
.pipe li + li:before { content: ""; position: absolute; left: -10px; top: 16px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--navy); }
.pipe-role { text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-size: 10px; }
.pipe em { font-style: normal; color: var(--amber); }
.pipe-url { word-break: break-all; color: var(--navy); text-decoration: underline; }
.analyze-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.analyze-form label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.analyze-form select { min-height: 32px; font: 12px Montserrat, sans-serif; color: var(--navy); border: 1px solid var(--line); }
@media (max-width: 1100px) {
  .kpis, .grid-2, .report-grid, .cluster-grid, .desk { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .page-dense h1 { font-size: 18px; }
  .chart { height: 200px; gap: 8px; }
  .bar { width: 10px; }
  .mod-card-body { grid-template-columns: 1fr; }
  .mod-photo-col { max-width: 280px; margin: 0 auto; }
  .mod-wait-clock { font-size: 32px; }
}
@media (max-width: 900px) {
  .page-makieta .desk {
    grid-template-columns: 1fr;
    grid-template-areas:
      "queue"
      "thread"
      "draft"
      "desk";
  }
  .page-makieta .desk > .card { max-height: none; }
  .page-makieta .thread-card .wiz-fields { grid-template-columns: 1fr; }
}

/* Hub: klikalna karta Wkrótce */
.report-card.soon-link { opacity: .88; cursor: pointer; text-decoration: none; color: inherit; }
.report-card.soon-link:hover { opacity: 1; border-color: var(--navy); }

/* Nav: makieta moderacji */
.nav-mock { opacity: .75; font-style: italic; }

/* Moderacja — makieta statyczna */
.page-moderacja .mod-statline { margin-bottom: 14px; }
.mod-toolbar { margin-bottom: 12px; display: grid; gap: 12px; }
.mod-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mod-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-width: 52px; }
.mod-chips { margin: 0; }
.mod-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.mod-filters label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mod-filters select { min-height: 32px; font: 12px Montserrat, sans-serif; border: 1px solid var(--line); color: var(--navy); }
.mod-check { cursor: default; }
.mod-toolbar-actions { border-top: 1px solid var(--line); padding-top: 10px; }
.mod-list-meta { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.mod-list-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.mod-list-bar .mod-list-meta { margin: 0; }
.mod-list-bar-bottom { margin: 14px 0 0; justify-content: flex-end; }
.mod-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mod-pager-n { min-width: 32px; min-height: 32px; padding: 6px 8px; text-align: center; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--navy); }
.mod-pager-n.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.mod-pager-gap { color: var(--muted); padding: 0 2px; }
.btn.is-off { opacity: .4; pointer-events: none; }
.mod-cards { display: grid; gap: 14px; }
.mod-card { padding: 0; overflow: hidden; transition: border-color .15s; cursor: pointer; }
.mod-card.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.mod-card-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ice); border-bottom: 1px solid var(--line); font-size: 11px; }
.pri-dot-inline { padding: 2px 8px; border-radius: 0; text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.pri-dot-inline.pri-wysoki { background: #f8e4e4; color: var(--red); }
.pri-dot-inline.pri-sredni { background: #fff6e8; color: var(--amber); }
.pri-dot-inline.pri-niski { background: var(--ice); color: var(--muted); }
.mod-id { font-weight: 600; color: var(--navy); }
.mod-cms-st { padding: 2px 8px; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.mod-cms-st-0 { background: #fff6e8; color: var(--amber); }
.mod-cms-st-1, .mod-cms-st-3 { background: #e7f4ea; color: var(--green-deep); }
.mod-cms-st-2 { background: #f8e4e4; color: var(--red); }
.mod-desk-state { margin-left: auto; font-weight: 600; }
.mod-desk-todo { color: var(--muted); }
.mod-desk-in_progress { color: var(--amber); }
.mod-desk-done { color: var(--green-deep); }
.mod-card-body { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 20px; padding: 16px; }
.mod-photo-col { position: relative; }
.mod-photo { display: block; background: var(--ice); border: 1px solid var(--line); line-height: 0; }
.mod-photo img { display: block; width: 100%; height: auto; max-height: 400px; object-fit: contain; background: var(--ice); }
.mod-photo-badge { display: block; margin-top: 8px; padding: 6px 10px; background: #fff6e8; border-left: 3px solid var(--amber); font-size: 11px; font-weight: 600; color: var(--amber); }
.mod-type, .mod-n { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mod-photo-empty { display: flex; align-items: center; justify-content: center; min-height: 220px; background: #f4f1ea; color: var(--muted); font-size: 13px; font-weight: 600; }
.mod-photo-meta { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.mod-prev-rejects { margin-top: 10px; }
.mod-prev-rejects .thumb { width: 56px; }
.mod-prev-rejects .thumb img { width: 56px; height: 74px; }
.mod-login { margin: 0 0 8px; font-size: 18px; }
.mod-wait { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-left: 6px solid var(--muted); background: var(--ice); }
.mod-wait.is-ok { border-left-color: var(--green-deep); background: #f3f8ee; }
.mod-wait.is-warn { border-left-color: var(--amber); background: #fffbf0; }
.mod-wait.is-hot { border-left-color: var(--red); background: #fdf3f3; }
.mod-wait-kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mod-wait-clock { margin: 4px 0 2px; font-size: 42px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.mod-wait.is-ok .mod-wait-clock { color: var(--green-deep); }
.mod-wait.is-warn .mod-wait-clock { color: var(--amber); }
.mod-wait.is-hot .mod-wait-clock { color: var(--red); }
.mod-wait-from { margin: 0; font-size: 12px; color: var(--muted); }
.mod-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0 0 12px; }
.mod-dates div { min-width: 0; }
.mod-dates dt { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mod-dates dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--navy); }
.mod-facts-inline { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.mod-facts-inline b { color: var(--navy); }
.mod-facts-short { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--navy-mid); }
.mod-facts-list { margin-bottom: 12px; }
.mod-reco { background: #fffbf0; border: 1px solid rgba(196, 122, 0, .25); border-left: 4px solid var(--amber); padding: 12px 14px; margin-bottom: 12px; }
.mod-reco.is-tak { background: #f3f8ee; border-color: rgba(61, 109, 0, .25); border-left-color: var(--green-deep); }
.mod-reco.is-nie { background: #fdf3f3; border-color: rgba(176, 48, 48, .25); border-left-color: var(--red); }
.mod-reco h3 { margin: 0 0 6px; }
.mod-reco-action { margin: 0 0 6px; font-size: 14px; }
.mod-verdict { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.mod-verdict span { display: inline-block; min-width: 52px; padding: 2px 10px; margin-right: 8px; font-size: 16px; font-weight: 800; letter-spacing: .04em; text-align: center; }
.mod-verdict-tak span { background: #e7f4ea; color: var(--green-deep); }
.mod-verdict-nie span { background: #f8e4e4; color: var(--red); }
.mod-reco-desc, .mod-reco-do { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.mod-reco-body { margin: 0 0 6px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.mod-reco-meta { margin: 0 0 8px; font-size: 11px; color: var(--muted); }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.mod-decide { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--ice); }
.mod-decide-kicker { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mod-decide-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mod-decide-reject { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.mod-decide-reject label { font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.mod-decide-reject select { min-height: 40px; min-width: 220px; font: 13px Montserrat, sans-serif; color: var(--navy); border: 1px solid var(--line); }
.mod-decide-nie { color: var(--red); border-color: rgba(173, 0, 0, .35); }
.mod-cms-note { margin: 0; font-size: 11px; }
.mod-legend h2 { font-size: 16px; }
.mod-empty { padding: 20px 16px; }
.mod-inline-form { display: inline; }
.mod-chips .chip { text-decoration: none; }

/* Replay — makieta observability */
.page-replay .replay-statline { margin-bottom: 14px; }
.replay-runs, .replay-pr, .replay-matrix-card, .replay-next { margin-top: 16px; }
.replay-split-grid { margin-top: 16px; }
.replay-run-table { min-width: 0; }
.replay-run-row { cursor: pointer; }
.replay-run-row:hover { background: var(--ice); }
.replay-run-row.is-on { background: var(--ice); box-shadow: inset 3px 0 0 var(--navy); }
.replay-run-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.replay-split { display: grid; gap: 12px; margin: 12px 0; }
.replay-split-row { display: grid; grid-template-columns: 110px 1fr 56px 40px; gap: 8px; align-items: center; }
.replay-split-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.replay-split-row b { font-size: 12px; font-variant-numeric: tabular-nums; }
.replay-split-row em { font-size: 11px; font-style: normal; color: var(--muted); }
.replay-changelog { margin: 10px 0 0; padding-left: 18px; }
.replay-changelog li { margin: 0 0 10px; }
.replay-changelog time { display: block; font-size: 11px; color: var(--muted); }
.replay-ver { display: inline-block; font-weight: 700; margin-right: 6px; }
.replay-changelog p { margin: 4px 0 0; font-size: 12px; color: var(--navy); }
.replay-pr-strong { background: #f4faea; }
.replay-pr-vision { color: var(--muted); }
.replay-pr-vision td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.replay-matrix-wrap { overflow-x: auto; margin-top: 10px; }
.replay-matrix { width: max-content; border-collapse: collapse; font-size: 10px; font-variant-numeric: tabular-nums; }
.replay-matrix th, .replay-matrix td { width: 28px; min-width: 28px; height: 24px; padding: 0; text-align: center; border: 1px solid var(--line); }
.replay-matrix th { background: var(--ice); font-weight: 600; color: var(--muted); }
.replay-cell-diag { background: #eef8dc; color: #3d6d00; font-weight: 700; }
.replay-cell-miss { background: #fff6e8; }
.replay-cell-abs { background: #f4f6f8; color: var(--muted); }
.replay-cell-warm { font-weight: 600; }
.replay-cell-hot { font-weight: 700; background: #f8e4e4; color: var(--red); }
.replay-gallery { margin-top: 20px; display: grid; gap: 14px; }
.replay-gallery > h2 { margin: 0; font-size: 16px; }
.replay-smoke { margin-bottom: 24px; }
.replay-smoke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.replay-smoke-card { padding: 10px; }
.replay-smoke-card .mod-photo img { width: 100%; height: 200px; object-fit: cover; }
.replay-smoke-card .mod-id { margin: 8px 0 4px; font-size: 12px; }
.replay-smoke-card .mod-reco-action { margin: 0 0 4px; font-weight: 600; }
.replay-smoke-card .mod-reco-body { margin: 0; font-size: 13px; line-height: 1.35; }
.replay-smoke-reject { border-left: 4px solid var(--red); }
.replay-smoke-abstain { border-left: 4px solid var(--navy); }
.replay-window { margin-bottom: 28px; }
.replay-window-stat { margin: 10px 0 14px; }
.replay-window-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.replay-window-filters .btn.is-on { background: var(--navy); color: #fff; }
.replay-window-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.replay-window-card { padding: 10px; }
.replay-window-card .mod-photo img { width: 100%; height: 220px; object-fit: cover; }
.replay-vs-mini { margin-top: 8px; grid-template-columns: 1fr 1fr; }
.replay-vs-mini .replay-side { padding: 8px 10px; }
.replay-vs-mini h3 { font-size: 12px; }
.replay-window-verdict { margin: 8px 0 4px; font-size: 12px; font-weight: 600; }
.replay-v-engine_stricter { border-left: 4px solid var(--red); }
.replay-v-engine_softer { border-left: 4px solid var(--amber); }
.replay-v-agree_reject, .replay-v-agree_reject_reason, .replay-v-engine_review { border-left: 4px solid var(--green-deep); }
.replay-vtag-engine_stricter { color: var(--red); }
.replay-vtag-engine_softer { color: var(--amber); }
.replay-vtag-agree_reject, .replay-vtag-agree_reject_reason, .replay-vtag-engine_review { color: var(--green-deep); }
.replay-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.replay-side { padding: 12px 14px; border: 1px solid var(--line); }
.replay-side h3 { margin: 0 0 6px; }
.replay-side-algo { background: #fffbf0; border-left: 4px solid var(--amber); }
.replay-side-cms { background: var(--ice); border-left: 4px solid var(--navy); }
.replay-step-done strong { color: var(--green-deep); }
.replay-step-next strong { color: var(--amber); }
.replay-disagree { cursor: pointer; }
.replay-tabs { margin: 0 0 16px; }
@media (max-width: 1100px) {
  .replay-vs { grid-template-columns: 1fr; }
  .replay-split-row { grid-template-columns: 1fr 1fr; }
}

/* Wizytówki — makieta: kolejka | profil | historia */
.page-wizytowki .topbar-inner,
.page-wizytowki .wrap { width: min(1480px, calc(100% - 24px)); }
.page-wizytowki .wiz-test { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.page-wizytowki .wiz-test .btn { margin-left: auto; }
.wiz-test-state { padding: 2px 8px; background: #fff6e8; color: var(--amber); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.page-wizytowki.page-dense .desk,
.page-wizytowki .wiz-desk {
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  align-items: start;
  margin-top: 10px;
}
.page-wizytowki.page-dense .queue-item {
  grid-template-columns: 8px minmax(0, 1fr) 36px;
  text-align: left;
}
.wiz-q-thumb { width: 36px; height: 48px; object-fit: cover; background: var(--ice); }
.wiz-stage { min-width: 0; }
.page-wizytowki.page-dense .wiz-card { display: none !important; padding: 0; overflow: hidden; pointer-events: none; }
.page-wizytowki.page-dense .wiz-card.is-on { display: block !important; pointer-events: auto; }
.page-wizytowki .queue-item[hidden] img { content-visibility: hidden; }
.wiz-card .mod-card-head { margin: 0; flex-wrap: wrap; }
.wiz-card .mod-reco,
.wiz-card .wiz-profile,
.wiz-card .wiz-fields,
.wiz-card .mod-decide,
.wiz-card .mod-actions { margin: 10px 12px; }
.wiz-card .mod-actions { margin-bottom: 14px; }
.mod-wait-inline { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.mod-wait-inline.is-ok { color: var(--green-deep); }
.mod-wait-inline.is-warn { color: var(--amber); }
.mod-wait-inline.is-hot { color: var(--red); }
.wiz-profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.wiz-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.wiz-photos .thumb { width: 112px; }
.wiz-photos .thumb img { width: 112px; height: 148px; }
.wiz-photos .thumb:first-child { width: 168px; }
.wiz-photos .thumb:first-child img { width: 168px; height: 224px; }
.wiz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wiz-field { padding: 10px 12px; border: 1px solid var(--line); background: var(--white); min-width: 0; }
.wiz-field[data-field="434"],
.wiz-field[data-field="442"],
.wiz-field[data-field="443"],
.wiz-field[data-field="444"] { grid-column: 1 / -1; }
.wiz-field.is-ok { border-left: 4px solid var(--green-deep); }
.wiz-field.is-rej { border-left: 4px solid var(--red); background: #fdf3f3; }
.wiz-field-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.wiz-field-name { margin: 0; font-size: 13px; }
.wiz-field-name span { color: var(--muted); font-weight: 500; }
.wiz-llm { padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.wiz-llm.is-tak { background: #e7f4ea; color: var(--green-deep); }
.wiz-llm.is-nie { background: #f8e4e4; color: var(--red); }
.wiz-field-q { margin: 4px 0 2px; font-size: 11px; color: var(--muted); }
.wiz-field-val { margin: 0; font-size: 13px; line-height: 1.4; }
.wiz-field-val { color: #111; }
.wiz-field-prev { margin: 6px 0 0; color: #c00; font-size: 12px; }
.wiz-q-switch { margin: 0 0 10px; }
.wiz-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: 12px; }
.wiz-q-empty, .wiz-stage-empty { margin: 12px 0; color: var(--muted); font-size: 13px; }
.wiz-filters select { min-height: 28px; font: 12px Montserrat, sans-serif; }
.wiz-autosubmit { font-size: 11px; color: var(--amber); font-weight: 700; }
.wiz-mail-flag, .wiz-watch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; font-size: 13px; }
.wiz-slowa { margin: 10px 12px; padding: 10px 12px; border: 1px dashed var(--line); background: #fffaf2; }
.film-skills { margin: 16px 0; }
.wiz-watch-row select { min-height: 32px; max-width: 260px; font: 12px Montserrat, sans-serif; }
.wiz-replay-gate { margin: 12px 0; }
.wiz-split-gates { margin: 0 0 16px; }
.wiz-sitko-help { margin: 0 0 12px; }
.wiz-sitko { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.wiz-sitko li { padding: 2px 8px; font-size: 11px; font-weight: 700; }
.wiz-sitko .is-ok { background: #eef8dc; color: #3d6d00; }
.wiz-sitko .is-hit { background: #f8e4e4; color: var(--red); }
.wiz-gpt { display: inline-block; margin-left: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.wiz-gpt.is-tak { background: #eef8dc; color: #3d6d00; }
.wiz-gpt.is-nie { background: #f8e4e4; color: var(--red); }
.wiz-gpt.is-wait { background: var(--ice); color: var(--muted); }
.wiz-gpt-box { margin-top: 8px; }
.wiz-gpt-box.is-wait { border-left: 4px solid var(--navy); }
.wiz-gpt-why { margin: 4px 0 0; font-size: 12px; color: var(--navy-mid); }
.wiz-ai { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.wiz-ai.is-tak { background: #e7f4ea; color: var(--green-deep); }
.wiz-ai.is-nie { background: #f8e4e4; color: var(--red); }
.wiz-ai.is-wait { opacity: .72; }
.wiz-engine-box.is-wait { border-left: 4px solid var(--navy); }
.wiz-engine-src { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.mod-verdict-wait span { background: var(--ice); color: var(--navy); }
.wiz-llm-why { margin: 6px 0 0; font-size: 12px; color: var(--navy-mid); }
.wiz-field-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; font-size: 12px; }
.wiz-field-vote select { min-height: 32px; max-width: 100%; min-width: 0; flex: 1 1 200px; font: 12px Montserrat, sans-serif; color: var(--navy); border: 1px solid var(--line); }
.page-wizytowki.page-dense .wiz-history { position: sticky; top: 8px; max-height: calc(100vh - 80px); overflow: auto; }
.wiz-tl { display: none; }
.wiz-tl.is-on { display: block; }
.wiz-tl h3 { margin: 0 0 4px; }
.page-wizytowki .timeline { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 12px; }
.wiz-gate { margin: 8px 0 0; }
.wiz-suspect { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.wiz-suspect p { margin: 0 0 8px; font-size: 13px; }
.wiz-reject-card:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 1100px) {
  .page-wizytowki.page-dense .desk,
  .page-wizytowki .wiz-desk { grid-template-columns: 1fr; }
  .page-wizytowki.page-dense .wiz-history { position: static; max-height: none; }
  .wiz-profile { grid-template-columns: 1fr; }
  .wiz-fields { grid-template-columns: 1fr; }
}

/* BotContract chrome — session + stale-list + confirm gap */
.bot-chrome { background: var(--ice); border-bottom: 1px solid var(--line); font-size: 13px; }
.bot-chrome.is-warn .bot-chrome-timer { color: var(--amber); }
.bot-chrome.is-hot .bot-chrome-timer { color: var(--red); }
.bot-chrome-inner { width: min(1200px, calc(100% - 40px)); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 44px; padding: 8px 0; }
.bot-chrome-timer { margin: 0; font-weight: 600; }
.bot-chrome-timer b { font-variant-numeric: tabular-nums; }
.bot-chrome-hint { margin: 0; color: var(--muted); flex: 1 1 220px; }
.bot-chrome-gap { margin: 0; padding: 4px 8px; background: #fff6e8; border-left: 3px solid var(--amber); font-weight: 600; }
.bot-chrome .btn { min-height: 44px; }
.bot-chrome-stale { display: none; background: #fff6e8; border-top: 1px solid var(--line); }
.bot-chrome-stale[hidden] { display: none !important; }
.bot-chrome-stale.is-on:not([hidden]) { display: block; }
.bot-chrome-widgets { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 10px; color: var(--muted); }
.bot-chrome-widgets ul { margin: 8px 0 0; padding-left: 18px; columns: 2; }
.bot-chrome-widgets code { font-size: 12px; }

/* Replay wizytówki — macierz, tory, tabela rozjazdów */
.page-replay .wiz-viz { margin: 16px 0 8px; }
.page-replay .wiz-matrix {
  display: grid;
  grid-template-columns: 108px 1fr 1fr;
  gap: 6px;
  align-items: stretch;
  margin-top: 10px;
}
.page-replay .wiz-mx-lab {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}
.page-replay .wiz-mx {
  min-height: 78px;
  padding: 10px 8px;
  display: grid;
  align-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.page-replay .wiz-mx b { display: block; font-size: 22px; line-height: 1.1; }
.page-replay .wiz-mx span { display: block; font-size: 11px; font-weight: 600; }
.page-replay .wiz-mx-tp { background: #eef8dc; color: #3d6d00; }
.page-replay .wiz-mx-fp { background: #fff6e8; color: var(--amber); }
.page-replay .wiz-mx-fn { background: #f8e4e4; color: var(--red); }
.page-replay .wiz-mx-tn { background: var(--ice); color: var(--navy); }
.page-replay .wiz-track-card .line { grid-template-columns: 88px 1fr 52px; }
.page-replay .fill.wiz-p { background: var(--green-deep); }
.page-replay .fill.wiz-r { background: var(--navy); }
.page-replay .fill.wiz-a { background: var(--amber); }
.page-replay .wiz-powod-chart { height: 168px; gap: 5px; margin-top: 10px; }
.page-replay .wiz-powod-chart .col label { font-size: 10px; margin-top: 4px; }
.page-replay .wiz-powod-chart .bar.cms { background: var(--navy); }
.page-replay .wiz-powod-chart .bar.pred { background: var(--amber); }
.page-replay .wiz-powod-chart .bar.hit { background: var(--green); }
.page-replay .wiz-pill {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 2px 2px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.page-replay .wiz-pill-ok { background: #eef8dc; color: #3d6d00; }
.page-replay .wiz-pill-no { background: #f8e4e4; color: var(--red); }
.page-replay .wiz-pill-soft { background: #fff6e8; color: var(--amber); }
.page-replay .wiz-pill-q { background: var(--ice); color: var(--navy-mid); }
.page-replay .wiz-dis-block { margin-top: 22px; }
.page-replay .wiz-dis-block.is-fp h2 { color: var(--amber); }
.page-replay .wiz-dis-block.is-fn h2 { color: var(--red); }
.page-replay .wiz-dis-table { min-width: 960px; }
.page-replay .wiz-dis-table td { font-size: 12px; }
.page-replay .wiz-fields .wiz-field { display: block; margin: 0 0 6px; }
.page-replay .wiz-fields .wiz-field.is-hit {
  background: #fffbf0;
  padding: 4px 6px;
  box-shadow: inset 3px 0 0 var(--amber);
}
.page-replay .wiz-why { display: block; margin-top: 4px; color: var(--muted); }
.page-replay .wiz-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; font-size: 12px; }

.page-mailsim .mailsim-tools { align-items: center; margin-top: 18px; }
.page-mailsim .mailsim-split { margin-top: 20px; }
.page-mailsim .mailsim-h2 { margin-top: 18px; }
.page-mailsim .mailsim-table-card { margin-top: 20px; }
.page-mailsim .mailsim-scroll { overflow: auto; max-height: 640px; }
.page-mailsim .mailsim-table { min-width: 920px; }
.page-mailsim .mailsim-row { cursor: pointer; }
.page-mailsim .mailsim-row:hover, .page-mailsim .mailsim-row.is-on { background: var(--ice); }
.page-mailsim .delta-up { color: var(--green-deep); font-weight: 700; }
.page-mailsim .delta-down { color: var(--red); font-weight: 700; }
.page-mailsim .delta-flat { color: var(--muted); }
.page-mailsim .mailsim-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.page-mailsim .mailsim-cols ul { margin: 6px 0 0; padding-left: 1.1rem; font-size: 13px; }
.page-mailsim .mailsim-chart { margin-top: 8px; overflow-x: auto; }
.page-mailsim .mailsim-chart[data-horizon="30"] .col label { font-size: 7px; }
@media (max-width: 800px) {
  .page-mailsim .mailsim-cols { grid-template-columns: 1fr; }
}

/* Twarze — makieta statyczna p=46 (kolejka | karta | decyzja) */
.page-twarze .desk { grid-template-columns: 230px minmax(0, 1fr) 330px; }
.tw-photo { width: 240px; }
.tw-photo img { width: 240px; height: 320px; object-fit: cover; }
.tw-ph { display: flex; align-items: center; justify-content: center; width: 240px; height: 320px; background: var(--ice); color: var(--muted); font-size: 12px; text-align: center; padding: 10px; }
.tw-banner { margin: 10px 12px 0; padding: 12px 14px; background: #fdf3f3; border-left: 4px solid var(--red); font-weight: 600; font-size: 14px; }
.tw-banner span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tw-deck { display: none !important; pointer-events: none; }
.tw-deck.is-on { display: block !important; pointer-events: auto; }
.tw-skip { margin: 16px 0 24px; }
.tw-skip h2 { margin: 0 0 6px; font-size: 16px; }
.tw-skip-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tw-skip-list li { display: flex; gap: 8px; align-items: start; padding: 6px; border: 1px solid var(--line); background: var(--ice); font-size: 12px; }
.tw-skip-list img { width: 36px; height: 48px; object-fit: cover; background: var(--white); }
.tw-skip-list em { display: block; font-style: normal; color: var(--muted); }
.tw-deck .cms-box { margin-top: 12px; }
.tw-cmslink { display: block; margin: 6px 0 0; font-size: 12px; }
.tw-cmslink code { font-size: 12px; }
.tw-cmslink a { text-decoration: underline; }
.tw-why { margin: 6px 0 0; font-size: 12px; color: var(--red); }
.tw-edu { margin: 6px 0 0; font-size: 12px; color: var(--amber); font-weight: 600; }
.tw-filters label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.tw-filters input, .tw-filters select { min-height: 30px; border: 1px solid var(--line); font: 12px Montserrat, sans-serif; color: var(--navy); padding: 4px 8px; background: var(--white); }
.tw-filters input:disabled, .tw-filters select:disabled { background: var(--ice); cursor: not-allowed; }
.page-twarze .btn:disabled { cursor: not-allowed; }
.tw-pager { margin-top: 14px; }
.tw-pager .btn { flex: 0 0 auto; }
.tw-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; font-size: 13px; box-shadow: var(--soft); max-width: min(680px, 92vw); z-index: 99; opacity: 0; pointer-events: none; transition: opacity .2s; }
.tw-toast.is-on { opacity: 1; }
.tw-toast code { background: rgba(255,255,255,.16); padding: 1px 6px; font-size: 12px; color: #fff; }
.tw-precon { margin: 6px 0 10px; }
.page-twarze .wiz-photos { align-self: start; }
.tw-mission { margin: 0 0 14px; padding: 14px 16px; }
.tw-mission-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.tw-mission h2 { margin: 0; font-size: 16px; }
.tw-mission-reco { margin: 0; font-size: 13px; }
.tw-mission-reco b { font-size: 20px; color: var(--green-deep); }
.tw-progress { position: relative; height: 32px; background: var(--ice); border: 1px solid var(--line); margin: 10px 0 6px; }
.tw-progress-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, var(--green), var(--green-deep)); display: flex; align-items: center; justify-content: flex-end; overflow: hidden; }
.tw-progress-fill span { color: #fff; font-weight: 700; font-size: 15px; padding: 0 10px; white-space: nowrap; }
.tw-progress.is-behind .tw-progress-fill { background: linear-gradient(180deg, #e2a13c, var(--amber)); }
.tw-progress.is-done .tw-progress-fill { background: linear-gradient(180deg, var(--navy-mid), var(--navy-deep)); }
.tw-progress-pace { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--navy); opacity: .55; }
.tw-progress-out { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; padding-left: 10px; font-weight: 700; font-size: 15px; color: var(--navy); }
.tw-pool { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.tw-pool-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tw-pool-item { display: grid; gap: 2px; justify-items: center; width: 78px; padding: 6px 4px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: 11px Montserrat, sans-serif; color: var(--navy); }
.tw-pool-item img { width: 64px; height: 84px; object-fit: cover; background: var(--ice); }
.tw-pool-item b { font-size: 11px; }
.tw-pool-item span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-pool-item:hover, .tw-pool-item.is-on { border-color: var(--navy); background: var(--ice); }
.tw-modal { position: fixed; inset: 0; background: rgba(0, 20, 45, .45); display: flex; align-items: center; justify-content: center; z-index: 120; padding: 20px; }
.tw-modal[hidden] { display: none !important; }
.tw-modal-box { background: var(--white); box-shadow: var(--soft); max-width: min(520px, 94vw); width: 100%; padding: 20px; border-top: 4px solid var(--green-deep); }
.tw-modal-box h2 { margin: 0 0 10px; font-size: 18px; }
.tw-modal-what { margin: 0 0 8px; font-size: 15px; }
.tw-modal-facts { margin: 0 0 10px 18px; padding: 0; font-size: 13px; line-height: 1.5; }
.tw-modal-status { margin: 10px 0 0; padding: 10px 12px; background: var(--ice); font-size: 13px; line-height: 1.4; }
.tw-modal-status .tw-ok { color: var(--green-deep); }
.tw-modal-status .tw-bad { color: var(--red); }
.tw-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
@media (max-width: 1100px) {
  .page-twarze .desk { grid-template-columns: 1fr; }
  .tw-photo, .tw-photo img, .tw-ph { width: 100%; max-width: 320px; }
}
