@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

/* Paleta marki „Z Pustyni Ogród”:
   granat #1A273D · piasek #E6D3B4 · krem #EEEDE4 · szałwia #6A8882 · róż #CA9E9C · szary #7A888E
   Jasne tło dla czytelności; granat jako kolor tekstu i panelu bocznego.
   Odcienie „ink” to przyciemnione wersje kolorów marki, żeby tekst miał kontrast ≥ 4.5:1. */
:root {
  --navy: #1A273D;
  --navy-2: #24344F;
  --sand: #E6D3B4;
  --cream: #EEEDE4;
  --sage: #6A8882;
  --rose: #CA9E9C;
  --grey: #7A888E;

  --bg: var(--cream);
  --surface: #FBFAF5;
  --surface-2: #F3F1E8;
  --line: #DAD6C8;
  --line-strong: #C7C1AE;
  --text: var(--navy);
  --muted: #56636B;          /* 6.1:1 na kremie */
  --accent: var(--navy);     /* przyciski główne */
  --accent-ink: #FBFAF5;
  --accent-soft: rgb(230 211 180 / .55);
  --sage-ink: #45625C;       /* 5.6:1 */
  --sage-soft: rgb(106 136 130 / .16);
  --rose-ink: #8E4F4B;       /* 6.2:1 */
  --rose-soft: rgb(202 158 156 / .26);
  --sand-soft: rgb(230 211 180 / .6);
  --danger: #A23B34;
  --danger-soft: rgb(162 59 52 / .1);
  --ok: var(--sage-ink);
  --ok-soft: var(--sage-soft);
  --warn-soft: var(--sand-soft);
  --focus: #3B6FB0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgb(26 39 61 / .04), 0 8px 24px -12px rgb(26 39 61 / .18);
  --side: 256px;
  font-size: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .97rem; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3 { font-family: "Outfit", "Inter", system-ui, sans-serif; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.08rem; }
p { margin: 0 0 .75em; }
a { color: var(--navy); text-decoration-color: var(--sage); text-underline-offset: 3px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: var(--cream); padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ---------- przyciski i pola ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--navy); }
.btn--primary { background: var(--navy); border-color: var(--navy); color: var(--accent-ink); }
.btn--primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn--danger { color: var(--danger); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn--block { width: 100%; }
.btn--icon { width: 42px; padding: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { flex: none; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .6rem .8rem; min-height: 44px; width: 100%;
}
input::placeholder, textarea::placeholder { color: #8A949A; }
textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
textarea.mono, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(59 111 176 / .35); outline-offset: 0; border-color: var(--focus); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.form-err { color: var(--danger); background: var(--danger-soft); padding: .6rem .8rem; border-radius: 8px; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- boot / logowanie ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--navy); }
.login__card { width: min(420px, 100%); background: var(--surface); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }

/* ---------- układ: panel boczny + treść ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20;
  background: var(--navy); color: var(--cream);
  display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem 1rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--sand); text-decoration: none; padding: 0 .5rem; }
.brand__mark { width: 34px; height: 44px; flex: none; background: url("../img/logo-mark-sand.svg") center / contain no-repeat; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.12rem; color: var(--sand); }
.brand__sub { font-size: .8rem; color: rgb(238 237 228 / .7); }
.topbar__end { display: flex; flex-direction: column; gap: .4rem; }
.topbar__end .btn--primary { background: var(--sand); border-color: var(--sand); color: var(--navy); width: 100%; }
.topbar__end .btn--primary:hover { background: #EFE0C6; border-color: #EFE0C6; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem .8rem; border-radius: 10px;
  color: rgb(238 237 228 / .82); text-decoration: none; font-weight: 500;
}
.nav a svg { opacity: .8; }
.nav a:hover, .nav a:focus-visible { color: var(--cream); background: rgb(255 255 255 / .07); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--sand); font-weight: 650; }
.nav a[aria-current="page"] svg { opacity: 1; }
.save-state { font-size: .8rem; color: rgb(238 237 228 / .65); text-align: center; min-height: 1.2em; }
.save-state[data-state="error"] { color: #F2B1AB; }
.main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 2.5rem 2.5rem 5rem; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.page-head h1 { margin: 0; }
.page-head p { color: var(--muted); margin: .4rem 0 0; font-size: 1rem; max-width: 60ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow); }
.card--flat { box-shadow: none; }
.card__title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.12rem; margin-bottom: .85rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card__title a { font-family: "Inter", sans-serif; font-size: .88rem; font-weight: 600; color: var(--sage-ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.kpi__v { font-family: "Outfit", sans-serif; font-size: 2.2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__l { color: var(--muted); font-size: .88rem; margin-top: .35rem; }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }

/* ---------- listy ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.item {
  display: flex; align-items: center; gap: 1rem; padding: .85rem .5rem; text-decoration: none; color: var(--text); border-radius: 10px;
}
a.item:hover, a.item:focus-visible { background: var(--surface-2); }
.item__main { flex: 1; min-width: 0; }
.item__title { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.item__meta { color: var(--muted); font-size: .87rem; margin-top: .15rem; }
.num { font-family: "Outfit", sans-serif; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 3ch; text-align: right; font-weight: 500; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600;
  padding: .25rem .65rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; border: 1px solid var(--line);
}
.badge--accent { background: var(--sand-soft); color: var(--navy); border-color: transparent; }
.badge--ok { background: var(--sage-soft); color: var(--sage-ink); border-color: transparent; }
.badge--warn { background: var(--rose-soft); color: var(--rose-ink); border-color: transparent; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* rodzaje materiałów — kolor = kanał */
.kind { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--text); }
.kind::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grey); flex: none; }
.kind--facebook::before { background: var(--sage); }
.kind--instagram::before { background: var(--rose); }
.kind--description::before { background: var(--navy); }
.kind--newsletter::before { background: #C4A574; }
.kind--linkedin::before { background: #5E7FA3; }

.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--sage); border-radius: 999px; }

.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; align-items: end; height: 190px; padding-top: .5rem; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar__n { font-family: "Outfit", sans-serif; font-size: .95rem; font-weight: 600; margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.bar__fill { width: 100%; max-width: 48px; min-height: 4px; background: var(--sand); border-radius: 8px 8px 2px 2px; }
.bar--now .bar__fill { background: var(--navy); }
.bar__l { font-size: .85rem; color: var(--muted); margin-top: .35rem; text-transform: capitalize; }

.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; align-items: center; }
.shortcuts dt { margin: 0; }
.shortcuts dd { margin: 0; color: var(--muted); }
kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: .1rem .5rem; min-width: 2rem; display: inline-block; text-align: center; color: var(--text); }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty h3 { color: var(--text); }

/* ---------- kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: .85rem; overflow-x: auto; padding-bottom: .5rem; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; min-height: 220px; }
.col__head { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: .92rem; padding: .2rem .35rem .7rem; }
.kcard {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem; margin-bottom: .55rem;
  color: var(--text); text-decoration: none; box-shadow: var(--shadow);
}
.kcard:hover, .kcard:focus-visible { border-color: var(--navy); }
.kcard__t { font-weight: 600; font-size: .95rem; line-height: 1.3; margin-bottom: .4rem; }

/* ---------- kalendarz ---------- */
.cal-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cal-tools h2 { font-size: 1.6rem; }
.cal-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .87rem; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal__dow { font-size: .82rem; font-weight: 600; color: var(--muted); padding: .7rem .75rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal__day {
  min-height: 128px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .4rem .45rem .55rem; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.cal__day:nth-child(7n) { border-right: 0; }
.cal__day--out { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); }
.cal__day--today { background: rgb(230 211 180 / .28); }
.cal__day--today .cal__n { background: var(--navy); color: var(--cream); }
.cal__n { align-self: flex-start; min-height: 30px; min-width: 30px; padding: 0 .45rem; border: 0; border-radius: 999px; background: transparent; color: inherit; font-family: "Outfit", sans-serif; font-size: .95rem; font-weight: 600; cursor: pointer; }
.cal__n:hover, .cal__n:focus-visible { background: var(--surface-2); }
.chip {
  display: block; font-size: .8rem; line-height: 1.3; padding: .3rem .45rem .32rem .55rem; border-radius: 7px;
  background: var(--sand-soft); color: var(--navy); text-decoration: none; border-left: 3px solid var(--navy);
  flex: none;
}
.chip__x { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.chip__t { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .3rem; }
.chip--pub { background: var(--navy); color: var(--cream); border-left-color: var(--sand); }
.chip--published { background: var(--sage-soft); color: var(--sage-ink); border-left-color: var(--sage); }
.chip--idea { background: var(--surface-2); color: var(--muted); border-left-color: var(--grey); }
.chip--mat { background: var(--surface-2); border-left-color: var(--grey); }
.chip--facebook { background: var(--sage-soft); border-left-color: var(--sage); }
.chip--instagram { background: var(--rose-soft); border-left-color: var(--rose); }
.chip--description { background: var(--sand-soft); border-left-color: var(--navy); }
.chip--newsletter { background: rgb(196 165 116 / .22); border-left-color: #C4A574; }
.chip--linkedin { background: rgb(94 127 163 / .16); border-left-color: #5E7FA3; }
.chip:hover, .chip:focus-visible { filter: brightness(.96); }
@media (max-width: 860px) {
  .cal { grid-template-columns: 1fr; }
  .cal__dow { display: none; }
  .cal__day { min-height: 0; border-right: 0; }
  .cal__day:empty, .cal__day--empty { display: none; }
}

/* ---------- edytor ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line-strong); overflow-x: auto; margin-bottom: 1.5rem; }
.tabs a {
  padding: .7rem 1rem; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.ep-title { font-family: "Outfit", sans-serif; font-size: 2rem; font-weight: 600; border: 1px solid transparent; background: transparent; padding: .2rem .45rem; margin-left: -.45rem; letter-spacing: -0.01em; }
.ep-title:hover { border-color: var(--line-strong); }
.two-pane { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.two-pane > * { min-width: 0; }
@media (max-width: 1000px) { .two-pane { grid-template-columns: 1fr; } }
.editor { min-height: 22rem; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; min-height: 22rem; overflow-wrap: anywhere; }
.toolbar { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: .45rem; }
.toolbar .btn { min-height: 40px; width: 40px; padding: 0; border-radius: 10px; }
.counter { font-size: .85rem; color: var(--muted); margin-top: .35rem; }

/* markdown */
.md { overflow-wrap: anywhere; max-width: 72ch; }
.md h2 { font-size: 1.3rem; margin-top: 1.2em; } .md h3 { font-size: 1.08rem; margin-top: 1em; } .md h4 { font-size: 1rem; }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 .9em; }
.md li { margin: .15em 0; }
.md ul.tasks { list-style: none; padding-left: 0; }
.md ul.tasks li { display: flex; gap: .55rem; align-items: flex-start; }
.md blockquote { margin: 0 0 .9em; padding: .5rem 1rem; border-left: 3px solid var(--sage); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.md code { background: var(--surface-2); padding: .05rem .3rem; border-radius: 4px; font-size: .9em; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.tick { flex: none; width: 18px; height: 18px; margin-top: .2em; border: 2px solid var(--grey); border-radius: 4px; }
.tick--on { background: var(--sage); border-color: var(--sage); }

/* checklist */
.check { display: flex; align-items: center; gap: .75rem; padding: .6rem .25rem; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check input[type="checkbox"] { width: 22px; height: 22px; min-height: 22px; accent-color: var(--sage); flex: none; }
.check input[type="checkbox"]:checked + span { color: var(--muted); text-decoration: line-through; }
.check label { flex: 1; cursor: pointer; }
.check .btn { min-height: 36px; width: 36px; padding: 0; }

/* materiały / grafiki */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tile__img { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.tile__img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
.tile__body { padding: .7rem .8rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.tile__name { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.drop {
  border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: var(--muted); background: var(--surface);
}
.drop.is-over { border-color: var(--navy); background: var(--sand-soft); color: var(--text); }

/* ---------- dialogi i toasty ---------- */
dialog.dlg { border: 0; border-radius: 18px; padding: 0; background: var(--surface); color: var(--text); width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgb(26 39 61 / .35); }
dialog.dlg--wide { width: min(780px, calc(100vw - 32px)); }
dialog.dlg::backdrop { background: rgb(26 39 61 / .5); }
.dlg__title { padding: 1.3rem 1.5rem 0; margin: 0; font-size: 1.3rem; }
.dlg__body { padding: 1rem 1.5rem; max-height: min(70vh, 660px); overflow: auto; }
.dlg__foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 1.5rem 1.3rem; flex-wrap: wrap; }

.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: .5rem; z-index: 200; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: var(--cream); padding: .85rem 1.1rem; border-radius: 12px; box-shadow: 0 12px 30px rgb(26 39 61 / .3); font-weight: 500; }
.toast--error { background: #7A2A27; color: #FFF5F2; }

/* ---------- responsywność ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .topbar { position: sticky; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .75rem; }
  .brand__sub { display: none; }
  .topbar__end { margin-left: auto; flex-direction: row; }
  .topbar__end .btn--primary { width: auto; }
  .save-state { display: none; }
  .nav { order: 3; width: 100%; flex-direction: row; overflow-x: auto; margin-top: 0; }
  .nav a { flex: none; }
  .main { padding: 1.25rem 1rem 3rem; }
  h1 { font-size: 1.7rem; }
  .ep-title { font-size: 1.5rem; }
  .board { grid-auto-columns: 78vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- interaktywność: klikalne elementy ---------- */
a.kpi { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.kpi:hover, a.kpi:focus-visible { border-color: var(--navy); }
a.kpi:hover .kpi__l, a.kpi:focus-visible .kpi__l { color: var(--navy); }
a.bar { color: inherit; text-decoration: none; border-radius: 8px; }
a.bar:hover .bar__fill, a.bar:focus-visible .bar__fill { background: var(--sage); }
a.bar:hover .bar__l { color: var(--navy); font-weight: 600; }
.item__link { display: block; color: var(--navy); text-decoration: none; }
.item__link:hover, .item__link:focus-visible { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.meta-link { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); }
.meta-link:hover { color: var(--navy); text-decoration-color: var(--sage); }
.back { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; font-weight: 500; margin-bottom: .9rem; }
.back:hover { color: var(--navy); }

/* ---------- podstrona materiału ---------- */
.mat-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .mat-layout { grid-template-columns: 1fr; } }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; max-width: 620px; }
.post__head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem .4rem; }
.post__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sand) url("../img/logo-mark-navy.svg") center / 46% auto no-repeat; flex: none; }
.post__name { font-weight: 650; }
.post__when { color: var(--muted); font-size: .85rem; }
.post__text { padding: .5rem 1.15rem 1.1rem; white-space: pre-wrap; font-size: 1.02rem; line-height: 1.6; overflow-wrap: anywhere; }
.post__media { display: grid; gap: 2px; background: var(--line); }
.post__media--1 { grid-template-columns: 1fr; }
.post__media--2, .post__media--4 { grid-template-columns: 1fr 1fr; }
.post__media--3 { grid-template-columns: 1fr 1fr; }
.post__media--3 .post__pic:first-child { grid-column: 1 / -1; }
.post__pic { display: block; background: var(--surface-2); aspect-ratio: 4 / 3; overflow: hidden; }
.post__media--1 .post__pic { aspect-ratio: auto; max-height: 520px; }
.post__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.post__pic:hover img { transform: scale(1.03); }
.mat-side { display: flex; flex-direction: column; gap: 1rem; }
.mat-side .item { padding: .5rem .3rem; }
.note { color: var(--muted); white-space: pre-wrap; margin: 0; font-size: .92rem; }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg__b { flex: 1; border: 0; background: transparent; border-radius: 999px; min-height: 38px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg__b:hover { color: var(--navy); }
.seg__b[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.mat-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mat-nav__a { display: flex; flex-direction: column; gap: .2rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--navy); text-decoration: none; min-width: 0; }
.mat-nav__a:hover, .mat-nav__a:focus-visible { border-color: var(--navy); }
.mat-nav__a--next { text-align: right; }
.mat-nav__l { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.mat-nav__a--next .mat-nav__l { justify-content: flex-end; }
.mat-nav__t { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.item--click { cursor: pointer; }
.item--click:hover { background: var(--surface-2); }
.item--click:hover .item__link { text-decoration: underline; text-decoration-color: var(--sage); }

/* ---------- zatwierdzanie ---------- */
.who { font-size: .8rem; color: var(--sand); text-align: center; }
.nav__count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 999px; background: var(--rose); color: var(--navy); font-size: .78rem; font-weight: 700; display: inline-grid; place-items: center; }
.nav a[aria-current="page"] .nav__count { background: var(--navy); color: var(--sand); }
.appr { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 650; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.appr::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.appr--ok { background: var(--sage-soft); color: var(--sage-ink); }
.appr--fix { background: var(--rose-soft); color: var(--rose-ink); }
.appr--wait { background: var(--sand-soft); color: #7A5A22; }
.btn--approve { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.btn--approve:hover { background: #3A5550; border-color: #3A5550; }
.btn--fix { color: var(--rose-ink); border-color: var(--rose); }
.btn--fix:hover { background: var(--rose-soft); border-color: var(--rose-ink); }
.apprbox__status { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .9rem; }
.apprbox__note { margin: .7rem 0 .2rem; padding: .55rem .85rem; border-left: 3px solid var(--rose); background: var(--rose-soft); border-radius: 0 8px 8px 0; white-space: pre-wrap; }
.apprbox--approved .apprbox__note { border-left-color: var(--sage); background: var(--sage-soft); }
.apprbox .hint { margin-top: .6rem; }
.apprbox textarea { min-height: 4.2rem; }
.seg--tabs { display: inline-flex; margin-bottom: 1.25rem; }
.seg--tabs .seg__b { padding: 0 1.1rem; }
.demo-role { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .6rem .8rem; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: .9rem; }
.demo-role .seg { flex: 0 1 380px; }
.appr-list { display: grid; gap: 1rem; }
.appr-card { padding: 1.2rem 1.35rem; }
.appr-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.appr-card__title { font-family: "Outfit", sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.appr-card__title:hover { text-decoration: underline; text-decoration-color: var(--sage); }
.appr-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; margin-bottom: 1rem; }
.appr-card__text { white-space: pre-wrap; line-height: 1.6; max-width: 68ch; padding: .9rem 1rem; background: var(--surface-2); border-radius: 12px; }
.appr-pics { display: grid; grid-template-columns: repeat(2, 92px); gap: 6px; align-content: start; }
.appr-pics img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 720px) { .appr-card__body { grid-template-columns: 1fr; } .appr-pics { grid-template-columns: repeat(4, 1fr); } .appr-pics img { width: 100%; } }
.chip--appr-approved .chip__x::after { content: " ✓"; color: var(--sage-ink); font-weight: 700; }
.chip--appr-changes { box-shadow: inset 0 0 0 1.5px var(--rose-ink); }
.seg__b { white-space: nowrap; }
.apprbox__editor { min-height: 12rem; font-size: 1rem; line-height: 1.6; }
.edited { margin-top: .7rem; font-size: .9rem; }
.edited summary { cursor: pointer; color: var(--muted); list-style: none; }
.edited summary::-webkit-details-marker { display: none; }
.edited summary:hover { color: var(--navy); }
.edited__tag { display: inline-block; font-weight: 650; color: var(--navy); background: var(--sand-soft); padding: .15rem .55rem; border-radius: 999px; }
.edited__prev { margin-top: .5rem; padding: .7rem .9rem; border: 1px dashed var(--line-strong); border-radius: 10px; white-space: pre-wrap; color: var(--muted); text-decoration: line-through; text-decoration-color: rgb(162 59 52 / .45); }

/* ---------- kanały ---------- */
.chs { display: inline-flex; gap: 4px; vertical-align: middle; }
.ch { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 5px; font-size: .68rem; font-weight: 750; letter-spacing: .02em; color: #fff; background: var(--grey); }
.ch--facebook { background: #5D7C76; } .ch--instagram { background: #B07D7A; } .ch--youtube { background: #A23B34; } .ch--wordpress { background: var(--navy); }
.chpick { display: flex; gap: .5rem; flex-wrap: wrap; }
.chpick__b { border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 999px; min-height: 40px; padding: 0 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.chpick__b[aria-pressed="true"] { color: #fff; border-color: transparent; }
.chpick__b.ch--facebook[aria-pressed="true"] { background: #5D7C76; } .chpick__b.ch--instagram[aria-pressed="true"] { background: #B07D7A; }
.chpick__b.ch--youtube[aria-pressed="true"] { background: #A23B34; } .chpick__b.ch--wordpress[aria-pressed="true"] { background: var(--navy); }
.mpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; max-height: 260px; overflow: auto; padding: 2px; }
.mpick__i { position: relative; border: 2px solid transparent; border-radius: 10px; padding: 0; background: var(--surface-2); cursor: pointer; overflow: hidden; aspect-ratio: 1; }
.mpick__i img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: .75; }
.mpick__i[aria-pressed="true"] { border-color: var(--navy); }
.mpick__i[aria-pressed="true"] img { opacity: 1; }
.mpick__n { position: absolute; top: 5px; left: 5px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--cream); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.mpick__name { position: absolute; left: 0; right: 0; bottom: 0; font-size: .68rem; padding: 2px 4px; background: rgb(26 39 61 / .65); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-box { border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; background: var(--surface-2); }
.seo-box summary { font-weight: 650; cursor: pointer; }
.seo-box[open] summary { margin-bottom: .8rem; }
.cnt { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: .3rem; }
.cnt--bad { color: var(--danger); font-weight: 700; }

/* ---------- podgląd jak w aplikacji ---------- */
.pv { max-width: 560px; }
.pv__tabs { display: inline-flex; margin-bottom: .6rem; }
.pv__tabs .seg__b { padding: 0 1rem; }
.pv__meta { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.pv__bad { color: var(--danger); font-weight: 700; }
.pv__warn { list-style: none; margin: .8rem 0 0; padding: .7rem .9rem; border-radius: 12px; background: var(--rose-soft); color: var(--rose-ink); display: grid; gap: .3rem; font-size: .9rem; }
.pv__warn li { display: flex; gap: .45rem; align-items: flex-start; }
.pv__warn svg { flex: none; margin-top: .2em; }
.pv__ok { display: flex; gap: .4rem; align-items: center; color: var(--sage-ink); font-weight: 600; margin: .8rem 0 0; }
.ig { background: #fff; border: 1px solid #DBDBDB; border-radius: 10px; overflow: hidden; color: #262626; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; }
.ig__head { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; }
.ig__head .post__avatar { width: 32px; height: 32px; }
.ig__media { position: relative; aspect-ratio: 4 / 5; background: #EFEFEF; }
.ig__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #8E8E8E; }
.ig__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .85); display: grid; place-items: center; cursor: pointer; color: #262626; }
.ig__nav--l { left: 8px; } .ig__nav--r { right: 8px; }
.ig__count { position: absolute; top: 10px; right: 10px; background: rgb(0 0 0 / .6); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 8px; }
.ig__bar { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem .2rem; font-size: 18px; }
.ig__dots { display: flex; gap: 4px; margin-right: auto; margin-left: auto; }
.ig__dots i { width: 6px; height: 6px; border-radius: 50%; background: #C7C7C7; }
.ig__dots i.on { background: #0095F6; }
.ig__cap { padding: .2rem .75rem .3rem; white-space: pre-wrap; line-height: 1.45; overflow-wrap: anywhere; }
.ig__more { border: 0; background: none; color: #8E8E8E; font: inherit; cursor: pointer; padding: 0; }
.ig__when { padding: 0 .75rem .7rem; color: #8E8E8E; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.fb { background: #fff; border: 1px solid #DADDE1; border-radius: 10px; overflow: hidden; color: #050505; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.fb .post__text { font-size: 15px; }
.fb__bar { display: flex; justify-content: space-around; border-top: 1px solid #E4E6EB; padding: .55rem; color: #65676B; font-weight: 600; font-size: 14px; }
.wp { display: grid; gap: .9rem; }
.serp { background: #fff; border: 1px solid #DFE1E5; border-radius: 10px; padding: .9rem 1rem; font-family: Arial, sans-serif; }
.serp__url { color: #202124; font-size: 13px; }
.serp__t { color: #1A0DAB; font-size: 20px; line-height: 1.3; margin: .2rem 0; }
.serp__d { color: #4D5156; font-size: 14px; line-height: 1.5; }
.wp__art { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem; }
.wp__art h1 { font-size: 1.6rem; }
.wp__cover { margin: -1.2rem -1.4rem 1rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px 12px 0 0; }
.wp__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- rozmowa ---------- */
.thread__list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .55rem; max-height: 360px; overflow: auto; }
.msg { background: var(--surface-2); border-radius: 12px 12px 12px 4px; padding: .55rem .75rem; max-width: 92%; }
.msg--me { background: var(--sand-soft); border-radius: 12px 12px 4px 12px; margin-left: auto; }
.msg__head { display: flex; gap: .5rem; align-items: baseline; font-size: .8rem; color: var(--muted); }
.msg__head b { color: var(--navy); }
.msg__del { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; display: grid; }
.msg__body { white-space: pre-wrap; overflow-wrap: anywhere; }
.thread__new { display: grid; gap: .5rem; }
.thread__new textarea { min-height: 3.2rem; }
.thread__new .btn { justify-self: end; }
.appr-thread { margin-top: .9rem; }
.appr-thread summary { cursor: pointer; color: var(--sage-ink); font-weight: 600; }
.appr-thread .thread { margin-top: .6rem; box-shadow: none; }

/* ---------- ten tydzień ---------- */
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.wk__day { background: var(--surface-2); border-radius: 12px; padding: .55rem; min-height: 120px; display: flex; flex-direction: column; gap: .35rem; }
.wk__day--today { background: var(--sand-soft); }
.wk__date { font-family: "Outfit", sans-serif; font-size: .95rem; }
.wk__date b { text-transform: capitalize; }
.wk__it { display: grid; gap: .15rem; text-decoration: none; color: var(--navy); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .45rem; font-size: .8rem; line-height: 1.3; }
.wk__it:hover { border-color: var(--navy); }
.wk__it .appr { justify-self: start; font-size: .68rem; padding: .1rem .45rem; }
.wk__it--ep { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.wk__it--fr { border-left: 3px solid #C4A574; }
.wk__t { font-weight: 700; font-variant-numeric: tabular-nums; }
.wk__x { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wk__none { color: var(--line-strong); }
.wk__alert { display: flex; gap: .55rem; align-items: flex-start; background: var(--rose-soft); color: var(--rose-ink); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .9rem; }
.wk__alert a { color: var(--rose-ink); font-weight: 600; }
@media (max-width: 1000px) { .wk { grid-template-columns: 1fr; } .wk__day { min-height: 0; } }

/* ---------- fundraising ---------- */
.ai { border-color: var(--sand); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #C4A574, var(--rose)) border-box; border: 1.5px solid transparent; }
.ai:hover { background: linear-gradient(var(--sand-soft), var(--sand-soft)) padding-box, linear-gradient(120deg, #C4A574, var(--rose)) border-box; }
.ai__spark { color: #B08A4E; font-size: 1rem; }
.fr-ai { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--navy); color: var(--cream); margin-bottom: 1.25rem; }
.fr-ai .muted { color: rgb(238 237 228 / .75); }
.fr-ai b { font-family: "Outfit", sans-serif; font-size: 1.1rem; color: var(--sand); }
.fr-ai__grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.fr-h { font-size: 1.4rem; margin: 1.5rem 0 .8rem; }
.fr-camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.fr-camp { text-decoration: none; color: inherit; display: block; }
.fr-camp:hover { border-color: var(--navy); }
.fr-camp h3 { font-size: 1.25rem; margin: .5rem 0 .2rem; }
.fr-camp__top { display: flex; justify-content: space-between; gap: .5rem; }
.fr-kind { font-size: .8rem; font-weight: 650; color: var(--sage-ink); }
.fr-kind--sponsoring { color: #7A5A22; } .fr-kind--marketing { color: var(--rose-ink); }
.fr-prog__bar { position: relative; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.fr-prog__bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.fr-prog__pl { background: var(--sand); }
.fr-prog__got { background: var(--sage-ink); }
.fr-prog__nums { margin-top: .4rem; font-size: .9rem; }
.fr-prog__nums b { font-family: "Outfit", sans-serif; font-size: 1.15rem; }
.fr-boardhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0 .8rem; }
.fr-board { grid-auto-columns: minmax(200px, 1fr); }
.fr-col.is-over { outline: 2px dashed var(--navy); outline-offset: -4px; }
.fr-col--donated .col__head { color: var(--sage-ink); }
.fr-col--declined { opacity: .75; }
.fr-amt { font-family: "Outfit", sans-serif; font-weight: 600; margin-top: .35rem; }
.fr-next { display: flex; align-items: center; gap: .2rem; font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.fr-next--late { color: var(--danger); font-weight: 600; }
.fr-stages { display: flex; flex-wrap: wrap; border-radius: 16px; }
.fr-stages .seg__b { flex: 1 1 auto; padding: 0 .9rem; }
.fr-kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: baseline; }
.fr-kv b { font-family: "Outfit", sans-serif; font-size: 1.2rem; text-align: right; }
.kpi__v { overflow-wrap: anywhere; }
.fr-col .col__head { flex-wrap: wrap; row-gap: .15rem; } .fr-col .col__head .muted { font-size: .82rem; }

/* ---------- podgląd: proporcje, siatka, rolki, kolaż FB ---------- */
.pv__row { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin-bottom: .6rem; }
.pv__row .pv__tabs { margin-bottom: 0; }
.pv__zones { display: inline-flex; gap: .4rem; align-items: center; font-size: .88rem; color: var(--muted); cursor: pointer; }
.pv__sizes { font-variant-numeric: tabular-nums; }
.pv__rec { margin: .7rem 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.ig__media { overflow: hidden; }
.ig__safe { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); border-left: 2px dashed rgb(255 255 255 / .95); border-right: 2px dashed rgb(255 255 255 / .95); box-shadow: 0 0 0 2000px rgb(26 39 61 / .38); pointer-events: none; }
.ig__safe span { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgb(26 39 61 / .8); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }

.igp__head { display: flex; gap: .75rem; align-items: center; padding: .8rem; font-size: .88rem; }
.igp__av { width: 48px; height: 48px; }
.igg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.igg__t { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #EFEFEF; }
.igg__t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igg__t--me { outline: 3px solid var(--rose); outline-offset: -3px; }
.igg__no { position: absolute; inset: 0; display: grid; place-items: center; color: #8E8E8E; font-size: 12px; }
.igg__multi { position: absolute; top: 6px; right: 7px; color: #fff; font-size: 15px; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.igg__me { position: absolute; left: 6px; bottom: 6px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }

.reelwrap { display: flex; justify-content: center; }
.reel { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #111; color: #fff; }
.reel > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; color: #bbb; font-size: 13px; overflow-wrap: anywhere; }
.reel__ui { position: absolute; font-size: 13px; text-shadow: 0 1px 3px rgb(0 0 0 / .7); }
.reel__ui--top { top: 4%; left: 5%; font-weight: 700; font-size: 16px; }
.reel__ui--side { right: 3.5%; bottom: 14%; display: grid; gap: 14px; font-size: 20px; text-align: center; }
.reel__ui--bot { left: 5%; right: 20%; bottom: 5%; line-height: 1.35; }
.reel__z { position: absolute; background: rgb(202 120 120 / .32); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.reel__z--top { top: 0; left: 0; right: 0; height: 14%; border-bottom: 1px dashed rgb(255 255 255 / .8); }
.reel__z--bot { bottom: 0; left: 0; right: 0; height: 35%; border-top: 1px dashed rgb(255 255 255 / .8); align-items: flex-start; padding-top: 6px; }
.reel__z--l, .reel__z--r { top: 14%; bottom: 35%; width: 6%; }
.reel__z--l { left: 0; } .reel__z--r { right: 0; }
.reel__safe { position: absolute; top: 14%; bottom: 35%; left: 6%; right: 6%; border: 2px dashed rgb(160 220 190 / .95); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-size: 11px; pointer-events: none; }

.fbm { display: grid; gap: 2px; background: #fff; }
.fbm__t { position: relative; overflow: hidden; background: var(--surface-2); min-height: 0; min-width: 0; }
.fbm__t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fbm--1 { grid-template: 1fr / 1fr; }
.fbm--2p { aspect-ratio: 2 / 1; grid-template-columns: 1fr 1fr; }
.fbm--2l { aspect-ratio: 1 / 1; grid-template-rows: 1fr 1fr; }
.fbm--3l { aspect-ratio: 1 / 1; grid-template: 1fr 1fr / 1fr 1fr; }
.fbm--3l .fbm__t:first-child { grid-column: 1 / -1; }
.fbm--3p { aspect-ratio: 1 / 1; grid-template: 1fr 1fr / 1fr 1fr; }
.fbm--3p .fbm__t:first-child { grid-row: 1 / -1; }
.fbm--4l { aspect-ratio: 1 / 1; grid-template: 2fr 1fr / repeat(3, 1fr); }
.fbm--4l .fbm__t:first-child { grid-column: 1 / -1; }
.fbm--4p { aspect-ratio: 1 / 1; grid-template: repeat(3, 1fr) / 2fr 1fr; }
.fbm--4p .fbm__t:first-child { grid-row: 1 / -1; }
.fbm--5 { aspect-ratio: 6 / 5; grid-template: 3fr 2fr / repeat(6, 1fr); }
.fbm--5 .fbm__t:nth-child(-n+2) { grid-column: span 3; }
.fbm--5 .fbm__t:nth-child(n+3) { grid-column: span 2; }
.fbm__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .45); color: #fff; font-size: 2rem; font-weight: 700; }
.pv__zones input { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; accent-color: var(--navy, #1a273d); flex: none; }

/* ---------- podgląd Facebooka zgodny z kreatorem posta ---------- */
.fb { border-radius: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / .1); border-color: #E4E6EB; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.fb__head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; }
.fb__head .post__avatar { width: 40px; height: 40px; }
.fb__who { flex: 1; min-width: 0; line-height: 1.25; }
.fb__name { font-weight: 600; font-size: 15px; color: #050505; }
.fb__meta { display: flex; align-items: center; color: #65676B; font-size: 13px; margin-top: 2px; }
.fb__globe { display: inline-flex; }
.fb__dots { color: #65676B; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.fb__text { padding: 4px 16px 12px; margin-top: 8px; font-size: 15px; line-height: 1.3333; white-space: pre-wrap; overflow-wrap: anywhere; color: #050505; }
.fb__text--clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; padding-bottom: 0; }
.fb__text--big { font-size: 24px; line-height: 1.2; }
.fb__morewrap { padding: 0 16px 12px; }
.fb__more { border: 0; background: none; padding: 0; font: inherit; font-size: 15px; font-weight: 600; color: #050505; cursor: pointer; }
.fb__more:hover { text-decoration: underline; }
.fb__bar { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 12px; padding: 4px 0; border-top: 1px solid #CED0D4; }
.fb__act { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 4px; color: #65676B; font-weight: 600; font-size: 15px; }
.fb__meta { gap: 0; white-space: pre; }
.fb--composer .fbm { margin: 0 16px 12px; border: 1px solid #CED0D4; border-radius: 8px; overflow: hidden; }
.fb--composer .fb__bar { grid-template-columns: repeat(3, auto) 1fr; justify-content: start; border-top: 0; margin: 0 16px; padding: 0 0 12px; gap: 4px; }
.fb--composer .fb__act { width: 36px; }

/* ---------- goście, nagrania, komunikacja ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.crumbs a { color: var(--sage-ink); font-weight: 600; }
.grid-2--top { align-items: start; gap: 1.25rem; }
.grid-2--top > .stack > * + * { margin-top: 1.25rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.portal-link__row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.portal-link__row input { flex: 1 1 320px; font-size: .9rem; }
.seg--wrap { flex-wrap: wrap; border-radius: 14px; }
.ch-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--sand-soft); color: var(--navy); }
.ch-ico--sms { background: var(--sage-soft); color: var(--sage-ink); }
.switch { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); cursor: pointer; }
.switch input, .optin input { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; accent-color: var(--navy); flex: none; }
label.optin { display: flex; width: 100%; justify-self: stretch; border: 0; height: auto; gap: .5rem; align-items: center; margin: .6rem 0 .9rem; cursor: pointer; }
.notice { padding: .85rem 1rem; border-radius: var(--radius); display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.notice--warn { background: var(--rose-soft); color: var(--rose-ink); font-weight: 600; }
blockquote.quote { margin: 0 0 .8rem; padding: .6rem .9rem; border-left: 3px solid var(--sand); background: var(--surface-2); border-radius: 0 10px 10px 0; white-space: pre-wrap; }
textarea.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85rem; line-height: 1.5; }

/* ---------- publiczny panel gościa ---------- */
.guestwrap { min-height: 100vh; background: var(--cream); }
.gp { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.1rem 3rem; }
.gp__loading { color: var(--muted); padding: 3rem 0; text-align: center; }
.gp__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; line-height: 1.25; }
.gp__head .brand__mark { width: 40px; height: 52px; background-image: url("../img/logo-mark-navy.svg"); }
.gp__hero { padding: 1.4rem 0 1.2rem; }
.gp__eyebrowless { color: var(--sage-ink); font-weight: 600; margin: 0 0 .3rem; }
.gp__hero h1 { font-family: "Outfit", sans-serif; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; margin: 0 0 .6rem; }
.gp__hero p { font-size: 1.08rem; max-width: 36em; margin: 0; }
.gp__card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.4rem; margin-top: 1rem; }
.gp__card h2 { font-family: "Outfit", sans-serif; font-size: 1.3rem; margin: 0 0 .8rem; }
.gp__when { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.gp__when a { color: var(--sand); }
.gp__when .btn:not(.btn--primary) { background: transparent; color: var(--cream); border-color: rgb(238 237 228 / .4); }
.gp__when .btn--primary { background: var(--sand); color: var(--navy); border-color: var(--sand); }
.gp__big { font-family: "Outfit", sans-serif; font-size: 1.6rem; line-height: 1.25; margin: 0 0 .7rem; }
.gp__dur { font-size: 1rem; opacity: .75; }
.gp__note { white-space: pre-wrap; opacity: .9; }
.gp__actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.gp__ok { display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; color: var(--sage-ink); }
.gp__when .gp__ok { color: var(--sand); }
.gp__files { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; margin: 1rem 0; }
.gp__file { display: grid; gap: .35rem; color: inherit; text-decoration: none; font-size: .82rem; overflow-wrap: anywhere; }
.gp__file img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6px; border-radius: 10px; background: var(--surface-2); }
.gp__links { padding-left: 1.2rem; }
.gp__contract { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; background: #fff; margin: .8rem 0 1rem; font-size: .95rem; }
.gp__contract h1 { font-size: 1.1rem; text-align: center; }
.gp__contract h2 { font-size: 1rem; margin-top: 1.2rem; }
.gp__accept { display: grid; gap: .6rem; max-width: 420px; margin-bottom: .8rem; }
.gp__accept label.optin { margin: 0; }
.gp__foot { margin-top: 2rem; color: var(--muted); font-size: .85rem; text-align: center; }
@media (max-width: 560px) { .gp__card { padding: 1.1rem; } .facts { grid-template-columns: 1fr; } }
ul.plain { list-style: none; padding: 0; margin: 0 0 .4rem; display: grid; gap: .45rem; }

/* ---------- pliki na Dysku Google ---------- */
.upl { margin-top: .6rem; display: grid; gap: .35rem; font-size: .88rem; color: var(--muted); }
.upl__track { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.upl__bar { display: block; height: 100%; width: 0; background: var(--sage); transition: width .2s; }
.tile__img { position: relative; cursor: default; }
.tile__img--video { cursor: pointer; }
.tile__play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: #fff; text-shadow: 0 2px 8px rgb(0 0 0 / .5); pointer-events: none; }
.tile__ext { font-weight: 700; color: var(--muted); }
.tile__drive { font-size: .85rem; color: var(--sage-ink); font-weight: 600; }
.drv { display: grid; gap: .35rem; max-height: 50vh; overflow: auto; margin: .6rem 0 1rem; }
.drv__folder, .drv__file { display: flex; gap: .6rem; align-items: center; text-align: left; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.drv__folder { font-weight: 600; }
.drv__file[aria-pressed="true"] { border-color: var(--navy); background: var(--sand-soft); }
.drv__file:disabled { opacity: .6; cursor: default; }
.drv__thumb { width: 1.6rem; text-align: center; }
.drv__path { margin: .4rem 0 .2rem; }

/* Miniatury grafik: cała grafika widoczna, bez przycinania */
.tile__img { background: #e9e4d8; }
.tile__img img { box-sizing: border-box; filter: drop-shadow(0 1px 3px rgba(30,40,60,.18)); }
.gp__file img { box-sizing: border-box; }

/* Podgląd e-maila HTML */
.mailpv { display: block; width: 100%; height: min(68vh, 760px); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #EEEDE4; }
