/* kidsplace: лента — мягкий детский стиль. Работает с любым шаблоном.
   Цвета — переменные, их можно переопределить в templates/<шаблон>/controllers/kids/css/custom.css */
.kp-wrap, .kp-lb, .kp-ed, .kp-toast {
    --kp-ink: #2b2340; --kp-muted: #7a7090; --kp-bg: #ffffff; --kp-soft: #f6f2ff; --kp-line: #ece5fb;
    --kp-purple: #7b2ff7; --kp-pink: #ff2e93; --kp-red: #ff3b4f; --kp-blue: #1f8bff; --kp-green: #12c26a; --kp-orange: #ff8a00; --kp-yellow: #ffc400;
    --kp-r: 22px; --kp-r-s: 14px;
    --kp-shadow: 0 10px 28px rgba(76, 40, 160, .12), 0 2px 6px rgba(76, 40, 160, .06);
    --kp-font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --kp-hand: "Caveat", "Comic Sans MS", cursive;
}
.kp-wrap { max-width: 720px; margin: 0 auto; color: var(--kp-ink); font-family: var(--kp-font); font-weight: 600; }
.kp-wrap *, .kp-lb *, .kp-ed *, .kp-toast { box-sizing: border-box; }
.kp-wrap [hidden], .kp-ed [hidden] { display: none !important; }
.kp-wrap a { color: inherit; }

/* скругления сильнее любых правил шаблона (в некоторых шаблонах углы принудительно прямые) */
.kp-wrap .kp-post, .kp-wrap .kp-compose, .kp-wrap .kp-map, .kp-wrap .kp-pickmap, .kp-wrap .kp-empty, .kp-ed__box { border-radius: var(--kp-r) !important; }
.kp-wrap .kp-input, .kp-wrap .kp-place, .kp-wrap .kp-audio, .kp-wrap .kp-yt, .kp-wrap .kp-photo, .kp-wrap .kp-prev, .kp-wrap .kp-chip,
.kp-wrap .kp-gal__item, .kp-wrap .kp-ticket, .kp-ed canvas, .kp-ed .kp-ed__stage, .kp-wrap .kp-subtab { border-radius: var(--kp-r-s) !important; }
.kp-wrap .kp-btn, .kp-wrap .kp-tab, .kp-wrap .kp-kind, .kp-wrap .kp-tool, .kp-wrap .kp-badge, .kp-wrap .kp-place__cat,
.kp-ed .kp-btn, .kp-ed .kp-chipbtn, .kp-lb .kp-btn, .kp-toast { border-radius: 999px !important; }
.kp-wrap .kp-post__ava, .kp-wrap .kp-post__ava img, .kp-ed .kp-swatch, .kp-wrap .kp-yt__play { border-radius: 50% !important; }

.kp-h1 { font-family: var(--kp-font); font-weight: 900; letter-spacing: -.02em; margin: 0 0 .9rem; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.kp-h1::after { content: ""; display: block; width: 110px; height: 14px; margin-top: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='14'%3E%3Cpath d='M3 8c9-7 16 6 25 0s16 6 25 0 16 6 25 0 15 5 27 0' fill='none' stroke='%23ff2e93' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / 110px 14px; }

/* вкладки разделов */
.kp-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px 6px; scrollbar-width: none; }
.kp-tabs::-webkit-scrollbar { display: none; }
.kp-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; background: var(--kp-bg); box-shadow: 0 3px 10px rgba(76, 40, 160, .10); padding: 8px 15px; font-weight: 800; font-size: .92rem; text-decoration: none !important; white-space: nowrap; color: var(--kp-ink) !important; transition: transform .15s; }
.kp-tab::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--kp-purple); }
.kp-tab:nth-child(2)::before { background: var(--kp-pink); } .kp-tab:nth-child(3)::before { background: var(--kp-red); }
.kp-tab:nth-child(4)::before { background: var(--kp-orange); } .kp-tab:nth-child(5)::before { background: var(--kp-green); }
.kp-tab:nth-child(6)::before { background: var(--kp-blue); } .kp-tab:nth-child(7)::before { background: var(--kp-yellow); }
.kp-tab:hover { transform: translateY(-2px); }
.kp-tab.is-on { background: linear-gradient(135deg, var(--kp-purple), var(--kp-pink)); color: #fff !important; }
.kp-tab.is-on::before { background: #fff; }
.kp-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 14px; }
.kp-subtab { padding: 5px 12px; background: var(--kp-soft); color: var(--kp-purple) !important; font-weight: 800; font-size: .85rem; text-decoration: none !important; }
.kp-subtab.is-on { background: var(--kp-purple); color: #fff !important; }

/* кнопки */
.kp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--kp-soft); color: var(--kp-purple); font: inherit; font-weight: 800; padding: 9px 16px; cursor: pointer; text-decoration: none !important; transition: transform .12s, box-shadow .12s, background .12s; }
.kp-btn:hover { transform: translateY(-1px); background: #ede4ff; }
.kp-btn:active { transform: translateY(1px); }
.kp-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kp-btn--main { background: linear-gradient(135deg, var(--kp-purple), var(--kp-pink)); color: #fff !important; box-shadow: 0 6px 16px rgba(255, 46, 147, .35); }
.kp-btn--main:hover { background: linear-gradient(135deg, #6a1ff0, #ff1f86); box-shadow: 0 8px 20px rgba(255, 46, 147, .45); }
.kp-btn--ok { background: var(--kp-green); color: #fff; }
.kp-btn--here { background: #e6f9ef; color: #0a8a4a; }
.kp-btn[disabled], .kp-btn.is-busy { opacity: .55; pointer-events: none; }
.kp-link { border: 0; background: none; color: var(--kp-muted); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; padding: 4px 6px; }
.kp-link:hover { color: var(--kp-red); }

/* форма */
.kp-compose { background: var(--kp-bg); box-shadow: var(--kp-shadow); padding: 14px; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.kp-compose::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--kp-purple), var(--kp-pink), var(--kp-orange), var(--kp-yellow), var(--kp-green), var(--kp-blue)); }
.kp-kinds { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.kp-kind { border: 0; background: var(--kp-soft); color: var(--kp-muted); font: inherit; font-weight: 800; padding: 7px 14px; cursor: pointer; }
.kp-kind.is-on { background: var(--kp-ink); color: #fff; }
.kp-input { width: 100%; border: 2px solid var(--kp-line); background: #fcfbff; color: var(--kp-ink); font: inherit; font-weight: 600; font-size: 16px; padding: 10px 12px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.kp-input:focus { outline: 0; border-color: var(--kp-purple); box-shadow: 0 0 0 4px rgba(123, 47, 247, .12); background: #fff; }
.kp-input.is-auto { background: #effcf5; border-color: #bfeed4; }
.kp-text { resize: vertical; min-height: 74px; }
.kp-extra { display: flex; flex-direction: column; gap: 8px; }
.kp-row { display: flex; gap: 8px; }
.kp-row > * { flex: 1; }
.kp-row--addr > .kp-btn { flex: none; }
.kp-lbl { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 800; color: var(--kp-muted); }
.kp-pickmap { height: 230px; z-index: 0; box-shadow: inset 0 0 0 2px var(--kp-line); overflow: hidden; }
.kp-hint { margin: 0; font-size: .8rem; color: var(--kp-muted); }
.kp-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 2px dotted var(--kp-line); padding-top: 10px; }
.kp-tools__spacer { flex: 1; }
.kp-tool { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--kp-soft); color: var(--kp-purple); font: inherit; font-weight: 800; font-size: .9rem; padding: 8px 13px; cursor: pointer; margin: 0; }
.kp-tool:nth-of-type(2) { background: #ffe9f4; color: #d1126e; }
.kp-tool:nth-of-type(3) { background: #fff3e0; color: #c25e00; }
.kp-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.kp-tool:hover { filter: brightness(.97); transform: translateY(-1px); }
.kp-ytinput { display: flex; gap: 8px; }
.kp-previews, .kp-ytlist { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-previews:empty, .kp-ytlist:empty, .kp-audiolist:empty { display: none; }
.kp-prev { position: relative; width: 78px; height: 78px; overflow: hidden; background: var(--kp-soft); box-shadow: 0 3px 8px rgba(76, 40, 160, .15); }
.kp-prev--yt { width: 124px; }
.kp-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-prev.is-loading img { opacity: .4; }
.kp-prev button, .kp-chip button { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(43, 35, 64, .75); color: #fff; width: 22px; height: 22px; border-radius: 50%; line-height: 1; cursor: pointer; }
.kp-audiolist { display: flex; flex-direction: column; gap: 6px; }
.kp-chip { position: relative; padding: 8px 34px 8px 12px; font-size: .9rem; background: #fff3e0; }
.kp-chip.is-loading { opacity: .5; }
.kp-login { margin: 0 0 20px; }

/* запись */
.kp-list { display: flex; flex-direction: column; gap: 20px; }
.kp-post { --c: var(--kp-purple); --t: #f4edff; background: var(--kp-bg); box-shadow: var(--kp-shadow); padding: 14px 16px 8px; position: relative; overflow: hidden; }
.kp-post::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.kp-c-pink { --c: var(--kp-pink); --t: #ffe9f4; } .kp-c-blue { --c: var(--kp-blue); --t: #e7f2ff; } .kp-c-green { --c: var(--kp-green); --t: #e6f9ef; }
.kp-c-orange { --c: var(--kp-orange); --t: #fff1e0; } .kp-c-red { --c: var(--kp-red); --t: #ffe8eb; } .kp-c-purple { --c: var(--kp-purple); --t: #f4edff; }
.kp-post__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.kp-post__ava { flex: none; width: 42px; height: 42px; overflow: hidden; display: block; box-shadow: 0 0 0 3px var(--t); }
.kp-post__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-post__who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.kp-post__who a:first-child { font-weight: 900; text-decoration: none; }
.kp-post__date { font-size: .78rem; color: var(--kp-muted) !important; text-decoration: none; }
.kp-badge { margin-left: auto; font-size: .7rem; font-weight: 900; letter-spacing: .04em; padding: 4px 10px; white-space: nowrap; }
.kp-badge + .kp-badge { margin-left: 4px; }
.kp-badge--place { background: #f4edff; color: var(--kp-purple); }
.kp-badge--event { background: #ffe8eb; color: #d81b30; }
.kp-badge--pending { background: #fff6d6; color: #9a6b00; }
.kp-post__text { line-height: 1.6; overflow-wrap: anywhere; margin: 6px 0 8px; font-weight: 600; }
.kp-post__text a { color: var(--kp-blue); }
.kp-post__foot { display: flex; align-items: center; gap: 8px; border-top: 2px dotted var(--kp-line); margin-top: 8px; padding-top: 6px; }
.kp-post__spacer { flex: 1; }
.kp-like { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-weight: 900; cursor: pointer; padding: 5px 8px; color: var(--kp-muted); border-radius: 999px; }
.kp-like:hover { background: #ffe9f4; }
.kp-like svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; transition: transform .2s; }
.kp-like.is-on { color: var(--kp-pink); }
.kp-like.is-on svg { fill: var(--kp-pink); animation: kp-pop .35s ease; }
@keyframes kp-pop { 50% { transform: scale(1.35); } }

/* событие — билетик */
.kp-ticket { display: flex; margin: 4px 0 8px; position: relative; overflow: hidden; box-shadow: 0 6px 16px rgba(255, 59, 79, .22); }
.kp-ticket__main { flex: 1; min-width: 0; background: linear-gradient(135deg, var(--kp-red), var(--kp-orange)); color: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.kp-ticket__title { font-size: 1.15rem; font-weight: 900; line-height: 1.15; }
.kp-ticket__meta { font-size: .85rem; font-weight: 700; opacity: .95; }
.kp-ticket__meta:empty { display: none; }
.kp-ticket__stub { width: 94px; flex: none; border-left: 3px dashed #ffc9cf; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff; }
.kp-ticket__day { font-size: 1.7rem; font-weight: 900; color: var(--kp-red); line-height: 1; }
.kp-ticket__time { font-size: .8rem; font-weight: 900; color: var(--kp-muted); }

/* место */
.kp-place { background: var(--t, #f4edff); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; margin: 4px 0 6px; }
.kp-place__cat { align-self: flex-start; font-size: .72rem; font-weight: 900; background: #fff; color: var(--c, var(--kp-purple)); padding: 2px 10px; }
.kp-place__title { font-size: 1.12rem; font-weight: 900; }
.kp-place__addr { font-size: .86rem; color: var(--kp-muted); }
.kp-onmap { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; font-weight: 900; color: var(--kp-purple) !important; margin: 0 0 6px; text-decoration: none; }

/* фото */
.kp-photos { display: grid; gap: 6px; margin: 8px 0; }
.kp-photos--1 { grid-template-columns: 1fr; }
.kp-photos--2 { grid-template-columns: 1fr 1fr; }
.kp-photos--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.kp-photos--3 .kp-photo:first-child { grid-row: span 2; }
.kp-photos--4 { grid-template-columns: 1fr 1fr; }
.kp-photo { position: relative; display: block; overflow: hidden; background-size: cover; background-position: center; aspect-ratio: 4 / 3; }
.kp-photos--1 .kp-photo { aspect-ratio: auto; max-height: 520px; background: #f6f2ff; }
.kp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.kp-photo:hover img { transform: scale(1.03); }
.kp-photos--1 .kp-photo img { height: auto; max-height: 520px; object-fit: contain; }
.kp-photo__more { position: absolute; inset: 0; background: rgba(43, 35, 64, .5); color: #fff; font-size: 1.8rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* видео */
.kp-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 8px 0; background: #1d1830; cursor: pointer; overflow: hidden; }
.kp-yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-yt__play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(255, 46, 147, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .15s; }
.kp-yt__play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.kp-yt:hover .kp-yt__play { transform: scale(1.1); }
iframe.kp-yt { height: auto; }

/* аудио */
.kp-audio { background: #fff3e0; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.kp-audio__title { font-weight: 900; font-size: .94rem; overflow-wrap: anywhere; color: #8a4500; }
.kp-audio audio { width: 100%; height: 40px; }

/* галерея — как полароиды */
.kp-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 4px; }
.kp-gal--w { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kp-gal__item { display: block; aspect-ratio: 1; overflow: hidden; background-color: #fff; background-size: cover; background-position: center; border: 5px solid #fff; box-shadow: 0 6px 16px rgba(76, 40, 160, .16); transition: transform .2s; }
.kp-gal__item:nth-child(4n+1) { transform: rotate(-2deg); } .kp-gal__item:nth-child(4n+2) { transform: rotate(1.5deg); }
.kp-gal__item:nth-child(4n+3) { transform: rotate(-1deg); } .kp-gal__item:nth-child(4n) { transform: rotate(2deg); }
.kp-gal__item:hover { transform: rotate(0) scale(1.05); z-index: 1; position: relative; }
.kp-gal__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-sec-video .kp-post__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* карта */
.kp-map { height: 70vh; min-height: 360px; box-shadow: var(--kp-shadow); z-index: 0; overflow: hidden; }

.kp-empty { text-align: center; color: var(--kp-muted); background: var(--kp-soft); padding: 28px 12px; font-weight: 800; }
.kp-morewrap { text-align: center; margin: 18px 0 6px; }
.kp-back { margin: 0 0 12px; font-weight: 800; }
.kp-widget .kp-post { box-shadow: 0 4px 14px rgba(76, 40, 160, .1); }
.kp-widget .kp-compose { margin-bottom: 0; }

/* окно фото */
.kp-lb { position: fixed; inset: 0; z-index: 3000; background: rgba(35, 25, 60, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.kp-lb img { max-width: 100%; max-height: calc(100% - 80px); border-radius: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.kp-lb__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--kp-ink); font-size: 24px; cursor: pointer; }
.kp-lb__bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kp-lb__bar .kp-btn { background: #fff; }

.kp-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 3100; max-width: 92vw; background: var(--kp-ink); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); padding: 11px 18px; font-family: var(--kp-font); font-weight: 800; transition: opacity .4s; }
.kp-toast.is-ok { background: var(--kp-green); }
.kp-toast.is-out { opacity: 0; }

/* ===== редактор фото ===== */
.kp-ed { position: fixed; inset: 0; z-index: 3050; background: rgba(35, 25, 60, .6); display: flex; align-items: center; justify-content: center; padding: 10px; font-family: var(--kp-font); color: var(--kp-ink); }
.kp-ed__box { background: #fff; width: 100%; max-width: 760px; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.kp-ed__head { display: flex; align-items: center; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px dotted var(--kp-line); }
.kp-ed__head::-webkit-scrollbar { display: none; }
.kp-ed__tab { flex: none; border: 0; background: var(--kp-soft); color: var(--kp-purple); font: inherit; font-weight: 800; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.kp-ed__tab.is-on { background: linear-gradient(135deg, var(--kp-purple), var(--kp-pink)); color: #fff; }
.kp-ed__x { margin-left: auto; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--kp-soft); font-size: 22px; cursor: pointer; color: var(--kp-ink); }
.kp-ed__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#f6f2ff 0 25%, #fff 0 50%) 0 0 / 22px 22px; padding: 10px; margin: 10px; overflow: hidden; }
.kp-ed canvas { max-width: 100%; max-height: 58vh; touch-action: none; box-shadow: 0 6px 20px rgba(76, 40, 160, .18); background: #fff; }
.kp-ed__panel { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.kp-ed__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kp-ed__row label { font-size: .82rem; font-weight: 800; color: var(--kp-muted); }
.kp-ed__row input[type=range] { flex: 1; min-width: 140px; accent-color: var(--kp-purple); }
.kp-ed .kp-input { width: 100%; border: 2px solid var(--kp-line); border-radius: 14px; padding: 9px 12px; font: inherit; font-weight: 700; font-size: 16px; }
.kp-swatch { width: 34px; height: 34px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--kp-line); cursor: pointer; padding: 0; flex: none; }
.kp-swatch.is-on { box-shadow: 0 0 0 3px var(--kp-ink); transform: scale(1.08); }
.kp-chipbtn { border: 0; background: var(--kp-soft); padding: 6px 10px; cursor: pointer; font: inherit; font-weight: 800; color: var(--kp-purple); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; }
.kp-chipbtn.is-on { background: var(--kp-purple); color: #fff; }
.kp-chipbtn svg { width: 26px; height: 26px; }
.kp-ed__foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px 12px; border-top: 2px dotted var(--kp-line); }
.kp-ed__foot .kp-btn--main { margin-left: auto; }

/* тёмная тема шаблона */
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap { --kp-bg: #241d36; --kp-soft: #30264a; --kp-line: #3b3156; --kp-ink: #f4f0ff; --kp-muted: #b4aacb; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-input { background: #1d172c; }

@media (max-width: 575.98px) {
    .kp-row { flex-direction: column; }
    .kp-row--addr { flex-direction: row; flex-wrap: wrap; }
    .kp-row--addr > .kp-input { flex: 1 1 100%; }
    .kp-row--addr > .kp-btn { flex: 1; }
    .kp-post { padding: 12px 12px 6px; }
    .kp-gal { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .kp-gal__item { border-width: 3px; }
    .kp-map { height: 60vh; }
    .kp-ed { padding: 0; }
    .kp-ed__box { border-radius: 0 !important; height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .kp-gal__item, .kp-like svg, .kp-tab, .kp-btn { transition: none; animation: none; } }
.kp-wrap .kp-tool--cam { background: #e6f9ef; color: #0a8a4a; }

/* 1.2.0: «Почитать» — стихи, колыбельные, сказки, загадки */
.kp-badge--read { background: #e7f2ff; color: #1462c9; }
.kp-badge--read.kp-g-lullaby { background: #efe9ff; color: #5b21c4; }
.kp-badge--read.kp-g-tale { background: #fff1e0; color: #b35400; }
.kp-badge--read.kp-g-riddle { background: #e6f9ef; color: #0a8a4a; }
.kp-read { padding: 2px 0 6px; }
.kp-read__title { margin: 2px 0 10px; font-size: 1.35rem; font-weight: 900; letter-spacing: -.01em; }
.kp-read__title a { text-decoration: none; }
.kp-read__text { line-height: 1.7; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.kp-read--poem .kp-read__text, .kp-read--lullaby .kp-read__text { font-family: var(--kp-hand); font-size: 1.55rem; line-height: 1.35; font-weight: 700; padding: 6px 4px 6px 16px; border-left: 4px solid var(--c); }
.kp-read--lullaby .kp-read__text { color: #4b2a9e; }
.kp-read--riddle .kp-read__text { font-size: 1.15rem; font-weight: 800; background: #e6f9ef; border-radius: 16px; padding: 12px 14px; }
.kp-read__text.is-long { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.kp-read__more { font-weight: 900; color: var(--kp-purple); }
.kp-read__btn { margin-top: 10px; background: var(--kp-green); color: #fff; }
.kp-read__answer { margin-top: 10px; display: inline-block; font-weight: 900; font-size: 1.2rem; color: #0a8a4a; background: #fff; border: 2px dashed #9be0bb; border-radius: 14px; padding: 6px 14px; animation: kp-pop .35s ease; }
.kp-wrap .kp-read__btn { border-radius: 999px !important; }
.kp-wrap .kp-read__text { border-radius: 4px; }
.kp-wrap .kp-read--riddle .kp-read__text { border-radius: 16px !important; }

/* 1.2.2: карта сверху, ниже — места; выбранное место под картой */
.kp-wrap .kp-map--top { height: 48vh; min-height: 300px; max-height: 520px; margin-bottom: 14px; }
.kp-selected:empty { display: none; }
.kp-selected { margin: 0 0 18px; position: relative; }
.kp-selected .kp-post { box-shadow: 0 0 0 4px var(--kp-pink), var(--kp-shadow); animation: kp-pop .35s ease; }
.kp-selected__close { position: absolute; top: -12px; right: -6px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50% !important; background: var(--kp-ink); color: #fff; font-size: 18px; cursor: pointer; }
.kp-maplist__h { font-size: 1.25rem; font-weight: 900; margin: 6px 0 12px; }
.kp-post.is-hl { box-shadow: 0 0 0 4px var(--kp-yellow), var(--kp-shadow); }
.kp-mapmarker { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); }

/* 1.3.0: «Послушать», категории видео */
.kp-wrap .kp-listen { margin-top: 10px; background: #efe9ff; color: #5b21c4; }
.kp-wrap .kp-listen.is-on { background: var(--kp-grad); color: #fff; }
.kp-wrap .kp-listen.is-on svg { animation: kp-pop .8s ease infinite; }
.kp-vcat { margin: 0 0 4px; display: inline-block; }

/* 1.3.4: читаемость текстов в тёмной теме */
html .kp-wrap .kp-read--riddle .kp-read__text,
html .kp-read--riddle .kp-read__text { color: #0b3d24 !important; background: #e6f9ef !important; }
html .kp-read--riddle .kp-read__text * { color: inherit !important; }
html .kp-read__answer { color: #0a6b39 !important; background: #fff !important; }
html .kp-read--lullaby .kp-read__text { color: inherit; border-left-color: #8b5cf6; }

/* 1.4.0: выбранный тип записи и тёмная тема (раньше выбранная кнопка была белой на белом) */
.kp-wrap .kp-kind.is-on { background: linear-gradient(135deg, #7b2ff7, #ff2e93) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(255, 46, 147, .3); }
.kp-wrap .kp-subtab.is-on { background: linear-gradient(135deg, #7b2ff7, #ff2e93) !important; color: #fff !important; }
.kp-selected__close, .kp-toast { background-color: #2b2340; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-kind { color: #d9cff2; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-subtab { background: #30264a; color: #cdb8ff !important; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-input:focus,
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-input.is-auto { background: #1d172c; color: #f4f0ff; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-place { background: #30264a; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-place__cat { background: #241d36; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-audio,
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-chip { background: #3a2c1f; color: #ffe2c2; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-audio__title { color: #ffb766; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-ticket__stub { background: #2e2540; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-photos--1 .kp-photo { background: #30264a; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-listen { background: #3a2d5c; color: #d9c8ff; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-like:hover { background: #3d2440; }

/* 1.4.0: блок в профиле */
.kp-pb { max-width: none; margin: 14px 0; display: flex; flex-direction: column; gap: 14px; }
.kp-pb__nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kp-pb__num { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; color: #fff !important; text-decoration: none !important; border-radius: 20px !important; box-shadow: 0 8px 18px rgba(76, 40, 160, .18); transition: transform .15s; position: relative; overflow: hidden; }
.kp-pb__num::after { content: ""; position: absolute; width: 60px; height: 60px; right: -18px; top: -18px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.kp-pb__num:hover { transform: translateY(-3px) rotate(-1deg); }
.kp-pb__num b { font-size: 1.6rem; font-weight: 900; line-height: 1.05; }
.kp-pb__num small { font-size: .74rem; font-weight: 800; opacity: .95; }
.kp-pb__num--1 { background: linear-gradient(135deg, #7b2ff7, #a35cff); }
.kp-pb__num--2 { background: linear-gradient(135deg, #ff2e93, #ff6fb5); }
.kp-pb__num--3 { background: linear-gradient(135deg, #ff8a00, #ffc400); }
.kp-pb__num--4 { background: linear-gradient(135deg, #12c26a, #1f8bff); }
.kp-pb__card { background: var(--kp-bg); box-shadow: var(--kp-shadow); border-radius: var(--kp-r) !important; padding: 14px 16px; }
.kp-pb__h { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.1rem; margin-bottom: 10px; }
.kp-pb__h::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--kp-pink); }
.kp-pb__h a { margin-left: auto; font-size: .85rem; color: var(--kp-purple) !important; text-decoration: none; }
.kp-pb__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.kp-pb__badge { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 78px; text-align: center; font-size: .72rem; font-weight: 800; line-height: 1.15; }
.kp-pb__badge i { font-style: normal; font-size: 30px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
    background: conic-gradient(#7b2ff7, #ff2e93, #ff8a00, #ffc400, #12c26a, #1f8bff, #7b2ff7); box-shadow: inset 0 0 0 5px var(--kp-bg), 0 4px 10px rgba(76, 40, 160, .2);
    animation: kp-bob 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.kp-pb__badge.is-off { opacity: .45; filter: grayscale(1); }
.kp-pb__badge.is-off i { animation: none; }
@keyframes kp-bob { 50% { transform: translateY(-4px) rotate(4deg); } }
.kp-pb__gal { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kp-pb__empty { color: var(--kp-muted); margin: 0 0 10px; }
@media (max-width: 575.98px) {
    .kp-pb__nums { gap: 7px; } .kp-pb__num { padding: 10px 2px; } .kp-pb__num b { font-size: 1.3rem; } .kp-pb__num small { font-size: .66rem; }
    .kp-pb__gal { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .kp-pb__badges { gap: 8px 0; } .kp-pb__badge { width: 20%; font-size: .64rem; } .kp-pb__badge i { width: 50px; height: 50px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .kp-pb__badge i { animation: none; } }

/* 1.5.0: отметки, закреплённые, похожие, правка, автозагрузка */
.kp-wrap a.kp-badge { text-decoration: none !important; transition: transform .15s, filter .15s; }
.kp-wrap a.kp-badge:hover { transform: translateY(-1px); filter: brightness(.96); }
.kp-badge--pin { background: #fff6d6; color: #9a6b00; padding: 3px 8px; }
.kp-wrap a.kp-place__title { color: inherit; text-decoration: none; }
.kp-wrap a.kp-place__title:hover { color: var(--kp-purple); }
.kp-mark { display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: .85rem; padding: 6px 12px; border-radius: 999px !important;
    background: var(--kp-soft); color: var(--kp-purple); transition: transform .15s, background .15s; }
.kp-mark i { font-style: normal; font-size: 1rem; filter: grayscale(.6); transition: filter .2s; }
.kp-mark b { min-width: 0; }
.kp-mark b:empty { display: none; }
.kp-mark:hover { transform: translateY(-1px); }
.kp-mark.is-on { background: linear-gradient(135deg, #12c26a, #1f8bff); color: #fff; box-shadow: 0 4px 12px rgba(18, 194, 106, .3); }
.kp-mark--going.is-on { background: linear-gradient(135deg, #ff8a00, #ff2e93); box-shadow: 0 4px 12px rgba(255, 46, 147, .3); }
.kp-mark.is-on i { filter: none; }
.kp-mark.is-pop i { animation: kp-pop .4s ease; }
.kp-pinbtn { filter: grayscale(1); opacity: .5; font-size: 1.05rem; border: 0; background: none; cursor: pointer; padding: 4px 6px; }
.kp-pinbtn.is-on { filter: none; opacity: 1; }
.kp-post__foot .kp-link { text-decoration: none; font-weight: 800; color: var(--kp-muted); border: 0; background: none; cursor: pointer; font: inherit; font-size: .85rem; }
.kp-post__foot { flex-wrap: wrap; }
.kp-similar { margin-top: 26px; }
.kp-similar__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.25rem; font-weight: 900; margin: 0 0 12px; }
.kp-similar__h a { margin-left: auto; font-size: .88rem; color: var(--kp-purple) !important; text-decoration: none; }
.kp-editform .kp-lbl { font-size: .85rem; }
.kp-morewrap .is-auto { opacity: .75; }
@media (max-width: 575.98px) { .kp-mark__t { font-size: .8rem; } }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-mark:not(.is-on) { background: #30264a; color: #d9c8ff; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-badge--pin { background: #3a3220; color: #ffd76b; }
.kp-wrap a.kp-badge--place { color: var(--kp-purple); }
.kp-wrap a.kp-badge--event { color: #d81b30; }
.kp-wrap a.kp-badge--read { color: #1462c9; }
.kp-wrap a.kp-badge--read.kp-g-lullaby { color: #5b21c4; } 
.kp-wrap a.kp-badge--read.kp-g-tale { color: #b35400; } .kp-wrap a.kp-badge--read.kp-g-riddle { color: #0a8a4a; }
.kp-post__foot .kp-ico { font-size: 1.05rem; padding: 4px 6px; opacity: .8; } .kp-post__foot .kp-ico:hover { opacity: 1; }

/* ===== 1.6.0: теги ===== */
.kp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.kp-tag { display: inline-block; padding: 3px 10px; border-radius: 999px !important; background: var(--kp-soft); color: var(--kp-purple) !important; font-weight: 800; font-size: .8rem; text-decoration: none !important; transition: transform .15s; }
.kp-tag:hover { transform: translateY(-1px); }
.kp-tag.is-on { background: linear-gradient(135deg, #7b2ff7, #ff2e93); color: #fff !important; font-size: 1rem; padding: 5px 14px; }
.kp-wrap a.kp-hashtag { color: var(--kp-purple); font-weight: 800; text-decoration: none; }
.kp-tagbar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.kp-tagbar .kp-link { color: var(--kp-muted); font-weight: 800; text-decoration: none; font-size: .9rem; }
.kp-taginput { font-size: 15px !important; padding: 8px 12px !important; }

/* ===== 1.6.0: свой вид для разделов ===== */
.kp-like--s { padding: 3px 6px; font-size: .85rem; }
.kp-like--s svg { width: 18px; height: 18px; }

/* видео — сетка и карусель */
.kp-list--video, .kp-vgrid--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.kp-vgrid--scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.kp-vgrid--scroll::-webkit-scrollbar { display: none; }
.kp-vgrid--scroll .kp-vcard { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; }
.kp-vcard { background: var(--kp-bg); border-radius: 18px !important; box-shadow: var(--kp-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s; }
.kp-vcard:hover { transform: translateY(-3px); }
.kp-vcard .kp-vcard__media { margin: 0; border-radius: 0 !important; }
.kp-vcard iframe.kp-yt { margin: 0; aspect-ratio: 16 / 9; }
.kp-vcard .kp-yt__play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.kp-vcard .kp-yt__play::after { left: 20px; top: 15px; border-left-width: 16px; border-top-width: 11px; border-bottom-width: 11px; }
.kp-vcard__more { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-weight: 900; font-size: .8rem; padding: 2px 8px; border-radius: 999px; }
.kp-vcard__body { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kp-vcard__title { font-weight: 900; line-height: 1.25; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kp-vcard__meta { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.kp-vcard__meta .kp-vcat { margin: 0; }

/* почитать — карточки */
.kp-list--read { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kp-rcard { --g: #1462c9; --gt: #e7f2ff; background: var(--kp-bg); border-radius: 20px !important; box-shadow: var(--kp-shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .2s; }
.kp-rcard:hover { transform: translateY(-3px) rotate(-.4deg); }
.kp-rcard.kp-g-lullaby { --g: #5b21c4; --gt: #efe9ff; } .kp-rcard.kp-g-tale { --g: #b35400; --gt: #fff1e0; } .kp-rcard.kp-g-riddle { --g: #0a8a4a; --gt: #e6f9ef; }
.kp-rcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--g); }
.kp-rcard__link { display: flex; gap: 12px; padding: 16px 14px 8px; text-decoration: none !important; color: inherit !important; flex: 1; }
.kp-rcard__ico { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--gt); display: flex; align-items: center; justify-content: center; font-size: 26px; transform: rotate(-6deg); }
.kp-rcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kp-rcard__title { font-size: 1.1rem; font-weight: 900; line-height: 1.2; }
.kp-rcard__ex { color: var(--kp-muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kp-g-lullaby .kp-rcard__ex, .kp-g-poem .kp-rcard__ex { font-family: var(--kp-hand); font-size: 1.25rem; line-height: 1.2; }
.kp-rcard__foot { display: flex; align-items: center; gap: 6px; padding: 6px 12px 10px; }
.kp-rcard__foot .kp-badge { margin: 0; }
.kp-rcard__hint { font-size: .78rem; font-weight: 800; color: var(--kp-muted); }
.kp-rcard__go { font-weight: 900; font-size: .85rem; color: var(--g) !important; text-decoration: none; white-space: nowrap; }

/* места — строки */
.kp-list--place { gap: 10px; }
.kp-prow { --pc: #7b2ff7; display: flex; align-items: center; gap: 12px; background: var(--kp-bg); border-radius: 18px !important; box-shadow: 0 4px 14px rgba(76, 40, 160, .10); padding: 10px 12px; position: relative; overflow: hidden; }
.kp-cat-playground { --pc: #ff2e93; } .kp-cat-park { --pc: #12c26a; } .kp-cat-cafe { --pc: #ff8a00; } .kp-cat-playroom { --pc: #1f8bff; } .kp-cat-club { --pc: #ffc400; } .kp-cat-museum { --pc: #7b2ff7; } .kp-cat-other { --pc: #ff3b4f; }
.kp-prow__ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none !important;
    background: color-mix(in srgb, var(--pc) 16%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 35%, transparent); }
.kp-prow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.kp-prow__title { font-weight: 900; line-height: 1.2; text-decoration: none; }
.kp-prow__addr, .kp-prow__meta { font-size: .8rem; color: var(--kp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-prow__cat { color: var(--pc); font-weight: 900; }
.kp-prow__acts { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.kp-wrap .kp-prow__map { margin: 0; font-size: 1.1rem; }
.kp-mark--short { padding: 4px 9px; font-size: .78rem; }
.kp-mark--short .kp-mark__t { display: none; }
.kp-mark--short b:empty { display: none; }

/* афиша — строки-билеты */
.kp-list--event { gap: 10px; }
.kp-erow { display: flex; align-items: stretch; gap: 0; background: var(--kp-bg); border-radius: 18px !important; box-shadow: 0 6px 16px rgba(255, 59, 79, .14); overflow: hidden; }
.kp-erow__date { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, #ff3b4f, #ff8a00); color: #fff !important; text-decoration: none !important; border-right: 3px dashed rgba(255,255,255,.7); }
.kp-erow__date b { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.kp-erow__date small { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.kp-erow__body { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kp-erow__title { font-weight: 900; line-height: 1.2; text-decoration: none; }
.kp-erow__meta { font-size: .8rem; color: var(--kp-muted); }
.kp-erow__acts { flex: none; display: flex; align-items: center; padding: 0 10px 0 0; }

/* аудио — плейлист */
.kp-list--audio { gap: 10px; }
.kp-arow { display: flex; align-items: center; gap: 12px; background: var(--kp-bg); border-radius: 18px !important; box-shadow: 0 4px 14px rgba(255, 138, 0, .14); padding: 10px 12px; }
.kp-arow__ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #ff8a00, #ffc400); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; }
.kp-arow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kp-arow__title { font-weight: 900; text-decoration: none; }
.kp-arow__by { font-size: .78rem; color: var(--kp-muted); }
.kp-arow audio { width: 100%; height: 36px; }

/* ===== 1.6.0: виджеты ===== */
.kp-widget { max-width: none; }
.kp-w-more { margin: 10px 0 0; text-align: right; }
.kp-w-more a { font-weight: 900; color: var(--kp-purple) !important; text-decoration: none; font-size: .9rem; }
.kp-wmap { height: 200px; border-radius: 18px !important; overflow: hidden; box-shadow: var(--kp-shadow); margin-bottom: 12px; z-index: 0; }
.kp-wpin { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3), 0 0 0 3px #ff2e93; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.kp-w-places .kp-prow { box-shadow: none; background: var(--kp-soft); }
.kp-w-read--day { position: relative; padding-top: 6px; }
.kp-w-ribbon { display: inline-block; margin: 0 0 8px; background: linear-gradient(135deg, #ffc400, #ff8a00); color: #fff; font-weight: 900; font-size: .8rem; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(255, 138, 0, .3); }
.kp-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.kp-cloud__tag { font-weight: 900; text-decoration: none !important; padding: 3px 10px; border-radius: 999px; transition: transform .15s; line-height: 1.3; }
.kp-cloud__tag:hover { transform: translateY(-2px) rotate(-2deg); }
.kp-cloud__tag sup { font-size: .6em; opacity: .7; margin-left: 2px; }
.kp-tc-purple { background: #f1e8ff; color: #6a1ff0 !important; } .kp-tc-pink { background: #ffe9f4; color: #d1126e !important; } .kp-tc-orange { background: #fff1e0; color: #c25e00 !important; }
.kp-tc-green { background: #e6f9ef; color: #0a8a4a !important; } .kp-tc-blue { background: #e7f2ff; color: #1462c9 !important; } .kp-tc-red { background: #ffe8eb; color: #d81b30 !important; }

@media (max-width: 575.98px) {
    .kp-list--video { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kp-list--video .kp-vcard__title { font-size: .88rem; }
    .kp-list--video .kp-yt__play { transform: scale(.75); }
    .kp-list--read { grid-template-columns: 1fr; }
}

/* тёмная тема */
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-tag:not(.is-on) { background: #30264a; color: #d9c8ff !important; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-rcard__ico { background: color-mix(in srgb, var(--g) 30%, #241d36); }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-rcard__go { color: color-mix(in srgb, var(--g) 50%, #fff) !important; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-prow__cat { color: color-mix(in srgb, var(--pc) 60%, #fff); }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap [class*="kp-tc-"] { background: #30264a; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-tc-purple { color: #cdb8ff !important; } :is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-tc-pink { color: #ff9ccc !important; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-tc-orange { color: #ffb766 !important; } :is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-tc-green { color: #6fe3a5 !important; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-tc-blue { color: #8cc2ff !important; } :is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-tc-red { color: #ff97a3 !important; }

/* 1.7.0: «Главное» */
.kp-hblock { margin: 0 0 30px; }
.kp-hblock__h { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 900; margin: 0 0 12px; letter-spacing: -.01em; }
.kp-hblock__h a { margin-left: auto; font-size: .85rem; color: var(--kp-purple) !important; text-decoration: none; white-space: nowrap; }
.kp-hblock__ico { flex: none; width: 38px; height: 38px; border-radius: 13px !important; display: flex; align-items: center; justify-content: center; font-size: 20px; transform: rotate(-6deg); font-weight: 900; }
.kp-hblock--day .kp-post { box-shadow: 0 0 0 3px #ffc400, var(--kp-shadow); }
.kp-lb__post { background: linear-gradient(135deg, #7b2ff7, #ff2e93) !important; color: #fff !important; text-decoration: none; }
.kp-pb__feed { margin-top: 4px; }
.kp-pb__feed > .kp-pb__h { padding: 0 4px; }
.kpp .kp-pb__feed .kp-post { box-shadow: 0 4px 14px rgba(76, 40, 160, .10); }

/* 1.8.0: иконки Font Awesome (svg из шаблона) */
.kp-wrap .icms-svg-icon, .kp-lb .icms-svg-icon { width: 1em; height: 1em; fill: currentColor; stroke: none; vertical-align: -.125em; flex: none; }
.kp-wrap .kp-tool .icms-svg-icon { width: 17px; height: 17px; }
.kp-wrap .kp-like svg, .kp-wrap .kp-like .icms-svg-icon { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.kp-wrap .kp-like:not(.is-on) svg { opacity: .55; }
.kp-wrap .kp-like--s svg { width: 16px; height: 16px; }
.kp-wrap .kp-listen .icms-svg-icon { width: 18px; height: 18px; }
.kp-mark i { display: inline-flex; filter: none; }
.kp-mark i .icms-svg-icon { width: 15px; height: 15px; }
.kp-mark:not(.is-on) i { opacity: .7; }
.kp-pb__badge i { color: #fff; }
.kp-pb__badge i .icms-svg-icon { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.kp-prow__ico { color: var(--pc); }
.kp-prow__ico .icms-svg-icon { width: 22px; height: 22px; }
.kp-rcard__ico { color: var(--g); }
.kp-rcard__ico .icms-svg-icon { width: 24px; height: 24px; }
.kp-hblock__ico .icms-svg-icon { width: 19px; height: 19px; }
.kp-arow__ico .icms-svg-icon { width: 20px; height: 20px; }
.kp-wpin { color: #ff2e93; }
.kp-wpin .icms-svg-icon { width: 17px; height: 17px; fill: currentColor; }
.kp-post__foot .kp-ico .icms-svg-icon, .kp-pinbtn .icms-svg-icon { width: 16px; height: 16px; }
.kp-pinbtn.is-on { color: #ff8a00; }
.kp-badge--pin .icms-svg-icon { width: 12px; height: 12px; }
.kp-erow__meta .icms-svg-icon { width: 12px; height: 12px; opacity: .8; }
.kp-details { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kp-details li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; }
.kp-details li .icms-svg-icon { color: var(--kp-purple); width: 15px; height: 15px; }
.kp-details a { color: var(--kp-blue) !important; text-decoration: none; overflow-wrap: anywhere; }
.kp-wmap--single { height: 240px; margin: 8px 0 10px; }
.kp-route { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.kp-route .kp-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.kp-route .kp-btn:not(.kp-btn--main) { background: var(--kp-soft); color: var(--kp-purple) !important; }

/* ===== 1.9.0: нижняя панель и всплывающая форма ===== */
.kp-bar { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2500; width: calc(100% - 20px); max-width: 520px;
    display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 6px 8px; border-radius: 26px;
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(76, 40, 160, .22), 0 0 0 1px rgba(123, 47, 247, .08); font-family: "Nunito", system-ui, sans-serif; }
.kp-bar__a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 18px; color: #7a7090 !important; text-decoration: none !important; font-size: .68rem; font-weight: 800; line-height: 1.1; transition: color .15s, background .15s; }
.kp-bar__a .icms-svg-icon { width: 21px; height: 21px; fill: currentColor; }
.kp-bar__a.is-on { color: #7b2ff7 !important; background: #f1e8ff; }
.kp-bar__a:active { transform: scale(.94); }
.kp-bar__add { flex: none; width: 58px; height: 58px; margin: -26px 6px 0; border: 0; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #7b2ff7, #ff2e93); color: #fff !important; box-shadow: 0 8px 20px rgba(255, 46, 147, .45), 0 0 0 5px #fff; transition: transform .2s; }
.kp-bar__add .icms-svg-icon { width: 24px; height: 24px; fill: currentColor; }
.kp-bar__add:hover { transform: rotate(90deg) scale(1.05); }
body:has(.kp-bar) { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.kp-sheet { position: fixed; inset: 0; z-index: 3200; display: flex; align-items: flex-end; justify-content: center; }
.kp-sheet__back { position: absolute; inset: 0; background: rgba(35, 25, 60, .45); opacity: 0; transition: opacity .25s; }
.kp-sheet__box { position: relative; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: #faf8ff; border-radius: 26px 26px 0 0 !important;
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .25s ease; box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.kp-sheet.is-open .kp-sheet__back { opacity: 1; }
.kp-sheet.is-open .kp-sheet__box { transform: none; }
.kp-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; font-size: 1.15rem; font-weight: 900; color: #2b2340; }
.kp-sheet__head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #d9cff2; }
.kp-sheet__x { border: 0; background: #f1e8ff; color: #7b2ff7; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.kp-sheet__x .icms-svg-icon { width: 18px; height: 18px; fill: currentColor; }
.kp-sheet .kp-compose { margin: 0; box-shadow: none; }
html.kp-sheet-open, html.kp-sheet-open body { overflow: hidden; }
@media (min-width: 768px) { .kp-sheet { align-items: center; } .kp-sheet__box { border-radius: 26px !important; transform: translateY(40px); opacity: 0; transition: transform .25s, opacity .25s; } .kp-sheet.is-open .kp-sheet__box { opacity: 1; } }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-bar { background: rgba(36, 29, 54, .92); box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.06); }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-bar__a { color: #b4aacb !important; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-bar__a.is-on { color: #d9c8ff !important; background: #30264a; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-bar__add { box-shadow: 0 8px 20px rgba(255, 46, 147, .45), 0 0 0 5px #241d36; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-sheet__box { background: #1a1427; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-sheet__head { color: #f4f0ff; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-sheet__x { background: #30264a; color: #d9c8ff; }

/* профиль: цифры — кнопки, список по запросу */
button.kp-pb__num { border: 0; cursor: pointer; font: inherit; }
.kp-pb__num small { display: inline-flex; align-items: center; gap: 4px; }
.kp-pb__num small .icms-svg-icon { width: 11px; height: 11px; fill: currentColor; }
.kp-pb__num.is-on { transform: translateY(-3px); box-shadow: 0 0 0 3px #fff, 0 0 0 6px currentColor, 0 10px 20px rgba(76, 40, 160, .25); }
.kp-pb__panel { background: var(--kp-bg); border-radius: var(--kp-r) !important; box-shadow: var(--kp-shadow); padding: 12px 14px; animation: kp-pop .3s ease; }
.kp-pb__panel .kp-pb__h .kp-link { margin-left: auto; border: 0; background: var(--kp-soft); color: var(--kp-purple); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.kpp .kp-pb__panel { box-shadow: none; background: var(--kp-soft); }
.kpp .kp-pb__panel .kp-post, .kpp .kp-pb__panel .kp-gal__item { box-shadow: 0 4px 14px rgba(76, 40, 160, .10); }
.kp-pb__num small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ================= 14. загрузка файлов и правка медиа (1.9.1) ================= */
.kp-prev button, .kp-chip button { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.kp-prev button svg { width: 11px; height: 11px; }
.kp-prev__pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 900 .95rem/1 Nunito, sans-serif; font-style: normal; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.kp-chip.is-loading { opacity: 1; background: linear-gradient(90deg, #ffe0b2, #fff3e0); }
.kp-chip__pct { color: #7b2ff7; margin-left: 4px; }
.kp-prev.is-err, .kp-chip.is-err { outline: 3px solid #e5193b; }
.kp-prev.is-err img { opacity: .25; }
.kp-chip.is-err { background: #ffe3e8; color: #a3001b; font-weight: 700; }
.kp-emedia { border: 0; margin: 6px 0 14px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(123,47,247,.08), rgba(255,46,147,.08)); display: grid; gap: 12px; }
.kp-emedia__h { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.02rem; }
.kp-emedia__h svg { color: #7b2ff7; width: 18px; height: 18px; flex: none; }
.kp-emedia .kp-previews:empty, .kp-emedia .kp-ytlist:empty, .kp-emedia .kp-eaudio:empty { display: none; }
.kp-eaudio { display: grid; gap: 10px; }
.kp-etrack { display: grid; grid-template-columns: 40px 1fr 44px; gap: 8px; align-items: center; background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 3px 10px rgba(76, 40, 160, .12); }
.kp-etrack__ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #7b2ff7, #ff2e93); }
.kp-etrack__rm { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #ffe3e8; color: #e5193b; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.kp-etrack audio { grid-column: 1 / -1; width: 100%; height: 40px; }
.kp-etrack .kp-input { min-width: 0; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-etrack { background: #1d172c; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-chip { background: #3a2a14; color: #ffe0b2; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-wrap .kp-chip.is-err { background: #4a1420; color: #ffb3c0; }
.kp-emedia [hidden], .kp-editform [hidden] { display: none !important; }

/* ================= 15. опросы, вопросы, «отдам», ссылки (1.10.0) ================= */
.kp-wrap { --kp-o0: #7b2ff7; --kp-o1: #ff2e93; --kp-o2: #ff8a00; --kp-o3: #12c26a; --kp-o4: #1f8bff; --kp-o5: #ff3b4f; }
.kp-badge { display: inline-flex; align-items: center; gap: 4px; }
.kp-badge--poll { background: #efe6ff; color: #7b2ff7; }
.kp-wrap .kp-badge--ask, .kp-badge--ask { background: #e3f1ff; color: #1f6fd1 !important; }
.kp-badge--solved { background: #dcf7e8; color: #0d8a4b; }
.kp-wrap .kp-badge--give, .kp-badge--give { background: #fff1dc; color: #c25e00 !important; }
.kp-wrap .kp-badge--give.kp-gt-swap { background: #e3f1ff; color: #1f6fd1 !important; }
.kp-wrap .kp-badge--give.kp-gt-free { background: #dcf7e8; color: #0d8a4b !important; }
.kp-kind svg { vertical-align: -2px; }

.kp-qtitle { font-size: 1.15rem; font-weight: 900; line-height: 1.3; margin: 4px 0 8px; }
.kp-qtitle a { color: inherit !important; text-decoration: none !important; }
.kp-qtitle--ask::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: linear-gradient(135deg, #1f8bff, #7b2ff7); color: #fff; font-size: 1rem; vertical-align: 2px; }

/* опрос */
.kp-poll { display: grid; gap: 8px; margin: 6px 0 4px; }
.kp-poll__opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 16px !important; background: var(--kp-bg); color: var(--kp-ink); font: inherit; font-weight: 800; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; }
.kp-poll__opt:hover { transform: translateY(-1px); border-color: var(--c); }
.kp-poll__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--c) 18%, transparent); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.kp-poll__t { position: relative; flex: 1; display: inline-flex; align-items: center; gap: 6px; }
.kp-poll__t svg { color: var(--c); }
.kp-poll__pc { position: relative; font-weight: 900; color: var(--c); display: none; }
.kp-poll.is-voted .kp-poll__bar { width: var(--pc); }
.kp-poll.is-voted .kp-poll__pc { display: inline; }
.kp-poll__opt.is-mine { border-color: var(--c); }
.kp-poll__foot { font-size: .82rem; font-weight: 800; color: var(--kp-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kp-poll__hint { color: var(--kp-purple); }
.kp-pollopts { display: grid; gap: 6px; }
.kp-polledit { margin: 4px 0; padding-left: 18px; font-weight: 700; }

/* отдам / обменяю */
.kp-give { position: relative; display: grid; gap: 4px; padding: 12px 14px; margin: 4px 0 8px; border-radius: 18px; background: linear-gradient(135deg, #fff6e5, #ffeef6); overflow: hidden; }
.kp-give__title { font-size: 1.1rem; font-weight: 900; }
.kp-give__title a { color: var(--kp-ink) !important; text-decoration: none !important; }
.kp-give__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; font-weight: 800; color: var(--kp-muted); }
.kp-give__meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.kp-give__stamp { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(-12deg); padding: 6px 12px; border: 3px solid #12c26a; border-radius: 10px; color: #12c26a; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.85); }
.kp-give.is-closed .kp-give__title, .kp-give.is-closed .kp-give__meta { opacity: .55; }
.kp-post--give.kp-post .kp-photos { position: relative; }

/* карточка ссылки */
.kp-lcard { display: flex; gap: 0; margin: 8px 0; border-radius: 18px; overflow: hidden; background: var(--kp-soft); color: var(--kp-ink) !important; text-decoration: none !important; border: 2px solid var(--kp-line); transition: transform .15s, border-color .15s; }
a.kp-lcard:hover { transform: translateY(-1px); border-color: var(--kp-purple); }
.kp-lcard__img { flex: none; width: 110px; min-height: 96px; background: #e9e1fb center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--kp-purple); }
.kp-lcard__body { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.kp-lcard__body b { font-weight: 900; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kp-lcard__desc { font-size: .85rem; color: var(--kp-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kp-lcard__site { margin-top: auto; font-size: .75rem; font-weight: 900; color: var(--kp-purple); text-transform: lowercase; }
.kp-lcard--wait { padding: 14px; font-weight: 800; color: var(--kp-muted); }
@media (min-width: 560px) { .kp-lcard__img { width: 160px; min-height: 110px; } }
.kp-linkpv { position: relative; }
.kp-linkpv .kp-lcard { margin: 0; }
.kp-linkpv__x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(43,35,64,.75); color: #fff; cursor: pointer; }

/* ответы */
.kp-ansbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: .85rem; padding: 6px 12px; border-radius: 999px !important; background: #e3f1ff; color: #1f6fd1; }
.kp-post--give .kp-ansbtn { background: #fff1dc; color: #c25e00; }
.kp-ansbtn.is-on { background: #1f8bff; color: #fff; }
.kp-post--give .kp-ansbtn.is-on { background: #ff8a00; color: #fff; }
.kp-ansbtn b:empty { display: none; }
.kp-closebtn { display: inline-flex; align-items: center; gap: 5px; font-weight: 900; font-size: .82rem; }
.kp-closebtn.is-on { color: #12c26a !important; }
.kp-answers { margin-top: 10px; padding-top: 10px; border-top: 2px dashed var(--kp-line); display: grid; gap: 10px; }
.kp-answers__list { display: grid; gap: 10px; }
.kp-ans { display: flex; gap: 10px; align-items: flex-start; }
.kp-ans__ava img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.kp-ans__body { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 4px 18px 18px 18px; background: var(--kp-soft); }
.kp-ans.is-best .kp-ans__body { background: #fff6d6; box-shadow: inset 0 0 0 2px #ffc400; }
.kp-ans__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; font-weight: 900; }
.kp-ans__head a { color: var(--kp-ink) !important; text-decoration: none !important; }
.kp-ans__author { padding: 1px 7px; border-radius: 999px; background: #efe6ff; color: #7b2ff7; font-size: .7rem; }
.kp-ans__date { color: var(--kp-muted); font-weight: 700; }
.kp-ans__bestmark { color: #b77d00; display: inline-flex; align-items: center; gap: 3px; }
.kp-ans__text { margin-top: 2px; word-wrap: break-word; }
.kp-ans__tools { display: flex; gap: 10px; margin-top: 4px; }
.kp-ans__tools .kp-link { font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.kp-ans__empty { margin: 0; color: var(--kp-muted); font-weight: 700; font-size: .9rem; }
.kp-answers__form { display: flex; gap: 8px; align-items: flex-end; }
.kp-answers__form textarea { flex: 1; min-height: 46px; resize: vertical; }
.kp-answers__form .kp-btn { width: 46px; height: 46px; padding: 0; display: flex; align-items: center; justify-content: center; }

:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-give { background: linear-gradient(135deg, #3a2a14, #3a1a2c); }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-give__stamp { background: rgba(23,18,31,.85); }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-ans.is-best .kp-ans__body { background: #3a3014; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-ansbtn { background: #1d2d45; color: #8fc3ff; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-post--give .kp-ansbtn { background: #3a2a14; color: #ffc46b; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-badge--poll { background: #30264a; color: #cdb8ff; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-lcard__img { background-color: #30264a; }

/* ================= 16. значки: как получить и прогресс (1.10.1) ================= */
button.kp-pb__badge { border: 0; background: none; padding: 0; font: inherit; font-size: .72rem; font-weight: 800; color: inherit; cursor: pointer; position: relative; }
.kp-pb__badge.is-off { opacity: 1; filter: none; }
.kp-pb__badge.is-off i { filter: grayscale(1); opacity: .45; }
.kp-pb__badge.is-off::before { content: ""; position: absolute; top: -4px; left: 50%; width: 68px; height: 68px; transform: translateX(-50%); border-radius: 50%;
    background: conic-gradient(var(--c) var(--pc), color-mix(in srgb, var(--c) 14%, transparent) 0); -webkit-mask: radial-gradient(circle, transparent 30px, #000 31px); mask: radial-gradient(circle, transparent 30px, #000 31px); }
.kp-pb__badge.is-off > span { opacity: .6; }
.kp-pb__badge.is-sel > span { opacity: 1; color: var(--c); }
.kp-pb__badge.is-sel i { outline: 3px solid var(--c); outline-offset: 3px; }
.kp-pb__prog { font-weight: 900; color: var(--c); font-size: .7rem; }
.kp-pb__got { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #efe6ff; color: #7b2ff7; font-size: .75rem; }
.kp-pb__how { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--kp-soft); font-size: .85rem; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; color: var(--kp-muted); }
.kp-pb__how b { color: var(--kp-ink); }
.kp-pb__how.is-on { background: color-mix(in srgb, var(--c, #7b2ff7) 12%, transparent); color: var(--kp-ink); }
.kp-pb__how svg { flex: none; margin-top: 2px; color: var(--c, #7b2ff7); }
.kp-pb__note { margin: 8px 0 0; font-size: .8rem; font-weight: 700; color: #b45309; }
@media (max-width: 480px) { .kp-pb__badge.is-off::before { width: 58px; height: 58px; -webkit-mask: radial-gradient(circle, transparent 25px, #000 26px); mask: radial-gradient(circle, transparent 25px, #000 26px); } }

/* 1.10.4: заголовок H1 на «Главном» */
.kp-home__hero { margin: 4px 0 14px; }
.kp-home__h1 { margin: 0; font-size: 1.55rem; font-weight: 900; line-height: 1.2; background: linear-gradient(90deg, #7b2ff7, #ff2e93 60%, #ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.kp-home__sub { margin: 4px 0 0; font-weight: 700; color: var(--kp-muted); font-size: .95rem; }
@media (min-width: 768px) { .kp-home__h1 { font-size: 2rem; } }

/* ================= 17. комментарии, отзывы со звёздами, фотоотчёты (1.11.0) ================= */
.kp-stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.kp-stars i { display: inline-flex; color: #e3d9f5; }
.kp-stars i.is-on { color: #ffc400; }
.kp-stars i.is-half { color: #ffc400; -webkit-mask: linear-gradient(90deg, #000 50%, rgba(0,0,0,.25) 50%); mask: linear-gradient(90deg, #000 50%, rgba(0,0,0,.25) 50%); }
.kp-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 8px; font-size: .85rem; font-weight: 800; color: var(--kp-muted); }
.kp-rating b { color: var(--kp-ink); font-weight: 900; }
.kp-rating__ph { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: #e3f1ff; color: #1f6fd1; }
.kp-rating--none { color: #b58b00; }
.kp-rating--none svg { color: #ffc400; }
.kp-ansbtn { background: #efe6ff; color: #7b2ff7; }
.kp-ansbtn.is-on { background: #7b2ff7; color: #fff; }
.kp-ansbtn--question { background: #e3f1ff; color: #1f6fd1; }
.kp-ansbtn--question.is-on { background: #1f8bff; color: #fff; }
.kp-ansbtn--place, .kp-ansbtn--event { background: #fff3c4; color: #a37400; }
.kp-ansbtn--place.is-on, .kp-ansbtn--event.is-on { background: #ffc400; color: #2b1d4a; }
.kp-answers__form { display: grid; gap: 8px; }
.kp-answers__row { display: flex; gap: 8px; align-items: flex-end; }
.kp-answers__row textarea { flex: 1; min-height: 46px; resize: vertical; }
.kp-answers__row .kp-btn { width: 46px; height: 46px; padding: 0; display: flex; align-items: center; justify-content: center; flex: none; }
.kp-answers__ph { background: #e3f1ff !important; color: #1f6fd1 !important; cursor: pointer; }
.kp-answers__prev:empty { display: none; }
.kp-rate { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.kp-rate__l { margin-right: 8px; font-size: .85rem; font-weight: 900; color: var(--kp-muted); }
.kp-rate__s { border: 0; background: none; padding: 4px; cursor: pointer; color: #e3d9f5; line-height: 0; transition: transform .15s, color .15s; touch-action: manipulation; }
.kp-rate__s.is-on { color: #ffc400; }
.kp-rate__s:active { transform: scale(1.25); }
@media (hover: hover) { .kp-rate:hover .kp-rate__s { color: #ffe27a; } .kp-rate .kp-rate__s:hover ~ .kp-rate__s { color: #e3d9f5; } }
.kp-ans__rate { margin: 2px 0; }
.kp-ans__photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kp-ans__photo { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; display: block; }
.kp-ans__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-ansbtn { background: #30264a; color: #cdb8ff; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-ansbtn--place, :is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-ansbtn--event { background: #3a3014; color: #ffd76b; }
:is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-stars i, :is(html, body):is([data-theme="dark"], [data-bs-theme="dark"], .dark) .kp-rate__s:not(.is-on) { color: #4a3f66; }
.kp-prow__rate { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 800; color: var(--kp-muted); }

/* 1.12.1: нижняя панель не закрывает поля ввода — прячется, пока открыта клавиатура или всплывающее окно */
.kp-bar { transition: transform .25s ease, opacity .25s ease; }
html.kp-typing .kp-bar, body.modal-open .kp-bar, html.kp-sheet-open body.modal-open .kp-bar { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
html.kp-typing .kp-player-dock, body.modal-open .pl-dock { visibility: hidden; }
