/* Panel klienta i panel admina — ten sam styl co strona Synvo: ciemno, Unbounded + Manrope, pomarańczowy akcent */
:root {
  --bg: #0D0E10;
  --surface: #16171A;
  --surface-2: #1D1E22;
  --line: #26272B;
  --text: #F2F1ED;
  --text-2: #9A9BA0;
  --text-3: #828388;
  --accent: #E4612B;
  --accent-hover: #F07038;
  --ok: #3DD68C;
  --danger: #E5484D;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
ol, ul { list-style: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 4vw, 40px); }
.app-top img { height: 22px; width: auto; display: block; }
.app-main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 64px; }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 22px; font-weight: 600; font-size: 15px; background: var(--accent); color: #fff; transition: background-color .2s, transform .3s var(--ease); }
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--small { padding: 8px 14px; font-size: 13px; }
.btn--danger { background: transparent; border: 1px solid rgba(229, 72, 77, .5); color: #FF8A8E; }
.btn--danger:hover { background: rgba(229, 72, 77, .12); }
.btn:focus-visible, input:focus-visible, select:focus-visible, .ws-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* pola formularzy */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field select { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 400; color: var(--text); }
.field input:focus, .field select:focus { outline: none; border-color: var(--text-2); }
.msg { font-size: 14px; color: var(--text-2); min-height: 1.5em; }
.msg--error { color: #FF8A8E; }

/* karta panelu — ta sama co w grafikach na stronie */
.syn-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.syn-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-row img { flex: none; }
.brand-row b { display: block; font: 500 17px var(--display); letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-row span { display: block; font-size: 13px; color: var(--text-3); }
.pill { flex: none; font-style: normal; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 6px 12px; background: var(--accent); color: #fff; }
.pill--done { background: var(--ok); color: #0D0E10; }

/* oś etapów jak w śledzeniu przesyłki */
.steps { display: grid; padding-top: 6px; }
.steps li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 11px 0 11px 34px; color: var(--text-3); }
.steps li b { font-weight: 600; }
.steps li span { font-size: 13px; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface) center / 11px no-repeat; z-index: 1;
}
.steps li + li::after { content: ""; position: absolute; left: 9.5px; top: -11px; height: 22px; width: 1.5px; background: var(--line); }
.steps li.is-done { color: var(--text); }
.steps li.is-done::before {
  border-color: var(--text); background-color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%230D0E10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.steps li.is-done + li::after { background: var(--text-2); }
.steps li.is-now { color: var(--text); }
.steps li.is-now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(228, 97, 43, .22); }
.steps li.is-now span { color: var(--accent); font-weight: 700; }
.steps .bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.steps .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 1.2s var(--ease); }

/* ---------- panel klienta ---------- */
.client { min-height: 100vh; display: flex; flex-direction: column; }
.client .app-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 520px; }
.client .syn-card { width: 100%; }
.client__hello { width: 100%; margin-bottom: 12px; color: var(--text-2); font-size: 15px; }
.client__foot { width: 100%; margin-top: 18px; font-size: 13px; color: var(--text-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.client__foot a { color: var(--text-2); }
.client__empty { text-align: center; color: var(--text-2); }
.client__empty h1 { font: 500 26px var(--display); letter-spacing: -0.03em; color: var(--text); margin-bottom: 8px; }

/* ---------- panel klienta: „Co nowego” ---------- */
.client__updates { width: 100%; margin-top: 28px; display: grid; gap: 12px; }
.client__updates h2 { font: 500 18px var(--display); letter-spacing: -0.03em; margin-bottom: 4px; }
.news-list { display: grid; gap: 12px; }
.news { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: grid; gap: 12px; }
.news__date { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.news__text { color: var(--text-2); white-space: pre-line; }
.news__imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.news__imgs button { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; cursor: zoom-in; background: var(--bg); aspect-ratio: 4 / 3; }
.news__imgs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.news__imgs button:hover img { transform: scale(1.04); }
.news__link { justify-self: start; font-weight: 700; color: var(--accent); text-decoration: none; }
.news__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(5, 5, 6, .88); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: 100%; max-height: 92vh; border-radius: 12px; }
.lightbox form { position: fixed; top: 16px; right: 16px; }

/* ---------- panel klienta: karta statusu (etap, co teraz, pasek z 5 części) ---------- */
.status { width: 100%; display: grid; gap: 0; }
.status__site { display: flex; align-items: center; gap: 10px; min-width: 0; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.status__site img { flex: none; }
.status__site b { min-width: 0; font: 500 15px var(--display); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status__step { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.status__step.is-done { color: var(--ok); }
.status__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 10px 0 20px; }
.status__bar i { display: block; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.status__bar b { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 1s var(--ease); }
.status__step.is-done + .status__bar b { background: var(--ok); }
.status__title { font: 500 clamp(24px, 3vw, 32px)/1.12 var(--display); letter-spacing: -0.04em; }
.status__text { color: var(--text-2); margin-top: 10px; }
.status__more { justify-self: start; margin-top: 16px; border: 0; background: none; padding: 2px 0; cursor: pointer; color: var(--text-3); font-size: 13px; font-weight: 600; }
.status__more:hover { color: var(--text); }
.status .steps { margin-top: 8px; }

/* ---------- dokument na cały ekran (czytnik) ---------- */
.reader { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); }
.reader[hidden] { display: none; }
.reader__bar { display: flex; align-items: center; gap: 12px; padding: 12px clamp(12px, 3vw, 24px); border-bottom: 1px solid var(--line); background: var(--surface); }
.reader__name { flex: 1; min-width: 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: clamp(16px, 4vw, 48px) clamp(12px, 3vw, 32px); }
body.is-reading { overflow: hidden; }
@media (max-width: 560px) { .reader__name { display: none; } .reader__bar { justify-content: space-between; } }

/* ---------- przykładowy panel: pasek z etapami ---------- */
.demo-bar {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  margin-bottom: 20px; padding: 12px 14px 12px 18px; border-radius: 18px;
  background: rgba(228, 97, 43, .1); border: 1px solid rgba(228, 97, 43, .35);
}
.demo-bar p { font-size: 14px; color: var(--text-2); }
.demo-bar b { color: var(--text); font-weight: 600; }
.demo-bar__nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-bar__stages { display: flex; gap: 4px; flex-wrap: wrap; }
.demo-bar__next { flex: none; }
/* podpowiedź, że etapy da się przełączać */
.demo-bar__next.is-hint { animation: demo-hint 1.6s var(--ease) infinite; }
@keyframes demo-hint { 0% { box-shadow: 0 0 0 0 rgba(228, 97, 43, .55); } 100% { box-shadow: 0 0 0 14px rgba(228, 97, 43, 0); } }
@media (prefers-reduced-motion: reduce) { .demo-bar__next.is-hint { animation: none; outline: 2px solid var(--accent); outline-offset: 3px; } }
.demo-bar__stages button {
  border: 1px solid var(--line); background: var(--bg); color: var(--text-2); cursor: pointer;
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s;
}
.demo-bar__stages button:hover { color: var(--text); border-color: var(--text-3); }
.demo-bar__stages button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 760px) {
  .demo-bar__nav { width: 100%; }
  .demo-bar__stages { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .demo-bar__next { width: 100%; }
  .demo-bar__stages button { flex: none; }
}

/* ---------- panel klienta: wybór stylu ---------- */
.styles { width: 100%; margin-top: 16px; display: grid; gap: 16px; }
.styles h2 { font: 500 18px var(--display); letter-spacing: -0.03em; }
.styles__lead { color: var(--text-2); font-size: 15px; margin-top: -6px; }
.styles__list { display: grid; gap: 8px; }
.style-opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--text);
  transition: border-color .25s, background-color .25s;
}
.style-opt:hover { border-color: var(--text-3); }
.style-opt[aria-selected="true"] { border-color: var(--accent); background: rgba(228, 97, 43, .08); }
.style-opt__letter { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); font: 500 15px var(--display); }
.style-opt[aria-selected="true"] .style-opt__letter { background: var(--accent); color: #fff; }
.style-opt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.style-opt__state { font-size: 12px; font-weight: 600; color: var(--text-3); }
.style-opt[aria-selected="true"] .style-opt__state { color: var(--accent); }
.style-opt.is-chosen .style-opt__state { color: var(--ok); }
.style-opt.is-chosen .style-opt__state::before { content: "✓ "; }
.styles__form { display: grid; gap: 12px; }
.styles__form .opt { font-weight: 400; color: var(--text-3); }
.styles__form .btn { justify-self: start; }
.styles__chosen { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: 16px; background: rgba(61, 214, 140, .08); border: 1px solid rgba(61, 214, 140, .3); }
.styles__chosen b { font-weight: 600; }
.styles__note { color: var(--text-2); font-size: 14px; white-space: pre-line; }

/* ---------- panel klienta: notatki z rozmowy (po prawej, przed podglądem) ---------- */
.brief {
  display: flex; flex-direction: column; gap: 24px; padding: clamp(22px, 3vw, 36px); border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(70% 45% at 85% 0%, rgba(228, 97, 43, .14), transparent 70%), var(--surface);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.brief__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.brief h2 { font: 500 clamp(26px, 3vw, 38px)/1.1 var(--display); letter-spacing: -0.04em; }
/* pole, w którym unoszą się myśli: kulka na środku, cienkie linie do każdej myśli */
.brief__field { position: relative; flex: 1 0 auto; min-height: 420px; }
.brief__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.brief__lines line { stroke: rgba(242, 241, 237, .24); stroke-width: 1.2; stroke-dasharray: 2 6; stroke-linecap: round; }
.brief__core {
  position: absolute; left: calc(50% - 44px); top: calc(50% - 44px); width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #F08A5D, var(--accent) 55%, #A9411B);
  box-shadow: 0 0 0 10px rgba(228, 97, 43, .08), 0 18px 50px rgba(228, 97, 43, .35);
}
.brief__core::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(228, 97, 43, .35);
  animation: core-breathe 3.2s ease-in-out infinite;
}
@keyframes core-breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.18); opacity: 0; } }
.thought {
  position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; will-change: transform;
  display: grid; gap: 8px; align-content: start; padding: 16px 18px; border-radius: 18px;
  background: rgba(29, 30, 34, .82); backdrop-filter: blur(6px); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: border-color .25s, box-shadow .25s;
}
.thought__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.thought__text { color: var(--text-2); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.thought--big .thought__text { font: 500 clamp(17px, 1.5vw, 20px)/1.25 var(--display); letter-spacing: -0.03em; color: var(--text); }
.thought:hover { z-index: 3; border-color: var(--text-3); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
/* telefon: myśli jedna pod drugą, bez kulki */
.brief__field.is-list { display: grid; gap: 10px; min-height: 0; height: auto !important; }
.brief__field.is-list .brief__core, .brief__field.is-list .brief__lines { display: none; }
.brief__field.is-list .thought { position: relative; width: auto !important; }
@media (prefers-reduced-motion: reduce) { .brief__core::before { animation: none; } }
.brief__foot { font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- panel klienta: dokumenty ---------- */
.docs { width: 100%; margin-top: 16px; display: grid; gap: 12px; }
.docs h2 { font: 500 18px var(--display); letter-spacing: -0.03em; }
.docs__lead { color: var(--text-2); font-size: 15px; margin-top: -4px; }
.docs__list { display: grid; gap: 8px; }
.doc-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--text);
  transition: border-color .25s, background-color .25s;
}
.doc-item:hover { border-color: var(--text-3); }
.doc-item.is-open { border-color: var(--accent); background: rgba(228, 97, 43, .08); }
.doc-item b { display: block; font-weight: 600; }
.doc-item small { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.doc-item__icon {
  position: relative; width: 30px; height: 38px; border-radius: 4px 10px 4px 4px; background: var(--text);
  box-shadow: inset 0 -10px 0 rgba(13, 14, 16, .06);
}
.doc-item__icon::before { content: ""; position: absolute; left: 6px; right: 6px; top: 12px; height: 2px; background: var(--accent); box-shadow: 0 6px 0 rgba(13, 14, 16, .25), 0 12px 0 rgba(13, 14, 16, .25); }
.doc-item__arrow { font-size: 12px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.doc-item.is-open .doc-item__arrow { color: var(--accent); }

/* kartka dokumentu: jasna, jak w PDF */
.paper {
  max-width: 720px; margin: 0 auto; background: #FBFAF7; color: #1B1C1E; border-radius: 6px;
  padding: clamp(28px, 5vw, 64px); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); font: 400 15px/1.65 var(--body);
}
.paper__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #E4E0D8; }
.paper__head img { height: 20px; width: auto; display: block; }
.paper__head span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8A8B8F; }
.paper h1 { font: 500 clamp(28px, 4vw, 40px)/1.1 var(--display); letter-spacing: -0.04em; margin: 36px 0 8px; }
.paper__meta { color: #8A8B8F; font-size: 13px; margin-bottom: 28px; }
.paper section { padding: 18px 0; border-top: 1px solid #ECE8E1; break-inside: avoid; }
.paper h2 { font: 500 17px/1.3 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.paper p + p { margin-top: 6px; }
.paper ul { padding-left: 0; display: grid; gap: 6px; }
.paper li { position: relative; padding-left: 18px; }
.paper li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.paper .kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 20px; margin-top: 8px; }
.paper .kv + p, .paper p + .kv { margin-top: 10px; }
.paper .kv dt { color: #8A8B8F; }
.paper .kv dd { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .paper .kv { grid-template-columns: 1fr; gap: 0; } .paper .kv dd { margin-bottom: 8px; } }
.paper .paper__note { margin-top: 10px; font-size: 12px; color: #8A8B8F; }
.paper__foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid #E4E0D8; font-size: 12px; color: #8A8B8F; }

/* PDF: drukujemy tylko kartkę z czytnika */
@media print {
  @page { margin: 16mm; }
  body.is-printing-doc { background: #fff !important; overflow: visible !important; }
  body.is-printing-doc > :not(.reader) { display: none !important; }
  body.is-printing-doc .reader { position: static; display: block; background: #fff; }
  body.is-printing-doc .reader__bar { display: none !important; }
  body.is-printing-doc .reader__scroll { overflow: visible; padding: 0; }
  body.is-printing-doc .paper { box-shadow: none; max-width: none; padding: 0; background: #fff; }
}

/* ---------- panel klienta: poprawki ---------- */
.fixes { width: 100%; margin-top: 16px; display: grid; gap: 12px; }
.fixes__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fixes h2 { font: 500 18px var(--display); letter-spacing: -0.03em; }
.fixes__lead { color: var(--text-2); font-size: 15px; }
.fixes__alt { color: var(--text-3); font-size: 13px; margin-top: -4px; }
.linkish { border: 0; background: none; padding: 0; cursor: pointer; color: var(--text); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.fixes__list { display: grid; gap: 8px; }
.fix { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 40px 12px 12px; transition: border-color .25s, background-color .25s; }
.fix:hover { border-color: var(--text-3); }
.fix.is-active { border-color: var(--accent); background: rgba(228, 97, 43, .08); }
.fix__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.fix.is-done .fix__n { background: var(--ok); color: var(--bg); }
.fix.is-done .fix__text { color: var(--text-2); }
.fix__body { min-width: 0; display: grid; gap: 4px; }
.fix__text { white-space: pre-line; overflow-wrap: anywhere; }
.fix__meta { font-size: 12px; color: var(--text-3); }
.fix__reply { margin-top: 4px; font-size: 14px; color: var(--text-2); border-left: 2px solid var(--line); padding-left: 10px; white-space: pre-line; }
.fix__reply b { color: var(--text); font-weight: 600; }
.fix__del { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; font-size: 17px; line-height: 1; }
.fix__del:hover { background: var(--surface-2); color: var(--text); }
.fix-empty { font-size: 14px; color: var(--text-3); padding: 4px 2px; }
.fixes__toggle { justify-self: start; border: 0; background: none; cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 600; padding: 2px; }
.fixes__toggle:hover { color: var(--text); }

/* przycisk „+ Uwaga” na pasku podglądu i dymek z polem na uwagę */
.preview__add { flex: none; border: 0; cursor: pointer; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; transition: background-color .2s; }
.preview__add:hover { background: var(--accent-hover); }
.preview__add.is-on { background: var(--surface-2); color: var(--text); }
.pop {
  position: absolute; z-index: 5; width: min(300px, calc(100% - 24px)); display: grid; gap: 10px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.pop__title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.pop textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 400 15px/1.5 var(--body); color: var(--text); resize: vertical; }
.pop textarea:focus { outline: none; border-color: var(--text-2); }
.pop__actions { display: flex; gap: 8px; }
.pop .msg:empty { display: none; }

/* ---------- panel klienta: podgląd strony na żywo ---------- */
.client__layout { width: 100%; }
.client__side { width: 100%; }
/* Na komputerze jak sekcja „Strona, która pracuje” na stronie Synvo: przewija się cała strona,
   a podgląd po prawej jest przyklejony i stoi w miejscu przez całą długość lewej kolumny */
@media (min-width: 961px) {
  .client.has-site .app-main { max-width: 1480px; justify-content: flex-start; align-items: stretch; padding-bottom: 36px; }
  .client.has-site .client__side { padding-bottom: 24px; }
  .client.has-site .client__layout { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
  /* wysokość tak dobrana, żeby od razu mieściła się pod logo, a po przyklejeniu stała na środku okna */
  .client.has-site .preview { position: sticky; top: 60px; height: calc(100dvh - 120px); min-height: 480px; }
  .client.has-site .brief { position: sticky; top: 60px; height: calc(100dvh - 120px); min-height: 480px; overflow-y: auto; }
}
.preview {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.preview__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.preview__dots { display: flex; gap: 6px; flex: none; }
.preview__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.preview__addr { flex: 1; min-width: 0; text-align: center; font-size: 13px; color: var(--text-2); background: var(--bg); border-radius: 999px; padding: 6px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview__modes { display: flex; gap: 2px; padding: 3px; background: var(--bg); border-radius: 999px; flex: none; }
.preview__modes button { border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--text-2); transition: background-color .2s, color .2s; }
.preview__modes button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.preview__open { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; text-decoration: none; color: var(--text-2); transition: background-color .2s, color .2s; }
.preview__open:hover { background: var(--surface-2); color: var(--text); }
.preview__stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; background: var(--bg); transition: padding .4s var(--ease); }
.preview__stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; transition: width .4s var(--ease), border-radius .4s var(--ease); }
.preview__stage.is-phone { padding: 20px; }
.preview__stage.is-phone iframe { width: 390px; max-width: 100%; max-height: 844px; border-radius: 28px; box-shadow: 0 0 0 8px #222327, 0 0 0 9px var(--line); }
.preview__note { padding: 10px 16px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .client.has-site .app-main { max-width: 640px; }
  /* Telefon: najpierw powitanie i kroki, zaraz pod nimi to, co najważniejsze na danym etapie
     (myśli, style albo podgląd strony), a dopiero niżej poprawki, dokumenty i „Co nowego”.
     Lewa kolumna „rozpuszcza się” (display: contents), więc jej części można ustawić w dowolnej kolejności. */
  .client__layout { display: flex; flex-direction: column; }
  .client__side { display: contents; }
  .client__hello { order: 1; }
  .client__side > .status { order: 2; }
  .client__layout > .brief, .client__layout > .preview { order: 3; margin-top: 16px; }
  .styles { order: 4; }
  .fixes { order: 5; }
  .docs { order: 6; }
  .client__updates { order: 7; }
  .client__foot { order: 8; }
  .brief { overflow: hidden; } /* bujające się myśli nie wychodzą poza kartę */
  .brief__field { min-height: 0; }
  .preview { height: 78vh; min-height: 460px; }
  .preview__modes { display: none; }
}

/* ---------- panel admina ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .syn-card { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login h1 { font: 500 22px var(--display); letter-spacing: -0.03em; }
.admin h1 { font: 500 clamp(24px, 3vw, 32px) var(--display); letter-spacing: -0.04em; }
.admin h2 { font: 500 17px var(--display); letter-spacing: -0.02em; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.muted { color: var(--text-3); }
.ws-empty { font-size: 14px; color: var(--text-3); padding: 18px 4px; }

/* tabela klientów */
.table-card { padding: 8px; }
.clients { width: 100%; border-collapse: collapse; }
.clients th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.clients td { padding: 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.clients tbody tr { cursor: pointer; transition: background-color .2s; }
.clients tbody tr:last-child td { border-bottom: 0; }
.clients tbody tr:hover, .clients tbody tr:focus-visible { background: var(--surface-2); outline: none; }
.clients td b { font-weight: 600; }
.clients .arrow { text-align: right; color: var(--text-3); width: 40px; transition: transform .3s var(--ease), color .2s; }
.clients tbody tr:hover .arrow { color: var(--text); transform: translateX(4px); }
.pill--small { font-size: 11px; padding: 4px 10px; }

/* strona klienta */
.back { display: inline-block; font-size: 14px; color: var(--text-2); text-decoration: none; margin-bottom: 16px; }
.back:hover { color: var(--text); }
.client-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.client-head .brand-row b { font-size: 22px; }
.client-head__actions { display: flex; align-items: center; gap: 10px; }
.tabs { display: flex; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px; }
.tabs a { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tab-panel { display: grid; gap: 22px; }
.tab-panel[hidden] { display: none; }
.field-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }

/* kafelki etapów */
.stage-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stage-tile {
  display: grid; gap: 10px; align-content: start; text-align: left; cursor: pointer; min-height: 96px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--text-2);
  transition: border-color .25s, background-color .25s, color .25s, transform .3s var(--ease);
}
.stage-tile:hover { border-color: var(--text-3); color: var(--text); }
.stage-tile__n { font: 500 12px var(--display); color: var(--text-3); }
.stage-tile b { font-weight: 600; font-size: 14px; line-height: 1.3; }
.stage-tile.is-done { color: var(--text); }
.stage-tile.is-done .stage-tile__n::after { content: " ✓"; color: var(--ok); }
.stage-tile.is-current { border-color: var(--accent); background: rgba(228, 97, 43, .1); color: var(--text); transform: translateY(-2px); }
.stage-tile.is-current .stage-tile__n { color: var(--accent); }
.progress-edit { display: grid; gap: 8px; }
.progress-edit input[type="range"] { accent-color: var(--accent); width: 100%; }
.dates-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dates-grid .field { font-size: 12px; font-weight: 500; }
.dates-grid input { padding: 10px 12px; font-size: 14px; }
.editor__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link-box { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; }
.link-box code { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* aktualizacje */
.update-form { display: grid; gap: 16px; }
.field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 400 15px/1.5 var(--body); color: var(--text); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--text-2); }
.drop {
  display: grid; place-items: center; text-align: center; min-height: 110px; padding: 18px; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 16px; color: var(--text-3); font-size: 14px; font-weight: 400;
  transition: border-color .2s, background-color .2s;
}
.drop b { color: var(--text); font-weight: 600; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: rgba(228, 97, 43, .06); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(13, 14, 16, .85); color: var(--text); font-size: 14px; line-height: 1; }
.updates { display: grid; gap: 10px; margin-top: 6px; }
.update { display: grid; gap: 12px; padding: 18px 20px; }
.update__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.update__date { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.update__text { color: var(--text-2); white-space: pre-line; }
.update__imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.update__imgs img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.update__link { justify-self: start; font-weight: 700; color: var(--accent); text-decoration: none; }

/* podgląd strony (admin) */
.site-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-head .muted { font-size: 14px; margin-top: 4px; }
.drop code { font-size: 13px; color: var(--text-2); }
.drop.is-busy { pointer-events: none; opacity: .5; }
.upload-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s var(--ease); }
.preview--admin { position: relative; top: 0; height: 72vh; }
.variants { display: grid; gap: 8px; }
.variants:empty { display: none; }
.variant { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 12px 14px; }
.variant p { min-width: 0; }
.variant b { display: block; font-weight: 600; }
.variant .muted { font-size: 13px; }
.style-letter { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); font: 500 15px var(--display); }
.chosen-box { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(61, 214, 140, .08); border: 1px solid rgba(61, 214, 140, .3); }
.chosen-box .muted { font-size: 13px; }
.chosen-box__note { color: var(--text-2); white-space: pre-line; margin-top: 4px; }

/* notatki z rozmowy (admin) */
.brief-edit { display: grid; gap: 8px; }
.brief-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 8px; align-items: start; }
.brief-row input, .brief-row textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 400 15px/1.5 var(--body); color: var(--text); }
.brief-row textarea { resize: vertical; }
.brief-row input:focus, .brief-row textarea:focus { outline: none; border-color: var(--text-2); }
.brief-row__tools { display: flex; gap: 2px; }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer; font-size: 15px; }
.icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 860px) { .brief-row { grid-template-columns: 1fr auto; } .brief-row textarea { grid-column: 1 / -1; grid-row: 2; } }

/* dokumenty (admin) */
#tab-dokumenty { gap: 12px; }
.doc-edits { display: grid; gap: 12px; }
.doc-edit { display: grid; gap: 16px; transition: border-color .25s; }
.doc-edit.is-live { border-color: rgba(61, 214, 140, .4); }
.doc-edit__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc-edit h3 { font: 500 17px var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
.doc-edit .muted { font-size: 14px; }
.doc-sections { display: grid; gap: 10px; }
.doc-sections:empty { display: none; }
.doc-section { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.doc-section textarea { grid-column: 1 / -1; }
.doc-section input, .doc-section textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 400 15px/1.5 var(--body); color: var(--text); resize: vertical; }
.doc-section input { font-weight: 600; }
.doc-section input:focus, .doc-section textarea:focus { outline: none; border-color: var(--text-2); }
.doc-edit .field textarea { min-height: 0; }
/* Paszport: pola zamiast wolnego tekstu */
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-rows { display: grid; gap: 8px; }
.p-rows:empty { display: none; }
.p-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.p-row input { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 400 15px var(--body); color: var(--text); min-width: 0; }
.p-row input:focus { outline: none; border-color: var(--text-2); }
.doc-edit .field--wide textarea, .doc-edit .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 400 15px/1.5 var(--body); color: var(--text); resize: vertical; }
@media (max-width: 860px) {
  .p-grid { grid-template-columns: 1fr; }
  .p-row { grid-template-columns: 1fr auto; }
  .p-row input + input { grid-column: 1; }
}

/* przełącznik „Widoczny dla klienta” */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--line); transition: background-color .25s; flex: none; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--ok); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); background: var(--bg); }
.switch input:checked ~ .switch__label { color: var(--text); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--accent); outline-offset: 2px; }

/* nawigacja admina i zgłoszenia */
.admin .app-top { gap: 12px; }
.top-nav { display: flex; gap: 4px; margin-left: auto; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.top-nav a { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; transition: background-color .25s, color .25s; }
.top-nav a:hover { color: var(--text); }
.top-nav a.is-on { background: var(--text); color: var(--bg); }
.pill--alt { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.lead__who { overflow-wrap: anywhere; }
.lead__who b { font-weight: 600; }
.lead__who a { color: var(--accent); }
.lead.is-done { opacity: .55; }
@media (max-width: 560px) {
  .admin .app-top { flex-wrap: wrap; }
  .top-nav { order: 3; width: 100%; margin-left: 0; }
  .top-nav a { flex: 1; justify-content: center; }
}

/* poprawki (admin) */
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.fix-admin__title { display: flex; align-items: center; gap: 10px; }
.fix-admin__text { white-space: pre-line; overflow-wrap: anywhere; }
.fix-admin.is-done { opacity: .6; }
.fix-admin.is-done .fix__n { background: var(--ok); color: var(--bg); }
.fix-admin__reply { display: flex; gap: 8px; align-items: flex-start; }
.fix-admin__reply textarea { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font: 400 14px/1.5 var(--body); color: var(--text); resize: vertical; }
.fix-admin__reply textarea:focus { outline: none; border-color: var(--text-2); }

/* okno „Nowy klient” */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); margin: auto; width: min(92vw, 420px); }
.modal::backdrop { background: rgba(5, 5, 6, .75); backdrop-filter: blur(4px); }
.new-ws { display: grid; gap: 14px; }

@media (max-width: 860px) {
  .stage-tiles, .dates-grid { grid-template-columns: 1fr 1fr; }
  .editor__row { grid-template-columns: 1fr; }
  .clients thead { display: none; }
  .clients tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .clients td { padding: 0; border: 0; }
  .clients td:nth-child(2), .clients td:nth-child(4) { grid-column: 1; font-size: 13px; }
  .clients td:nth-child(3) { grid-row: 1; grid-column: 2; }
  .clients .arrow { display: none; }
}

/* ---------- Ankieta na start ---------- */
/* telefon: powitanie nad kartą; komputer: powitanie i lista kroków po lewej, karta po prawej */
.client.has-survey .app-main { max-width: 1160px; align-items: stretch; justify-content: flex-start; }
.survey { width: 100%; max-width: 720px; margin: 0 auto; display: grid; gap: 20px; align-items: start; }
.sv-side { display: grid; gap: 10px; padding: 4px 4px 0; }
.sv-hello__hi { font: 500 18px/1.3 var(--display); letter-spacing: -0.02em; }
.sv-hello__text { color: var(--text-2); font-size: 15px; }
.sv-steps { display: none; }
.sv-help { font-size: 14px; color: var(--text-2); padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sv-card { display: grid; gap: 18px; padding: clamp(20px, 4vw, 32px); }
.sv-step { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sv-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: -8px; }
.sv-bar i { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .4s var(--ease); }
.sv-bar i.is-on { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.sv-bar i.is-done { background: var(--accent); }
.sv-title { font: 500 clamp(24px, 4vw, 32px)/1.15 var(--display); letter-spacing: -0.03em; }
.sv-body { display: grid; gap: 18px; }
.sv-lead { color: var(--text-2); font-size: 15px; }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sv-services { display: grid; gap: 8px; }
.sv-services input { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 400; color: var(--text); }
.sv-services input:focus { outline: none; border-color: var(--text-2); }
.sv-services .linkish { justify-self: start; font-size: 14px; font-weight: 500; margin-top: 2px; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-chip { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sv-chip:hover { border-color: var(--text-3); }
.sv-chip[aria-pressed="true"] { background: rgba(228, 97, 43, .14); border-color: var(--accent); }
.sv-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.sv-nav #sv-next { margin-left: auto; }

/* pary stylu: „to czy to” */
.sv-pairs { display: grid; gap: 18px; }
.sv-pair { display: grid; grid-template-rows: auto auto auto; gap: 10px; align-content: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sv-pair__q { font-weight: 600; align-self: end; }
.sv-pair__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sv-opt { position: relative; display: grid; grid-template-rows: auto auto; align-content: start; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); cursor: pointer; text-align: left; transition: border-color .2s; }
.sv-opt:hover { border-color: var(--text-3); }
.sv-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sv-opt[aria-pressed="true"]::after { content: "✓"; position: absolute; bottom: 9px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.sv-opt__label { font-size: 14px; font-weight: 600; padding: 0 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-pair__any { justify-self: start; font-size: 13px; color: var(--text-2); }
.sv-pair__any[aria-pressed="true"] { color: var(--accent); }

/* miniatura strony w parach stylu: mała, prawdziwa strona zamiast kresek.
   Rozmiary w cqw liczą się od przycisku .sv-opt, więc miniatura skaluje się z kartą */
.sv-opt { container-type: inline-size; }
.sk {
  --bg: #F5F3EF; --fg: #1D1D1F; --mut: #6E6E73; --acc: #E4612B; --r: 6cqw;
  --head: var(--body); --hw: 700;
  aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: var(--bg); color: var(--fg); padding: 6cqw 7cqw 7cqw;
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 6cqw;
  font-family: var(--body); line-height: 1.2; text-align: left;
}
.sk__nav { display: flex; align-items: baseline; gap: 4cqw; font-size: 3.6cqw; color: var(--mut); }
.sk__nav b { font-weight: 700; color: var(--fg); margin-right: auto; font-size: 4.2cqw; letter-spacing: -.01em; }
.sk__body { display: grid; grid-template-columns: 1fr 0.85fr; gap: 5cqw; align-items: center; min-height: 0; }
.sk__copy { display: grid; gap: 2.6cqw; justify-items: start; }
.sk__h { font: var(--hw) 8.4cqw/1.05 var(--head); letter-spacing: -.035em; }
.sk__p { font-size: 3.8cqw; line-height: 1.35; color: var(--mut); }
.sk__btn { font-size: 3.4cqw; font-weight: 600; padding: 1.6cqw 3.4cqw; border-radius: 99px; background: var(--acc); color: #fff; margin-top: 1cqw; }
.sk__photo {
  display: block; align-self: stretch; border-radius: var(--r);
  background: radial-gradient(120% 80% at 25% 15%, rgba(255,255,255,.35), transparent 55%), linear-gradient(160deg, #CDAA82 0%, #9A7350 55%, #5E4430 100%);
}
/* jasna / ciemna */
.sk--dark { --bg: #111113; --fg: #F5F5F7; --mut: #86868B; }
/* spokojna / odważna */
.sk--calm { --acc: #8A9486; --hw: 500; }
.sk--calm .sk__h { font-size: 7cqw; letter-spacing: -.02em; }
.sk--calm .sk__btn { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 .3cqw currentColor; }
.sk--bold { --hw: 800; }
.sk--bold .sk__body { grid-template-columns: 1.25fr 0.75fr; }
.sk--bold .sk__h { font-size: 10cqw; letter-spacing: -.05em; line-height: .95; }
.sk--bold .sk__btn { background: var(--fg); color: var(--bg); }
.sk--bold .sk__photo { box-shadow: -2cqw 2cqw 0 var(--acc); }
/* zdjęcia / tekst */
.sk--photos .sk__body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 3.5cqw; align-items: stretch; }
.sk--photos .sk__p, .sk--photos .sk__btn { display: none; }
.sk--photos .sk__h { font-size: 6.6cqw; }
.sk__gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2cqw; min-height: 0; }
.sk__gallery .sk__photo:nth-child(2) { filter: hue-rotate(-12deg) brightness(1.08); }
.sk__gallery .sk__photo:nth-child(3) { filter: saturate(.7) brightness(.9); }
.sk--text .sk__body { grid-template-columns: 1fr; align-items: start; }
.sk--text .sk__h { font-size: 7cqw; }
.sk--text .sk__p { font-size: 3.6cqw; max-width: 92%; }
/* zaokrąglone / ostre */
.sk--round { --r: 9cqw; }
.sk--round .sk__photo { border-radius: var(--r); }
.sk--sharp { --r: 0; }
.sk--sharp .sk__btn { border-radius: 0; }
/* klasyczna / nowoczesna czcionka */
.sk--serif { --head: "Cormorant Garamond", Georgia, "Times New Roman", serif; --hw: 500; }
.sk--serif .sk__h { font-size: 9.4cqw; letter-spacing: -.01em; }
/* jeden kolor / kilka */
.sk__tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2cqw; align-self: stretch; }
.sk__tiles i { display: block; border-radius: 3cqw; }
.sk__tiles i:first-child { grid-row: span 2; }
.sk--one .sk__tiles i:nth-child(1) { background: var(--acc); }
.sk--one .sk__tiles i:nth-child(2) { background: #EFD9CC; }
.sk--one .sk__tiles i:nth-child(3) { background: #E6E2DC; }
.sk--multi .sk__tiles i:nth-child(1) { background: #2F5D8A; }
.sk--multi .sk__tiles i:nth-child(2) { background: #E4612B; }
.sk--multi .sk__tiles i:nth-child(3) { background: #6F8F4E; }

/* podsumowanie */
.sv-sum { display: grid; border-top: 1px solid var(--line); }
.sv-sum__row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sv-sum dt { color: var(--text-2); }
.sv-sum dd.is-empty { color: var(--text-3); }
.sv-sent { justify-items: start; }
.sv-sent__text { color: var(--text-2); }

/* komputer: dwie kolumny, lista kroków po lewej, pary stylu po dwie obok siebie */
@media (min-width: 960px) {
  .survey { max-width: 1080px; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
  .sv-side { position: sticky; top: 24px; gap: 14px; padding: 8px 0 0; }
  .sv-hello__hi { font-size: 22px; }
  .sv-steps { display: grid; gap: 2px; margin: 10px 0; counter-reset: sv; }
  .sv-steps li { counter-increment: sv; display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--text-3); font-size: 15px; font-weight: 500; }
  .sv-steps li::before { content: counter(sv); flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
  .sv-steps li.is-on { color: var(--text); }
  .sv-steps li.is-on::before { border-color: var(--accent); color: var(--accent); }
  .sv-steps li.is-done { color: var(--text-2); }
  .sv-steps li.is-done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: #fff; }
  .sv-card { padding: 36px 40px; gap: 22px; }
  .sv-sent { grid-column: 2; }
  .sv-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  /* pytania, kafelki i „Bez różnicy” w jednej linii w obu kolumnach, nawet gdy pytanie zawija się na dwie linie */
  .sv-pair { grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; }
}
@media (max-width: 600px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-pair__row { gap: 8px; }
  .sv-sum__row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Admin: ankieta ---------- */
.sva-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sva-head p { margin-top: 4px; max-width: 560px; }
.sva-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sva-form { display: grid; gap: 22px; margin-bottom: 16px; }
.sva-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sva-grid .field--wide { grid-column: 1 / -1; }
.sva-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 400; }
.sva-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.sva-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.sva-sec { grid-column: 1 / -1; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); padding-top: 14px; border-top: 1px solid var(--line); }
.sva-sec:first-child { padding-top: 0; border-top: 0; }
@media (max-width: 700px) { .sva-grid { grid-template-columns: 1fr; } }

/* link do polityki prywatności na dole panelu klienta */
.panel-legal { text-align: center; font-size: 13px; padding: 40px 0 8px; }
.panel-legal a { color: var(--text-3); text-underline-offset: 3px; }
.panel-legal a:hover { color: var(--text-2); }

/* admin: rundy poprawek i uwaga z Messengera */
.round-admin { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; }
.round-admin__state { color: var(--text-2); font-size: 14px; }
.fix-add { display: grid; gap: 8px; margin-bottom: 16px; }

/* panel klienta: runda poprawek i wysyłanie uwag */
.fixes__round { font: 500 13px var(--body); color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.fixes__state { color: var(--text-2); font-size: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2, rgba(255,255,255,.04)); }
.fixes__send { display: grid; gap: 10px; justify-items: start; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.fixes__send-note { color: var(--text-2); font-size: 14px; }

/* admin: zakładka Hosting */
.host-admin { display: grid; gap: 12px; margin-bottom: 16px; }
.host-admin__care { font-weight: 600; color: var(--text); }
.host-admin .small { font-size: 13px; }
.host-steps { padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: 14px; }
.host-steps b { color: var(--text); }

/* panel projektu po starcie: karta z przejściem do panelu strony; ekran PIN-u (na przyszłość) */
.host-link { display: grid; gap: 12px; justify-items: start; }
.host-link p { color: var(--text-2); font-size: 14px; }
.pin-form { display: flex; gap: 10px; flex-wrap: wrap; }
.pin-form input { width: 9.5em; font-size: 20px; letter-spacing: .35em; text-align: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.locked, .gate { display: grid; gap: 14px; justify-items: center; text-align: center; }
.gate__text { color: var(--text-2); max-width: 440px; }
.gate__form { display: grid; gap: 12px; width: min(100%, 380px); text-align: left; }
.gate__pins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gate__form .btn { justify-self: center; margin-top: 4px; }
.locked__help { font-size: 13px; color: var(--text-3); }

/* admin: strona online */
.site-admin { display: grid; gap: 0; margin-top: 18px; }
.sites__client { display: block; font-size: 13px; margin-top: 2px; }

/* admin: pasek boczny jak w panelu strony (Klienci, Zgłoszenia, Hosting), treść po prawej */
.admin:not([hidden]) { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 26px 16px; background: var(--surface); border-right: 1px solid var(--line); }
.admin-side__logo img { display: block; height: 21px; width: auto; margin-left: 10px; }
.admin-side .top-nav { display: grid; gap: 2px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.admin-side .top-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.admin-side .top-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-side .top-nav a.is-on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.admin-side .top-nav svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-side .top-nav a.is-on svg { stroke: var(--accent); }
.admin-side .tab-count { margin-left: auto; }
.admin-side__logout { margin-top: auto; align-self: start; border: 0; background: none; color: var(--text-3); font: 600 13px var(--body); padding: 8px 12px; cursor: pointer; }
.admin-side__logout:hover { color: var(--text); }
.admin > .app-main { max-width: none; width: 100%; margin: 0; padding: 30px clamp(20px, 3vw, 44px) 64px; }
@media (max-width: 760px) {
  .admin:not([hidden]) { display: block; }
  .admin-side { position: fixed; z-index: 20; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; align-items: center; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: rgba(22, 23, 26, .94); backdrop-filter: blur(12px); }
  .admin-side__logo { display: none; }
  .admin-side .top-nav { grid-template-columns: repeat(3, 1fr); flex: 1; }
  .admin-side .top-nav a { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 2px; position: relative; }
  .admin-side .top-nav a.is-on { background: none; box-shadow: none; color: var(--accent); }
  .admin-side .tab-count { position: absolute; top: 0; right: calc(50% - 22px); margin: 0; min-width: 17px; height: 17px; font-size: 10px; }
  .admin-side__logout { order: 2; margin: 0; font-size: 11px; padding: 6px; align-self: center; }
  .admin > .app-main { padding-bottom: 96px; padding-top: 18px; }
}

/* admin na całą szerokość: zgłoszenia układają się w kolumny na szerokim ekranie */
#leads-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); align-items: start; }

/* długi kod (licznik, link) nie rozpycha strony w bok */
.link-box { min-width: 0; max-width: 100%; }
.link-box code { min-width: 0; overflow-wrap: anywhere; word-break: break-all; white-space: normal; }
.site-admin, .site-admin > *, #client-view, #site-view { min-width: 0; }

/* admin: sprawdzenie połączenia z Cloudflare */
.cf-check { margin-bottom: 16px; }
.cf-check__list { list-style: none; display: grid; gap: 8px; }
.cf-check__list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.cf-check__list li.is-ok b { color: var(--ok); }
.cf-check__list li.is-bad b { color: #FF8A8E; }
.cf-check__list span { font-size: 13px; overflow-wrap: anywhere; }

/* admin: domeny klienta (lista → jedna domena) */
.table-card__head { display: grid; gap: 4px; padding: 18px 16px 6px; }
.table-card__head h2 { font-size: 17px; }
.back--btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; justify-self: start; }
.d-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.d-head h2 { overflow-wrap: anywhere; }
.d-next { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.d-rows { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin: 0; }
.d-rows dt, .d-rows dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.d-rows dt { color: var(--text-2); }
.d-rows dd { overflow-wrap: anywhere; }
.d-auto summary { cursor: pointer; font-weight: 600; }
.d-auto[open] summary { margin-bottom: 12px; }
@media (max-width: 760px) { .d-rows { grid-template-columns: 1fr; } .d-rows dd { border-top: 0; padding-top: 0; } }

/* admin: tymczasowy PIN po resecie */
.temp-pin { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(228, 97, 43, .4); background: rgba(228, 97, 43, .08); }
.temp-pin code { font: 600 22px/1 var(--display); letter-spacing: .12em; }
.temp-pin p { flex-basis: 100%; margin: 0; }
