/* NEVV Mailer */
:root {
  --bg: #07040f; --bg2: #0d0a17;
  --panel: rgba(22, 19, 31, .9); --panel-2: #1e1a2b; --panel-3: #0f0c17;
  --line: #2a2440; --line-2: #3b2f63;
  --text: #ece9f5; --muted: #a49fb8; --dim: #8e88a6;
  --violet: #8b5cf6; --violet-d: #7c3aed; --violet-2: #c4b5fd; --violet-3: #ddd6fe;
  --ok: #34d399; --ok-t: #6ee7b7; --warn: #fbbf24; --warn-t: #fcd34d; --err: #f87171; --err-t: #fca5a5;
  --radius: 14px; --side: 252px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 14px/1.5 Montserrat, system-ui, -apple-system, Segoe UI, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--violet-2); text-decoration: none; }
a:hover { color: var(--violet-3); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 16px; } h3, .h3 { font-size: 15px; } .h4 { font-size: 13px; } .h2 { font-size: 20px; }
p { margin: 0 0 10px; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
code { background: rgba(139, 92, 246, .14); color: var(--violet-3); padding: 1px 6px; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, .45); }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .center { text-align: center; } .strong { font-weight: 600; } .nowrap { white-space: nowrap; }
.ok-t { color: var(--ok-t); } .warn-t { color: var(--warn-t); } .err-t { color: var(--err-t); }
.st-ok { color: var(--ok-t); } .st-warn { color: var(--warn-t); } .st-err { color: var(--err-t); }
.dim { opacity: .55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- tło ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(900px 600px at 12% -8%, rgba(124, 58, 237, .22), transparent 60%), radial-gradient(800px 560px at 100% 100%, rgba(91, 33, 182, .18), transparent 60%), var(--bg); }
.aglow { position: absolute; left: 50%; top: 14%; width: min(90vw, 900px); height: min(90vw, 900px); translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 40, 200, .24), rgba(150, 40, 170, .08) 36%, transparent 68%); filter: blur(30px); animation: egp 6s ease-in-out infinite alternate; }
@keyframes egp { to { scale: 1.12; opacity: .8; } }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .32; }
.waves path { fill: none; stroke-width: 1.1; animation: wv 14s ease-in-out infinite alternate; }
@keyframes wv { 0% { transform: translate(-110px, 8px); } 50% { transform: translate(0, -10px); } 100% { transform: translate(110px, 6px); } }
body.app .aglow, body.app .waves path { animation-play-state: running; }

/* ---------- układ aplikacji ---------- */
.side { position: fixed; top: 0; left: 0; bottom: 0; width: var(--side); padding: 22px 14px calc(14px + var(--safe-b)); display: flex; flex-direction: column; gap: 4px;
  background: rgba(10, 6, 18, .72); border-right: 1px solid var(--line); z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 18px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand b { display: block; font-size: 15px; font-weight: 800; letter-spacing: .02em; line-height: 1.15; }
.brand span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.orgsw { padding: 0 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.orgsw label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.orgname { padding: 0 12px 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; min-height: 42px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s; }
.nav a svg { flex: none; opacity: .85; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.on { background: linear-gradient(90deg, rgba(139, 92, 246, .22), rgba(139, 92, 246, .05)); color: #fff; }
.nav a.on svg { color: var(--violet-2); opacity: 1; }
.navsep { margin: 14px 12px 4px; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.side .sep { flex: 1; min-height: 12px; }
.me { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.me-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--text); padding: 6px; border-radius: 11px; }
.me-main:hover { background: var(--panel-2); color: var(--text); }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.who { min-width: 0; } .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .who span { display: block; font-size: 11.5px; color: var(--dim); }
.main { margin-left: var(--side); padding: 28px 34px 64px; max-width: calc(1240px + var(--side)); display: flex; flex-direction: column; gap: 20px; }
.main.wide { max-width: none; padding: 16px 18px 24px; }
.mbar { display: none; }
.scrim { display: none; }
@media (max-width: 900px) {
  .side { transform: translateX(-102%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(0, 0, 0, .6); background: #0b0814; }
  body.side-open .side { transform: none; }
  body.side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 25; }
  .mbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(10, 6, 18, .85); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
  .mbar .brand { padding: 0; } .mbar .brand img { width: 32px; height: 32px; }
  .main { margin-left: 0; padding: 18px 16px 48px; }
}

/* ---------- elementy ---------- */
.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.top h1 { margin-top: 2px; }
.top p { margin: 4px 0 0; }
.top-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.narrow { max-width: 560px; }
.card h2 { margin-bottom: 4px; }
.pad { padding: 14px 20px; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px 12px; }
.cardhead.tight { padding: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.row-end { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.grid2.eq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid2, .grid2.eq { grid-template-columns: minmax(0, 1fr); } }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.row3 .span2 { grid-column: span 2; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: minmax(0, 1fr); } .row3 .span2 { grid-column: auto; } }
.sticky { position: sticky; top: 20px; }
@media (max-width: 1100px) { .sticky { position: static; } }
.inline { display: inline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, filter .15s; color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--violet-d); color: #fff; }
.btn-primary:hover { background: #6d28d9; color: #fff; }
.btn-glow { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 10px 28px rgba(124, 58, 237, .45), inset 0 1px 0 rgba(255, 255, 255, .18); min-height: 48px; font-size: 15px; }
.btn-glow:hover { filter: brightness(1.08); color: #fff; }
.btn-light { background: var(--panel-2); border-color: var(--line-2); }
.btn-light:hover { background: #262038; color: #fff; }
.btn-danger { background: transparent; border-color: #5b2333; color: var(--err-t); }
.btn-danger:hover { background: rgba(248, 113, 113, .1); color: #fecaca; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; white-space: normal; text-align: center; min-height: 42px; height: auto; padding-top: 8px; padding-bottom: 8px; }
#edCheck { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.btn.busy { opacity: .7; pointer-events: none; }
.iconbtn { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); cursor: pointer; font: inherit; }
.iconbtn:hover { color: #fff; border-color: var(--line-2); }
.iconbtn.sm { width: 32px; height: 32px; font-size: 13px; }
.iconbtn.danger:hover { color: var(--err-t); border-color: #5b2333; }
.iconrow { display: flex; gap: 6px; }

input, select, textarea { font: inherit; color: var(--text); }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.fld > span { font-weight: 500; }
.fld input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .fld select, .fld textarea, .filters select, .uprow input, .orgsw select, textarea.code {
  width: 100%; min-height: 44px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line); color: var(--text); font-size: 14px; padding: 0 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.fld textarea, textarea.code { padding: 10px 12px; min-height: 0; line-height: 1.5; resize: vertical; }
.orgsw select { min-height: 38px; font-size: 13px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .rte-area:focus { border-color: var(--violet) !important; box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); outline: none; }
button:focus-visible, a:focus-visible, .chk input:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
input[type=color] { width: 44px; height: 40px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-3); cursor: pointer; flex: none; }
input[type=range] { accent-color: var(--violet); flex: 1; }
input[type=checkbox], input[type=radio] { accent-color: var(--violet); width: 18px; height: 18px; flex: none; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.switch { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; cursor: pointer; min-height: 32px; }
.switch input { margin-top: 2px; }
.uprow { display: flex; gap: 8px; align-items: center; }
.uprow input { flex: 1; min-width: 0; }
.colorrow, .rangerow { display: flex; gap: 8px; align-items: center; }
.rangerow output { min-width: 52px; text-align: right; font-size: 12.5px; color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line); color: var(--muted); flex: 0 1 320px; }
.search.wide { flex-basis: 520px; }
.search input { background: transparent; border: 0; outline: none; color: var(--text); font-size: 14px; flex: 1; min-width: 0; }
.filters select { width: auto; min-width: 200px; }

.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--line); gap: 4px; }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button.on, .seg a.on { background: var(--violet-d); color: #fff; }
.seg-sm button { height: 32px; flex: 1; justify-content: center; }
.seg-sm { display: flex; }
.seg-links { flex-wrap: wrap; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-green { background: #0f2a22; color: var(--ok-t); } .chip-amber { background: #3a2e12; color: var(--warn-t); } .chip-red { background: #3b1620; color: var(--err-t); }
.chip-violet { background: #2b2150; color: var(--violet-2); } .chip-gray { background: #221d33; color: #b8b2cc; }
.badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #221d33; color: #b8b2cc; font-size: 11px; font-weight: 700; margin-left: 4px; }
.badge.b-ok { background: #0f2a22; color: var(--ok-t); } .badge.b-warn { background: #3a2e12; color: var(--warn-t); } .badge.b-err { background: #3b1620; color: var(--err-t); }

.alert { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 13.5px; line-height: 1.55; }
.alert-err { background: rgba(127, 29, 29, .25); border-color: #5b2333; color: #fecaca; }
.alert-warn { background: rgba(120, 83, 10, .22); border-color: #5c4615; color: #fde68a; }
.alert-ok { background: rgba(6, 78, 59, .25); border-color: #134e3a; color: #a7f3d0; }
.alert-info { background: rgba(76, 29, 149, .22); border-color: var(--line-2); color: var(--violet-3); }
.alert a { color: inherit; text-decoration: underline; }

.toast { position: fixed; right: 20px; top: calc(20px + var(--safe-t)); z-index: 200; display: flex; gap: 12px; align-items: flex-start; max-width: min(440px, calc(100vw - 32px)); padding: 13px 14px 13px 16px; border-radius: 12px; background: #1e1a2b; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); font-size: 13.5px; animation: tin .35s cubic-bezier(.2, .8, .2, 1) both; }
.toast + .toast { top: calc(84px + var(--safe-t)); }
.toast.t-err { border-color: #5b2333; } .toast.t-warn { border-color: #5c4615; } .toast.t-ok { border-color: #134e3a; }
.toast .tx { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
.toast.out { animation: tout .3s ease forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }
@keyframes tout { to { opacity: 0; transform: translateY(-10px); } }

.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid #221d33; vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; } .tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.tbl .r { text-align: right; } .tbl .w1 { width: 1px; }
.tbl.compact td { padding: 8px 12px; }
.tbl td.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl.mapping th { vertical-align: top; min-width: 170px; } .tbl.mapping th span { display: block; } .tbl.mapping select { display: block; margin-top: 6px; min-height: 38px; width: 100%; border-radius: 8px; background: var(--panel-3); border: 1px solid var(--line); padding: 0 8px; }
.logbox { max-height: 560px; overflow-y: auto; } .logbox thead th { position: sticky; top: 0; background: #16131f; z-index: 1; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty-hero { text-align: center; padding: 34px; } .empty-hero p { max-width: 520px; margin: 8px auto 18px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); }
a.tile:hover { border-color: var(--line-2); color: var(--text); }
.tile .l { font-size: 12.5px; color: var(--muted); } .tile .n { font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; } .tile .s { font-size: 12px; }
.tile.on { background: #241a43; border-color: var(--line-2); }
.tiles-sm .tile { padding: 12px 14px; } .tiles-sm .tile .n { font-size: 20px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; align-items: baseline; }
.kv + .kv { margin-top: 8px; }
.kv span:last-child { text-align: right; }
.meter { margin-top: 12px; }
.bar { height: 10px; border-radius: 99px; background: #2a2440; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--violet); transition: width .6s ease; }
.bar.sm { height: 7px; margin-top: 6px; } .bar.lg { height: 16px; }
.bar i.ok { background: var(--violet); } .bar i.bad { background: var(--err); } .bar i.skip { background: #4a4166; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #2a2440; border: 1px solid #4a4166; margin-right: 6px; vertical-align: -1px; }
.legend i.ok { background: var(--violet); border: 0; } .legend i.bad { background: var(--err); border: 0; } .legend i.skip { background: #4a4166; }
.legend b { color: var(--text); }
.livecard { border-color: var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.livehead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--violet-2); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: pulse 1.6s ease-in-out infinite; }
.is-paused .eyebrow { color: var(--warn-t); } .is-paused .eyebrow .dot { background: var(--warn); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.prog { display: flex; align-items: center; gap: 14px; } .prog .bar { flex: 1; } .prog b { min-width: 140px; text-align: right; font-size: 14px; }
.livebig { display: flex; flex-direction: column; gap: 14px; border-color: var(--line-2); }
.bigrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.big { font-size: 42px; font-weight: 800; letter-spacing: -1px; line-height: 1; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: #b8b2cc; font-size: 13px; font-weight: 600; }
.steps li a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.steps li.done { background: #0f2a22; border-color: #134e3a; color: var(--ok-t); }
.steps li.on { background: var(--violet-d); border-color: var(--violet-d); color: #fff; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.checks li { position: relative; padding-left: 26px; color: var(--text); }
.checks li::before { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.checks li.st-ok::before { content: "✓"; background: #0f2a22; color: var(--ok-t); }
.checks li.st-warn::before { content: "!"; background: #3a2e12; color: var(--warn-t); }
.checks li.st-err::before { content: "✕"; background: #3b1620; color: var(--err-t); }
.checks-lg li b, .checks-lg li span { display: block; } .checks-lg li span { margin-top: 2px; }
.score { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); margin-bottom: 12px; }
.score b { font-size: 34px; line-height: 1; } .score span { font-size: 13px; color: var(--muted); }
.score.ok b { color: var(--ok-t); } .score.warn b { color: var(--warn-t); } .score.err b { color: var(--err-t); }
.textver { white-space: pre-wrap; background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: 260px; overflow: auto; font-size: 12px; }
details summary { cursor: pointer; color: var(--violet-2); }
.tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.tips b { color: var(--text); }

.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.chkcard { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line); cursor: pointer; }
.chkcard:has(input:checked) { background: #241a43; border-color: var(--violet-d); }
.chkcard span { display: flex; flex-direction: column; } .chkcard b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.seg-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.radiocard { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line); font-weight: 600; cursor: pointer; min-height: 46px; }
.radiocard:has(input:checked) { background: #241a43; border-color: var(--violet-d); }
.radiocard input[type=datetime-local] { min-height: 34px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); padding: 0 8px; }

.tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tplcard { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); cursor: pointer; position: relative; }
.tplcard input { position: absolute; opacity: 0; }
.tplcard:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(139, 92, 246, .35); }
.tplcard:has(input:focus-visible) { outline: 2px solid var(--violet-2); }
.tplcard.static { cursor: default; } .tplcard b a { color: var(--text); }
.tplthumb { display: flex; flex-direction: column; gap: 5px; height: 120px; padding: 10px; border-radius: 9px; background: #fff; overflow: hidden; }
.tplthumb i { display: block; border-radius: 3px; background: #ddd6f0; }
.tplthumb i:nth-child(1) { height: 18px; background: #14101f; } .tplthumb i:nth-child(2) { height: 36px; background: #ede9fe; } .tplthumb i:nth-child(3) { height: 6px; width: 80%; } .tplthumb i:nth-child(4) { height: 14px; width: 40%; background: #7c3aed; border-radius: 7px; }
.tt-announcement i:nth-child(2) { height: 10px; width: 70%; align-self: center; background: #1f1a2e; } .tt-announcement i:nth-child(4) { align-self: center; }
.tt-event i:nth-child(2) { height: 46px; background: #2b2150; } .tt-notice i:nth-child(2) { height: 8px; width: 34%; background: #f59e0b; }
.tt-blank i:nth-child(n+2) { background: #f0eef6; } .tt-own i:nth-child(1) { background: #6d28d9; }
.tt-offer i:nth-child(1) { background: #0b2e24; } .tt-offer i:nth-child(2) { height: 40px; background: #0f8a5f; } .tt-offer i:nth-child(4) { background: #0f8a5f; }
.tt-welcome i:nth-child(1) { background: #0f1b3d; } .tt-welcome i:nth-child(2) { height: 34px; background: linear-gradient(90deg, #eef3ff 47%, #fff 47% 53%, #eef3ff 53%); } .tt-welcome i:nth-child(4) { background: #1d4ed8; }
.tt-video i:nth-child(2) { height: 46px; background: radial-gradient(circle, #fff 7px, transparent 8px), #2b2150; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; border: 2px dashed var(--line-2); border-radius: var(--radius); text-align: center; cursor: pointer; color: var(--muted); }
.drop b { color: var(--text); } .drop.over { border-color: var(--violet); background: rgba(139, 92, 246, .08); }
.drop input { max-width: 100%; font-size: 13px; color: var(--muted); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .codes span { padding: 8px 10px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 14px; }
.qrbox { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .qrbox svg { border-radius: 12px; padding: 6px; background: #fff; }
.pop { position: relative; display: inline-block; } .pop summary { list-style: none; } .pop summary::-webkit-details-marker { display: none; }
.popbox { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 320px; padding: 16px; border-radius: 12px; background: #1a1625; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.dlg { border: 1px solid var(--line-2); border-radius: 16px; background: #15121f; color: var(--text); padding: 22px; width: min(460px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(0, 0, 0, .6); }
.pub-logo { width: 70px; height: 70px; object-fit: contain; margin: 0 auto 18px; display: block; }

/* ---------- logowanie + animacja otwarcia (jak NEVV Helpdesk) ---------- */
body.auth, body.pub { display: flex; flex-direction: column; min-height: 100vh; }
.auth-main { flex: 1; display: grid; place-items: center; padding: calc(24px + var(--safe-t)) 16px 24px; }
.auth-col { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; }
.auth-mark { width: clamp(130px, 22vh, 180px); height: clamp(130px, 22vh, 180px); flex: none; }
.auth-title { margin: 18px 0 0; font-size: clamp(26px, 4vw, 34px); font-weight: 300; text-align: center; }
.auth-title b { font-weight: 800; letter-spacing: .02em; }
.lw .lt { display: inline-block; animation: lw 3.2s ease-in-out infinite; animation-delay: calc(var(--k) * .09s); }
@keyframes lw { 0%, 100% { transform: translateY(0); color: #c9b8ff; } 40% { transform: translateY(-6px) scale(1.06); color: #ffb3e6; text-shadow: 0 8px 28px rgba(210, 90, 180, .7); } 70% { transform: translateY(0); color: #e2d9ff; } }
.auth-hk { margin: 6px 0 26px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: center; }
.acard { width: 100%; padding: 30px 28px; border-radius: 26px; background: rgba(10, 7, 24, .72); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(124, 92, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 14px; }
.acard h2 { font-size: 21px; } .acard .sub { margin: -6px 0 0; }
.auth-foot { text-align: center; color: var(--dim); font-size: 12px; padding: 16px 16px calc(16px + var(--safe-b)); }
.auth-col > * { transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
body.auth.intro .auth-col > *:not(.auth-mark), body.auth.intro .auth-foot { opacity: 0; transform: translateY(26px); }
body.auth.go .auth-col > :nth-child(2) { transition-delay: .15s; } body.auth.go .auth-col > :nth-child(3) { transition-delay: .25s; } body.auth.go .auth-col > :nth-child(4) { transition-delay: .35s; }

#be { position: fixed; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; z-index: 110; pointer-events: none; perspective: 900px; opacity: 0; }
#be .bs { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
#be canvas { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; filter: drop-shadow(0 18px 30px rgba(124, 58, 237, .35)); }
body.auth.nointro #be, body.auth.go #be { opacity: 1; }
#pre { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 50%, #2b0f66, #07040f 70%); --r: -2%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1.2%)); mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1.2%)); cursor: pointer; }
@property --r { syntax: '<percentage>'; initial-value: -2%; inherits: false; }
#pre.open { animation: iris 1.4s cubic-bezier(.75, 0, .25, 1) forwards; pointer-events: none; }
@keyframes iris { to { --r: 150%; } }
.pt { position: absolute; top: 50%; transform: translateY(-50%); line-height: 1; color: #fff; white-space: nowrap; pointer-events: none; }
.pt b { display: block; font-weight: 800; font-size: .3em; letter-spacing: .04em; opacity: 0; transform: translateX(-36px); filter: blur(10px); transition: all .8s cubic-bezier(.2, .7, .2, 1); }
.pt span { display: block; font-weight: 300; font-size: .2em; letter-spacing: .06em; margin-top: .15em; color: #cbbfff; opacity: 0; transform: translateX(-30px); filter: blur(8px); transition: all .8s .22s cubic-bezier(.2, .7, .2, 1); }
.pt.on b, .pt.on span { opacity: 1; transform: none; filter: none; }
.pt:not(.on) b, .pt:not(.on) span { transition-duration: .45s; transition-delay: 0s; }
body.land .brand-mark { animation: land .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes land { from { transform: scale(2.6) translate(40px, 30px) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } }


/* ---------- zwijane menu boczne (jak w Insight) ---------- */
.side, .main { transition: width .2s ease, margin-left .2s ease, padding .2s ease; }
@media (min-width: 901px) {
  html.side-mini { --side: 76px; }
  html.side-mini .side { width: 76px; padding: 20px 10px 14px; overflow: visible; }
  html.side-mini .brand { justify-content: center; padding: 0 0 16px; }
  html.side-mini .brand > div, html.side-mini .nav a > span, html.side-mini .who, html.side-mini .orgsw, html.side-mini .orgname, html.side-mini .navsep { display: none; }
  html.side-mini .nav a { justify-content: center; padding: 11px 0; position: relative; }
  html.side-mini .nav a::after { content: attr(data-label); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 10px; font-size: 12.5px; border-radius: 8px; background: #1e1a2b; border: 1px solid var(--line-2); color: var(--text); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 50; }
  html.side-mini .nav a:hover::after, html.side-mini .nav a:focus-visible::after { opacity: 1; }
  html.side-mini .me { flex-direction: column; align-items: center; gap: 8px; }
  html.side-mini .me-main { flex: none; padding: 0; }
  html.side-mini .side-toggle svg { transform: scaleX(-1); }
}
@media (max-width: 900px) { .side-toggle { display: none !important; } }

/* ---------- kreator ---------- */
.ed { display: flex; flex-direction: column; gap: 14px; }
.ed-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ed-title { display: flex; flex-direction: column; min-width: 220px; flex: 1 1 260px; }
.ed-name { background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: 20px; font-weight: 700; padding: 2px 6px; margin-left: -6px; color: var(--text); width: 100%; }
.ed-name:hover { border-color: var(--line); }
.ed-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-body { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
@media (max-width: 1200px) { .ed-body { grid-template-columns: 220px minmax(0, 1fr); } .ed-right { grid-column: 1 / -1; } }
@media (max-width: 800px) { .ed-body { grid-template-columns: minmax(0, 1fr); } .seg span { display: none; } }
.ed-left, .ed-right { padding: 14px; position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; }
@media (max-width: 1200px) { .ed-right, .ed-left { position: static; max-height: none; } }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--panel-3); border-radius: 10px; margin-bottom: 12px; }
.tabs button { flex: 1; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: #221b36; color: #fff; }
.palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.pal { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: grab; text-align: left; min-height: 64px; }
.pal:hover { border-color: var(--violet-d); }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tree li { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; font-size: 12.5px; }
.tree li b { display: block; font-weight: 600; } .tree li small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.tree li.on { border-color: var(--violet-d); background: #241a43; } .tree .grip { color: var(--dim); cursor: grab; letter-spacing: -2px; }
.tree li.dragging { opacity: .4; } .tree li.drop-before { box-shadow: 0 -3px 0 var(--violet); } .tree li.drop-after { box-shadow: 0 3px 0 var(--violet); }
.ed-canvas { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ed-frame-wrap { display: flex; justify-content: center; padding: 18px; border-radius: var(--radius); background: #1a1626; border: 1px solid var(--line); min-height: 600px; }
#edFrame { width: 100%; max-width: 820px; border: 0; border-radius: 6px; background: transparent; transition: max-width .3s ease; min-height: 600px; }
.colbox { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.colbox legend { padding: 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.socrow, .featrow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 32px; gap: 6px; }
.socrow select, .socrow input, .featrow input { min-height: 38px; border-radius: 8px; background: var(--panel-3); border: 1px solid var(--line); padding: 0 8px; font-size: 13px; min-width: 0; }
.rte { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-3); overflow: hidden; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); background: #13101c; }
.rte-bar button, .rte-bar select { min-height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.rte-bar button:hover { background: var(--panel-2); } .fld .rte-bar select { width: auto !important; min-height: 30px !important; height: 30px; padding: 0 8px; background: var(--panel-2); border: 0; font-size: 12.5px; }
.rte-area { min-height: 110px; max-height: 320px; overflow-y: auto; padding: 10px 12px; color: var(--text); font-size: 14px; line-height: 1.55; outline: none; border: 1px solid transparent; }
.rte-area p { margin: 0 0 8px; } .rte-area a { color: var(--violet-2); text-decoration: underline; }
.uprow .btn.busy { opacity: .6; }
.row3 .fld input { min-width: 0; }


/* kreator 1.1 */
.pal-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 4px 2px 8px; }
.pal { flex-direction: row; align-items: center; min-height: 46px; padding: 8px 10px; gap: 9px; line-height: 1.2; transition: border-color .15s, background .15s, transform .15s; }
.pal:hover { background: #251d3d; transform: translateY(-1px); }
.pal:active { cursor: grabbing; }
.bi { flex: none; position: relative; display: inline-block; width: 26px; height: 20px; border-radius: 5px; background: rgba(139, 92, 246, .16); }
.bi::before, .bi::after { content: ""; position: absolute; background: var(--violet-2); border-radius: 2px; }
.bi-heading::before { left: 5px; right: 5px; top: 6px; height: 4px; } .bi-heading::after { left: 8px; right: 8px; top: 12px; height: 2px; opacity: .6; }
.bi-text::before { left: 5px; right: 5px; top: 5px; height: 10px; background: repeating-linear-gradient(var(--violet-2) 0 2px, transparent 2px 4px); }
.bi-image::before { inset: 4px 5px; background: linear-gradient(135deg, transparent 48%, var(--violet-2) 48%); border: 1.5px solid var(--violet-2); }
.bi-button::before { left: 4px; right: 4px; top: 6px; height: 8px; border-radius: 4px; }
.bi-buttons::before { left: 3px; width: 9px; top: 6px; height: 8px; border-radius: 4px; } .bi-buttons::after { right: 3px; width: 9px; top: 6px; height: 8px; border-radius: 4px; background: transparent; border: 1.5px solid var(--violet-2); box-sizing: border-box; }
.bi-divider::before { left: 4px; right: 4px; top: 9px; height: 2px; }
.bi-spacer::before { left: 5px; right: 5px; top: 4px; bottom: 4px; background: transparent; border: 1.5px dashed var(--violet-2); }
.bi-hero::before { inset: 3px; background: var(--violet); border-radius: 3px; } .bi-hero::after { left: 8px; right: 8px; top: 9px; height: 2px; background: #fff; }
.bi-imgtext::before { left: 4px; top: 5px; width: 8px; height: 10px; } .bi-imgtext::after { left: 14px; right: 4px; top: 6px; height: 8px; background: repeating-linear-gradient(var(--violet-2) 0 2px, transparent 2px 4px); }
.bi-columns::before { left: 4px; top: 5px; width: 8px; height: 10px; opacity: .8; } .bi-columns::after { right: 4px; top: 5px; width: 8px; height: 10px; opacity: .8; }
.bi-features::before { left: 4px; top: 4px; width: 4px; height: 12px; background: radial-gradient(circle, var(--violet-2) 1.8px, transparent 2.2px) 0 0 / 4px 6px; } .bi-features::after { left: 11px; right: 4px; top: 5px; height: 10px; background: repeating-linear-gradient(var(--violet-2) 0 2px, transparent 2px 6px); }
.bi-quote::before { content: "\201C"; background: none; color: var(--violet-2); font: 800 22px/1 Georgia, serif; left: 7px; top: 1px; }
.bi-video::before { inset: 4px 5px; background: transparent; border: 1.5px solid var(--violet-2); } .bi-video::after { left: 11px; top: 7px; width: 0; height: 0; border-radius: 0; background: none; border-left: 6px solid var(--violet-2); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.bi-contact::before { left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; } .bi-contact::after { left: 16px; right: 4px; top: 7px; height: 6px; background: repeating-linear-gradient(var(--violet-2) 0 2px, transparent 2px 4px); }
.bi-logo::before { left: 5px; right: 5px; top: 3px; height: 14px; background: var(--violet); opacity: .8; } .bi-logo::after { left: 9px; right: 9px; top: 8px; height: 4px; background: #fff; }
.bi-social::before { left: 4px; top: 7px; width: 18px; height: 6px; background: radial-gradient(circle, var(--violet-2) 2.6px, transparent 3px) 0 0 / 6px 6px; }
.bi-footer::before { left: 4px; right: 4px; bottom: 3px; height: 6px; opacity: .7; } .bi-footer::after { left: 8px; right: 8px; top: 5px; height: 2px; opacity: .4; }
.bi-html::before { content: "</>"; background: none; color: var(--violet-2); font: 700 10px/20px ui-monospace, monospace; left: 0; right: 0; text-align: center; }
.secs { display: flex; flex-direction: column; gap: 8px; }
.sec { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: grab; transition: border-color .15s, background .15s; }
.sec:hover { border-color: var(--violet-d); background: #251d3d; }
.sec-prev { flex: none; width: 44px; padding: 4px; border-radius: 6px; background: #f4f2fa; display: flex; flex-direction: column; gap: 2px; }
.sp { display: block; height: 3px; border-radius: 1px; background: #c9c2dd; }
.sp-hero { height: 12px; background: #8b5cf6; } .sp-heading { height: 4px; width: 70%; background: #4c4566; } .sp-button, .sp-buttons { height: 5px; width: 50%; background: #8b5cf6; border-radius: 3px; }
.sp-image, .sp-imgtext, .sp-video { height: 10px; background: #d8d1ea; } .sp-columns, .sp-features { height: 8px; background: linear-gradient(90deg, #ddd6fe 47%, transparent 47% 53%, #ddd6fe 53%); }
.sp-quote, .sp-contact { height: 7px; background: #ede9fe; border-left: 2px solid #8b5cf6; } .sp-spacer { background: transparent; } .sp-divider { height: 1px; }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.theme { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; }
.theme:hover { border-color: var(--line-2); } .theme.on { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(139, 92, 246, .3); }
.th-sw { display: flex; flex: none; border-radius: 6px; overflow: hidden; } .th-sw i { width: 10px; height: 20px; }
.props-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .props-head h3 { flex: 1; }
.iconrow { display: flex; gap: 4px; }
.empty-props { padding: 18px 6px; text-align: center; }
.tip { margin: 0; padding: 8px 10px; border-radius: 8px; background: rgba(139, 92, 246, .1); border: 1px dashed var(--line-2); }
.imgdrop { display: grid; place-items: center; min-height: 86px; padding: 8px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: var(--panel-3); cursor: pointer; transition: border-color .15s, background .15s; }
.imgdrop:hover, .imgdrop.over { border-color: var(--violet); background: #1a1430; }
.imgdrop img { max-width: 100%; max-height: 120px; border-radius: 6px; display: block; }
.uprow { display: flex; gap: 6px; align-items: center; } .uprow input { flex: 1; min-width: 0; }
.fld .colorrow input[type=color], .colorrow input[type=color] { flex: none; width: 38px; height: 38px; padding: 2px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-3); cursor: pointer; }
.colorrow input.mono { flex: 1; min-width: 0; min-height: 38px; border-radius: 9px; background: var(--panel-3); border: 1px solid var(--line); padding: 0 10px; color: var(--text); }
.fld input[type=color] { width: 100%; height: 38px; padding: 2px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-3); cursor: pointer; }
.rangerow input { flex: 1; accent-color: var(--violet); }
details.adv > summary, .colbox > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 0; }
details.adv > summary:hover, .colbox > summary:hover { color: var(--text); }
.colbox { display: block; }
.featrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 32px; }
.textver { white-space: pre-wrap; max-height: 260px; overflow: auto; padding: 10px; background: var(--panel-3); border-radius: 8px; font-size: 11.5px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.ed-inbox { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; max-width: 820px; width: 100%; margin: 0 auto; }
.ib-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; background: var(--violet-d); }
.ib-txt { min-width: 0; flex: 1; } .ib-row { display: flex; justify-content: space-between; gap: 10px; }
.ib-subj { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-pre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-frame-wrap { flex-direction: column; align-items: center; background: radial-gradient(ellipse at top, #231b3a, #15111f 70%); transition: background .3s; }
.ed-frame-wrap.dark { background: radial-gradient(ellipse at top, #121212, #050505 70%); }
.ed-phone-top { display: none; }
.ed-frame-wrap.mobile .ed-phone-top { display: block; width: 390px; height: 34px; background: #000; border-radius: 34px 34px 0 0; position: relative; }
.ed-frame-wrap.mobile .ed-phone-top::after { content: ""; position: absolute; left: 50%; top: 9px; width: 96px; height: 18px; margin-left: -48px; border-radius: 10px; background: #111; }
.ed-frame-wrap.mobile #edFrame { max-width: 390px; border: 10px solid #000; border-top: 0; border-radius: 0 0 34px 34px; box-shadow: 0 0 0 2px #2a2440, 0 30px 60px rgba(0, 0, 0, .45); }
#edFrame { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.ed-fmt { position: sticky; top: 10px; z-index: 30; align-self: center; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px; border-radius: 12px; background: #1d1730; border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.ed-fmt button { min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.ed-fmt button:hover { background: #2c2347; }
.ed-fmt select { height: 32px; border-radius: 7px; border: 0; background: #2c2347; color: var(--text); font: inherit; font-size: 12.5px; padding: 0 8px; }
.ed-fmt .sepv { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.fmt-colors { display: flex; gap: 4px; padding: 0 4px; } .ed-fmt .sw { min-width: 0; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid #3b2f63; }
.ed-fmt .sw0 { background: linear-gradient(135deg, #fff 45%, #e11d48 45% 55%, #fff 55%); }
.ed-pop { position: fixed; z-index: 60; width: 300px; padding: 10px; border-radius: 14px; background: #1a1529; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.pop-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 2px 4px 8px; }
.pop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.pop-grid button { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; }
.pop-grid button:hover { background: #2a2145; }
kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--panel-2); font: 600 11px/1.5 ui-monospace, monospace; color: var(--text); text-align: center; }
.ed-hint { margin: 0; }

/* użytkownicy i dostęp do firm */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.row-start { display: flex; flex-wrap: wrap; gap: 10px; }
.ufm { align-items: start; } .ufm-actions { grid-column: 1 / -1; }
.roles { display: flex; flex-direction: column; gap: 8px; }
.rolecard { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; }
.rolecard:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(139, 92, 246, .25); background: #221a3a; }
.rolecard input { margin-top: 3px; accent-color: var(--violet); }
.rolecard b { display: block; color: var(--text); font-size: 14px; } .rolecard small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.orgpick { display: flex; flex-direction: column; gap: 8px; }
.orgopt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; }
.orgopt:has(input:checked) { border-color: var(--violet); background: #221a3a; }
.orgopt input { width: 18px; height: 18px; accent-color: var(--violet); }
.orgopt b { display: block; color: var(--text); } .orgopt small { display: block; }
.orgav { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #4c1d95); color: #fff; font-weight: 700; }
#orgBox.dim { opacity: .45; pointer-events: none; }
.tplthumb.live { position: relative; display: block; height: 210px; padding: 0; background: #eceaf2; }
.tplthumb.live iframe { position: absolute; left: 0; top: 0; width: 640px; height: 1400px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .3)); pointer-events: none; }
.tplthumb.live::after { content: ""; position: absolute; inset: 0; }
.tplcard:hover .tplthumb.live { box-shadow: 0 0 0 2px var(--violet-d); }
.tplprev { position: relative; z-index: 2; }

/* kreator 1.2 – wybieraki stylów, nowe bloki, podgląd */
.palsearch { width: 100%; min-height: 38px; margin: 0 0 12px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-3); color: var(--text); font: inherit; font-size: 13px; }
.chooser { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.chooser button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 4px 7px; border-radius: 10px; border: 1px solid var(--line); background: #f7f6fb; cursor: pointer; font: inherit; color: #3b3650; min-width: 0; }
.chooser button small { font-size: 10.5px; font-weight: 600; color: #6b6680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chooser button:hover { border-color: var(--violet-2); }
.chooser button.on { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(139, 92, 246, .45); background: #fff; }
.chooser .cp { min-height: 30px; display: flex; align-items: center; justify-content: center; width: 100%; font-size: 18px; color: #4b4660; }
.ch-mark .cp { font-weight: 800; color: #7c3aed; }
.chooser .cp img { width: 20px; height: 20px; object-fit: contain; }
.fp { display: block; width: 44px; height: 30px; background: linear-gradient(160deg, #7aa7d8, #9fbf8a 60%, #476a55); position: relative; }
.fp-rounded { border-radius: 7px; } .fp-circle { width: 30px; border-radius: 50%; } .fp-border { border: 3px solid var(--acc); border-radius: 6px; }
.fp-shadow { border-radius: 6px; box-shadow: 0 5px 10px rgba(0, 0, 0, .3); } .fp-offset { border-radius: 4px; box-shadow: 5px 5px 0 var(--acc); width: 38px; height: 25px; }
.fp-polaroid { border: 4px solid #fff; border-bottom-width: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); } .fp-passe { border: 5px solid var(--soft); border-radius: 8px; outline: 1px solid #e3dff0; }
.bxp { display: block; width: 46px; height: 28px; border-radius: 6px; font-style: normal; }
.cl { display: flex; gap: 3px; width: 46px; height: 28px; }
.cl::before, .cl::after { content: ""; flex: 1; border-radius: 4px; }
.cl-card::before, .cl-card::after { background: #e9e4fb; }
.cl-imgtop::before, .cl-imgtop::after { background: linear-gradient(#7aa7d8 0 55%, #e9e4fb 55%); }
.cl-outline::before, .cl-outline::after { border: 1.5px solid #c9c2e0; }
.cl-plain::before, .cl-plain::after { background: repeating-linear-gradient(#c9c2e0 0 2px, transparent 2px 6px); border-radius: 0; }
.lp { display: block; width: 46px; height: 28px; border-radius: 5px; }
.lp-bg { background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), linear-gradient(160deg, #7aa7d8, #9fbf8a 60%, #476a55); position: relative; }
.lp-bg::after { content: "Aa"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 11px Arial; }
.dv { display: block; width: 46px; height: 4px; }
.listed { display: flex; flex-direction: column; gap: 6px; }
.lrow { display: grid; gap: 6px; align-items: center; }
.lrow input { min-height: 36px; border-radius: 8px; background: var(--panel-3); border: 1px solid var(--line); padding: 0 8px; font: inherit; font-size: 13px; color: var(--text); min-width: 0; }
.minigrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.miniimg { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; border: 1.5px dashed var(--line-2); background: var(--panel-3); display: grid; place-items: center; cursor: pointer; overflow: hidden; font-size: 11.5px; color: var(--muted); }
.miniimg.has { border-style: solid; border-color: var(--line); }
.miniimg img { width: 100%; height: 100%; object-fit: cover; }
.miniimg:hover, .miniimg.over { border-color: var(--violet); }
.miniimg button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 10px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 10px; cursor: pointer; }
.emj { display: flex; flex-wrap: wrap; gap: 2px; }
.emj button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 15px; color: var(--text); }
.emj button:hover { border-color: var(--violet); }
.ed-fmt.plain .rich-only { display: none !important; }
.ed-fmt { position: sticky; }
.emoji-pop { position: absolute; top: 100%; right: 0; margin-top: 6px; width: 252px; padding: 6px; border-radius: 12px; background: #1d1730; border: 1px solid var(--line-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; z-index: 5; }
.emoji-pop button { height: 30px; border: 0; border-radius: 6px; background: transparent; font-size: 17px; cursor: pointer; padding: 0; min-width: 0 !important; }
.emoji-pop button:hover { background: #2c2347; }
.th-group { grid-column: 1 / -1; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 6px 2px 0; }
.theme em { margin-left: auto; font-style: normal; opacity: .8; }
.bi-gallery::before { left: 4px; top: 4px; width: 8px; height: 5px; box-shadow: 10px 0 0 var(--violet-2), 0 7px 0 var(--violet-2), 10px 7px 0 var(--violet-2); }
.bi-box::before { inset: 4px; background: transparent; border: 1.5px solid var(--violet-2); border-radius: 4px; } .bi-box::after { left: 8px; right: 8px; top: 9px; height: 2px; }
.bi-bar::before { left: 2px; right: 2px; top: 3px; height: 5px; } .bi-bar::after { left: 6px; right: 6px; top: 11px; height: 2px; opacity: .4; }
.bi-icons::before { left: 3px; top: 6px; width: 6px; height: 6px; border-radius: 50%; box-shadow: 7px 0 0 var(--violet-2), 14px 0 0 var(--violet-2); } .bi-icons::after { left: 3px; right: 3px; top: 15px; height: 1.5px; opacity: .5; }
.bi-steps::before { left: 4px; top: 3px; width: 5px; height: 5px; border-radius: 50%; box-shadow: 0 7px 0 var(--violet-2); } .bi-steps::after { left: 12px; right: 4px; top: 4px; height: 10px; background: repeating-linear-gradient(var(--violet-2) 0 2px, transparent 2px 7px); }
.bi-stats::before { content: "123"; background: none; color: var(--violet-2); font: 800 9px/20px Arial; left: 0; right: 0; text-align: center; }
.bi-pricing::before { left: 3px; top: 5px; width: 6px; height: 11px; opacity: .6; box-shadow: 14px 0 0 var(--violet-2); } .bi-pricing::after { left: 10px; top: 3px; width: 6px; height: 14px; }
.bi-coupon::before { inset: 5px 3px; background: transparent; border: 1.5px dashed var(--violet-2); } .bi-coupon::after { left: 8px; right: 8px; top: 9px; height: 2px; }
.bi-event::before { left: 6px; right: 6px; top: 3px; height: 4px; border-radius: 2px 2px 0 0; } .bi-event::after { left: 6px; right: 6px; top: 7px; height: 10px; background: transparent; border: 1.5px solid var(--violet-2); border-top: 0; border-radius: 0 0 2px 2px; }
.bi-rating::before { content: "★★★"; background: none; color: var(--violet-2); font: 9px/20px Arial; left: 0; right: 0; text-align: center; letter-spacing: -1px; }
.sp-bar { height: 3px; background: #8b5cf6; } .sp-gallery { height: 10px; background: linear-gradient(90deg, #c9d8ee 30%, transparent 30% 35%, #c9d8ee 35% 65%, transparent 65% 70%, #c9d8ee 70%); }
.sp-box, .sp-coupon { height: 8px; background: #ede9fe; border: 1px dashed #8b5cf6; } .sp-pricing { height: 10px; background: linear-gradient(90deg, #ede9fe 30%, transparent 30% 35%, #8b5cf6 35% 65%, transparent 65% 70%, #ede9fe 70%); }
.sp-stats, .sp-icons, .sp-steps { height: 6px; background: radial-gradient(circle, #8b5cf6 2px, transparent 2.5px) 0 0 / 14px 6px; } .sp-event, .sp-rating { height: 7px; background: #ede9fe; border-left: 6px solid #8b5cf6; }
.sp-logo { height: 5px; background: #2a2440; }
/* podgląd gotowej wiadomości */
.pvdlg { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0814; color: var(--text); }
.pvdlg::backdrop { background: rgba(0, 0, 0, .7); }
.pvdlg[open] { display: flex; flex-direction: column; }
.pv-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #120e1d; flex-wrap: wrap; }
.pv-note { flex: 1; min-width: 200px; }
.ol-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #0f6cbd; color: #fff; font-size: 11px; font-weight: 800; }
.seg button.on .ol-ic { background: #fff; color: var(--violet-d); }
.pv-stage { flex: 1; overflow: auto; padding: 26px 18px 40px; display: flex; justify-content: center; align-items: flex-start; background: radial-gradient(ellipse at top, #1d1630, #0b0814 70%); }
.pv-win { width: min(980px, 100%); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); color: #1f1a2e; }
.pv-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ecebf1; font-size: 12px; color: #6b6680; }
.pv-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; } .pv-bar i:nth-child(2) { background: #fbbf24; } .pv-bar i:nth-child(3) { background: #34d399; }
.pv-bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-whead, .pv-ohead { padding: 16px 22px 12px; border-bottom: 1px solid #ecebf1; display: flex; flex-direction: column; gap: 10px; }
.pv-whead b, .pv-ohead b { font-size: 19px; }
.pv-from { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.pv-from i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; }
.pv-from small { display: block; font-weight: 400; color: #8a84a0; margin-left: 6px; }
.pv-frame { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.pv-win.ol { font-family: 'Segoe UI', Arial, sans-serif; border-radius: 4px; }
.pv-olbar { display: flex; gap: 18px; align-items: center; padding: 9px 16px; background: #0f6cbd; color: #fff; font-size: 13px; }
.pv-olbar b { margin-right: 10px; }
.pv-ohead { background: #faf9f8; }
.pv-text { margin: 0; padding: 22px; white-space: pre-wrap; font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace; color: #1f1a2e; min-height: 400px; }
.pv-phone { width: 400px; max-width: 100%; height: 820px; border-radius: 52px; border: 12px solid #050407; background: #fff; box-shadow: 0 0 0 2px #2a2440, 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; display: flex; flex-direction: column; position: relative; color: #1f1a2e; }
.pv-notch { position: absolute; top: 8px; left: 50%; width: 110px; height: 28px; margin-left: -55px; border-radius: 16px; background: #050407; z-index: 2; }
.pv-mhead { padding: 46px 16px 12px; border-bottom: 1px solid #ecebf1; display: flex; flex-direction: column; gap: 8px; }
.pv-back { color: #0a84ff; font-size: 14px; } .pv-mhead b { font-size: 17px; line-height: 1.3; }
.pv-phone .pv-frame { flex: 1; height: auto; }
.pv-phone.dark { background: #000; color: #f2f2f7; } .pv-phone.dark .pv-mhead { border-color: #222; } .pv-phone.dark .pv-frame { background: #000; } .pv-phone.dark .pv-from small { color: #8e8e93; }
@media (max-width: 700px) { .pv-phone { height: 74vh; } .pv-top .seg span { display: none; } }
.vars-pop { display: block; width: 300px; left: auto; right: 0; padding: 12px; }
.vp-h { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.vp-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.vp-list button { min-width: 0 !important; height: auto !important; padding: 6px 10px !important; border-radius: 99px !important; background: #ede9fe !important; color: #5b21b6 !important; font-weight: 700 !important; font-size: 12.5px !important; }
.vp-list button:hover { background: #ddd3fd !important; }
.vp-fb { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.vp-fb input { min-height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--text); padding: 0 10px; font: inherit; font-size: 13px; }
.vp-n { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.var-edit { width: 280px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.var-edit[hidden] { display: none; }
/* wysyłka na żywo */
.bigpct { display: inline-flex; align-items: center; gap: 12px; }
.spin { display: none; width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(139, 92, 246, .22); border-top-color: var(--violet-2); animation: nmSpin .8s linear infinite; }
.worknow { display: none; font-size: 13px; font-weight: 600; color: var(--violet-2); }
.livebig.sending .spin, .livebig.sending .worknow, .spin.on { display: inline-block; }
@keyframes nmSpin { to { transform: rotate(360deg); } }
.livebig.sending .bar i.ok { position: relative; background-image: linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%); background-size: 24px 24px; animation: nmStripes .8s linear infinite; box-shadow: 0 0 18px rgba(139, 92, 246, .65); }
.livebig.sending .bar i.ok::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55)); animation: nmGlow 1.6s ease-in-out infinite; }
.livebig.sending { box-shadow: 0 0 0 1px rgba(139, 92, 246, .35), 0 10px 40px rgba(124, 58, 237, .18); }
@keyframes nmStripes { to { background-position: 24px 0; } }
@keyframes nmGlow { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.bar.sm.live i { background-image: linear-gradient(45deg, rgba(255,255,255,.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.2) 75%, transparent 75%); background-size: 14px 14px; animation: nmStripes .8s linear infinite; }
.flow { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 14px; align-items: start; }
@media (max-width: 800px) { .flow { grid-template-columns: 1fr; } .flow-arrow { display: none !important; } }
.flow-col h2 { margin-bottom: 10px; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; min-width: 0; }
.feed li .em { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed li.new { animation: nmFeedIn .6s ease; border-color: var(--violet-d); }
.feed li.up { border-color: var(--line-2); background: #221a3a; }
.feed .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #4a4166; }
.feed .dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, .6); } .feed .dot.err { background: var(--err); }
.feed li.up .dot.q { background: var(--violet-2); animation: nmPulse 1.2s ease-in-out infinite; }
@keyframes nmFeedIn { from { opacity: 0; transform: translateX(-14px); background: #2b2150; } to { opacity: 1; transform: none; } }
@keyframes nmPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 181, 253, .6); } 50% { box-shadow: 0 0 0 6px rgba(196, 181, 253, 0); } }
.flow-arrow { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 120px; }
.flow-arrow span { width: 14px; height: 14px; border-right: 3px solid var(--line-2); border-top: 3px solid var(--line-2); transform: rotate(45deg); margin-left: -4px; }
.flow.on .flow-arrow span { border-color: var(--violet); animation: nmArrow 1.2s ease-in-out infinite; }
.flow.on .flow-arrow span:nth-child(2) { animation-delay: .2s; } .flow.on .flow-arrow span:nth-child(3) { animation-delay: .4s; }
@keyframes nmArrow { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* kreator 1.3 – ikony, czcionki, tło */
.fontpick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fontbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-3); color: var(--text); cursor: pointer; text-align: left; min-width: 0; font: inherit; }
.fontbtn small { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.fontbtn b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fontbtn:hover { border-color: var(--violet-d); } .fontbtn.sm b { font-size: 14px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--violet-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.linkbtn:hover { color: var(--violet-3); text-decoration: underline; }
.subhead { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); margin: 4px 0 -4px; }
.bgsw { display: flex; flex-wrap: wrap; gap: 6px; }
.bgsw button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); cursor: pointer; padding: 0; }
.bgsw button.on { box-shadow: 0 0 0 2px var(--violet); }
.bg-theme { background: linear-gradient(135deg, var(--violet-d), #2a2440); color: #fff; font-weight: 800; font-size: 12px; }
input.colorbox { flex: none; width: 38px !important; height: 34px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-3); cursor: pointer; }
.icopick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-3); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.icopick:hover { border-color: var(--violet-d); }
.icopick .ip { flex: none; width: 34px; height: 34px; border-radius: 8px; background: #f4f2fa; display: grid; place-items: center; font-size: 19px; overflow: hidden; }
.icopick .ip img { width: 20px; height: 20px; object-fit: contain; }
.icopick.mini { padding: 2px; width: 38px; height: 36px; justify-content: center; } .icopick.mini .ip { width: 30px; height: 30px; }
.lay { display: block; width: 46px; height: 28px; position: relative; }
.lay::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #8b5cf6; }
.lay::after { content: ""; position: absolute; height: 8px; background: repeating-linear-gradient(#c9c2e0 0 2px, transparent 2px 4px); }
.lay-top::before { left: 17px; top: 1px; } .lay-top::after { left: 8px; right: 8px; top: 17px; }
.lay-left::before { left: 4px; top: 8px; } .lay-left::after { left: 20px; right: 4px; top: 10px; }
.shp { display: block; width: 26px; height: 26px; }
.qrp { display: block; width: 28px; height: 28px; background-size: 7px 7px; }
.qs { background-image: linear-gradient(90deg, #222 50%, transparent 50%), linear-gradient(#222 50%, transparent 50%); background-blend-mode: multiply; background-color: #fff; }
.qr { background-image: radial-gradient(circle, #222 55%, transparent 60%); border-radius: 3px; }
.qd { background-image: radial-gradient(circle, #222 38%, transparent 42%); }
.socp { display: flex; gap: 3px; } .socp img { width: 14px; height: 14px; padding: 5px; border-radius: 50%; background: #e9e4fb; }
.dots3 { display: flex; gap: 3px; } .dots3 i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.socrow { grid-template-columns: 30px 120px minmax(0, 1fr) 32px !important; align-items: center; }
.socic { width: 28px; height: 28px; border-radius: 8px; background: #f4f2fa; display: grid; place-items: center; } .socic img { width: 15px; height: 15px; }
/* okna wyboru ikon i czcionek */
.pickdlg { width: min(980px, calc(100vw - 32px)); height: min(760px, calc(100vh - 40px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: #15111f; color: var(--text); overflow: hidden; }
.pickdlg[open] { display: flex; flex-direction: column; }
.pickdlg::backdrop { background: rgba(0, 0, 0, .65); }
.pk-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pk-head h2 { margin-right: 6px; }
.pk-head input { flex: 1; min-width: 180px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--text); padding: 0 12px; font: inherit; font-size: 14px; }
.pk-head .iconbtn { margin-left: auto; }
.pk-cats { display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; border-bottom: 1px solid var(--line); flex: none; align-items: center; scrollbar-width: thin; }
.pk-cats button { flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pk-cats button.on { background: var(--violet-d); border-color: var(--violet-d); color: #fff; }
.pk-grid { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; align-content: start; }
.pk-grid .ic { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px 8px; border-radius: 12px; border: 1px solid transparent; background: #f7f6fb; color: #2a2440; cursor: pointer; min-width: 0; font: inherit; }
.pk-grid .ic svg { width: 26px; height: 26px; fill: #2a2440; }
.pk-grid .ic small { font-size: 10.5px; color: #6b6680; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-grid .ic:hover { border-color: var(--violet); background: #fff; } .pk-grid .ic:hover svg { fill: var(--violet-d); }
.pk-grid .ic.on { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(139, 92, 246, .4); }
.pk-grid .ic.emo { font-size: 28px; padding: 12px 6px; }
.pk-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pk-foot > span { flex: 1; min-width: 200px; }
.pk-foot input { min-height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--text); padding: 0 10px; font: inherit; font-size: 13px; width: 170px; }
.fn-list { flex: 1; overflow-y: auto; padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; }
.fn-row { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f7f6fb; color: #1f1a2e; cursor: pointer; text-align: left; font: inherit; }
.fn-row:hover { border-color: var(--violet); background: #fff; } .fn-row.on { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(139, 92, 246, .4); }
.fn-n { font-size: 13px; font-weight: 700; } .fn-n small { font-weight: 500; color: #8a84a0; margin-left: 4px; }
.fn-s { font-size: 22px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .fn-row { grid-template-columns: 1fr; gap: 4px; } }
.ed-frame-wrap.light { background: #e9e7f0; } .ed-frame-wrap.light.dark { background: #2b2b2e; }
.bi-icon::before { left: 7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; } .bi-icon::after { left: 9px; top: 14px; width: 8px; height: 3px; opacity: .6; }
.bi-qr::before { inset: 3px 6px; background: conic-gradient(var(--violet-2) 25%, transparent 0 50%, var(--violet-2) 0 75%, transparent 0) 0 0 / 5px 5px; border-radius: 1px; }
.ed-hint { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
