/* PLANY PROMO – ciemny motyw z lodowym błękitem i pomarańczem (moodboard z sekcji DESIGN) */
:root {
  --bg: #08090d;
  --bg-2: #0e1118;
  --surface: #131722;
  --surface-2: #1a1f2d;
  --line: #262c3b;
  --line-2: #323a4d;
  --text: #eef2f8;
  --muted: #98a2b6;
  --faint: #6b7489;
  --ice: #7cc8ff;
  --ice-2: #4aa8ff;
  --ice-glow: rgba(124, 200, 255, .35);
  --orange: #ff6b2c;
  --orange-2: #ff8b52;
  --ok: #4ade9b;
  --warn: #ffc857;
  --err: #ff5d6c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  /* platformy */
  --p-instagram: #e1306c; --p-tiktok: #25f4ee; --p-youtube: #ff3b3b; --p-facebook: #4b8bff; --p-x: #d6dbe4;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font);
  min-height: 100vh; overflow-x: hidden;
}
a { color: var(--ice); text-decoration: none; }
a:hover { color: #b5e0ff; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.spacer { flex: 1; }
.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none !important; } }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font: 600 14px/1.2 var(--font); white-space: nowrap;
  transition: transform .12s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { border-color: var(--ice); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, #f4f8ff, #bfe3ff); color: #071019; border-color: transparent;
  box-shadow: 0 0 24px var(--ice-glow); }
.btn.primary:hover { box-shadow: 0 0 34px rgba(124, 200, 255, .55); color: #071019; }
.btn.accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.accent:hover { background: var(--orange-2); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255, 93, 108, .5); color: var(--err); background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 14px 26px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--ice); cursor: pointer; font: inherit; padding: 0; }

/* ---------- formularze ---------- */
label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=url], select, textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 11px 12px; font: 15px/1.4 var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(124, 200, 255, .18); }
input[type=file] { color: var(--muted); max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text); font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--ice-2); width: 16px; height: 16px; flex: none; }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.radio-cards label { margin: 0; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text); cursor: pointer; font-weight: 500; }
.radio-cards input { accent-color: var(--ice-2); }
.radio-cards label:has(input:checked) { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(124, 200, 255, .15); }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 4px; margin: 0 0 18px; }
legend { padding: 0 8px; font-family: var(--display); font-weight: 600; }

/* ---------- karty / tabele ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.glow { box-shadow: 0 0 0 1px rgba(124, 200, 255, .25), 0 0 50px rgba(124, 200, 255, .08); }
.card h3 { margin-bottom: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; color: var(--faint); padding: 28px 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: rgba(74, 222, 155, .35); background: rgba(74, 222, 155, .08); }
.badge.warn { color: var(--warn); border-color: rgba(255, 200, 87, .35); background: rgba(255, 200, 87, .08); }
.badge.err { color: var(--err); border-color: rgba(255, 93, 108, .35); background: rgba(255, 93, 108, .08); }
.badge.ice { color: var(--ice); border-color: rgba(124, 200, 255, .35); background: rgba(124, 200, 255, .08); }
.badge.orange { color: var(--orange-2); border-color: rgba(255, 107, 44, .4); background: rgba(255, 107, 44, .08); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

.flash-stack { position: fixed; top: 14px; right: 14px; left: 14px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.flash { pointer-events: auto; max-width: 460px; width: 100%; padding: 12px 16px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: slide .25s ease-out; }
.flash.ok { border-color: rgba(74, 222, 155, .5); }
.flash.error { border-color: rgba(255, 93, 108, .6); }
.flash.info { border-color: rgba(124, 200, 255, .5); }
@keyframes slide { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- strona publiczna ---------- */
.pub-nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 9, 13, .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(38, 44, 59, .6); }
.pub-nav .container { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.pub-links { display: flex; gap: 4px; }
.pub-links a { color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 14px; }
.pub-links a:hover, .pub-links a.active { color: var(--text); background: var(--surface); }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 700; }
.lang-switch a { padding: 5px 9px; color: var(--muted); }
.lang-switch a.on { background: var(--surface-2); color: var(--text); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 7px 10px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .pub-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg-2);
    padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .pub-links.open { display: flex; }
  .pub-links a { padding: 12px; }
}

.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 620px;
  background: radial-gradient(ellipse at 70% 30%, rgba(74, 168, 255, .28), transparent 55%),
              radial-gradient(ellipse at 15% 70%, rgba(255, 107, 44, .16), transparent 50%); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 40px; grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: #c7d0e0; max-width: 560px; margin-bottom: 28px; }
.hero-art { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, #142338, #08090d 70%); box-shadow: 0 0 80px rgba(74, 168, 255, .18); }
.hero-art img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
@media (max-width: 860px) { .hero { padding: 48px 0 40px; } .hero .container { grid-template-columns: 1fr; } .hero-art { max-width: 380px; } }

.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ice); font-weight: 700; margin-bottom: 14px; }
.eyebrow::before { content: "✦"; color: #fff; }
.section { padding: 70px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; }
.chip::before { content: "✦ "; color: var(--ice); }

.benefit { position: relative; padding: 26px; }
.benefit .num { font-family: var(--display); font-size: 40px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--ice); line-height: 1; margin-bottom: 14px; display: block; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step::before { counter-increment: s; content: counter(s); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font: 700 18px var(--display); background: var(--surface-2); border: 1px solid var(--ice); box-shadow: 0 0 20px var(--ice-glow); }
.quote { font-family: var(--display); font-size: clamp(22px, 3vw, 32px); line-height: 1.3; max-width: 860px; }
.quote::before { content: "“"; color: var(--orange); }
.quote::after { content: "”"; color: var(--orange); }

.price-card { display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border-color: var(--ice); box-shadow: 0 0 50px rgba(124, 200, 255, .15); }
.price { font: 700 44px/1 var(--display); }
.price small { font: 500 15px var(--font); color: var(--muted); }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feat-list li { display: flex; gap: 10px; font-size: 14px; }
.feat-list li.no { color: var(--faint); text-decoration: line-through; }
.feat-list li::before { content: "✓"; color: var(--ok); font-weight: 700; width: 14px; }
.feat-list li.no::before { content: "—"; color: var(--faint); }

details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 20px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; color: var(--ice); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); padding-bottom: 8px; }

.pub-footer { border-top: 1px solid var(--line); padding: 44px 0 30px; margin-top: 40px; background: var(--bg-2); }
.pub-footer .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.pub-footer h4 { margin-bottom: 12px; }
.pub-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pub-footer a { color: var(--muted); }
.pub-footer a:hover { color: var(--text); }
@media (max-width: 760px) { .pub-footer .cols { grid-template-columns: 1fr 1fr; } }

.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 760px; }
.stepper { display: flex; gap: 8px; margin-bottom: 18px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.stepper span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.stepper span.on { color: var(--text); border-color: var(--ice); }

/* ---------- aplikacja (panel) ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-2);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.sidebar .logo { padding: 4px 8px 18px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 14px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; }
.nav-link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--ice); }
.nav-link .lock { margin-left: auto; font-size: 11px; color: var(--faint); }
.nav-link .count { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.sidebar .bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 24px;
  background: rgba(8, 9, 13, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .title { flex: 1; min-width: 0; font-family: var(--display); font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); }
.bell svg { width: 18px; height: 18px; }
.bell .n { position: absolute; top: -4px; right: -4px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.content { padding: 26px 24px 80px; max-width: 1240px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.mobile-nav-toggle { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 55; display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 80px; }
  .scrim.open { display: block; }
}

.stat { padding: 18px; }
.stat .label { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.stat .value { font: 700 28px/1.2 var(--display); margin-top: 6px; }
.stat .delta { font-size: 12.5px; color: var(--faint); }
.stat .delta.up { color: var(--ok); }
.stat.locked { opacity: .55; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; font-size: 14px; }
.tabs a.on { color: var(--text); border-color: var(--ice); }
.tabs a .badge { margin-left: 6px; padding: 0 7px; }

.list-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item small { display: block; }
.list-item .grow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* platformy i typy postów */
.plat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.plat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ice)); }
.plat.instagram { --c: var(--p-instagram); } .plat.tiktok { --c: var(--p-tiktok); } .plat.youtube { --c: var(--p-youtube); }
.plat.facebook { --c: var(--p-facebook); } .plat.x { --c: var(--p-x); }

/* ---------- kalendarz ---------- */
.cal-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cal-toolbar .period { font: 600 17px var(--display); min-width: 180px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--muted); padding: 7px 14px; font: 600 13px var(--font); cursor: pointer; }
.seg button.on { background: var(--surface-2); color: var(--text); }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 0 6px 4px; }
.cal-day { min-height: 118px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.out { opacity: .35; }
.cal-day.today { border-color: var(--ice); }
.cal-day.release { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange), 0 0 24px rgba(255, 107, 44, .15); }
.cal-day .d { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; gap: 4px; }
.cal-day .d .tag { color: var(--orange-2); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.cal-post { text-align: left; width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 7px; padding: 5px 7px; font: 12px/1.3 var(--font); cursor: pointer; overflow: hidden; }
.cal-post:hover { border-color: var(--ice); }
.cal-post .t { color: var(--muted); font-weight: 600; }
.cal-post .s { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-post.story { opacity: .8; border-style: dashed; }
.cal-post.instagram { --c: var(--p-instagram); } .cal-post.tiktok { --c: var(--p-tiktok); } .cal-post.youtube { --c: var(--p-youtube); }
.cal-post.facebook { --c: var(--p-facebook); } .cal-post.x { --c: var(--p-x); }
.calendar.week .cal-day { min-height: 340px; }
.calendar.week .cal-post .s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
@media (max-width: 760px) {
  .calendar { grid-template-columns: minmax(0, 1fr); }
  .cal-dow { display: none; }
  .cal-day { min-height: 0; }
  .cal-day.empty-day { display: none; }
  .cal-day.out { display: none; }
  .calendar.week .cal-day { min-height: 0; }
}

/* ---------- modal ---------- */
dialog { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 40px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(3, 4, 8, .7); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.x { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }

/* ---------- czat (dymek w prawym dolnym rogu) ---------- */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, #f4f8ff, #9fd4ff); color: #071019; box-shadow: 0 0 0 1px rgba(124, 200, 255, .4), 0 8px 30px rgba(74, 168, 255, .35);
  transition: transform .15s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab-n { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange);
  color: #fff; font: 700 12px/22px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.chat-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  animation: chatIn .18s ease-out; transform-origin: bottom right; }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124, 200, 255, .08), transparent); }
.chat-title { flex: 1; min-width: 0; }
.chat-title strong { display: block; font-family: var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-back { background: none; border: 1px solid var(--line-2); color: var(--text); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.chat-back[hidden] { display: none; }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; }
.chat-list { display: flex; flex-direction: column; }
.chat-list[hidden] { display: none; }
.chat-conv { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); padding: 12px 16px; cursor: pointer; font: inherit; }
.chat-conv:hover { background: var(--surface-2); }
.chat-conv .grow { flex: 1; min-width: 0; }
.chat-conv strong, .chat-conv small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conv .n { background: var(--orange); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 100%; }
.chat[hidden] { display: none; }
.chat .empty { margin: auto; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; }
.msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(124, 200, 255, .16); border: 1px solid rgba(124, 200, 255, .28); }
.msg.system { align-self: center; max-width: 92%; border-radius: 10px; background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; text-align: center; }
.msg .meta { display: block; font-size: 11px; color: var(--faint); margin-top: 4px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form[hidden] { display: none; }
.chat-form textarea { min-height: 40px; max-height: 120px; resize: none; padding: 9px 12px; }
.chat-form .btn { height: 40px; width: 44px; padding: 0; }
@media (max-width: 760px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-widget.open { left: 0; right: 0; bottom: 0; top: 0; gap: 0; }
  .chat-widget.open .chat-fab { display: none; }
  .chat-widget.open .chat-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
}
.prose { white-space: pre-wrap; color: #d5dcea; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.thumbs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.thumb { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12px; }
.thumb .media { aspect-ratio: 1; display: grid; place-items: center; background: #05070b; color: var(--faint); font-size: 26px; }
.thumb .media img, .thumb .media video { width: 100%; height: 100%; object-fit: cover; }
.thumb .cap { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock-box { text-align: center; padding: 48px 20px; }
.lock-box .ic { font-size: 40px; margin-bottom: 10px; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin: 0 auto; display: none; }
.cookie.show { display: block; }
.posts-table td.caption { min-width: 260px; max-width: 420px; white-space: pre-wrap; }
.status-flow { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.status-flow span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--faint); }
.status-flow span.done { color: var(--ok); border-color: rgba(74, 222, 155, .35); }
.status-flow span.now { color: var(--text); border-color: var(--ice); box-shadow: 0 0 14px var(--ice-glow); }

/* ---------- twórcy: „To ja” ---------- */
.credit-row { display: flex; gap: 8px; align-items: stretch; }
.credit-row input[type=text] { flex: 1; min-width: 0; }
.credit-row input[type=text]:disabled { opacity: .45; }
.self-toggle { margin: 0; display: inline-flex; align-items: center; cursor: pointer; flex: none; }
.self-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.self-toggle span { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font: 600 13px var(--font); white-space: nowrap; transition: all .15s; }
.self-toggle span::before { content: "✦"; color: var(--faint); }
.self-toggle input:checked + span { border-color: var(--ice); color: var(--text); background: rgba(124, 200, 255, .12); box-shadow: 0 0 14px rgba(124, 200, 255, .2); }
.self-toggle input:checked + span::before { color: var(--ice); }
.self-toggle input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }

/* ---------- pliki: dropzone + postęp ---------- */
.dropzone { position: relative; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-2); transition: border-color .15s, background .15s; margin-bottom: 12px; }
.dropzone.over { border-color: var(--ice); background: rgba(124, 200, 255, .06); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone-label { margin: 0; padding: 26px 16px; text-align: center; color: var(--muted); font-weight: 500; font-size: 14px; pointer-events: none; }
.dropzone-label strong { color: var(--ice); }
.dropzone-label small { display: block; margin-top: 4px; color: var(--faint); }
.upload-list { display: grid; gap: 8px; margin-bottom: 14px; }
.upload-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.upload-item .ic { grid-row: span 2; font-size: 22px; text-align: center; }
.upload-item .name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item .name small { font-weight: 400; color: var(--faint); margin-left: 6px; }
.upload-item input[type=text] { padding: 7px 10px; font-size: 13px; }
.upload-item .rm { grid-row: span 2; background: none; border: 0; color: var(--faint); font-size: 20px; cursor: pointer; }
.upload-item .bar { grid-column: 2 / 3; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; display: none; }
.upload-item .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ice-2), var(--ice)); transition: width .2s; }
.upload-item.busy .bar, .upload-item.done .bar { display: block; }
.upload-item.done .bar i { background: var(--ok); }
.upload-item.err { border-color: rgba(255, 93, 108, .55); }
.upload-item .msg-err { grid-column: 2 / 3; color: var(--err); font-size: 12.5px; }
.upload-status { font-size: 13px; }

/* ---------- admin: zmiana planu ---------- */
.plan-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.plan-form select, .plan-form input[type=date] { width: auto; padding: 7px 9px; font-size: 13px; }
.users-table tr:target td { background: rgba(124, 200, 255, .07); }

/* ---------- kreator rejestracji ---------- */
.ob-stepper { display: flex; align-items: center; gap: 8px; margin: 6px 0 22px; }
.ob-step { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; font-weight: 600; white-space: nowrap; }
a.ob-step:hover { color: var(--text); }
.ob-num { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; border: 1px solid var(--line-2);
  background: var(--bg-2); font: 700 13px var(--display); color: var(--muted); }
.ob-step.done .ob-num, .ob-item.done .ob-num { border-color: rgba(74, 222, 155, .5); color: var(--ok); background: rgba(74, 222, 155, .08); }
.ob-step.on { color: var(--text); }
.ob-step.on .ob-num { border-color: var(--ice); color: var(--text); box-shadow: 0 0 16px var(--ice-glow); }
.ob-line { flex: 1; min-width: 16px; height: 2px; border-radius: 2px; background: var(--line-2); }
.ob-line.done { background: rgba(74, 222, 155, .5); }
@media (max-width: 560px) { .ob-step:not(.on) .ob-label { display: none; } }
.ob-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ob-progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 18px 0 8px; }
.ob-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--ice-2), var(--ice)); border-radius: 6px; }
.ob-list { display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ob-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--text); }
.ob-item .grow { flex: 1; min-width: 0; }
.ob-item strong, .ob-item small { display: block; }
.ob-item small { color: var(--muted); }
.ob-item.done strong { color: var(--muted); }
.ob-nav { margin-bottom: 6px; border: 1px solid rgba(124, 200, 255, .3); background: rgba(124, 200, 255, .06); color: var(--text); }
.ob-ring { width: 18px; height: 18px; border-radius: 50%; flex: none; background: conic-gradient(var(--ice) calc(var(--p) * 1%), var(--line-2) 0);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
.social-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.social-field label { display: flex; align-items: center; gap: 8px; }
.plat-ic { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ice)); }
.plat-instagram { --c: var(--p-instagram); } .plat-tiktok { --c: var(--p-tiktok); } .plat-youtube { --c: var(--p-youtube); }
.plat-facebook { --c: var(--p-facebook); } .plat-x { --c: var(--p-x); } .plat-spotify { --c: #1ed760; }

/* ---------- materiały: miniatura | opis ---------- */
.media-list { display: grid; gap: 10px; }
.media-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.media-row.need { border-color: rgba(255, 93, 108, .5); }
.media-prev { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #05070b; display: grid; place-items: center; }
.media-prev img, .media-prev video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-prev video { object-fit: contain; background: #000; }
.audio-prev { display: grid; gap: 8px; place-items: center; font-size: 28px; padding: 10px; width: 100%; }
.audio-prev audio { width: 100%; }
.media-desc { min-width: 0; display: flex; flex-direction: column; }
.media-desc textarea { flex: 1; min-height: 70px; }
.media-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 640px) { .media-row { grid-template-columns: minmax(0, 1fr); } }
.bio-preview { border: 1px solid rgba(124, 200, 255, .3); background: rgba(124, 200, 255, .06); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 22px; font-size: 14px; }
.spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-note { font-size: 13px; flex-basis: 100%; }

/* ---------- podgląd w pop-upie ---------- */
.media-open { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #05070b; cursor: zoom-in; }
.media-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s, opacity .2s; }
.media-open:hover img { transform: scale(1.03); opacity: .9; }
.media-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 30px; }
.play-badge { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 9, 13, .7); color: #fff; font-size: 16px; padding-left: 3px; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(4px); pointer-events: none; }
.media-open:hover .play-badge { background: var(--ice-2); }
dialog.lightbox { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: #05070b; overflow: hidden; }
.lightbox-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.lightbox-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.lightbox-body { display: grid; place-items: center; }
.lightbox-body img { display: block; max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; margin: 0 auto; }
.lightbox-body video { display: block; width: 100%; height: min(70vh, 600px); object-fit: contain; background: #000; }

/* ---------- kalendarz: miniatury materiałów ---------- */
.cal-post.has-media { display: flex; gap: 7px; align-items: flex-start; }
.cal-txt { min-width: 0; flex: 1; display: block; }
.cal-thumb { position: relative; flex: none; width: 34px; height: 34px; border-radius: 5px; overflow: hidden; background: #05070b; display: grid; place-items: center; font-size: 14px; }
.cal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-thumb.video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; background: rgba(0, 0, 0, .35); }
.calendar.week .cal-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.calendar.week .cal-post.has-media { flex-direction: column; }
.calendar.week .cal-thumb.video::after { font-size: 16px; }
.post-media { margin: 0 0 14px; display: grid; gap: 6px; }
.post-media video, .post-media .media-open { width: 100%; max-height: 340px; border-radius: 10px; overflow: hidden; background: #000; }
.post-media video { display: block; }
.post-media .media-open img { max-height: 340px; object-fit: contain; }
@media (max-width: 760px) { .calendar.week .cal-thumb { width: 54px; height: 54px; aspect-ratio: auto; } .calendar.week .cal-post.has-media { flex-direction: row; } }
.prompt-text { font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; }

/* ---------- zwijane sekcje ---------- */
.collapsible .when-closed, .collapsible.collapsed .when-open { display: none; }
.collapsible.collapsed .when-closed { display: inline; }
.collapsible.collapsed .collapse-body, .collapsible.collapsed .collapse-hide { display: none; }
.collapsed-summary { display: none; align-items: center; gap: 6px; flex-wrap: wrap; }
.collapsible.collapsed .collapsed-summary { display: flex; }
.collapsed-summary img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; }
.collapsed-summary .muted { margin-left: 8px; font-size: 13px; }
.collapsible.collapsed .card-head { margin-bottom: 10px; }

/* ---------- ekran ładowania (generowanie planu) ---------- */
.busy-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 6, 10, .78); backdrop-filter: blur(6px); animation: fadeIn .2s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
.busy-card { width: min(440px, 100%); text-align: center; padding: 34px 28px 26px; border-radius: 22px; background: var(--surface);
  border: 1px solid rgba(124, 200, 255, .3); box-shadow: 0 0 80px rgba(74, 168, 255, .18), var(--shadow); }
.busy-card h3 { margin: 18px 0 6px; }
.busy-step { min-height: 1.5em; margin: 0 0 14px; transition: opacity .3s; }
.busy-time { font: 600 14px var(--display); color: var(--ice); }
.busy-card .hint { margin-top: 10px; }
.busy-spin { position: relative; width: 74px; height: 74px; margin: 0 auto; }
.busy-spin span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #fff; text-shadow: 0 0 18px var(--ice); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.85); } }
.busy-ring { width: 74px; height: 74px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 25%, var(--ice) 70%, #fff 100%);
  -webkit-mask: radial-gradient(circle, transparent 29px, #000 30px); mask: radial-gradient(circle, transparent 29px, #000 30px);
  animation: spin 1.1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .busy-ring { animation-duration: 3s; } }

/* ---------- edycja danych singla (pracownik) ---------- */
.editable .edit-only { display: none; }
.editable.editing .edit-only { display: block; }
.editable.editing .view-only { display: none; }
.editable.editing { border-color: rgba(124, 200, 255, .45); }

/* ---------- przeciąganie postów w kalendarzu ---------- */
.cal-post.draggable { cursor: grab; touch-action: pan-y; -webkit-touch-callout: none; user-select: none; }
.cal-post.drag-src { opacity: .35; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; margin: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .55), 0 0 0 1px var(--ice); cursor: grabbing; opacity: .95; }
.calendar.dragging .cal-day { transition: background .12s, border-color .12s; }
.calendar.dragging .cal-day.empty-day { display: flex; }
.cal-day.drop-target { border-color: var(--ice) !important; background: rgba(124, 200, 255, .1); box-shadow: inset 0 0 0 1px var(--ice); }
body.no-select, body.no-select * { user-select: none !important; cursor: grabbing !important; }
.cal-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 250; width: auto; max-width: 90vw; }

/* ---------- dashboard: pasek planów ---------- */
.plan-strip { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .plan-strip { grid-template-columns: minmax(0, 1fr); } }
.plan-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; color: var(--text); }
a.plan-stat:hover { border-color: var(--ice); color: var(--text); }
.plan-stat .label { color: var(--muted); font-size: 13px; }
.plan-stat .value { font: 700 26px/1.2 var(--display); }
.plan-stat .hint { margin: 0; color: var(--ice); }
.plan-stat.hot { border-color: rgba(124, 200, 255, .5); box-shadow: 0 0 30px rgba(124, 200, 255, .12); }

/* ---------- tydzień: siatka godzin co 15 min ---------- */
.calendar.weekgrid { display: block; }
.wg-head { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 4px; position: sticky; top: 62px; z-index: 5;
  background: var(--surface); padding: 4px 0 8px; }
.wg-dh { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 4px; border-radius: 8px; border: 1px solid transparent; }
.wg-dh strong { color: var(--text); font-family: var(--display); }
.wg-dh em { display: block; font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-2); }
.wg-dh.today { border-color: var(--ice); }
.wg-dh.release { border-color: var(--orange); background: rgba(255, 107, 44, .08); }
.wg-dh.drop-target { border-color: var(--ice); background: rgba(124, 200, 255, .1); }
.wg-body { position: relative; display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 4px; }
.wg-times { position: relative; }
.wg-h { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.wg-h:first-child { transform: none; }
.wg-col { position: relative; border-radius: 8px; border: 1px solid var(--line); background-color: var(--bg-2);
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.08) 0 1px, transparent 1px calc(var(--slot) * 2)); }
.wg-col.today { border-color: rgba(124, 200, 255, .5); }
.wg-col.release { border-color: rgba(255, 107, 44, .6); background-color: rgba(255, 107, 44, .05); }
.wg-col.drop-target { border-color: var(--ice); box-shadow: inset 0 0 0 1px var(--ice); }
.wg-col .cal-post { position: absolute; margin: 0; padding: 3px 6px; overflow: hidden; font-size: 11.5px; line-height: 1.25; z-index: 1; }
.wg-col .cal-post:hover { z-index: 3; }
.wg-col .cal-post .s { white-space: nowrap; }
.wg-col .cal-post.has-media { flex-direction: row; gap: 5px; }
.wg-col .cal-thumb { width: 30px; height: 30px; aspect-ratio: auto; }
.calendar.weekgrid .cal-post.has-media { flex-direction: row; }
.wg-drop { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--ice); z-index: 4; pointer-events: none;
  font: 700 11px/1 var(--display); color: transparent; }
.wg-drop::before { content: attr(data-label); position: absolute; left: 2px; top: -9px; padding: 3px 6px; border-radius: 6px; background: var(--ice); color: #071019; }

/* ---------- pop-up posta: poprzedni / następny ---------- */
.post-nav { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 2px; }
.post-nav:hover:not([disabled]) { border-color: var(--ice); }
.post-nav[disabled] { opacity: .3; cursor: default; }
.post-nav-title { flex: 1; min-width: 0; text-align: center; }
.post-nav-title strong, .post-nav-title small { display: block; }

/* ---------- kampania / ocena / pitch / notka – w wierszach ---------- */
.plan-extras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.plan-extras .field { margin-bottom: 0; }
#post-dialog .kv dd { white-space: pre-line; }

/* ---------- bez górnego paska ---------- */
.mobile-menu-btn { display: none; }
@media (max-width: 960px) {
  .mobile-menu-btn { display: inline-flex; position: fixed; top: 12px; left: 12px; z-index: 50; width: 42px; height: 42px; align-items: center; justify-content: center;
    background: rgba(14, 17, 24, .9); backdrop-filter: blur(8px); font-size: 18px; }
  .mobile-menu-btn .n { position: absolute; top: -5px; right: -5px; background: var(--orange); color: #fff; font: 700 10px/1 var(--font); border-radius: 999px; padding: 3px 6px; }
  .content { padding-top: 66px; }
}
.wg-head { top: 0; }

/* ---------- strona główna artysty: odstępy między modułami ---------- */
.dash-section { margin-bottom: 44px; }
.dash-label { margin: 0 0 14px; }
.dash-cols { gap: 22px; }
.content > .page-head { margin-bottom: 30px; }
@media (max-width: 760px) { .dash-section { margin-bottom: 32px; } }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ---------- menu: funkcje spoza planu ---------- */
.nav-link.locked { position: relative; color: #4c5466; cursor: not-allowed; }
.nav-link.locked svg { opacity: .7; }
.nav-link.locked:hover { background: transparent; color: #5b6377; }
.nav-link.locked .lock { margin-left: auto; display: inline-flex; }
.nav-link.locked .lock svg { width: 14px; height: 14px; opacity: 1; }
.nav-link.locked::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  width: 230px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  color: var(--text); font-size: 12.5px; font-weight: 500; line-height: 1.4; white-space: normal; z-index: 70;
  opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; }
.nav-link.locked:hover::after, .nav-link.locked:focus-visible::after { opacity: 1; visibility: visible; }
@media (min-width: 961px) { .sidebar { overflow: visible; z-index: 20; } }
@media (max-width: 960px) {
  .nav-link.locked::after { left: 12px; right: 12px; top: calc(100% + 4px); transform: none; width: auto; }
}

/* ---------- ocena materiałów: minimalistyczny wykres (status = kropka + podpis) ---------- */
:root { --st-good: #3fae6a; --st-warning: #d9a53a; --st-critical: #d0605e; }
.mat-chart { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 32px; align-items: center; padding: 6px 0 2px; }
@media (max-width: 640px) { .mat-chart { grid-template-columns: minmax(0, 1fr); gap: 20px; } .mat-score { justify-self: start; } }
.mat-score { position: relative; width: 104px; height: 104px; }
.mat-score svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.mat-score circle { fill: none; stroke-width: 1.6; }
.mat-score .trk { stroke: rgba(255, 255, 255, .07); }
.mat-score .val { stroke-linecap: round; opacity: .85; }
.mat-score.s-good .val { stroke: var(--st-good); } .mat-score.s-warning .val { stroke: var(--st-warning); } .mat-score.s-critical .val { stroke: var(--st-critical); }
.mat-score-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.mat-score-txt strong { font: 500 28px/1 var(--display); color: var(--text); letter-spacing: -.02em; }
.mat-score-txt small { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.mat-rows { display: grid; gap: 16px; }
.mat-row { position: relative; outline: none; }
.mat-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.mat-label { font-size: 13.5px; font-weight: 500; color: #dfe5ee; }
.mat-val { color: var(--faint); font-size: 12.5px; }
.mat-st { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.mat-st i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.mat-st.s-good i { background: var(--st-good); } .mat-st.s-warning i { background: var(--st-warning); } .mat-st.s-critical i { background: var(--st-critical); }
.meter { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 3px; opacity: .8; }
.meter .s-good { background: var(--st-good); } .meter .s-warning { background: var(--st-warning); } .meter .s-critical { background: var(--st-critical); }
.mat-row::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 6px); max-width: 320px; padding: 8px 11px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--text); font-size: 12.5px; line-height: 1.4;
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; z-index: 5; }
.mat-row:hover::after, .mat-row:focus-visible::after { opacity: 1; visibility: visible; }

/* ---------- kafelki planu: jak „Twój plan jest gotowy!” (nazwa) i „Przejrzyj kalendarz…” (opis) ---------- */
.plan-extras .card h3 { font: 700 15px/1.55 var(--font); letter-spacing: 0; color: var(--text); margin-bottom: 4px; }
.plan-extras .prose { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- tydzień: nachodzące się posty – jeden na drugim ---------- */
.wg-col .cal-post.stacked { box-shadow: 0 -6px 14px rgba(0, 0, 0, .45); }
.wg-col .cal-post.stacked:hover, .wg-col .cal-post.stacked:focus-visible { z-index: 20 !important; border-color: var(--ice); }
.wg-col .cal-post.stacked { opacity: 1; background: #10141c; }
.wg-col .cal-post.stacked.story { border-style: dashed; }

/* ---------- podgląd posta: szeroki i niski (lewo: materiał, prawo: pola) ---------- */
dialog#post-dialog { width: min(1060px, calc(100vw - 24px)); }
dialog#post-dialog:focus { outline: none; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.post-left { min-width: 0; }
.post-right { min-width: 0; }
.post-badges { margin-bottom: 8px; }
.post-format { font-size: 12.5px; margin: 0 0 10px; }
.post-left .post-media { margin-bottom: 12px; }
.post-left .post-media video, .post-left .post-media .media-open { max-height: min(240px, 32vh); }
.post-left .post-media .media-open img { max-height: min(240px, 32vh); width: 100%; object-fit: contain; }
.post-left .post-media .media-open { min-height: 80px; display: grid; place-items: center; }
.post-kv { font-size: 13.5px; margin: 0; grid-template-columns: max-content minmax(0, 1fr); }
.post-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.post-fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-fields .field { margin-bottom: 10px; }
.post-form label { font-size: 12px; margin-bottom: 4px; }
.post-form input, .post-form select { padding: 8px 10px; font-size: 14px; }
.post-form textarea[name=caption] { min-height: 150px; }
.post-form .field { margin-bottom: 10px; }
.post-more { margin-top: 4px; }
.post-more summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
@media (max-width: 760px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .post-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- story: brak opisu posta ---------- */
.caption-wrap.is-story label { color: var(--faint); }
.caption-wrap.is-story textarea { opacity: .4; cursor: not-allowed; resize: none; background: transparent; border-style: dashed; }
[hidden] { display: none !important; }

/* ---------- podgląd posta: stały rozmiar i pozycja (nic nie skacze przy zmianie posta) ---------- */
dialog#post-dialog[open] { display: flex; flex-direction: column; position: fixed; inset: 0; margin: auto;
  width: min(1060px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); max-height: none; overflow: hidden; }
dialog#post-dialog .modal-head, dialog#post-dialog .modal-foot { flex: none; }
dialog#post-dialog .modal-head { min-height: 74px; }
dialog#post-dialog .modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
dialog#post-dialog .modal-foot { min-height: 70px; align-items: center; }
dialog#post-dialog .post-form textarea[name=caption] { height: 190px; min-height: 190px; resize: none; }
dialog#post-dialog .post-left .post-media { height: min(240px, 32vh); }
dialog#post-dialog .post-left .post-media video,
dialog#post-dialog .post-left .post-media .media-open { height: calc(100% - 22px); max-height: none; }
dialog#post-dialog .post-left .post-media .media-open img { height: 100%; max-height: none; }
dialog#post-dialog .modal-foot .spacer { flex: 1; }
@media (max-width: 760px) { dialog#post-dialog[open] { height: calc(100vh - 24px); } }

/* ---------- podgląd posta: lewa = sam materiał / propozycja, prawa = reszta ---------- */
dialog#post-dialog .post-layout { height: 100%; align-items: stretch; }
dialog#post-dialog .post-left { display: flex; min-height: 0; }
dialog#post-dialog .post-left .post-media { height: auto; flex: 1; margin: 0; display: flex; border-radius: 12px; overflow: hidden; background: #05070b; }
dialog#post-dialog .post-left .post-media video,
dialog#post-dialog .post-left .post-media .media-open { width: 100%; height: 100%; max-height: none; border-radius: 0; }
dialog#post-dialog .post-left .post-media .media-open img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
dialog#post-dialog .audio-box { margin: auto; display: grid; gap: 12px; place-items: center; font-size: 34px; width: 80%; }
dialog#post-dialog .audio-box audio { width: 100%; }
dialog#post-dialog .post-proposal { flex: 1; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow-y: auto; }
dialog#post-dialog .post-proposal h4 { margin-bottom: 10px; }
dialog#post-dialog .post-proposal .prose { white-space: pre-line; color: var(--text); line-height: 1.6; }
dialog#post-dialog .post-right { overflow-y: auto; min-height: 0; padding-right: 2px; }
dialog#post-dialog .post-kv { margin: 2px 0 10px; font-size: 13px; }
dialog#post-dialog .post-form textarea[name=caption] { height: 170px; min-height: 170px; }
@media (max-width: 760px) { dialog#post-dialog .post-layout { height: auto; } dialog#post-dialog .post-left { height: 260px; } }

/* ---------- karuzela w podglądzie posta ---------- */
dialog#post-dialog .post-media.carousel { position: relative; }
.carousel .slides { position: relative; flex: 1; display: flex; }
.carousel .slide { position: absolute; inset: 0; display: none; }
.carousel .slide.on { display: flex; }
.carousel .slide .media-open, .carousel .slide video { width: 100%; height: 100%; }
.carousel .slide .media-open img { width: 100%; height: 100%; object-fit: contain; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(8, 9, 13, .6); backdrop-filter: blur(6px); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 2px; z-index: 2; }
.slide-nav.prev { left: 10px; } .slide-nav.next { right: 10px; }
.slide-nav:hover:not([disabled]) { border-color: var(--ice); }
.slide-nav[disabled] { opacity: .25; cursor: default; }
.slide-count { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(8, 9, 13, .65); color: #fff; font-size: 12px; font-weight: 600; z-index: 2; }
.slide-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.slide-dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.slide-dots button.on { background: #fff; }
.cal-thumb .slides-n { position: absolute; right: 1px; bottom: 1px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 4px; background: rgba(8,9,13,.8);
  color: #fff; font-size: 9.5px; line-height: 14px; text-align: center; }
dialog#post-dialog .post-kv dd.empty-val { color: var(--faint); }

/* ---------- strona główna: „Twój ostatni plan promo” ---------- */
.last-plan { padding: 24px 26px; }
.last-plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.last-plan-title { font-size: clamp(22px, 2.6vw, 28px); margin: 0; }
.last-plan-badge { font-size: 13px; padding: 5px 12px; }
.last-plan-text { color: var(--muted); margin: 14px 0 0; }
.last-plan-progress { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; }
.last-plan-progress .meter { height: 6px; }
.last-plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.last-plan-foot .btn { margin-left: auto; }
.last-plan-next { display: grid; gap: 2px; font-size: 14px; }
.last-plan-next .muted { font-size: 12.5px; }

/* ---------- integracje artysty (pracownik) ---------- */
.keys-card { margin-bottom: 18px; display: grid; gap: 10px; }
.keys-row { display: flex; flex-wrap: wrap; gap: 8px; }
.key-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.key-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--st-critical); }
.key-chip.on i { background: var(--st-good); }
.integ-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); margin-bottom: 18px; }
.integ-card .card-head h3 { display: flex; align-items: center; gap: 8px; }
.integ-warn { font-size: 13px; color: var(--warn); margin: 0 0 12px; }
.integ-err { font-size: 13px; color: var(--err); background: rgba(255, 93, 108, .07); border: 1px solid rgba(255, 93, 108, .25); border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; }
.integ-data { font-size: 13px; margin: 0 0 12px; }
.integ-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.integ-help ol { color: var(--muted); font-size: 14px; line-height: 1.6; padding-left: 20px; margin: 12px 0 0; }
.integ-help summary { cursor: pointer; }
@media (max-width: 760px) { .integ-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- wskaźniki: zmiana % i podział ---------- */
.stat .delta.up { color: var(--st-good); }
.stat .delta.down { color: var(--st-critical); }
.stat .delta .faint { font-size: 11.5px; }
.stat-lock { color: var(--faint); display: inline-flex; }
.stat[data-tip] { position: relative; cursor: help; outline: none; }
.stat[data-tip]::after { content: attr(data-tip); white-space: pre-line; position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); padding: 8px 11px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--text); font-size: 12.5px; line-height: 1.45;
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; z-index: 5; }
.stat[data-tip]:hover::after, .stat[data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
/* status połączeń u artysty */
.conn-list { display: grid; gap: 8px; }
.conn-row { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.conn-dot.s-good { background: var(--st-good); } .conn-dot.s-warning { background: var(--st-warning); } .conn-dot.s-critical { background: var(--st-critical); }

/* ---------- Ustawienia → Integracje (artysta) ---------- */
.integ-card .card-head h3 { margin: 0; font-size: 17px; }
.conn-st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.conn-dot.s-none { background: var(--line-2); }
.howto { margin: 0 0 12px; font-size: 13.5px; }
.howto summary { cursor: pointer; color: var(--ice); font-weight: 500; }
.howto ol { color: var(--muted); line-height: 1.6; padding-left: 20px; margin: 10px 0 0; }
.howto ol li + li { margin-top: 4px; }

/* ---------- Ustawienia → Integracje: 4 karty w jednym rzędzie ---------- */
.integ-row { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.integ-row .integ-card { display: flex; flex-direction: column; }
.integ-row .integ-card .card-head { flex-direction: column; align-items: flex-start; gap: 6px; }
.integ-row .integ-card .form-grid { grid-template-columns: minmax(0, 1fr); }
.integ-row .integ-card .integ-foot { margin-top: auto; flex-direction: column; align-items: stretch; }
.integ-row .integ-card .integ-foot .row { justify-content: flex-end; }
@media (max-width: 1250px) { .integ-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .integ-row { grid-template-columns: minmax(0, 1fr); } }
.social-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }

/* ---------- Analityka ---------- */
.an-total { font: 700 28px/1 var(--display); }
.an-bars { display: grid; gap: 12px; }
.an-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 190px; gap: 14px; align-items: center; font-size: 14px; }
.an-bar-label { color: var(--muted); }
.an-bar-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.an-bar-track span { display: block; height: 100%; border-radius: 8px; background: var(--ice); opacity: .85; }
.an-bar-val { text-align: right; white-space: nowrap; }
.an-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.an-card .card-head h3 { margin: 0; }
.an-video { display: grid; gap: 2px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text); font-size: 13.5px; }
.an-video:hover { border-color: var(--ice); color: var(--text); }
.an-video .faint { font-size: 12px; }
.an-rows { margin: 0; display: grid; }
.an-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.an-row:last-child { border-bottom: 0; }
.an-row dt { color: var(--muted); font-size: 14px; }
.an-row dt small { display: block; color: var(--faint); font-size: 11.5px; }
.an-row dd { margin: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.an-row dd strong { font: 600 17px var(--display); color: var(--text); }
.an-delta { font-size: 12.5px; color: var(--muted); }
.an-delta.up { color: var(--st-good); } .an-delta.down { color: var(--st-critical); }
.an-empty { margin: 0; font-size: 14px; }
.stat-info { color: var(--faint); cursor: help; font-size: 13px; }
@media (max-width: 640px) { .an-bar { grid-template-columns: 80px minmax(0, 1fr); } .an-bar-val { grid-column: 1 / -1; text-align: left; } }

/* Trendy TikTok */
.trend-fetch { margin-bottom: 18px; display: grid; gap: 4px; justify-items: start; }
.trend-fetch .field { width: 100%; margin-bottom: 8px; }
.trend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.trend-card { display: flex; gap: 16px; padding: 16px; }
.trend-cover { width: 92px; height: 164px; align-self: flex-start; object-fit: cover; border-radius: 10px; flex: none; background: var(--bg-2); }
.trend-body { flex: 1; min-width: 0; display: grid; gap: 8px; align-content: start; }
.trend-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.trend-kind { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.trend-card h3 { margin: 0; font-size: 17px; }
.trend-what { margin: 0; color: var(--muted); font-size: 14px; }
.trend-how { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.trend-how strong { font-size: 12px; color: var(--muted); font-weight: 600; }
.trend-how p { margin: 4px 0 0; font-size: 14px; }
.trend-stats { margin: 0; font-size: 13px; color: var(--muted); }
.trend-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.trend-ex a { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); white-space: nowrap; }
.trend-ex a:hover { border-color: var(--ice); }
.trend-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; padding-top: 4px; }
.trend-actions form { margin: 0; }
.trend-edit { flex-basis: auto; }
.trend-edit summary { list-style: none; cursor: pointer; }
.trend-edit summary::-webkit-details-marker { display: none; }
.trend-edit[open] { flex-basis: 100%; order: 9; }
.trend-edit[open] form { margin-top: 10px; }
@media (max-width: 520px) { .trend-grid { grid-template-columns: 1fr; } .trend-cover { width: 64px; } }

/* Ustawienia: wybór jak przełącznik (język) i włącznik zgody */
.seg-radio label { margin: 0; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: block; padding: 8px 18px; color: var(--muted); font: 600 13.5px var(--font); }
.seg-radio input:checked + span { background: var(--surface-2); color: var(--text); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: -2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; position: relative; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row strong { font-size: 14px; color: var(--text); font-weight: 600; }
.switch-row small { color: var(--muted); font-size: 13px; font-weight: 400; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; transition: background .15s; }
.switch-row i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch-row input:checked + i { background: var(--ice-2); border-color: var(--ice-2); }
.switch-row input:checked + i::after { transform: translateX(16px); background: #0b0d12; }
.switch-row input:focus-visible + i { outline: 2px solid var(--ice); outline-offset: 2px; }
/* Integracje: „Skąd wziąć…?” na tej samej wysokości w każdej karcie (tuż nad przyciskami) */
.integ-row .integ-card .howto { margin-top: auto; }
.integ-row .integ-card .integ-remove { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.integ-row .integ-card .integ-foot { margin-top: 0; flex-direction: row; justify-content: flex-end; align-items: center; }

/* Dobre praktyki */
.pr-progress { margin-bottom: 18px; display: grid; gap: 10px; max-width: 980px; }
.pr-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pr-bar i { display: block; height: 100%; background: var(--ice-2); border-radius: 999px; transition: width .25s; }
.pr-sections { display: grid; gap: 16px; max-width: 980px; }
.pr-section h2 { margin: 0 0 4px; font-size: 18px; }
.pr-lead { margin: 0 0 10px; font-size: 14px; }
.pr-item { border-top: 1px solid var(--line); }
.pr-item summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.pr-item summary::-webkit-details-marker { display: none; }
.pr-title { flex: 1; min-width: 0; font-weight: 500; font-size: 15px; }
.pr-item.done .pr-title { color: var(--muted); }
.pr-freq { flex: none; font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pr-check { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: none; cursor: pointer; padding: 0; position: relative; }
.pr-check:hover { border-color: var(--ice); }
.pr-check[aria-pressed="true"] { background: var(--ice-2); border-color: var(--ice-2); }
.pr-check[aria-pressed="true"]::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #0b0d12; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pr-body { padding: 0 0 14px 32px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.pr-body p { margin: 0; }
.pr-tip { margin-top: 8px !important; color: var(--text); }
.pr-tip b { color: var(--ice); font-weight: 600; }
@media (max-width: 600px) { .pr-freq { display: none; } .pr-body { padding-left: 0; } }

/* Kafelek wskaźnika: tytuł numeru / filmu, z którego pochodzi wartość (pełny w dymku) */
.stat-src { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Analityka: jedna platforma = jeden wiersz na całą szerokość, tabela wskaźników z kolumną wzrostu */
.an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: stretch; }
.an-grid .an-tiktok { grid-column: 1 / -1; }
@media (max-width: 900px) { .an-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.an-card .an-video { display: inline-grid; margin-right: 10px; min-width: 260px; }
.an-table { width: 100%; }
.an-table th.num, .an-table td.num { text-align: right; white-space: nowrap; }
.an-table td small { display: block; color: var(--faint); font-size: 11.5px; }
.an-table td strong { font: 600 17px var(--display); color: var(--text); }
.an-table th:first-child { width: 45%; }
.an-table th.num { white-space: normal; }

/* Społeczność */
.cm-join { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.cm-join h3 { margin: 0 0 4px; } .cm-join p { margin: 0; }
.cm-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cm-filter a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; font-weight: 500; }
.cm-filter a.on { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.cm-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: stretch; }
.cm-card { display: flex; flex-direction: column; gap: 10px; }
.cm-head { display: flex; gap: 12px; align-items: center; }
.cm-head h3 { margin: 0; font-size: 17px; }
.cm-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-2); border: 1px solid var(--line-2); font: 700 16px var(--display); color: var(--ice); }
.cm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.cm-about { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.cm-looking { margin: 0; font-size: 13.5px; }
.cm-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cm-links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.cm-links a { color: var(--muted); } .cm-links a:hover { color: var(--ice); }
.cm-thread { color: var(--text); } .cm-thread:hover { color: var(--text); background: var(--bg-2); }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-checks label { margin: 0; cursor: pointer; }
.chip-checks input { position: absolute; opacity: 0; pointer-events: none; }
.chip-checks span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font: 500 13.5px var(--font); }
.chip-checks input:checked + span { background: var(--surface-2); color: var(--text); border-color: var(--ice); }
.chip-checks input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
.dm-box { max-width: 760px; display: grid; gap: 14px; margin-bottom: 10px; }
.dm-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.dm-msg { max-width: 75%; align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 12px; }
.dm-msg.mine { align-self: flex-end; background: var(--surface-2); border-radius: 14px 14px 4px 14px; }
.dm-msg p { margin: 0; white-space: pre-wrap; font-size: 14.5px; }
.dm-msg small { display: block; margin-top: 4px; color: var(--faint); font-size: 11.5px; }
.dm-empty { margin: 0; font-size: 14px; }
.dm-form { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.dm-form textarea { flex: 1; resize: vertical; }
@media (max-width: 600px) { .cm-join { flex-direction: column; align-items: flex-start; } .dm-msg { max-width: 90%; } }
.cm-compose { display: grid; gap: 12px; margin-bottom: 16px; max-width: 760px; }
.cm-compose textarea { resize: vertical; }
.cm-compose-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cm-compose-foot .chip-checks { flex-basis: 100%; }
.cm-link-input { flex: 1; min-width: 200px; }
.cm-feed { display: grid; gap: 14px; max-width: 760px; }
.cm-post { display: grid; gap: 10px; }
.cm-post .grow small { display: block; }
.cm-body { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.55; }
.cm-plink { font-size: 13.5px; color: var(--ice); word-break: break-all; }
.cm-actions { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.cm-actions form { margin: 0; }
.cm-like { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 4px 12px; font: 600 13px var(--font); cursor: pointer; }
.cm-like.on { color: var(--orange); border-color: rgba(255, 107, 44, .45); }
.cm-like:disabled { cursor: default; opacity: .6; }
.cm-head .grow { flex: 1; min-width: 0; }
/* Analityka: równe wiersze w kartach obok siebie – linie w Spotify i YouTube (FB i IG) na tej samej wysokości */
.an-table tbody td { height: 60px; vertical-align: middle; padding-top: 0; padding-bottom: 0; }
.an-table tbody td:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.an-table tbody td:first-child small { overflow: hidden; text-overflow: ellipsis; }
.an-card .an-video { min-height: 62px; box-sizing: border-box; }
.an-card .an-video strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-table { table-layout: fixed; }
.an-table th:first-child { width: 54%; } .an-table th:nth-child(2) { width: 18%; }
/* Analityka: niższe wiersze, dopisek pod „?” (dymek po najechaniu) */
.an-table tbody td { height: 46px; }
.an-table tbody td:first-child { overflow: visible; }
.an-table td strong { font-size: 16px; }
.an-hint { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--faint); font: 600 10.5px var(--font); cursor: help; vertical-align: 1px; outline: none; }
.an-hint:hover, .an-hint:focus-visible { color: var(--text); border-color: var(--ice); }
.an-hint::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 500 12.5px var(--font);
  opacity: 0; visibility: hidden; transition: opacity .12s; z-index: 5; pointer-events: none; }
.an-hint:hover::after, .an-hint:focus-visible::after { opacity: 1; visibility: visible; }
/* Analityka: wykres roczny */
.an-year { margin-bottom: 16px; }
.yc-head { flex-wrap: wrap; gap: 10px; }
.yc-head h3 { margin: 0; }
.yc-sub { margin: 4px 0 8px; font-size: 12.5px; }
.yc-plot { position: relative; width: 100%; }
.yc-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.yc-grid { stroke: var(--line); stroke-width: 1; }
.yc-ax { fill: var(--faint); font: 500 11.5px var(--font); }
.yc-line { fill: none; stroke: var(--ice); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.yc-dot { fill: var(--ice); stroke: var(--surface); stroke-width: 2; }
.yc-cross { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.yc-hit { fill: transparent; cursor: crosshair; }
.yc-tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); display: grid; gap: 1px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.yc-tip strong { color: var(--text); font: 600 15px var(--display); }
.yc-empty { margin: 6px 0 0; font-size: 13.5px; }
.an-table th .an-hint { text-transform: none; letter-spacing: 0; }
.an-table th .an-hint::after { white-space: normal; width: 240px; left: auto; right: -6px; transform: none; text-align: left; font-weight: 500; line-height: 1.45; }
.an-table th .an-hint::after { bottom: auto; top: calc(100% + 8px); z-index: 6; }
/* Analityka: jeden odstęp (16 px) między wszystkimi kartami */
.an-followers, .an-year { margin: 0 0 16px; }
.an-grid { gap: 16px; margin: 0; }
.tt-sounds { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tt-sounds .an-video { margin: 0; min-height: 0; }
.tt-uses { font-size: 12.5px; color: var(--ice); }
.an-total { display: inline-flex; align-items: baseline; gap: 10px; }
.an-total-g { font: 600 14px var(--font); }
.an-bar { grid-template-columns: 110px minmax(0, 1fr) 210px; }
.an-bar-val { display: inline-flex; justify-content: flex-end; align-items: baseline; gap: 8px; }
.an-bar-g { display: inline-block; min-width: 64px; text-align: right; }
/* Plan promo: Viral TikTok */
.viral-card .card-head { margin-bottom: 6px; }
.viral-card .card-head h3 { margin: 0; }
.viral-kv { margin: 0; display: grid; gap: 10px; }
.viral-kv dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.viral-kv dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.55; }
.viral-kv dd { color: var(--muted); }
/* Analityka TikTok: profil z lewej, virale z prawej */
.tt-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.tt-sub { margin: 4px 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
@media (max-width: 900px) { .tt-split { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.tt-after .tt-sounds { margin: 14px 0 0; }
.an-tt-wrap { margin: 0 0 16px; }
.an-tt-wrap .an-card { height: auto; }
/* TikTok: „Twój dźwięk” w linii nagłówka */
.an-tiktok .card-head { gap: 16px; align-items: center; }
.tt-head-sounds { flex: 1; min-width: 0; }
.tt-head-sounds .tt-sounds { margin: 0; gap: 8px; }
.tt-head-sounds .an-video { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; min-width: 0; margin: 0; flex-wrap: wrap; }
.tt-head-sounds .an-video strong { white-space: nowrap; }
.an-tiktok .tt-head-sounds { margin: 0 0 14px; }
/* Followers: suma w tej samej kolumnie co liczby platform (wartość | udział | wzrost) */
.an-followers .card-head { align-items: baseline; }
.an-total { display: inline-flex; align-items: baseline; gap: 8px; }
.an-share { display: inline-block; width: 40px; text-align: right; }
.an-total-g { font: 500 14px var(--font); }
/* Działania (zadania techniczne) w kalendarzu i oknie posta */
.cal-post.action { border-style: dotted; }
.post-actions ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text); font-size: 14.5px; line-height: 1.5; }
/* Post: format i platformy tylko do podglądu; kwadracik „opublikowano” w kalendarzu */
.post-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-bottom: 12px; }
.post-meta .field { margin: 0; }
.post-ro { min-height: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.plat-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); white-space: nowrap; }
.cal-post { position: relative; }
.cal-check { position: absolute; top: 4px; right: 4px; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--line-2);
  background: var(--surface); cursor: pointer; z-index: 2; }
.cal-check:hover { border-color: var(--ice); }
.cal-check.on { background: var(--st-good, #4ade9b); border-color: var(--st-good, #4ade9b); }
.cal-check.on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #0b0d12; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cal-post .cal-txt { padding-right: 16px; }
.cal-post.is-done { opacity: .6; }
.cal-post.is-done .t { text-decoration: line-through; text-decoration-color: var(--muted); }
.post-actions li strong { font-weight: 600; color: var(--text); }
/* Podgląd posta: platformy do klikania, status jako checkbox, oznaczenia w jednej linii, opis z ikoną kopiowania */
button.plat-chip { background: none; cursor: pointer; color: var(--muted); font: 500 12px var(--font); border-style: dashed; }
button.plat-chip:hover { border-color: var(--ice); color: var(--text); }
.plat-chip.on { border-style: solid; background: var(--surface-2); color: var(--text); border-color: var(--ice); }
.post-pub { display: inline-flex; align-items: center; gap: 8px; height: 38px; margin: 0; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; font: 500 14px var(--font); color: var(--text); }
.post-pub input { position: absolute; opacity: 0; pointer-events: none; }
.post-pub i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); position: relative; flex: none; }
.post-pub input:checked + i { background: var(--st-good, #4ade9b); border-color: var(--st-good, #4ade9b); }
.post-pub input:checked + i::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid #0b0d12; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.post-pub input:focus-visible + i { outline: 2px solid var(--ice); outline-offset: 2px; }
.post-mentions { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 10px; font-size: 13.5px; }
.post-mentions b { font-weight: 600; color: var(--muted); }
.post-mentions em { font-style: normal; color: var(--text); }
.post-mentions .empty-val { color: var(--faint); }
.post-mentions .an-hint { vertical-align: 1px; }
.post-mentions .an-hint::after { white-space: nowrap; }
.cap-box { position: relative; }
.cap-box .prose { padding-right: 36px; }
.cap-copy { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; }
.cap-copy svg { width: 15px; height: 15px; }
.cap-copy:hover { color: var(--text); border-color: var(--ice); }
.cap-copy.done { color: var(--st-good, #4ade9b); border-color: var(--st-good, #4ade9b); }
.cap-copy.done svg { display: none; } .cap-copy.done::after { content: "✓"; font-size: 14px; font-weight: 700; }
.caption-wrap.is-story .cap-copy { display: none; }
/* opis posta wypełnia resztę wysokości okna */
dialog#post-dialog .post-right { display: flex; flex-direction: column; min-height: 0; }
dialog#post-dialog .post-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
dialog#post-dialog .caption-wrap { flex: 1; display: flex; flex-direction: column; min-height: 170px; }
dialog#post-dialog .caption-wrap .field { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
dialog#post-dialog .caption-wrap .cap-box { flex: 1; display: flex; }
dialog#post-dialog .post-form textarea[name=caption] { flex: 1; height: auto; min-height: 150px; resize: none; }
/* Podgląd posta: bez etykiet daty/godziny/statusu, białe ikony kalendarza i zegara, dyskretny „?” */
dialog#post-dialog .post-fields input[type=date]::-webkit-calendar-picker-indicator,
dialog#post-dialog .post-fields input[type=time]::-webkit-calendar-picker-indicator { color: transparent; opacity: 1; cursor: pointer; width: 16px; height: 16px;
  background: center / 16px 16px no-repeat; }
dialog#post-dialog .post-fields input[type=date]::-webkit-calendar-picker-indicator { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>"); }
dialog#post-dialog .post-fields input[type=time]::-webkit-calendar-picker-indicator { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>"); }
dialog#post-dialog .post-fields input[type=date], dialog#post-dialog .post-fields input[type=time] { color-scheme: dark; }
.post-mentions .an-hint { width: 13px; height: 13px; font-size: 9px; border-color: var(--line); color: var(--faint); opacity: .55; }
.post-mentions .an-hint:hover, .post-mentions .an-hint:focus-visible { opacity: 1; }
.post-type-ro { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 12.5px; }
.post-meta { grid-template-columns: 112px minmax(0, 1fr); }  /* stała szerokość formatu – platformy zawsze w tym samym miejscu */
dialog#post-dialog .post-left .post-media { border: 1px solid var(--line); }  /* ta sama ramka co przy propozycji treści */
/* Oznaczenie i Współtworzenie zawsze w tym samym miejscu (dwie równe kolumny) */
.post-mentions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.post-mentions > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-mentions > span:has(.an-hint) { overflow: visible; }
.plat-chip.on { background: rgba(124, 200, 255, .16); border-color: var(--ice); color: var(--text); }  /* zaznaczone platformy – lekko niebieskie tło */
/* Oznaczenie i Współtworzenie pod sobą, wartości w jednej kolumnie */
.post-mentions { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.post-mentions > span { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: baseline; }
.post-mentions em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-mentions > span { grid-template-columns: 126px minmax(0, 1fr); }  /* wartości w jednej linii z platformami (112px + 14px odstępu) */
dialog#post-dialog .post-pub { display: flex; width: 100%; box-sizing: border-box; }  /* data | godzina | opublikowano = szerokość pola opisu */
/* Podgląd posta: równe odstępy między rzędami (data/godzina → format/platformy → oznaczenia → opis) */
dialog#post-dialog .post-form { gap: 16px; }
dialog#post-dialog .post-form > * { margin: 0 !important; }
dialog#post-dialog .post-fields .field, dialog#post-dialog .post-meta .field { margin: 0; }
dialog#post-dialog .post-meta { align-items: center; }
dialog#post-dialog .post-meta .post-ro { min-height: 0; }
dialog#post-dialog .post-pub { justify-content: space-between; } dialog#post-dialog .post-pub span { order: -1; }  /* napis z lewej, kwadracik z prawej */
/* Viral TikTok – zwarty jak Kampania / Pitch / Notka */
.viral-card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.viral-card h3 .badge { font-size: 11.5px; }
.viral-prose p { margin: 0 0 6px; } .viral-prose p:last-child { margin-bottom: 0; }
.viral-prose strong { color: var(--text); font-weight: 600; }
.viral-prose { white-space: normal; } .viral-card h3 { margin-bottom: 8px; }
.viral-prose { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
/* Podgląd posta: wgranie pliku zrobionego według propozycji treści */
.post-upload { display: grid; gap: 2px; justify-items: center; margin-top: 18px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 10px; cursor: pointer; text-align: center; }
.post-upload:hover { border-color: var(--ice); }
.post-upload input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.post-upload span { font: 600 14px var(--font); color: var(--text); }
.post-upload small { font-size: 12px; }
.post-upload.busy { opacity: .6; pointer-events: none; }
.post-upload:focus-within { outline: 2px solid var(--ice); outline-offset: 2px; }
dialog#post-dialog .post-proposal { display: flex; flex-direction: column; } dialog#post-dialog .post-proposal .post-upload { margin-top: auto; }  /* przycisk wgrania na dole kafla */
dialog#post-dialog .post-proposal > .prose, dialog#post-dialog .post-proposal > ul { margin-bottom: 18px; }
.plan-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .plan-title .badge { font-family: var(--font); }
.cal-post.drag-ghost { position: fixed; }  /* przeciągany post podąża za kursorem (nadpisuje position: relative z kwadracika) */
/* Kalendarz: godzina i format zawsze w jednej linii */
.cal-post .cal-txt { min-width: 0; }
.cal-post .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; letter-spacing: .02em; }
/* Kalendarz: linia „godzina · FORMAT” na całą szerokość posta, pod nią miniatura i tekst */
.cal-post .t { padding-right: 18px; font-size: 10.5px; }
.cal-post .cal-txt { padding-right: 0; }
.cal-post.has-media, .wg-col .cal-post.has-media, .calendar.weekgrid .cal-post.has-media, .calendar.week .cal-post.has-media {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 7px; row-gap: 3px; align-items: center; }
.cal-post.has-media .t { grid-column: 1 / -1; }
/* Tydzień (siatka godzin): miniatura po lewej na dwie linie, obok „godzina · FORMAT” i tekst */
.wg-col .cal-post.has-media { grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6px; row-gap: 1px; align-items: start; }
.wg-col .cal-post.has-media .cal-thumb { grid-column: 1; grid-row: 1 / 3; width: 26px; height: 26px; }
.wg-col .cal-post.has-media .t { grid-column: 2; grid-row: 1; padding-right: 15px; }
.wg-col .cal-post.has-media .cal-txt { grid-column: 2; grid-row: 2; }
.wg-col .cal-check { top: 3px; right: 3px; width: 13px; height: 13px; }
/* Tydzień: jak w miesiącu – „godzina · FORMAT” na całą szerokość, pod spodem mała miniatura + tekst */
.wg-col .cal-post.has-media { grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6px; row-gap: 2px; align-items: center; }
.wg-col .cal-post.has-media .t { grid-column: 1 / -1; grid-row: 1; }
.wg-col .cal-post.has-media .cal-thumb { grid-column: 1; grid-row: 2; width: 20px; height: 20px; font-size: 9px; }
.wg-col .cal-post.has-media .cal-txt { grid-column: 2; grid-row: 2; }
.wg-col .cal-thumb .slides-n { display: none; }
/* Z miniaturą: dwie linie tekstu na wysokości miniatury (miesiąc i tydzień) */
.cal-post.has-media .s { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.25; }
.cal-post.has-media .cal-thumb { width: 32px; height: 32px; }
.wg-col .cal-post.has-media { grid-template-columns: 30px minmax(0, 1fr); }
.wg-col .cal-post.has-media .cal-thumb { width: 30px; height: 30px; font-size: 11px; }
.wg-col .cal-post.has-media .s { font-size: 11px; }
/* Odrzucone materiały */
.media-row.rejected { opacity: .7; }
.media-row.rejected .media-prev { filter: grayscale(.8); }
.reject-note { margin: 6px 0 8px; font-size: 13.5px; color: var(--text); padding: 8px 10px; border-left: 2px solid var(--err); background: rgba(255, 93, 108, .06); border-radius: 0 8px 8px 0; }
.reject-box { margin-top: 8px; }
.reject-box summary { cursor: pointer; color: var(--err); font-size: 13px; font-weight: 500; }
.reject-box textarea { margin: 8px 0; width: 100%; }
.rej-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.rej-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.rej-row .grow { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.rej-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rej-card { max-width: 880px; margin: 0 0 18px; } .single-detail-wrap .rej-card, .card + .rej-card { margin-top: 18px; }
.rej-card h3 { margin-top: 0; }
.group-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.group-pick select { width: auto; padding: 4px 8px; font-size: 13px; }
.group-pick .faint { font-size: 12px; font-weight: 400; }
/* Lewy dolny róg: nazwa artysty + plan; po najechaniu „Ulepsz plan” */
.side-user { display: grid; gap: 4px; padding: 8px 12px; border-radius: 10px; color: var(--text); }
.side-user:hover, .side-user:focus-visible { background: var(--surface-2); color: var(--text); }
.side-user-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side-user-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.side-plan { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--ice); color: var(--ice); }
.side-upgrade { font-size: 12px; color: var(--ice); font-weight: 600; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .15s, opacity .15s; }
.side-user:hover .side-upgrade, .side-user:focus-visible .side-upgrade { max-height: 20px; opacity: 1; }
/* Podgląd posta: pobieranie pliku w oryginalnej jakości */
.post-media { position: relative; }
.media-dl { position: absolute; top: 10px; left: 10px; z-index: 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  background: rgba(8, 10, 14, .72); border: 1px solid var(--line-2); color: var(--text); }
.media-dl svg { width: 16px; height: 16px; }
.media-dl:hover { border-color: var(--ice); color: var(--ice); }
/* Plan promo: kafelek „Do stworzenia” */
/* „Do stworzenia” – ten sam język co „Ocena materiałów” i kafelki niżej: tytuł 15px, wyciszony opis, lekkie wiersze z kropką statusu */
.todo-card .card-head { align-items: flex-start; }
.todo-card .card-head h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; font: 700 15px/1.55 var(--font); letter-spacing: 0; color: var(--text); }
.todo-count { font: 600 12px var(--font); color: var(--orange-2); padding: 1px 9px; border-radius: 999px;
  border: 1px solid rgba(255, 107, 44, .4); background: rgba(255, 107, 44, .08); align-self: center; }
.todo-lead { margin: 2px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.todo-list { display: grid; gap: 8px; padding: 2px 0; }
.todo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015); transition: border-color .15s; }
.todo-row:hover { border-color: var(--line-2); }
.todo-row.done { background: transparent; border-style: dashed; }
.todo-main { min-width: 0; }
.todo-meta { color: var(--faint); font-size: 12.5px; margin-bottom: 3px; }
.todo-meta strong { color: var(--muted); font-weight: 600; }
.todo-what { font-size: 13.5px; font-weight: 500; line-height: 1.5; color: #dfe5ee; }
.todo-count.all { color: var(--st-good); border-color: transparent; background: none; padding: 0; }
.todo-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 2px; cursor: pointer;
  color: var(--faint); font: 500 12.5px var(--font); letter-spacing: .02em; transition: color .15s; }
.todo-toggle:hover { color: var(--text); }
.todo-toggle:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 6px; }
.todo-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(180deg); transition: transform .2s ease; }
.collapsible.collapsed .todo-toggle svg { transform: none; }
.todo-ok { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.todo-row.done .todo-what { text-decoration: line-through; text-decoration-color: var(--faint); color: var(--faint); font-weight: 400; }
.todo-row.done .todo-meta, .todo-row.done .todo-meta strong { color: var(--faint); opacity: .8; }
.todo-up { position: relative; cursor: pointer; white-space: nowrap; background: transparent; border: 1px dashed var(--line-2);
  color: var(--muted); font-weight: 500; }
.todo-up:hover { background: transparent; border-color: var(--muted); color: var(--text); }
.todo-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.todo-up.busy { opacity: .6; pointer-events: none; }
.todo-up:focus-within { outline: 2px solid var(--ice); outline-offset: 2px; }
@media (max-width: 760px) { .todo-row { gap: 8px 12px; } }
/* Lewy dolny róg: nazwa + plan, obok sama ikona wylogowania (podpis po najechaniu) */
.side-foot { display: flex; align-items: center; gap: 6px; }
.side-foot .side-user { flex: 1; min-width: 0; }
.side-email { flex: 1; min-width: 0; font-size: 12px; padding: 6px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-logout { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.side-logout svg { width: 18px; height: 18px; }
.side-logout:hover, .side-logout:focus-visible { color: var(--text); background: var(--surface-2); }
.side-logout::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); right: 0; white-space: nowrap; padding: 5px 9px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: 12px; opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.side-logout:hover::after, .side-logout:focus-visible::after { opacity: 1; visibility: visible; }
