/* ═══════════════════════════════════════════════════════════
   Bartex — prototyp automatyzacji zamówień
   Dwa rejestry: jasna „biurowa” skrzynka + ciemna maszynownia.
   Sygnatura: ścieg (running stitch) w explainerze pipeline'u.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #1f2733;          /* granat atramentowy — tekst */
  --ink-soft: #5a6472;
  --paper: #f7f8fa;        /* tło aplikacji */
  --panel: #ffffff;
  --rail-bg: #eef0f4;
  --line: #dde1e7;
  --accent: #3454d1;       /* kobalt — akcje i AI */
  --accent-soft: #e8edfb;
  --ok: #2e7d4f;
  --flag: #b7791f;
  --flag-soft: #fdf3e2;
  --dark: #161d29;         /* maszynownia */
  --dark-panel: #202a3a;
  --thread: #7d97f2;       /* nić w ściegu */
  --font-ui: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Avenir Next", "Segoe UI Variable Display", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-size: 12px; }

/* ── górny pasek ─────────────────────────────────────────── */
.topbar {
  height: 52px; display: flex; align-items: center; gap: 20px;
  background: var(--ink); color: #fff; padding: 0 16px;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 6px; background: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.brand-name { font-size: 15px; letter-spacing: .01em; }
.topbar-search {
  flex: 1; max-width: 480px; background: rgba(255,255,255,.14);
  border-radius: 6px; padding: 7px 12px; font-size: 13px; color: rgba(255,255,255,.75);
}
.search-icon { margin-right: 6px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.proto-badge {
  font-size: 11px; letter-spacing: .08em; font-weight: 600;
  background: var(--flag); color: #fff; padding: 4px 10px; border-radius: 4px;
}
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #4a5a72;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
}

/* ── układ trzech kolumn ─────────────────────────────────── */
.app { display: grid; grid-template-columns: 220px 340px 1fr; height: calc(100vh - 52px); }

.rail { background: var(--rail-bg); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; }
.rail-compose {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px; font-weight: 600; color: var(--ink-soft); cursor: not-allowed;
}
.rail-folders { list-style: none; margin-top: 16px; }
.folder {
  padding: 8px 10px; border-radius: 6px; color: var(--ink-soft);
  display: flex; align-items: center; gap: 4px; margin-bottom: 2px;
}
.folder.is-active { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.folder-count {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px;
}
.rail-note { margin-top: auto; margin-bottom: 38px; font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); padding: 10px 6px; border-top: 1px dashed var(--line); }

/* ── lista maili ─────────────────────────────────────────── */
.maillist { background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; }
.maillist-head { padding: 14px 16px 10px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); }
.mail-item {
  width: 100%; text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--line); display: block; position: relative;
}
.mail-item:hover { background: #f3f5f9; }
.mail-item.is-open { background: var(--accent-soft); }
.mail-item.is-unread .mail-from, .mail-item.is-unread .mail-subject { font-weight: 700; }
.mail-item.is-unread::before {
  content: ""; position: absolute; left: 5px; top: 16px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.mail-row1 { display: flex; justify-content: space-between; gap: 8px; }
.mail-from { font-size: 13.5px; }
.mail-time { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.mail-subject { font-size: 13px; margin-top: 2px; }
.mail-preview { font-size: 12px; color: var(--ink-soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  border-radius: 4px; padding: 1px 6px; margin-top: 5px;
}
.tag-ai { background: var(--accent-soft); color: var(--accent); }
.tag-ok { background: #e5f3ea; color: var(--ok); }
.mail-enter { animation: mail-in .45s ease; }
@keyframes mail-in { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── panel czytania ──────────────────────────────────────── */
.reader { overflow-y: auto; background: var(--paper); }
.reader-empty { height: 100%; display: grid; place-content: center; text-align: center; color: var(--ink-soft); line-height: 1.6; }
.reader-empty-icon { font-size: 42px; margin-bottom: 10px; opacity: .4; }
.reader-mail { max-width: 760px; margin: 24px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px 30px; }
.rm-subject { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.rm-meta { display: flex; align-items: center; gap: 12px; margin: 14px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rm-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.rm-who { font-size: 13px; line-height: 1.4; }
.rm-actions { margin-left: auto; }
.rm-body { font-size: 14px; line-height: 1.65; }
.rm-body p { margin-bottom: 12px; }
.rm-body .sig { color: var(--ink-soft); font-size: 13px; }
.attach-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px;
  background: #fafbfc; font-size: 13px;
}
.attach-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.attach-icon { color: #c0392b; font-weight: 700; font-size: 12px; }

.btn {
  border-radius: 7px; padding: 9px 18px; font-weight: 600; font-size: 13.5px;
  transition: transform .08s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:disabled { background: #b9c3e4; cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); }
.overlay-dark .btn-ghost { border-color: #3b475c; background: transparent; color: #cbd5e6; }
.btn-approve { background: var(--ok); color: #fff; padding: 10px 22px; }

/* przyciski w mailu AI */
.mail-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ai-table { width: 100%; border-collapse: collapse; margin: 14px 0 4px; font-size: 13px; }
.ai-table th { text-align: left; font-size: 11.5px; letter-spacing: .03em; color: var(--ink-soft); border-bottom: 2px solid var(--line); padding: 6px 8px; }
.ai-table td { border-bottom: 1px solid var(--line); padding: 7px 8px; }
.row-flag td { background: var(--flag-soft); }
.flag-note { font-size: 12px; color: var(--flag); font-weight: 600; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ── okno „przekaż dalej” ────────────────────────────────── */
.compose {
  position: fixed; right: 24px; bottom: 0; width: 520px; z-index: 40;
  background: var(--panel); border: 1px solid var(--line); border-bottom: none;
  border-radius: 12px 12px 0 0; box-shadow: 0 -6px 40px rgba(31,39,51,.18);
  animation: compose-up .25s ease;
}
@keyframes compose-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.compose-head {
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 11px 11px 0 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.compose-close { color: #fff; font-size: 14px; }
.compose-to { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compose-to label { font-size: 13px; color: var(--ink-soft); }
.compose-to-field { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.compose-to-field input { flex: 1; min-width: 120px; border: none; font: inherit; padding: 4px; }
.to-chip {
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12.5px;
  border-radius: 14px; padding: 4px 10px; display: inline-flex; gap: 6px; align-items: center;
}
.to-chip button { color: var(--accent); font-size: 11px; }
.compose-suggest { border-bottom: 1px solid var(--line); }
.suggest-item {
  width: 100%; display: flex; gap: 10px; align-items: center; text-align: left;
  padding: 10px 14px; font-size: 13px;
}
.suggest-item:hover { background: var(--accent-soft); }
.suggest-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.suggest-item small { color: var(--ink-soft); }
.compose-body { padding: 14px; min-height: 110px; }
.compose-quoted { font-size: 12.5px; color: var(--ink-soft); border-left: 3px solid var(--line); padding-left: 10px; line-height: 1.5; }
.compose-attach { margin-top: 10px; }
.compose-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.compose-hint { color: var(--ink-soft); }

/* ── nakładki ────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(22,29,41,.55);
  display: grid; place-items: center; padding: 24px;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.overlay-panel { background: var(--panel); border-radius: 12px; max-width: 860px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.overlay-bar {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: #fff; padding: 12px 18px; font-size: 13.5px;
  border-radius: 12px 12px 0 0;
}
.overlay-close { color: #fff; font-size: 15px; padding: 4px 8px; }

/* podgląd PDF */
.pdf-panel { max-width: 680px; }
.pdf-page { background: #fff; margin: 26px auto; width: min(600px, 92%); padding: 40px 44px; border: 1px solid var(--line); box-shadow: 0 3px 18px rgba(0,0,0,.09); font-family: Georgia, "Times New Roman", serif; }
.pdf-letterhead { display: flex; justify-content: space-between; border-bottom: 3px solid #16301f; padding-bottom: 12px; }
.pdf-logo { font-weight: 700; font-size: 19px; color: #16301f; }
.pdf-addr { text-align: right; font-size: 11px; color: #555; line-height: 1.5; }
.pdf-title { font-size: 17px; margin: 26px 0 4px; letter-spacing: .04em; }
.pdf-meta { font-size: 12px; color: #555; margin-bottom: 18px; }
.pdf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pdf-table th, .pdf-table td { border: 1px solid #999; padding: 6px 8px; text-align: left; }
.pdf-table th { background: #eee; font-size: 11px; }
.pdf-foot { font-size: 11px; color: #555; margin-top: 24px; }

/* ── maszynownia: explainer ──────────────────────────────── */
.overlay-dark { background: rgba(10,14,21,.92); }
.pipe { width: min(880px, 96vw); color: #e8edf6; }
.pipe-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pipe-eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--thread); font-weight: 700; margin-bottom: 6px; }
.pipe-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; }

.stitch { position: relative; margin: 26px 0 6px; }
.stitch-svg { width: 100%; height: 40px; display: block; }
.stitch-base { stroke: #34405a; stroke-width: 2; stroke-dasharray: 10 8; }
.stitch-run {
  stroke: var(--thread); stroke-width: 2.5; stroke-dasharray: 10 8;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .0s;
}
.stitch-dots { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 8px; }
.stitch-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #34405a;
  background: var(--dark); color: #93a1b8; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; transition: all .3s ease;
}
.stitch-dot.is-done { border-color: var(--thread); color: var(--thread); }
.stitch-dot.is-now { border-color: var(--thread); background: var(--thread); color: var(--dark); transform: scale(1.18); box-shadow: 0 0 22px rgba(125,151,242,.5); }

.pipe-stage {
  background: var(--dark-panel); border: 1px solid #2d3950; border-radius: 14px;
  min-height: 320px; margin-top: 22px; padding: 30px 36px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center;
}
.stage-text h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; }
.stage-text p { font-size: 14px; line-height: 1.7; color: #b9c4d6; }
.stage-text .stage-mark { color: var(--thread); font-weight: 700; }
.stage-visual { display: grid; place-items: center; min-height: 240px; }

/* wizualizacje kroków */
.v-doc {
  width: 170px; background: #fff; color: #333; border-radius: 6px; padding: 16px 14px;
  font-size: 9px; line-height: 1.7; position: relative; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.v-doc-line { height: 5px; background: #d8dce2; border-radius: 3px; margin-bottom: 6px; }
.v-doc-line.short { width: 60%; }
.v-doc-table { border-top: 1px solid #bbb; margin-top: 8px; padding-top: 6px; }
.v-scanbar {
  position: absolute; left: 0; right: 0; height: 26px; top: 0;
  background: linear-gradient(180deg, transparent, rgba(125,151,242,.35), transparent);
  animation: scan 2.2s ease-in-out infinite;
}
@keyframes scan { 0% { top: -30px; } 55% { top: 105%; } 100% { top: 105%; } }
.v-chips { display: flex; flex-direction: column; gap: 8px; margin-left: 18px; }
.v-chip {
  background: var(--dark); border: 1px solid var(--thread); color: #dfe6f6;
  font-size: 11.5px; border-radius: 6px; padding: 5px 10px; white-space: nowrap;
  opacity: 0; animation: chip-in .5s ease forwards;
}
.v-chip:nth-child(1) { animation-delay: .3s; } .v-chip:nth-child(2) { animation-delay: .8s; }
.v-chip:nth-child(3) { animation-delay: 1.3s; } .v-chip:nth-child(4) { animation-delay: 1.8s; }
@keyframes chip-in { from { transform: translateX(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.v-flex { display: flex; align-items: center; }

.v-map { width: 100%; font-size: 12px; }
.v-map-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  opacity: 0; animation: chip-in .45s ease forwards;
}
.v-map-row:nth-child(2) { animation-delay: .4s; } .v-map-row:nth-child(3) { animation-delay: .8s; }
.v-map-row:nth-child(4) { animation-delay: 1.2s; }
.v-map-src { background: #fff; color: #333; border-radius: 5px; padding: 5px 9px; min-width: 120px; }
.v-map-arrow { color: var(--thread); }
.v-map-dst { background: var(--dark); border: 1px solid var(--thread); border-radius: 5px; padding: 5px 9px; font-family: var(--font-mono); font-size: 11px; }
.v-map-dst.is-q { border-color: var(--flag); color: #e8c37a; }

.v-price { text-align: center; font-size: 14px; }
.v-price-cmp { display: flex; gap: 16px; align-items: center; justify-content: center; margin-bottom: 18px; }
.v-price-box { background: var(--dark); border: 1px solid #3b475c; border-radius: 8px; padding: 12px 16px; }
.v-price-box small { display: block; color: #8fa0b8; font-size: 10.5px; margin-bottom: 4px; }
.v-neq { font-size: 22px; color: var(--flag); font-weight: 700; }
.v-flag-note {
  background: rgba(183,121,31,.16); border: 1px solid var(--flag); color: #e8c37a;
  border-radius: 8px; padding: 10px 14px; font-size: 12.5px;
  opacity: 0; animation: chip-in .5s ease .8s forwards;
}

.v-api { display: flex; align-items: center; gap: 14px; }
.v-api-node { background: var(--dark); border: 1px solid #3b475c; border-radius: 10px; padding: 14px 18px; text-align: center; font-size: 12px; line-height: 1.5; }
.v-api-node strong { display: block; font-size: 13px; }
.v-api-pulse { color: var(--thread); font-size: 20px; animation: pulse 1s ease infinite; }
.v-knot {
  margin-top: 16px; text-align: center; font-size: 13px; color: #b9c4d6;
  opacity: 0; animation: chip-in .5s ease 1s forwards;
}
.v-knot .knot-dot { color: var(--thread); font-size: 17px; }

.pipe-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.pipe-counter { color: #8fa0b8; font-size: 13px; letter-spacing: .06em; }

/* ── Modus ERP mock ──────────────────────────────────────── */
.modus-panel { max-width: 820px; font-family: var(--font-ui); }
.modus-titlebar {
  background: linear-gradient(#5a6b85, #46556d); color: #fff; padding: 9px 14px;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 12px 12px 0 0; font-size: 13px;
}
.modus-toolbar {
  background: #e9ebef; border-bottom: 1px solid #c9ced6; padding: 9px 14px;
  font-size: 12px; color: #444; display: flex; gap: 18px; flex-wrap: wrap;
}
.modus-draft { color: var(--flag); letter-spacing: .05em; }
.modus-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.modus-table th { background: #f0f2f5; border: 1px solid #d5dae1; padding: 7px 9px; text-align: left; font-size: 11px; color: #555; }
.modus-table td { border: 1px solid #e2e6ec; padding: 8px 9px; }
.cell-flag { background: var(--flag-soft); font-weight: 700; }
.cell-comment { font-size: 11.5px; color: var(--flag); background: var(--flag-soft); }
.modus-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px; }
.modus-note { font-size: 12.5px; color: var(--ink-soft); }

/* ── ekran wprowadzający ─────────────────────────────────── */
.intro { max-width: 620px; color: #e8edf6; text-align: left; }
.intro-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.25; margin: 14px 0 18px; }
.intro-lead { font-size: 15px; line-height: 1.7; color: #b9c4d6; margin-bottom: 26px; }
.intro-steps { border-top: 2px dashed #34405a; padding-top: 22px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.intro-step { display: flex; gap: 14px; align-items: baseline; font-size: 14px; line-height: 1.6; color: #cbd5e6; }
.intro-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--thread); color: var(--thread); font-size: 12px; font-weight: 700;
  display: grid; place-items: center; transform: translateY(4px);
}
.intro-start { font-size: 15px; padding: 12px 26px; }

/* wskaźnik pracy w tle */
.ai-working {
  margin-left: 12px; font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 12px; padding: 4px 12px;
  display: inline-flex; align-items: center; gap: 7px; vertical-align: 2px;
}

/* ── toasty i sterowanie ─────────────────────────────────── */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  background: var(--ink); color: #fff; border-radius: 10px; padding: 13px 20px;
  font-size: 13px; line-height: 1.55; box-shadow: 0 10px 34px rgba(0,0,0,.3);
  width: 440px; max-width: calc(100vw - 40px);
  animation: toast-in .35s ease;
}
.toast.is-ok { background: var(--ok); }
@keyframes toast-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* podpowiedź „kliknij tutaj” — następny krok podskakuje i świeci */
.guide { animation: guide-pulse 1.4s ease-in-out infinite; will-change: transform, box-shadow; }
@keyframes guide-pulse {
  0%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(52, 84, 209, .55); }
  50% {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 22px rgba(52, 84, 209, .5), 0 0 0 6px rgba(52, 84, 209, .18);
  }
}
.suggest-item.guide { animation-name: guide-pulse-row; }
@keyframes guide-pulse-row {
  0%, 100% { transform: none; background: #fff; }
  50% { transform: scale(1.012); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
}
.btn-approve.guide { animation-name: guide-pulse-green; }
@keyframes guide-pulse-green {
  0%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(46, 125, 79, .55); }
  50% {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 22px rgba(46, 125, 79, .5), 0 0 0 6px rgba(46, 125, 79, .18);
  }
}

.demo-controls {
  position: fixed; left: 14px; bottom: 12px; z-index: 90;
  display: flex; gap: 8px; align-items: center;
  font-size: 11.5px; color: var(--ink-soft);
}
.demo-controls button {
  border: 1px solid var(--line); background: var(--panel); border-radius: 6px;
  padding: 4px 10px; font-size: 11.5px; color: var(--ink-soft);
}
.demo-controls button:hover { border-color: var(--accent); color: var(--accent); }
.demo-controls button.is-on { border-color: var(--accent); color: var(--accent); font-weight: 700; }

/* ── dostępność i responsywność ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* bez ruchu wyróżnienie następnego kroku jest statyczne */
  .guide { box-shadow: 0 0 0 3px rgba(52, 84, 209, .4) !important; }
  .btn-approve.guide { box-shadow: 0 0 0 3px rgba(46, 125, 79, .45) !important; }
  .suggest-item.guide { background: var(--accent-soft) !important; box-shadow: inset 4px 0 0 var(--accent) !important; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 64px 300px 1fr; }
  .rail-note, .rail-compose, .folder span:not(.folder-count) { display: none; }
  .pipe-stage { grid-template-columns: 1fr; }
  .compose { width: min(520px, 96vw); right: 2vw; }
}
