/* Velora — шаблон социальной сети для DataLife Engine 21.0. Токены, раскладка, лента, пост, профиль, истории, окна, страницы DLE. */

:root,
[data-theme="light"] {
	--bg: #F4F3EF; --card: #FFFFFF; --line: #E7E5DF; --line2: #EFEDE8;
	--ink: #141412; --ink2: #3A3833; --text: #22211E; --muted: #6E6B64; --muted2: #807C73; --faint: #B9B5AB;
	--hover: #EAE8E2; --hover2: #F1EFEA; --acc-soft: #ECEAFD; --like-soft: #FFF0EB; --ring: #DAD7CF;
	--acc: #4B3FE0; --acc-hover: #3C31C9; --acc-text: #4B3FE0; --green: #1F6B55; --danger: #D9441F;
	--story-ring: conic-gradient(#4B3FE0, #FF7A59, #FFB547, #4B3FE0);
	--f-body: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --f-head: 'Onest', 'Geist', sans-serif;
	--f-serif: 'Cormorant Garamond', Georgia, serif; --f-mono: 'Geist Mono', ui-monospace, Consolas, monospace;
	--r-card: 24px; --shadow-pop: 0 24px 60px rgba(20, 20, 18, .18);
	--tabbar-h: 64px;

	--surface: var(--card); --surface-soft: var(--hover2); --surface-sunk: var(--bg);
	--accent: var(--acc); --accent-strong: var(--acc-text); --accent-soft: var(--acc-soft); --accent-ink: #FFFFFF; --accent-text: var(--acc-text);
	--hair: 1px; --news-text: var(--text);
	--positive: #1F6B55; --positive-soft: rgba(31, 107, 85, .12); --negative: #C23A1A; --negative-soft: rgba(217, 68, 31, .1);
	--warn: #8a5a00; --warn-soft: rgba(224, 160, 48, .16); --star: #E0A030; --star-off: #DAD7CF;
	--sage: #1F6B55; --sage-soft: rgba(31, 107, 85, .1); --sage-ink: #174f3f;
	--shadow: 0 30px 60px -24px rgba(20, 20, 18, .28); --shadow-soft: 0 16px 36px -18px rgba(20, 20, 18, .3); --shadow-tiny: 0 2px 6px -2px rgba(20, 20, 18, .12);
	--shadow-menu: var(--shadow-pop); --shadow-modal: 0 40px 100px rgba(0, 0, 0, .25);
	--sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
	--r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
	--control-h: 46px; --app-em: 16px;
	--fs-meta: 13px; --fs-sm: 14px; --fs-ui: 15px; --fs-lead: 18px; --fs-h4: 18px; --font-size-xs: 12px; --font-size-sm: 13px;
	--captcha-height: 46px;
	--code-bg: #F1EFEA; --code-border: #E7E5DF; --code-ink: #141412; --code-comment: #6E6B64; --code-punct: #3A3833;
	--code-value: #C23A1A; --code-string: #1F6B55; --code-operator: #8a5a00; --code-keyword: #4B3FE0; --code-function: #C23A1A;
	--code-variable: #7A3FB0; --code-regex: #8a5a00; --code-select: rgba(75, 63, 224, .18); --code-shadow: none;
	color-scheme: light;
}
[data-theme="dark"] {
	--bg: #0E0E0D; --card: #171715; --line: #2A2925; --line2: #22211E;
	--ink: #F2F0EA; --ink2: #D3D0C8; --text: #E2DFD7; --muted: #A29E94; --muted2: #8C887F; --faint: #55524B;
	--hover: #1F1E1B; --hover2: #1F1E1B; --acc-soft: #221F45; --like-soft: #2E1A15; --ring: #34332F;
	--acc: #6F62F8; --acc-hover: #5B4FE6; --acc-text: #9B92FF; --green: #7FD1B5; --danger: #FF7A59;
	--positive: #7FD1B5; --positive-soft: rgba(127, 209, 181, .12); --negative: #FF8A6B; --negative-soft: rgba(255, 122, 89, .12);
	--warn: #FFB547; --warn-soft: rgba(255, 181, 71, .14); --star-off: #3A3833;
	--code-bg: #1F1E1B; --code-border: #2A2925; --code-ink: #F2F0EA; --code-comment: #A29E94; --code-punct: #D3D0C8;
	--code-value: #FF8A6B; --code-string: #7FD1B5; --code-operator: #FFB547; --code-keyword: #9B92FF; --code-function: #FF8A6B; --code-variable: #C7A8FF;
	--shadow-pop: 0 24px 60px rgba(0, 0, 0, .55);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; transition: background-color .45s ease, color .45s ease; overflow-x: hidden; }
.card, .side, .me-card, .menu, .modal, .field, .search { transition: background-color .45s ease, border-color .45s ease, color .45s ease; }
a { color: var(--acc-text); text-decoration: none; } a:hover { color: var(--acc-hover); }
[data-theme="dark"] a:hover { color: #B8B1FF; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .muted2 { color: var(--muted2); } .small { font-size: 13px; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; flex-shrink: 0; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; max-width: 1px !important; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 !important; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; color: var(--bg); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; } .stack-12 { gap: 12px; }
.link-btn { color: var(--acc-text); font-weight: 500; }
.spacer { flex: 1; }
::selection { background: var(--acc-soft); }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 640px) 340px; gap: 32px; justify-content: center; max-width: 1400px; margin: 0 auto; padding: 24px; }
.side { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-left { height: calc(100vh - 48px); gap: 20px; }
.side-right { max-height: none; }
.main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mtop, .tabbar { display: none; }
@media (max-width: 1200px) { .app { grid-template-columns: 248px minmax(0, 640px); } .side-right { display: none; } }
@media (min-width: 1201px) { .cat-chips, .rel-mobile, .rail-mobile { display: none !important; } }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px; align-self: flex-start; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-dot { fill: var(--ink); transform-origin: 20px 20px; }
.brand-logo { transform-origin: 50% 50%; flex-shrink: 0; }
.brand-word { display: inline-flex; font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: 34px; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.brand-word span { display: inline-block; }
.brand:hover .brand-logo { animation: vlTurn 1.1s cubic-bezier(.3, 1.35, .4, 1); }
.brand:hover .brand-dot { animation: vlPulse .6s ease .3s; }
.brand:hover .brand-word span { animation: vlWave .7s cubic-bezier(.3, .7, .4, 1) calc(var(--i, 0) * 50ms) both; }
@keyframes vlTurn { from { transform: rotate(0); } to { transform: rotate(144deg); } }
@keyframes vlPulse { 40% { transform: scale(1.18); } }
@keyframes vlWave { 35% { transform: translateY(-32%); } 70% { transform: translateY(4%); } }

/* ---------- Nav ---------- */
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; color: var(--ink2); font-size: 15px; }
.nav-item i { width: 20px; text-align: center; font-size: 17px; }
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.active { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.nav-item.active i { color: var(--ink); }
.badge { font-family: var(--f-mono); font-size: 11px; background: var(--acc); color: #fff; padding: 2px 7px; border-radius: 99px; line-height: 1.4; }
.badge[data-n="0"], .dot-n[data-n="0"], .hint[data-n="0"] { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 13px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .2s, border-color .2s, opacity .2s, color .2s; color: var(--ink); cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.btn:hover { color: inherit; }
.btn-lg { height: 50px; border-radius: 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--acc); color: #fff; } .btn-accent:hover { background: var(--acc-hover); color: #fff; }
.btn-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); } .btn-ink:hover { background: var(--ink2); border-color: var(--ink2); color: var(--bg); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); } .btn-ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn-plain { color: var(--ink2); font-weight: 500; } .btn-plain:hover { background: var(--hover2); color: var(--ink); }
.btn-icon { width: 42px; padding: 0; }
.btn-sm { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; }
.btn-sm.btn-icon { width: 32px; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.btn-ghost.is-on { color: var(--ink); }
.vl-bell.is-on, .btn-icon.is-on { color: var(--acc-text); }
.danger { color: var(--danger) !important; }
.pill-back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.pill-back:hover { border-color: var(--faint); color: var(--ink); }
.round-btn { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn:hover { border-color: var(--faint); color: var(--ink); }
.round-btn a, .round-btn > a { color: inherit; display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* ---------- Me card + menu ---------- */
.me { margin-top: auto; position: relative; }
.me-wrap { position: relative; }
.me-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.me-card:hover { border-color: var(--faint); }
.me-card[aria-expanded="true"] { border-color: var(--ink); }
.me-card .chev { font-size: 12px; color: var(--muted); transition: transform .3s; }
.me-card[aria-expanded="true"] .chev { transform: rotate(180deg); }
.me-name { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-login { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-guest-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu { position: absolute; left: 0; right: -24px; bottom: calc(100% + 10px); z-index: 41; max-height: calc(100vh - 120px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop); padding: 8px; display: flex; flex-direction: column; gap: 2px; animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.menu-head { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line2); }
.menu-who { display: flex; align-items: center; gap: 12px; }
.menu-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.av-ring { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--acc); }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; border-radius: 12px; font-size: 14px; text-align: left; color: var(--ink); cursor: pointer; }
.menu-item:hover { background: var(--hover2); color: var(--ink); }
.menu-item i { width: 18px; text-align: center; color: var(--muted); }
.menu-item a { color: inherit; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; }
.menu-item .hint { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--muted2); }
.menu-item.danger { font-weight: 500; } .menu-item.danger i { color: inherit; } .menu-item.danger:hover { background: var(--like-soft); }
.menu-sep { height: 1px; background: var(--line2); margin: 4px 8px; }
.switch { margin-left: auto; position: relative; width: 36px; height: 22px; border-radius: 99px; background: var(--line); transition: background-color .3s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
[data-theme="dark"] .switch { background: #6F62F8; } [data-theme="dark"] .switch::after { transform: translateX(14px); }

/* Pop menu (… under posts) */
.post-more { position: relative; }
.pop-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; gap: 2px; animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
.pop-menu--right, .crumbs .pop-menu { top: calc(100% + 6px); bottom: auto; }
.pop-menu .menu-item { min-height: 40px; font-size: 13.5px; }

/* ---------- Avatars ---------- */
.av { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--line2); }
.av-24 { width: 24px; height: 24px; } .av-30 { width: 30px; height: 30px; } .av-32 { width: 32px; height: 32px; } .av-36 { width: 36px; height: 36px; }
.av-40 { width: 40px; height: 40px; } .av-42 { width: 42px; height: 42px; } .av-44 { width: 44px; height: 44px; } .av-46 { width: 46px; height: 46px; } .av-48 { width: 48px; height: 48px; } .av-64 { width: 64px; height: 64px; } .av-72 { width: 72px; height: 72px; }
.av-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--acc-soft); color: var(--acc-text); font-weight: 600; font-size: 15px; text-transform: uppercase; }
.av-letter::before { content: attr(data-l); display: block; width: 1ch; overflow: hidden; }
.av-stack { display: flex; } .av-stack .av { border: 2px solid var(--card); } .av-stack .av + .av { margin-left: -8px; }
.verified { color: #4B3FE0; font-size: 13px; }
[data-theme="dark"] .verified { color: #9B92FF; }

/* ---------- Cards, rows ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.card-pad { padding: 18px 16px 16px; }
.card-list { padding: 18px 8px 10px; }
.card-title { font-weight: 600; font-size: 15px; padding: 0 12px 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-title .mono { font-size: 11px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.rail-head b, .rail-title { font-weight: 600; font-size: 15px; padding: 0 4px; }
.rail-link { color: var(--acc-text); font-size: 13px; font-weight: 500; }
.row { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; width: 100%; text-align: left; color: var(--ink); }
a.row:hover, .row:hover { background: var(--hover2); color: var(--ink); }
.row-link { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.row .btn, .row > a:not(.row-link) { position: relative; z-index: 1; }
.row-name { display: flex; align-items: center; gap: 5px; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-name .verified { font-size: 12px; }
.row-sub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-row { align-items: flex-start; }
.rel-title { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Feed header ---------- */
.feed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 4px 4px 0; }
.greeting { font-family: var(--f-serif); font-weight: 500; font-size: 32px; letter-spacing: -.5px; line-height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.greeting em { color: var(--acc-text); }
.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.segmented { display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 4px; background: var(--hover); border-radius: 99px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented > button, .segmented > a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.segmented > a:hover, .segmented > button:hover { color: var(--ink); }
.segmented > .on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.segmented .n { font-family: var(--f-mono); font-size: 11px; color: var(--muted2); }
.segmented.sm { min-height: 36px; padding: 3px; } .segmented.sm > button, .segmented.sm > a { height: 30px; padding: 0 12px; font-size: 12.5px; }
.seg-links { align-self: flex-start; }
.theme-toggle { position: relative; width: 76px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 99px; background: var(--card); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: var(--faint); }
.theme-knob { position: absolute; top: 3px; left: 3px; width: 32px; height: 32px; border-radius: 50%; background: #FFB547; color: #141412; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: transform .55s cubic-bezier(.68, -.35, .27, 1.35), background-color .45s; }
.theme-knob .fa-moon { display: none; }
[data-theme="dark"] .theme-knob { transform: translateX(36px) rotate(360deg); background: #6F62F8; color: #fff; }
[data-theme="dark"] .theme-knob .fa-moon { display: inline; } [data-theme="dark"] .theme-knob .fa-sun { display: none; }
.feed-head--cat { padding-top: 4px; }
.sortbox { display: flex; align-items: center; }
.sortbox select, .sortbox .form-select { height: 40px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); padding: 0 34px 0 14px; font-size: 13px; color: var(--ink); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 16px top 18px, right 11px top 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.sortbox form { display: flex; gap: 6px; margin: 0; }
.sort-links { display: flex; gap: 2px; padding: 4px; background: var(--hover); border-radius: 99px; }
.sort-links a { height: 32px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); }
.sort-links a.on, .sort-links a:hover { background: var(--card); color: var(--ink); }

/* Category chips (mobile / tablet) */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: -4px 0 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips .chip { flex-shrink: 0; background: var(--card); }
.cat-chips .chip[data-n="0"] { display: none; }
.chip-ico { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; }

/* ---------- Stories ---------- */
.stories { scroll-padding-inline: 18px; padding: 18px 18px 14px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.stories::-webkit-scrollbar { display: none; }
.story { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; width: 68px; font-size: 12px; color: var(--ink2); scroll-snap-align: start; }
.story-open { display: block; border-radius: 50%; }
.story-name { max-width: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-ring { display: block; width: 64px; height: 64px; border-radius: 50%; padding: 2.5px; background: var(--story-ring); }
.story-ring.seen { background: var(--ring); } .story-ring.friends { background: #3FB27F; }
.story-ring img, .story-ring .fill { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid var(--card); object-fit: cover; }
.story:hover .story-ring:not(.seen) { filter: saturate(1.25); }
.story-add { width: 64px; height: 64px; border-radius: 50%; border: 1.5px dashed var(--faint); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: border-color .2s, color .2s; }
.story:hover .story-add { border-color: var(--acc); color: var(--acc-text); }
.story-plus { position: absolute; right: 0; top: 44px; width: 22px; height: 22px; border-radius: 50%; background: var(--acc); color: #fff; border: 2px solid var(--card); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.stories-empty { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 13px; padding: 0 6px; min-width: 200px; }

/* ---------- Composer bar ---------- */
.composer { padding: 14px; display: flex; align-items: center; gap: 10px; }
.composer-input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; background: var(--bg); color: var(--muted); font-size: 15px; text-align: left; padding: 0 16px; cursor: text; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-input:hover { background: var(--hover); }
.composer-actions { display: flex; gap: 2px; flex-shrink: 0; }
.chip-btn { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--ink2); font-size: 13.5px; font-weight: 500; }
.chip-btn:hover { background: var(--hover2); }
[data-theme="dark"] .chip-btn .fa-image { color: #9B92FF !important; }
.join { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(120deg, var(--acc-soft), var(--card) 60%); }
.join-text { display: flex; flex-direction: column; gap: 3px; min-width: 220px; flex: 1; }
.join-text b { font-family: var(--f-head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.join-btns { display: flex; gap: 8px; }

/* ---------- Post card ---------- */
.feed { display: flex; flex-direction: column; gap: 16px; }
#dle-content { display: flex; flex-direction: column; gap: 16px; }
.post { padding: 20px 22px 12px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.post--fixed { border-color: color-mix(in oklch, var(--acc) 30%, var(--line)); }
.post-repost, .post-pin { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: -4px 0 -6px 2px; font-weight: 500; }
.post-repost i { color: var(--green); } .post-pin i { color: var(--acc-text); }
.post-repost a { color: var(--ink2); font-weight: 600; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-av { flex-shrink: 0; border-radius: 50%; }
.post-name { display: flex; align-items: center; gap: 6px; font-size: 15px; flex-wrap: wrap; row-gap: 0; min-width: 0; }
.post-name b, .post-who { font-weight: 600; color: var(--ink); }
.post-who:hover { color: var(--acc-text); }
.post-handle { font-size: 13.5px; }
.post-handle a { color: inherit; }
.post-handle a:hover { color: var(--acc-text); }
.post-place { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-place a { color: inherit; }
.new-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); display: inline-block; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--ink2); background: var(--hover2); padding: 6px 10px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.tag:hover { background: var(--hover); color: var(--ink); }
.tag a { color: inherit; }
.tag-soft { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 12px; padding: 4px 9px; max-width: none; }
.post-title { font-family: var(--f-head); font-weight: 600; letter-spacing: -.025em; font-size: 21px; line-height: 1.15; margin-bottom: -6px; text-wrap: balance; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--acc-text); }
.post-text { font-size: 15.5px; line-height: 1.55; color: var(--text); text-wrap: pretty; overflow-wrap: anywhere; }
.post-text p { margin: 0 0 .6em; } .post-text p:last-child { margin: 0; }
.post-text a:not(.more) { text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--acc) 35%, transparent); text-underline-offset: 3px; }
.more { color: var(--acc-text); font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.more i { font-size: 12px; transition: transform .2s; } .more:hover i { transform: translateX(3px); }
.post-edited { font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.media { border-radius: 18px; overflow: hidden; background: var(--line2); }
.media a { display: block; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 18px; overflow: hidden; }
.media-grid a { display: block; overflow: hidden; background: var(--line2); }
.media-grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.media-grid--2 img { aspect-ratio: 4 / 5; }
.media-grid--3 a:first-child { grid-row: span 2; } .media-grid--3 a:first-child img { aspect-ratio: auto; height: 100%; }
.media a:hover img, .media-grid a:hover img { transform: scale(1.02); }
.post-actions { display: flex; align-items: center; gap: 4px; margin: 0 -10px; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.act a, a.act { color: inherit; display: inline-flex; align-items: center; gap: 7px; }
.post-actions > a, .article-bar > a { color: var(--muted); border-radius: 12px; }
.post-actions > a:hover, .article-bar > a:hover { color: var(--ink); }
.act:hover { background: var(--hover2); color: var(--ink); }
.act.like:hover, a:hover > .act.like { background: var(--like-soft); color: var(--danger); }
.act.like.on, .act.like.on a { color: var(--danger); }
.act.save { margin-left: auto; } .act.save.on { color: var(--acc-text); }
.post-actions > a:has(.act.save) { margin-left: auto; }
.act.repost.on { color: var(--green); }
.act.repost:hover { background: color-mix(in oklch, var(--green) 10%, transparent); color: var(--green); }
.act[disabled] { opacity: .45; cursor: default; }
.act i { font-size: 16px; }
.act .n:empty::before { content: '0'; }
.act--stars { padding: 6px 8px; }
.act--vote { gap: 4px; padding: 4px 6px; }
.act--vote b { min-width: 18px; text-align: center; color: var(--ink2); }
.vote-up, .vote-down { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.vote-up:hover { background: var(--positive-soft); color: var(--positive); } .vote-down:hover { background: var(--negative-soft); color: var(--negative); }
.ratingtypeplus, .ratingtypeplusminus, .ratingplus, .ratingminus { font: inherit; color: inherit; }
.ignore-select { user-select: none; }

/* Poll (DLE {poll}) */
.post-poll { display: flex; flex-direction: column; gap: 8px; }
.post-poll form { margin: 0; }
.poll { display: flex; flex-direction: column; gap: 8px; }
.poll-list > div[id^="dle-poll-list"] { display: flex; flex-direction: column; gap: 8px; }
.pollanswer { margin: 0; }
.pollanswer label, .poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; width: 100%; color: var(--ink); }
.pollanswer label:hover, .poll-opt:hover { border-color: var(--acc); }
.pollanswer input { position: absolute; opacity: 0; pointer-events: none; }
.pollanswer input:checked + span { color: var(--acc-text); }
.pollanswer:has(input:checked) label { border-color: var(--acc); background: var(--acc-soft); }
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--hover2); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.poll-opt.mine { border-color: var(--acc); font-weight: 600; } .poll-opt.mine .bar { background: var(--acc-soft); }
.poll-opt span { position: relative; display: flex; align-items: center; gap: 8px; }
.poll-opt .pct { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.poll.voted .poll-opt { cursor: default; }
.poll-meta { font-size: 12.5px; color: var(--muted2); padding: 2px 4px 0; }
.poll-actions { display: flex; gap: 6px; }
.poll.is-instant .poll-actions { display: none; }
.pollprogress { height: 8px; border-radius: 99px; background: var(--hover2); overflow: hidden; margin: 4px 0 10px; }
.pollprogress span { display: block; height: 100%; background: var(--acc); color: transparent; font-size: 0; border-radius: 99px; }
.vote-q { font-weight: 600; font-size: 14.5px; padding: 0 4px; }
.vote-card { gap: 12px; display: flex; flex-direction: column; }

/* Empty */
.empty { border: 1px dashed var(--faint); border-radius: var(--r-card); background: var(--card); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.empty--soft { border-style: solid; border-color: var(--line2); background: var(--bg); padding: 24px; color: var(--muted); flex-direction: row; justify-content: center; }
.empty-title { font-family: var(--f-head); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.empty-ico { font-size: 26px; color: var(--faint); }
.empty .muted { max-width: 440px; }
.empty--soft .empty-ico { font-size: 18px; }

/* ---------- Category hero ---------- */
.cat-hero { overflow: hidden; border-radius: 28px; }
.cat-band { position: relative; height: 128px; overflow: hidden; background: color-mix(in oklch, var(--c) 14%, var(--card)); }
.cat-band i { position: absolute; right: -10px; top: -26px; font-size: 170px; opacity: .14; color: var(--c); }
.cat-body { padding: 0 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.cat-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -38px; position: relative; z-index: 1; }
.cat-icon { width: 76px; height: 76px; border-radius: 24px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; border: 4px solid var(--card); background: var(--c); }
.cat-btns { display: flex; gap: 8px; }
.cat-name { font-family: var(--f-head); font-weight: 600; font-size: 30px; letter-spacing: -.035em; line-height: 1.15; }
.cat-desc { color: var(--muted); font-size: 15px; margin-top: 4px; line-height: 1.5; }
.cat-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 14px; border-top: 1px solid var(--line2); }
.cat-faces { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.stat { display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
a.stat:hover b { color: var(--acc-text); }
.stat b { font-weight: 600; font-size: 17px; letter-spacing: -.02em; } .stat span { font-size: 13px; color: var(--muted); }
.page-intro { padding: 22px 24px; }

/* ---------- Right rail ---------- */
.search { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--muted2); margin: 0; }
.search:focus-within { border-color: var(--acc); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--ink); height: 100%; }
.search input::placeholder { color: var(--muted2); }
.search input::-webkit-search-cancel-button { display: none; }
.kbd { font-family: var(--f-mono); font-size: 10.5px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.cat-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.cat-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 10px; border-radius: 14px; text-align: left; color: var(--ink); }
.cat-row:hover, .cat-row.on { background: var(--hover2); color: var(--ink); }
.cat-row.on .cat-row-name { font-weight: 600; }
.cat-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: color-mix(in oklch, var(--c, #9A968C) 15%, transparent); color: var(--c, var(--muted)); }
.cat-ico--plain { --c: var(--muted); }
.cat-row-name { flex: 1; font-size: 14px; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-row .count { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted2); }
.cat-row .end { width: 16px; text-align: center; font-size: 11px; color: var(--faint); }
.trend { display: flex; gap: 14px; align-items: baseline; padding: 9px 12px; border-radius: 14px; color: var(--ink); }
.trend:hover { background: var(--hover2); color: var(--ink); }
.trend .rank { font-family: var(--f-mono); font-size: 11px; color: var(--muted2); }
.trend > span:last-child { min-width: 0; }
.rank-av { position: relative; flex-shrink: 0; }
.rank-av b { position: absolute; right: -4px; bottom: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--ink); color: var(--bg); border: 2px solid var(--card); font-family: var(--f-mono); font-size: 9.5px; display: flex; align-items: center; justify-content: center; }
.growth { font-family: var(--f-mono); font-size: 11.5px; color: var(--green); }
.foot { display: flex; flex-direction: column; gap: 10px; padding: 4px 12px 12px; font-size: 12.5px; color: var(--muted2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot-links a { color: var(--muted); } .foot-links a:hover { color: var(--ink); }
.foot-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot-made { display: inline-flex; align-items: center; gap: 8px; color: var(--muted2); font-family: var(--f-mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.foot-made:hover { color: var(--ink); }
.dm-logo { display: block; height: 13px; width: auto; color: var(--ink); overflow: visible; position: relative; top: -1px; }
.foot-made:hover .dm-mod { fill: url(#vdm-mod); }

/* ---------- Post page ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; padding-top: 4px; flex-wrap: wrap; min-width: 0; }
.crumbs .tools { margin-left: auto; display: flex; gap: 6px; }
.crumbs > .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.article { border-radius: 28px; padding: 30px 32px 22px; display: flex; flex-direction: column; gap: 22px; }
.article-meta { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.article-meta .pinned { text-transform: none; font-family: var(--f-body); letter-spacing: 0; font-size: 12.5px; }
.article-title { margin-top: -6px; font-family: var(--f-head); font-weight: 600; font-size: 38px; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.article-author { display: flex; align-items: center; gap: 12px; }
.article-lead { font-size: 19px; line-height: 1.55; text-wrap: pretty; overflow-wrap: anywhere; color: var(--ink); }
.article-lead--solo { font-size: 17.5px; line-height: 1.65; color: var(--text); }
.article-lead p, .text p { margin: 0 0 1em; } .article-lead p:last-child, .text p:last-child { margin-bottom: 0; }
.text { font-size: 16.5px; line-height: 1.75; color: var(--text); text-wrap: pretty; overflow-wrap: anywhere; }
.text h2, .text h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; margin: 1.4em 0 .5em; }
.text h2 { font-size: 24px; } .text h3 { font-size: 20px; }
.text img { border-radius: 18px; height: auto; margin: 6px 0; }
.text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklch, var(--acc) 40%, transparent); }
.text blockquote, .quote { margin: 1em 0; padding: 14px 18px; border-left: 3px solid var(--acc); background: var(--hover2); border-radius: 0 16px 16px 0; color: var(--ink2); font-style: normal; }
.text ul, .text ol { padding-left: 1.3em; margin: 0 0 1em; } .text li { margin: .25em 0; }
.text iframe, .text video { max-width: 100%; border-radius: 18px; border: 0; }
.text table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.text td, .text th { border: 1px solid var(--line); padding: 8px 10px; }
.title_spoiler, .text_spoiler { border-radius: 12px; }
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; }
.hashtags a { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--acc-text); }
.hashtags a::before { content: '#'; opacity: .6; margin-right: 1px; }
.hashtags a:hover { background: var(--acc-soft); }
.likers { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.likers a { color: var(--ink); font-weight: 500; }
.article-bar { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line2); margin: 0 -10px; flex-wrap: wrap; }
.article-bar .act { min-height: 44px; padding: 0 14px; border-radius: 14px; font-size: 14px; font-weight: 500; }
.article-bar .act.save { margin-left: 0; }
.article-bar > a:has(.act.save), .article-bar .act.save:first-of-type { margin-left: auto; }
.split-pages, .pagination--split { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.split-pages a, .split-pages span, .pagination--split a, .pagination--split span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.split-pages > span:not(:has(a)), .pagination--split .pg-pages > span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination--split .label { border: 0; min-width: 0; padding: 0; color: var(--muted); font-family: var(--f-mono); font-size: 11px; background: none; }

/* Discussion & comments */
.discussion { border-radius: 28px; padding: 26px 28px; display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 16px; }
.disc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.disc-title { font-family: var(--f-head); font-weight: 600; font-size: 22px; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; }
.count-pill { font-family: var(--f-mono); font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--hover2); color: var(--muted); font-weight: 400; letter-spacing: 0; }
#dle-comments-form, .discussion form { margin: 0; }
.addc { display: flex; gap: 12px; align-items: flex-start; }
.addc-av { margin-top: 2px; }
.c-box { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); padding: 12px 12px 10px 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.c-box:focus-within { border-color: var(--acc); }
.c-box textarea, .c-box .bb-editor textarea, .c-box #comments { width: 100%; border: 0 !important; outline: 0; resize: vertical; background: transparent !important; font-size: 15px; line-height: 1.5; color: var(--ink); padding: 0 !important; min-height: 54px; box-shadow: none !important; }
.c-box .bb-editor { border: 0 !important; background: transparent !important; padding: 0 !important; }
.c-box .bb-pane { display: none !important; }
.c-box.is-rich .bb-pane { display: flex !important; }
.addc-guest { font-size: 13px; color: var(--muted); }
.addc-fields .field { background: var(--card); }
.addc-row { display: flex; flex-direction: column; gap: 6px; }
.addc-captcha { flex-direction: row; align-items: center; gap: 10px; }
.addc-captcha .field { max-width: 200px; background: var(--card); }
.captcha-img img, .c-captcha img { border-radius: 10px; height: 46px; width: auto; }
.c-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.c-tools .tool { width: 34px; height: 34px; border-radius: 10px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.c-tools .tool:hover { background: var(--hover); color: var(--ink); }
.c-hint { margin-left: auto; font-size: 12px; }
.c-tools .btn { margin-left: 8px; }
.c-box:not(.has-text) [data-vl-csend] { opacity: .35; }
.addc-sub { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; }
.addc-sub label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.comments { display: flex; flex-direction: column; gap: 22px; }
.comments > .comments-tree-list, .comments > div > .comments-tree-list { display: flex; flex-direction: column; gap: 22px; }
.comments-tree-list { list-style: none; margin: 0; padding: 0; }
.comments-tree-item { list-style: none; }
.comments-tree-list .comments-tree-list { margin-top: 16px; padding-left: 16px; border-left: 2px solid var(--line2); display: flex; flex-direction: column; gap: 16px; }
#dle-ajax-comments:empty { display: none; }
.comment { display: flex; gap: 12px; }
.comment-av { position: relative; flex-shrink: 0; }
.comment-av a { display: block; border-radius: 50%; }
.comment--reply .av { width: 32px; height: 32px; }
.online-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #3FB27F; border: 2px solid var(--card); }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.comment-who, .comment-who a { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.comment-who a:hover { color: var(--acc-text); }
.comment-meta time { font-size: 13px; color: var(--muted2); }
.comment-mass:empty { display: none; }
.comment-mass input { width: 16px; height: 16px; accent-color: var(--acc); }
.author-badge { font-family: var(--f-mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--acc-text); background: var(--acc-soft); padding: 3px 7px; border-radius: 99px; }
.comment-news { display: inline-block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.comment-text { font-size: 15px; line-height: 1.55; color: var(--text); margin: 5px 0; text-wrap: pretty; overflow-wrap: anywhere; }
.comment-text .mention { color: var(--acc-text); font-weight: 500; }
.comment-text img { border-radius: 12px; max-height: 360px; width: auto; }
.comment-text .quote, .comment-text .title_quote { font-size: 14px; }
.comment-text .title_quote { margin: 8px 0 -6px; padding: 8px 14px 0; background: var(--hover2); border-radius: 12px 12px 0 0; font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--acc); }
.comment-images { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.comment-images img { border-radius: 12px; max-height: 180px; width: auto; }
.comment-sign { font-size: 12.5px; color: var(--muted2); border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 6px; }
.comment-acts { display: flex; align-items: center; gap: 2px; margin-left: -8px; flex-wrap: wrap; }
.comment-acts > a, .c-act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 10px; color: var(--muted); font-size: 13px; }
.comment-acts > a:hover, .c-act:hover { background: var(--hover2); color: var(--ink); }
.comment-acts > a { padding: 0; }
.comment-acts > a > .c-act { height: 32px; }
.c-act--static { cursor: default; } .c-act--static:hover { background: none; color: var(--muted); }
.c-like:hover, a:hover > .c-like { color: var(--danger); background: var(--like-soft); }
.c-like.on, .c-like.on a { color: var(--danger); }
.c-like .n:empty, .c-like .n .ratingtypeplus:empty { display: none; }
.c-score { min-width: 18px; text-align: center; font-size: 13px; color: var(--ink2); } .c-score.is-pos { color: var(--positive); } .c-score.is-neg { color: var(--negative); }
.c-tool { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted2); font-size: 13px; }
.c-tool:hover, a:hover > .c-tool { background: var(--hover2); color: var(--ink); }
.c-tool--danger:hover, a:hover > .c-tool--danger { color: var(--danger); background: var(--like-soft); }
.comment .comment-acts .c-tool { opacity: .0; transition: opacity .2s; }
.comment:hover .comment-acts .c-tool, .comment:focus-within .comment-acts .c-tool { opacity: 1; }
@media (hover: none) { .comment .comment-acts .c-tool { opacity: 1; } }
.dle-reply-form, .comments-tree-item .addcomments-form { margin-top: 10px; }
.discussion .pagination { margin-top: -6px; }
.next-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); text-align: left; color: var(--ink); }
.next-card:hover { border-color: var(--faint); color: var(--ink); }
.next-card .grow { display: flex; flex-direction: column; gap: 6px; }
.next-title { font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.next-arrow { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.next-card:hover .next-arrow { transform: translateX(3px); }
.next-card + .next-card--prev { display: none; }

/* Author card */
.author-card { overflow: hidden; }
.author-band { height: 78px; background: linear-gradient(120deg, #DCD8FB, #FFE2D8); background-size: cover; background-position: center; }
[data-theme="dark"] .author-band { background: linear-gradient(120deg, #221F45, #2E1A15); }
.author-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.author-body > .av { width: 72px; height: 72px; margin-top: -36px; border: 4px solid var(--card); }
.author-body .post-name { font-size: 17px; }
.author-bio { font-size: 14px; line-height: 1.5; color: var(--text); }
.author-btns { display: flex; gap: 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-stats > * { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 12px; background: var(--bg); color: var(--ink); }
a.mini-stats > *:hover, .mini-stats > a:hover { background: var(--hover); color: var(--ink); }
.mini-stats b { font-weight: 600; font-size: 14px; white-space: nowrap; } .mini-stats span { font-size: 11px; color: var(--muted); }

/* ---------- Profile ---------- */
.profile { border-radius: 28px; overflow: hidden; }
.profile-cover { height: 210px; background: linear-gradient(120deg, #DCD8FB 0%, #FFE2D8 55%, #FFEFC9 100%); background-size: cover; background-position: center; }
[data-theme="dark"] .profile-cover { background-color: #221F45; }
[data-theme="dark"] .profile-cover:not([style]) { background-image: linear-gradient(120deg, #221F45, #2E1A15 60%, #2a2412); }
.profile-body { padding: 0 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.profile-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -58px; position: relative; z-index: 1; }
.profile-av { width: 116px; height: 116px; border-radius: 50%; border: 5px solid var(--card); object-fit: cover; box-shadow: 0 8px 24px rgba(20, 20, 18, .12); background: var(--line2); }
.profile-btns { display: flex; gap: 8px; padding-bottom: 4px; flex-wrap: wrap; }
.profile-btns > a.btn, .profile-btns > .btn { flex-shrink: 0; }
.profile-name { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: 28px; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.profile-name .verified { font-size: 18px; }
.profile-sub { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 4px; flex-wrap: wrap; }
.p-role:empty { display: none; }
.p-role::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; margin-right: 8px; vertical-align: middle; }
.is-online { color: #2E9E68; }
.profile-bio { font-size: 16px; line-height: 1.55; color: var(--text); max-width: 560px; overflow-wrap: anywhere; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--muted); }
.profile-meta > * { display: flex; align-items: center; gap: 7px; }
.profile-meta a { color: var(--acc-text); }
.profile-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 16px; border-top: 1px solid var(--line2); }
.known { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.known:hover .muted { color: var(--ink); }
.notice--warn { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.highlights { padding: 18px 20px; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.highlights::-webkit-scrollbar { display: none; }
.hl { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; width: 72px; font-size: 12px; color: var(--ink2); cursor: pointer; }
.hl-name { max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-ring { display: block; width: 68px; height: 68px; border-radius: 22px; padding: 2px; border: 1.5px solid var(--line); transition: border-color .2s; }
.hl:hover .hl-ring { border-color: var(--acc); }
.hl-ring img, .hl-ring .fill { display: block; width: 100%; height: 100%; border-radius: 19px; object-fit: cover; }
.hl-add { width: 68px; height: 68px; border-radius: 22px; border: 1.5px dashed var(--faint); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.hl:hover .hl-add { border-color: var(--acc); color: var(--acc-text); }
.tabs { align-self: flex-start; max-width: 100%; }
.tabs button { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; }
.ppane { display: flex; flex-direction: column; gap: 12px; }
.p-item { position: relative; display: flex; gap: 18px; padding: 20px 22px; border-radius: 22px; transition: border-color .2s; }
.p-item:hover { border-color: var(--faint); }
.p-item-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.p-item .tag { position: relative; z-index: 2; }
.p-item .p-pin { z-index: 3; }
.p-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.p-item h3 { font-family: var(--f-head); font-weight: 600; font-size: 18px; letter-spacing: -.02em; line-height: 1.25; margin: 8px 0 6px; overflow-wrap: anywhere; }
.p-item h3 a { color: var(--ink); position: relative; z-index: 2; }
.p-item p { font-size: 14.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.p-item-stats { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.p-item-stats span { display: flex; align-items: center; gap: 6px; }
.p-thumb { width: 116px; height: 116px; flex-shrink: 0; border-radius: 16px; object-fit: cover; background: var(--line2); }
.p-pin { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px; color: var(--faint); display: flex; align-items: center; justify-content: center; background: var(--card); opacity: 0; transition: opacity .2s; }
.p-item:hover .p-pin, .p-pin:focus-visible { opacity: 1; }
.p-pin:hover { color: var(--acc-text); background: var(--hover2); }
.p-item--pin { border-color: color-mix(in oklch, var(--acc) 30%, var(--line)); }
.pinned { display: flex; align-items: center; gap: 5px; color: var(--acc-text); font-weight: 600; }
.pinned--soft { color: var(--green); }
.media-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.media-wall > a { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--line2); display: block; }
.media-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.media-wall > a:hover img { transform: scale(1.04); }
.media-wall span { position: absolute; inset: auto 0 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); color: #fff; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.wall-multi { margin-left: auto; }
.btn-block.btn-ghost { margin-top: 2px; }
.about-card, .settings { padding: 0; overflow: hidden; }
.about-card > summary, .settings > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; cursor: pointer; font-weight: 600; font-size: 15px; }
.about-card > summary::-webkit-details-marker, .settings > summary::-webkit-details-marker { display: none; }
.about-card > summary span, .settings > summary span { display: flex; align-items: center; gap: 10px; }
.about-card > summary span i, .settings > summary span i { color: var(--muted); }
.about-card > summary > i, .settings > summary > i { color: var(--muted); font-size: 12px; transition: transform .25s; }
.about-card[open] > summary > i, .settings[open] > summary > i { transform: rotate(180deg); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0 22px 10px; }
.facts > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line2); }
.facts dt { font-size: 12px; color: var(--muted); } .facts dd { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.facts dd a { color: var(--acc-text); }
.facts-wide { grid-column: 1 / -1; }
.about-tools { padding: 0 22px 18px; display: flex; gap: 8px; }
.about-tools:empty { display: none; }
.settings-body { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.set-sep { font-family: var(--f-head); font-weight: 600; font-size: 16px; margin: 8px 0 -4px; letter-spacing: -.01em; }
.settings-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.check-row { font-size: 14px; }
.check-row label, .check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input, .check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--acc); }
.req { color: var(--danger); }

/* Stats card (own profile) */
.stats-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.stats-big { display: flex; align-items: baseline; gap: 10px; }
.stats-big b { font-family: var(--f-head); font-weight: 600; font-size: 34px; letter-spacing: -.04em; }
.stats-big span { font-size: 13px; font-weight: 600; color: var(--green); } .stats-big span.down { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 10.5px; color: var(--muted2); }
.bars i { display: block; width: 100%; border-radius: 6px; background: var(--acc-soft); }
.bars i.hi { background: var(--acc); }
.kpis { border-top: 1px solid var(--line2); padding-top: 6px; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; }
.kpi i { width: 16px; text-align: center; color: var(--muted); } .kpi b { margin-left: auto; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink2); font-size: 13px; font-weight: 500; white-space: nowrap; flex-shrink: 0; background: transparent; cursor: pointer; }
.chip:hover { border-color: var(--faint); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); } .chip.on i { color: var(--bg) !important; }
.chip a { color: inherit; }

/* ---------- Overlay & modals ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(14, 14, 13, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .2s ease; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 620px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-modal); overflow: hidden; animation: pop .25s cubic-bezier(.2, .8, .2, 1); margin: auto; }
.modal--login { max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px 24px; gap: 12px; }
.modal-title { font-family: var(--f-head); font-weight: 600; font-size: 21px; letter-spacing: -.025em; }
.modal-close { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--hover2); color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; } .modal-close:hover { background: var(--hover); color: var(--ink); }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 24px 18px; display: grid; align-content: start; gap: 14px; }
.modal-foot { display: flex; align-items: center; gap: 4px; padding: 12px 18px 16px; border-top: 1px solid var(--line2); }
.login-note { font-size: 14px; }
.login-note.is-alert { color: var(--ink); background: var(--acc-soft); padding: 10px 12px; border-radius: 12px; }
.login-links { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.login-soc { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.login-soc-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.login-soc:not(:has(a)) { display: none; }
.aud { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--acc-soft); color: var(--acc-text); font-size: 12px; font-weight: 600; }
.title-input { width: 100%; border: 0; outline: 0; background: transparent; padding: 6px 0 0; font-family: var(--f-head); font-weight: 600; font-size: 26px; letter-spacing: -.03em; color: var(--ink); }
.title-input::placeholder, .body-input::placeholder { color: var(--faint); }
.body-input { width: 100%; min-height: 96px; border: 0; outline: 0; resize: none; font-size: 16.5px; line-height: 1.55; padding: 0; background: transparent; color: var(--text); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 34px 20px; border-radius: 20px; border: 1.5px dashed var(--faint); cursor: pointer; text-align: center; transition: background-color .2s, border-color .2s; width: 100%; }
.drop.over, .drop:hover { border-color: var(--acc); background: var(--acc-soft); }
.drop-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--acc-soft); color: var(--acc-text); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .thumbs.one { grid-template-columns: 1fr; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--line2); }
.thumbs.one .thumb { aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(20, 20, 18, .62); backdrop-filter: blur(6px); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.thumb.is-loading::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .5) center no-repeat; }
.thumb .spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 20, 18, .35); color: #fff; font-size: 20px; }
.add-tile { border-radius: 16px; border: 1.5px dashed var(--faint); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; min-height: 80px; }
.add-tile:hover { border-color: var(--acc); color: var(--acc-text); }
.poll-edit { border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.poll-edit .field { background: var(--card); }
.poll-edit-head { display: flex; align-items: center; justify-content: space-between; }
.opt-row { display: flex; align-items: center; gap: 8px; }
.opt-n { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font-family: var(--f-mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.opt-del { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; color: var(--muted2); } .opt-del:hover { background: var(--hover); }
.add-opt { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; margin-left: 36px; border-radius: 14px; border: 1.5px dashed var(--faint); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.add-opt:hover { border-color: var(--acc); color: var(--acc-text); }
.tool-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.tool-btn:hover, .tool-btn.on { background: var(--hover2); }
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.5; } .ring .track { stroke: var(--line); } .ring .val { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 62.83; transition: stroke-dashoffset .2s; }
.ring.warn .val { stroke: #FF7A59; }
.cat-pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-hint { font-size: 12.5px; color: var(--muted2); } .cat-hint.ok { color: var(--green); }
.place-row { display: flex; align-items: center; gap: 8px; }
.place-row .field { height: 40px; }
.compose-note { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.modal-foot .muted2 { font-family: var(--f-mono); font-size: 12px; min-width: 26px; }

/* Story composer */
.story-modal { max-width: 820px; flex-direction: row; flex-wrap: wrap; gap: 28px; padding: 24px; border-radius: 32px; max-height: none; overflow: visible; }
.story-preview { position: relative; width: 300px; max-width: 100%; flex-shrink: 0; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 24px; overflow: hidden; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.story-preview .txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center; font-size: 30px; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.story-preview .who { position: absolute; top: 24px; left: 14px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.story-preview .bar { position: absolute; top: 12px; left: 12px; right: 12px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .4); }
.story-form { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 20px; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: box-shadow .2s; }
.upload-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1.5px dashed var(--faint); text-align: left; width: 100%; }
.upload-row:hover { border-color: var(--acc); }
.photo-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; border: 1px solid var(--line); }
.photo-row img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.aud-row { display: flex; gap: 8px; }

/* Story viewer */
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 9, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: center; gap: 28px; padding: 24px; animation: fade .2s; }
.viewer .x { position: absolute; top: 20px; right: 24px; z-index: 3; }
.v-btn { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #F4F3EF; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.v-btn:hover { background: rgba(255, 255, 255, .2); } .v-btn.dim { opacity: .35; }
.v-card { position: relative; height: min(86vh, 820px); aspect-ratio: 9 / 16; max-width: calc(100vw - 180px); border-radius: 28px; overflow: hidden; background: #1C1B19; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); color: #fff; user-select: none; }
.v-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-tap { position: absolute; top: 70px; bottom: 80px; width: 35%; z-index: 1; }
.v-tap--l { left: 0; } .v-tap--r { right: 0; }
.v-shade-t { position: absolute; inset: 0 0 auto; height: 130px; background: linear-gradient(rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.v-shade-b { position: absolute; inset: auto 0 0; height: 200px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.v-segs { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 4px; z-index: 2; }
.v-segs div { flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.v-segs i { display: block; height: 100%; width: 0; background: #fff; }
.v-head { position: absolute; top: 30px; left: 16px; right: 12px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.v-head a { color: #fff; display: flex; align-items: center; gap: 10px; min-width: 0; }
.v-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-head .av { border: 2px solid #fff; }
.v-head .v-btn { width: 34px; height: 34px; background: none; font-size: 14px; }
.v-head .v-btn:hover { background: rgba(255, 255, 255, .15); }
.v-own { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; font-size: 34px; line-height: 1.15; overflow-wrap: anywhere; text-wrap: balance; }
.v-caption { position: absolute; left: 18px; right: 18px; bottom: 84px; font-size: 18px; line-height: 1.4; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); z-index: 2; overflow-wrap: anywhere; }
.v-foot { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.v-foot input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); color: #fff; outline: none; font-size: 14.5px; }
.v-foot input::placeholder { color: rgba(255, 255, 255, .75); }
.v-foot button { width: 46px; height: 46px; flex-shrink: 0; color: #fff; font-size: 20px; border-radius: 50%; }
.v-foot button:hover { background: rgba(255, 255, 255, .12); }
.v-foot .on { color: #FF7A59; }
.v-foot .v-views { display: inline-flex; align-items: center; gap: 8px; width: auto; flex: 0 1 auto; height: 40px; padding: 0 16px 0 14px; border-radius: 99px; color: #fff; font-size: 14px; font-weight: 500; background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: left; white-space: nowrap; }
.v-foot .v-views i { font-size: 15px; }
.v-foot .v-views:hover { background: rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .4); }
.v-foot input.is-shake { animation: vl-shake .35s; border-color: #FF7A59; }
@keyframes vl-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.v-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 60%; overflow-y: auto; background: rgba(20, 20, 18, .96); border-radius: 22px 22px 0 0; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.v-sheet .row { color: #fff; } .v-sheet .row:hover { background: rgba(255, 255, 255, .08); }
.v-sheet .row-sub { color: rgba(255, 255, 255, .6); }
.v-menu { position: absolute; top: 72px; right: 14px; z-index: 4; background: rgba(20, 20, 18, .96); border-radius: 16px; padding: 6px; display: flex; flex-direction: column; min-width: 200px; }
.v-menu button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; color: #fff; font-size: 14px; text-align: left; }
.v-menu button:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 700px) { .viewer { padding: 0; } .viewer > .v-btn:not(.x) { display: none; } .v-card { max-width: 100%; width: 100%; height: 100%; height: 100dvh; border-radius: 0; aspect-ratio: auto; } .viewer .x { top: 26px; right: 10px; } }

/* Highlight picker */
.pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pick { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--line2); border: 2px solid transparent; }
.pick img, .pick .fill { width: 100%; height: 100%; object-fit: cover; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; padding: 6px; color: #fff; }
.pick.on { border-color: var(--acc); }
.pick .ok { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.pick.on .ok { background: var(--acc); }
.pick time { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

/* Edit profile */
.edit-cover { position: relative; height: 150px; border-radius: 20px; background: linear-gradient(120deg, #DCD8FB, #FFE2D8) center / cover; margin-bottom: 30px; }
.edit-cover .btn { position: absolute; right: 12px; top: 12px; height: 36px; background: rgba(20, 20, 18, .6); backdrop-filter: blur(8px); color: #fff; font-weight: 500; font-size: 13px; }
.edit-cover .btn + .btn { right: auto; left: 12px; }
.edit-av { position: absolute; left: 20px; bottom: -36px; width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--card); background: #DCD8FB center / cover; }
.edit-av button { position: absolute; right: -4px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--card); background: var(--acc); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.label { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label-top { display: flex; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.field { width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; outline: none; }
.field:focus { border-color: var(--acc); }
textarea.field { height: auto; padding: 12px 16px; line-height: 1.5; resize: vertical; }
select.field, .label select { height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); padding: 0 12px; font-size: 15px; width: 100%; }
.field--file { padding: 10px 14px; height: auto; font-size: 14px; }

/* ---------- Pages ---------- */
.page-head { display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 0; }
.page-head .crumbs { padding-top: 0; }
.page-title { font-family: var(--f-head); font-weight: 600; font-size: 32px; letter-spacing: -.035em; line-height: 1.1; overflow-wrap: anywhere; }
.page-title .hash { color: var(--acc-text); margin-right: 2px; }
.page-sub { font-size: 15px; line-height: 1.5; max-width: 560px; }
.page-head .head-tools { margin-top: 2px; }
.speedbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.speedbar a { color: var(--muted); } .speedbar a:hover { color: var(--ink); }
.page-head .speedbar > span > a:first-child, .page-head .speedbar > a:first-child { display: none; }
.sec-title { font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; padding: 4px 4px 0; }
.sec-title i { color: var(--muted); font-size: 16px; }
.notice { display: flex; gap: 14px; padding: 18px 20px; align-items: flex-start; }
.notice-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--acc-soft); color: var(--acc-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px; }
.notice-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notice-title { font-family: var(--f-head); font-weight: 600; font-size: 17px; }
.notice-text { font-size: 14.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.notice-text ul { padding-left: 1.2em; } .notice-text a { color: var(--acc-text); font-weight: 500; }
.notice.is-error .notice-icon { background: var(--like-soft); color: var(--danger); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; }
.pagination .pg-pages { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span:not(.pg-pages):not(.sr-only) { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 14px; }
.pagination .pg-pages > span:not(.nav_ext) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .nav_ext { border: 0 !important; background: none !important; color: var(--muted) !important; min-width: 20px !important; padding: 0 !important; }
.pagination a:hover { border-color: var(--faint); color: var(--ink); }
.pagination .pg-arrow { border-radius: 50%; }
.pagination a .pg-arrow { border: 0; min-width: 0; height: auto; padding: 0; background: none; }
.pagination .is-off { opacity: .4; }
.load-more { display: flex; justify-content: center; }
.load-more .btn { min-width: 200px; }
.vl-spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: vlSpin .7s linear infinite; }
@keyframes vlSpin { to { transform: rotate(360deg); } }

/* Notifications */
.n-group { padding: 8px; display: flex; flex-direction: column; }
.n-head { font-family: var(--f-mono); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); padding: 10px 12px 6px; }
.n-row { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; }
.n-row:hover { background: var(--hover2); }
.n-row.is-new { background: color-mix(in oklch, var(--acc) 6%, var(--card)); }
.n-row.is-new:hover { background: color-mix(in oklch, var(--acc) 10%, var(--card)); }
.n-link { position: absolute; inset: 0; border-radius: inherit; }
.n-row a:not(.n-link), .n-row .btn { position: relative; z-index: 1; }
.n-av { position: relative; flex-shrink: 0; }
.n-av i { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; border: 2px solid var(--card); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.n-text { display: block; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.n-text b { color: var(--ink); font-weight: 600; }
.n-quote { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--line); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-time { display: block; font-size: 12px; color: var(--muted2); margin-top: 4px; }
.n-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.n-thumb--story { width: 40px; height: 64px; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.person { position: relative; overflow: hidden; border-radius: 22px; display: flex; flex-direction: column; }
.person:hover { border-color: var(--faint); }
.person-link { position: absolute; inset: 0; z-index: 1; }
.person .btn { position: relative; z-index: 2; margin-top: auto; }
.person-band { height: 64px; background: linear-gradient(120deg, #DCD8FB, #FFE2D8); background-size: cover; background-position: center; }
[data-theme="dark"] .person-band:not([style]) { background: linear-gradient(120deg, #221F45, #2E1A15); }
.person-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.person-body > .av { margin-top: -32px; border: 4px solid var(--card); width: 64px; height: 64px; }
.person-name { display: flex; align-items: center; gap: 6px; font-size: 15.5px; } .person-name b { font-weight: 600; }
.person-bio { font-size: 13.5px; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.person-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.person-stats b { color: var(--ink); font-weight: 600; }

/* Explore */
.ex-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ex-tag { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.ex-tag:hover { border-color: var(--acc); color: var(--ink); }
.ex-tag b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-tag span { font-size: 12.5px; color: var(--muted); }

/* Fast search */
.vl-fsearch { left: 0; right: 0; }
.vl-fsearch, #searchsuggestions { position: absolute; top: calc(100% + 6px); z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 6px; max-height: 70vh; overflow-y: auto; }
#searchsuggestions { max-width: calc(100vw - 24px) !important; box-sizing: border-box; }
#searchsuggestions a, .s-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink); }
#searchsuggestions a:hover, .s-item:hover { background: var(--hover2); color: var(--ink); }
.s-item__img { width: 36px; height: 36px; border-radius: 11px; background: var(--hover2); color: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.s-item__img img { width: 100%; height: 100%; object-fit: cover; }
.s-item__body { min-width: 0; display: flex; flex-direction: column; }
.s-item__title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-item__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#searchsuggestions .seperator, #searchsuggestions .notfound { display: block; padding: 10px; font-size: 13px; color: var(--muted); }
#searchsuggestions .seperator a { display: inline; padding: 0; color: var(--acc-text); }
.search-over { position: fixed; inset: 0; z-index: 95; background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.search-over .search { margin: 0; }
.search-over-head { display: flex; gap: 8px; align-items: center; }
.search-over-head .search { flex: 1; }

/* ---------- DLE service pages ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.section-heading h1, .section-heading h2 { font-family: var(--f-head); font-weight: 600; font-size: 26px; letter-spacing: -.03em; line-height: 1.15; }
.section-heading p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.panel-head { display: flex; flex-direction: column; gap: 6px; }
.form-body { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-row--inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-row--check { flex-direction: row; }
.form-label, .search-fieldset legend { font-family: var(--f-mono); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.form-req { color: var(--danger); margin-left: 3px; }
.form-input, .panel input[type="text"], .panel input[type="email"], .panel input[type="password"], .panel input[type="search"], .panel input[type="number"], .panel select, .panel textarea, .auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"] { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; outline: none; }
.panel textarea, textarea.form-input { padding: 12px 14px; line-height: 1.5; min-height: 110px; resize: vertical; }
.form-input:focus, .panel input:focus, .panel select:focus, .panel textarea:focus, .auth-form input:focus { border-color: var(--acc); }
.form-input--file { padding: 10px 14px; font-size: 14px; }
.form-inline { display: flex; gap: 8px; }
.form-inline .form-input { flex: 1; }
.form-hint, .form-actions__hint { font-size: 13px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.form-check-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.form-check-input { width: 18px; height: 18px; accent-color: var(--acc); }
.c-captcha { display: flex; align-items: center; gap: 10px; }
.c-captcha input { max-width: 220px; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; }
.panel--narrow { max-width: none; }
:is(.panel, .auth-form, .addvote) .btn:not(.btn-ink):not(.btn-accent):not(.btn-plain):not(.btn-ghost) { background: var(--card); border: 1px solid var(--line); }
:is(.panel, .auth-form, .addvote) .btn:not(.btn-ink):not(.btn-accent):not(.btn-plain):not(.btn-ghost):hover { border-color: var(--faint); }
details.addvote { border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--card); }
details.addvote summary { list-style: none; cursor: pointer; }
.addvote-sum { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; }
.addvote-sum:hover { background: var(--hover2); }
.addvote-sum .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.addvote-sum b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.addvote-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--acc-soft); color: var(--acc-text); font-size: 16px; }
.addvote-sum .chev { color: var(--muted); font-size: 13px; transition: transform .2s; }
details.addvote[open] .addvote-sum .chev { transform: rotate(180deg); }
details.addvote[open] .addvote__body { padding: 4px 16px 16px; }
details.addvote summary::-webkit-details-marker { display: none; }
.addvote__body { display: flex; flex-direction: column; gap: 14px; padding: 12px 8px 6px; }
.admin_checkboxs:empty { display: none; }
.admin_checkboxs .checkbox { display: inline-flex; margin-right: 14px; }
.auth-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-form__title { font-family: var(--f-head); font-weight: 600; font-size: 26px; letter-spacing: -.03em; }
.auth-form__lead { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.search-fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.search-fieldset legend { padding: 0 6px; }
.searchtable, .search-advanced { display: flex; flex-direction: column; gap: 14px; }
.search-advanced { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.search-fieldset--wide, .search-actions { grid-column: 1 / -1; }
.search-simple { display: flex; flex-direction: column; gap: 14px; }
.search-result-msg { font-size: 14px; color: var(--muted); }
.searchpage #searchinput, .searchtable input[name="story"] { font-size: 17px; }
.stats-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats-cards .stats-card { padding: 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line2); gap: 4px; }
.stats-card__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.stats-card__value { font-family: var(--f-head); font-weight: 600; font-size: 30px; letter-spacing: -.03em; }
.stats-card__hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.stats-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.stats-group { border: 1px solid var(--line2); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.stats-group h2 { font-family: var(--f-head); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stats-group h2 i { color: var(--muted); }
.stats-group ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.stats-group li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line2); padding-top: 6px; }
.stats-db, .stats-top-title { font-size: 14px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.userstop { width: 100%; border-collapse: collapse; font-size: 14px; }
.userstop td, .userstop th { padding: 10px 8px; border-bottom: 1px solid var(--line2); text-align: left; }
.userstop th { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 400; }
.static-page .article-body { margin-top: -4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.tag-cloud a { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--acc-text); background: var(--card); }
.tag-cloud a:hover { background: var(--acc-soft); }
.tag-cloud a::before { content: '#'; opacity: .55; margin-right: 1px; }
.clouds_xsmall { font-size: 12px; } .clouds_small { font-size: 13px; } .clouds_medium { font-size: 14px; } .clouds_large { font-size: 16px; font-weight: 500; } .clouds_xlarge { font-size: 19px; font-weight: 600; }
.attachment { display: inline-flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); margin: 6px 0; max-width: 100%; }
.attachment-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--acc-soft); color: var(--acc-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.attachment-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.attachment-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-meta { font-size: 12.5px; }
.partner a { display: flex; flex-direction: column; gap: 4px; }

/* PM */
.p-pm .panel { gap: 16px; }
.pm-menu { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-menu a { display: inline-flex; }
.pm-status { display: flex; flex-direction: column; gap: 6px; }
.pm-status__bar .progress, .pm-status__bar > div { height: 8px; border-radius: 99px; background: var(--hover2); overflow: hidden; }
.pm-status__bar .progress-bar, .pm-status__bar span { display: block; height: 100%; background: var(--acc); border-radius: 99px; }
.pm-status__text { font-size: 12.5px; color: var(--muted); }
.pmlist table { width: 100%; border-collapse: collapse; }
.pmlist td, .pmlist th { padding: 12px 8px; border-bottom: 1px solid var(--line2); font-size: 14px; vertical-align: middle; }
.pmlist th { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 400; text-align: left; }
.pmlist tr:hover td { background: var(--hover2); }
.pmlist a { color: var(--ink); font-weight: 500; }
.pmlist .pm-unread a, .pmlist b a { font-weight: 700; }
.pmlist input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--acc); }
.pmlist select { width: auto; min-height: 38px; }
.pm-dialog { gap: 14px; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.thread__item { display: flex; flex-direction: column; gap: 8px; max-width: 86%; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: var(--bg); border: 1px solid var(--line2); align-self: flex-start; }
.thread__item--own { align-self: flex-end; background: var(--acc-soft); border-color: transparent; border-radius: 20px 20px 6px 20px; }
.thread__top { display: flex; align-items: center; gap: 10px; }
.thread__avatar { position: relative; flex-shrink: 0; }
.thread__avatar .avatar, .thread__avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.thread__online { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #3FB27F; border: 2px solid var(--card); }
.thread__who a { font-weight: 600; color: var(--ink); font-size: 14px; }
.thread__when { display: flex; gap: 8px; font-size: 12px; color: var(--muted2); }
.thread__text { font-size: 15px; line-height: 1.55; }
.thread__signature { font-size: 12.5px; color: var(--muted2); border-top: 1px dashed var(--line); padding-top: 6px; }
.thread__actions { display: flex; gap: 2px; flex-wrap: wrap; margin-left: -6px; }
.thread__actions a { display: inline-flex; }
.thread__btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border-radius: 10px; color: var(--muted); font-size: 12.5px; }
.thread__btn:hover, a:hover > .thread__btn { background: var(--card); color: var(--ink); }
.thread__btn--danger:hover, a:hover > .thread__btn--danger { color: var(--danger); }
.reply-form { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line2); padding-top: 14px; }
.reply-form__title { font-family: var(--f-head); font-weight: 600; font-size: 16px; }

/* Profile popup (DLE) */
.ppop { display: flex; flex-direction: column; gap: 14px; min-width: 260px; }
.ppop-top { display: flex; align-items: center; gap: 12px; }
.ppop-ava { position: relative; flex-shrink: 0; }
.ppop-who { display: flex; flex-direction: column; gap: 2px; } .ppop-who b { font-family: var(--f-head); font-size: 17px; font-weight: 600; }
.ppop-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.ppop-facts div { background: var(--bg); border-radius: 12px; padding: 8px 10px; }
.ppop-facts dt { font-size: 11.5px; color: var(--muted); } .ppop-facts dd { margin: 0; font-weight: 600; font-size: 14px; }
.ppop-links .chip a { color: inherit; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; display: flex; align-items: center; gap: 10px; min-height: 46px; max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast i { color: #3FB27F; } .toast.is-error i { color: #FF7A59; }
.toast a { color: inherit; text-decoration: underline; }

/* Offline / bye */
.bye { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; }
.bye-inner { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.bye-title { font-family: var(--f-serif); font-weight: 500; font-size: 40px; letter-spacing: -.5px; line-height: 1.1; }
.bye-title em { color: var(--acc-text); }
.bye-reason { font-size: 15px; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.side-left .btn-lg { width: 100%; }
}
@media (max-width: 900px) {
	.app { grid-template-columns: minmax(0, 1fr); padding: 12px 16px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); gap: 16px; }
	.side-left { display: none; }
	.mtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 50; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: transform .3s, border-color .3s; }
	.mtop.is-scrolled { border-bottom-color: var(--line); }
	.mtop.is-hidden { transform: translateY(-100%); }
	.mtop .brand { padding: 0; gap: 8px; }
	.mtop .brand-logo { width: 30px; height: 30px; }
	.mtop .brand-word { font-size: 28px; }
	.mtop-tools { display: flex; align-items: center; gap: 8px; }
	.dot-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--acc); color: #fff; font-family: var(--f-mono); font-size: 10px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); font-style: normal; font-weight: 500; }
	.tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); background: color-mix(in oklch, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); align-items: center; justify-content: space-around; }
	.tabbar > a, .tabbar > button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 52px; border-radius: 14px; color: var(--muted); font-size: 10.5px; font-weight: 500; }
	.tabbar > a i, .tabbar > button i { font-size: 19px; }
	.tabbar > a.active { color: var(--ink); }
	.tabbar > a.active i { font-weight: 900; }
	.tabbar .av { border: 2px solid transparent; }
	.tabbar > a.active .av { border-color: var(--ink); }
	.tabbar .dot-n { top: 2px; right: calc(50% - 22px); }
	.tab-plus { flex: 0 0 auto !important; width: 52px; height: 42px !important; border-radius: 16px !important; background: var(--acc); color: #fff !important; }
	.tab-plus i { font-size: 17px !important; }
	.greeting { font-size: 28px; line-height: 34px; }
	.feed-head { padding-top: 0; }
	.toast { bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); }
	.side-right { display: none; }
	.p-full .mtop .brand-word { font-size: 24px; }
}
@media (max-width: 760px) {
	.feed-head .head-tools { width: 100%; justify-content: space-between; }
	.feed-head .segmented { flex: 1; justify-content: space-between; }
	.feed-head .segmented > a, .feed-head .segmented > button { flex: 1; justify-content: center; }
	.feed-head .theme-toggle { display: none; }
	.feed-head--cat .head-tools { width: auto; }
}
@media (max-width: 600px) {
	.post { padding: 16px 16px 8px; gap: 12px; border-radius: 20px; }
	.post-title { font-size: 19px; }
	.post-text { font-size: 15px; }
	.post-actions { margin: 0 -8px; gap: 0; }
	.act { padding: 8px 9px; }
	.tag { max-width: 38%; padding: 5px 8px; font-size: 10px; }
	.tag i { display: none; }
	.post-head .tag i { display: inline; }
	.chip-btn span { display: none; }
	.composer { padding: 12px; }
	.composer-input { height: 42px; font-size: 14.5px; padding: 0 12px; }
	.composer .av { width: 38px; height: 38px; }
	.article { padding: 22px 18px; border-radius: 22px; gap: 18px; }
	.article-title { font-size: 28px; }
	.article-lead { font-size: 17px; }
	.text { font-size: 16px; }
	.article-bar { margin: 0 -6px; }
	.article-bar .act { padding: 0 10px; }
	.act--share span, .article-bar .act.save span { display: none; }
	.discussion { padding: 20px 16px; border-radius: 22px; }
	.addc-av { display: none; }
	.c-hint { display: none; }
	.c-tools .btn { margin-left: auto; }
	.comments-tree-list .comments-tree-list { padding-left: 10px; }
	.profile { border-radius: 22px; }
	.profile-cover { height: 150px; }
	.profile-body { padding: 0 18px 20px; }
	.profile-av { width: 96px; height: 96px; }
	.profile-top { margin-top: -48px; }
	.profile-name { font-size: 24px; }
	.known { margin-left: 0; width: 100%; }
	.p-item { padding: 16px; gap: 14px; }
	.p-thumb { width: 80px; height: 80px; }
	.p-pin { opacity: 1; top: 8px; right: 8px; }
	.media-wall { gap: 4px; } .media-wall > a { border-radius: 12px; }
	.facts { grid-template-columns: 1fr; }
	.cat-body { padding: 0 18px 18px; }
	.cat-name { font-size: 26px; }
	.cat-icon { width: 64px; height: 64px; font-size: 26px; border-radius: 20px; }
	.cat-faces { margin-left: 0; }
	.panel, .auth-form { padding: 20px 16px; border-radius: 22px; }
	.search-advanced { grid-template-columns: 1fr; }
	.stats-cards { grid-template-columns: 1fr; }
	.people-grid { grid-template-columns: 1fr; }
	.ex-tags { grid-template-columns: 1fr; }
	.page-title { font-size: 27px; }
	.overlay { padding: 0; align-items: flex-end; }
	.overlay > .modal { max-height: 94vh; max-height: 94dvh; border-radius: 26px 26px 0 0; animation: sheet .3s cubic-bezier(.2, .8, .2, 1); }
	.overlay > .modal.story-modal { border-radius: 26px 26px 0 0; overflow-y: auto; padding: 18px; gap: 18px; }
	.story-preview { width: 200px; }
	.pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.thread__item { max-width: 96%; }
	.next-card { padding: 16px 18px; }
	.next-title { font-size: 17px; }
	.n-thumb { width: 44px; height: 44px; }
	.modal-body { padding: 4px 18px 16px; }
	.title-input { font-size: 22px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .5; } }
@media (max-width: 380px) {
	.greeting { font-size: 25px; }
	.mtop .brand-word { font-size: 24px; }
	.round-btn { width: 36px; height: 36px; }
	.mtop-tools { gap: 6px; }
	.segmented > a, .segmented > button { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Lightbox, мелочи */
.lb-img { max-width: min(92vw, 1400px); max-height: 88vh; border-radius: 18px; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-n { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--f-mono); font-size: 12px; opacity: .8; }
.pop-menu--down { top: calc(100% + 6px); bottom: auto; }
.act.like.pop i { animation: vlPulse .4s ease; }
.vl-noplugin .stories, .vl-noplugin .composer, .vl-noplugin [data-vl-compose], .vl-noplugin .more, .vl-noplugin .p-role, .vl-noplugin .me-btn { display: none !important; }

/* Уведомления DLE (DLEPush) — карточкой */
.DLEPush { z-index: 140; }
.DLEPush-notification.wrapper, .DLEPush-notification.wrapper.push-success, .DLEPush-notification.wrapper.push-warning, .DLEPush-notification.wrapper.push-error { background: var(--card) !important; color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-pop); overflow: hidden; }
.DLEPush-notification .DLEPush-icon { border-radius: 14px 0 0 14px; }
.DLEPush-notification.wrapper.push-success .DLEPush-icon { background: var(--acc); }
.DLEPush-notification .DLEPush-header { font-family: var(--f-head); }
.c-box textarea[name="comments"] { height: 52px !important; min-height: 52px !important; max-height: 320px; resize: none !important; overflow-y: auto; }
.sortbox { position: relative; }
.sortbox form { display: block; }
.sort-btn { font-size: 13px; height: 40px; }
.pop-menu .menu-item.on { font-weight: 600; }
.pop-menu .menu-item.on i { color: var(--acc-text); }
.head-tools .sortbox .pop-menu { right: 0; left: auto; }
.addc-captcha { display: flex; }
.title-input:focus-visible, .body-input:focus-visible { outline: none; }
.pollanswer { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }

/* ---------- Правки после QA (07.10.2026) ---------- */
.main > form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.row-name-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row .btn-icon.btn-sm { flex-shrink: 0; }
.comment-av { align-self: flex-start; height: 40px; }
.comment--reply .comment-av { height: 32px; }
.addc-sub input[type="checkbox"], .check-row input[type="checkbox"], .form-check-input, .check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--faint); background: var(--card); display: inline-grid; place-content: center; cursor: pointer; flex-shrink: 0; margin: 0; }
.addc-sub input[type="checkbox"]:checked, .check-row input[type="checkbox"]:checked, .form-check-input:checked, .check input:checked { background: var(--acc); border-color: var(--acc); }
.addc-sub input[type="checkbox"]:checked::after, .check-row input[type="checkbox"]:checked::after, .form-check-input:checked::after, .check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.form-check-input[type="radio"] { border-radius: 50%; }
.c-tools { align-items: center; }
.c-box:not(.has-text) [data-vl-csend] { opacity: .45; }
[data-theme="dark"] .btn-ink { background: var(--ink); color: #0E0E0D; }
.sep-before:empty { display: none; }
.sep-before::before { content: '·'; margin: 0 6px; color: var(--faint); }
.media img, .media-grid img, .p-thumb, .media-wall img { color: transparent; font-size: 0; }
.modal textarea.field, .body-input { resize: none; }
.v-caption { font-family: var(--f-body); font-size: 16px; }
.page-sub { text-wrap: balance; }
.n-thumb, .n-thumb--story { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.seg-links, .chips-scroll { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); scroll-padding-inline: 8px; padding-right: 28px; }
.page-head .speedbar { display: none; }
.notice-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.DLEPush { top: auto !important; bottom: 24px !important; right: 24px !important; }
.static-page form#registration { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pm-dialog .thread__who a, .pmlist a { overflow-wrap: anywhere; }
.pmlist table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pmlist .bbcodes, .pmlist button, .pmlist input[type="submit"] { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; }
.pmlist select { height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); padding: 0 10px; }
@media (max-width: 900px) {
	.feed-head .theme-toggle { display: none; }
	.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; }
	.tabbar > a, .tabbar > button { width: 100%; }
	.tab-plus { width: 52px !important; }
	.DLEPush { right: 16px !important; left: 16px !important; width: auto !important; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 700px) {
	.v-head { right: 60px; }
	.pmlist table, .pmlist thead, .pmlist tbody, .pmlist tr, .pmlist td, .pmlist th { display: block; width: 100% !important; }
	.pmlist thead, .pmlist tr:first-child th { display: none; }
	.pmlist tr { padding: 10px 4px; border-bottom: 1px solid var(--line2); position: relative; }
	.pmlist td { border: 0 !important; padding: 2px 0 !important; text-align: left !important; }
	.pmlist td:has(input[type="checkbox"]) { position: absolute; right: 4px; top: 12px; width: auto !important; }
	.pm_navigation, table.pm_navigation { display: flex !important; flex-wrap: wrap; gap: 8px; }
	.pmlist select { flex: 1; min-width: 0; }
}
@media (max-width: 600px) {
	.overlay > .modal { margin: auto 0 0 !important; max-height: 92dvh; }
	.article-author .btn:not(.btn-icon) { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
	.article-author .btn span { display: none; }
	.post-name { flex-wrap: nowrap; }
	.post-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
@media (max-width: 420px) {
	.comment-acts { flex-wrap: nowrap; gap: 0; }
	.comment-acts .c-act { font-size: 0; gap: 0; }
	.comment-acts .c-act i, .comment-acts .c-act .n { font-size: 13px; }
	.comment-acts .c-act .n { margin-left: 5px; }
	.comment-acts .c-act--static { display: none; }
}

.btn.is-off { opacity: .4; }
.DLEPush { z-index: 95 !important; }
.me-btn { padding: 0; overflow: hidden; }
.me-btn .av { width: 100%; height: 100%; }
.me-sheet .menu-head { padding: 4px 0 14px; }
.me-sheet { gap: 2px; }
@media (min-width: 901px) { .me-btn { display: none; } }

.search input:focus-visible, .search input:focus { outline: none; box-shadow: none; }

.brand { max-width: 100%; min-width: 0; }
.brand-word { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.brand-word.is-long { font-size: 27px; }
.brand-word.is-xlong { font-size: 22px; display: block; white-space: nowrap; }
.mtop .brand-word.is-long { font-size: 23px; }
.mtop .brand-word.is-xlong { font-size: 19px; max-width: 46vw; }
.side-left .brand { width: 100%; }

/* Полная форма поста: категории плитками; ЛС: действия кнопками (07.10.2026) */
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick .chip { cursor: pointer; }
.cat-pick .chip.is-sub::before { content: "↳"; margin-right: 4px; opacity: .55; }
.cat-pick .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-pick-hint { display: block; margin-top: 6px; }
.pmlist td:has(.pm-bulk) { padding: 14px 8px !important; }
.pm-bulk { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.pm-bulk .muted { margin-right: auto; }
.pmlist .pm-bulk .btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; font-size: 12.5px; white-space: nowrap; }
.pmlist .pm-bulk .btn.is-danger { color: var(--danger); }
.pmlist .pm-bulk .btn.is-danger:hover { border-color: var(--danger); }

/* DLE Message PRO — расширение «Расширенного»: цвета, шрифт и место Velora. Без модуля эти правила ничего не задевают */
.mpro { --mpro-accent: var(--acc) !important; --mpro-accent-text: #FFFFFF !important; --mpro-radius: 18px !important; --mpro-bg: var(--bg) !important; --mpro-panel: var(--card) !important; --mpro-soft: var(--hover2) !important; --mpro-hover: var(--hover) !important; --mpro-line: var(--line) !important; --mpro-text: var(--ink) !important; --mpro-muted: var(--muted) !important; --mpro-bubble: var(--hover2) !important; --mpro-bubble-text: var(--text) !important; --mpro-danger: var(--danger) !important; --mpro-shadow: var(--shadow-pop) !important; font-family: var(--f-body); }
[data-theme="dark"] .mpro, .mpro.mpro-dark { --mpro-soft: #22211E !important; --mpro-bubble: #262521 !important; --mpro-shadow: 0 24px 60px rgba(0, 0, 0, .55) !important; }
.mpro .mpro-badge { background: var(--acc); }
.app:has(.mpro-page) { grid-template-columns: 248px minmax(0, 1fr); max-width: 1320px; }
.app:has(.mpro-page) .side-right { display: none; }
.main:has(> .mpro-page) { gap: 0; }
.app .main > .mpro.mpro-page { border: 1px solid var(--line); border-radius: var(--r-card); margin: 0; box-shadow: none; }
.p-pm .main > .mpro-page ~ * { display: none; }
@media (max-width: 1200px) { .app:has(.mpro-page) { grid-template-columns: 248px minmax(0, 1fr); } }
@media (max-width: 900px) { .app:has(.mpro-page) { grid-template-columns: minmax(0, 1fr); padding-top: 0; } .app .main > .mpro.mpro-page { border-radius: 0; border-left: 0; border-right: 0; } .app .main > .mpro.mpro-page:not(.mpro-full) { width: auto; margin: 0 -16px; } .app .main > .mpro.mpro-page.mpro-full { margin: 0; } }

/* 1.1.1 — замечания покупателя (08.10.2026) */
#dlefastreplycomments textarea, .comments-edit-area textarea { width: 100%; min-height: 110px; height: 120px; padding: 12px 14px !important; border: 1.5px solid var(--ring) !important; border-radius: 14px; background: var(--card) !important; color: var(--ink); font-size: 15px; line-height: 1.5; outline: 0; box-shadow: none; resize: vertical; transition: border-color .15s, box-shadow .15s; }
#dlefastreplycomments textarea:focus, .comments-edit-area textarea:focus { border-color: var(--acc) !important; box-shadow: 0 0 0 3px var(--acc-soft) !important; }
.modal .title-input, .modal .body-input { border: 1.5px solid var(--ring); border-radius: 14px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.modal .title-input { padding: 10px 14px; font-size: 22px; }
.modal .body-input { padding: 12px 14px; min-height: 110px; }
.modal .title-input:focus, .modal .body-input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.video-row { display: flex; flex-direction: column; gap: 6px; }
.video-row[hidden] { display: none; }
.video-hint { margin: 0 0 0 30px; font-size: 12.5px; color: var(--muted); }
.video-hint.bad { color: var(--danger); }
.media--video { border-radius: 18px; overflow: hidden; background: #000; }
.media--video .dle-media-block, .article .dle-media-block { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; margin: 0; }
.media--video iframe, .dle-media-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feed-note { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--acc-soft); color: var(--ink2); font-size: 13.5px; line-height: 1.45; }
.feed-note b { color: var(--ink); font-weight: 600; }
.feed-note-av { display: flex; flex-shrink: 0; }
.feed-note-av .av { border: 2px solid var(--acc-soft); }
.feed-note-av .av + .av { margin-left: -9px; }
.tabbar .tab-plus.is-top { background: var(--card) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 900px) {
	.mpro.mpro-mini { display: none !important; }
	#dlemod-demo-bar { bottom: calc(var(--tabbar-h, 64px) + 10px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 600px) {
	.post-head { align-items: flex-start; }
	.post-name { flex-wrap: wrap; row-gap: 1px; }
	.post-who { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
	.post-handle { flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.post-head .tag { font-size: 0; gap: 0; padding: 0; width: 32px; height: 32px; justify-content: center; max-width: none; margin-top: 4px; }
	.post-head .tag i { font-size: 13px; }
	.modal .title-input { font-size: 19px; }
}

/* 1.1.1 — мобильная проверка агентами (08.10.2026) */
.ci-short { display: none; }
.table-scroll { background: linear-gradient(90deg, var(--card) 30%, transparent) left / 24px 100% no-repeat local, linear-gradient(270deg, var(--card) 30%, transparent) right / 24px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .16), transparent) left / 10px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .16), transparent) right / 10px 100% no-repeat scroll; }
.article-author .post-name { flex-wrap: nowrap; }
.article-author .post-name .post-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: none) { .kbd { display: none; } }
@media (max-width: 600px) {
	.modal-foot { flex-wrap: wrap; row-gap: 10px; padding: 10px 14px 14px; }
	.modal-foot .tool-btn { width: 42px; height: 42px; flex: 0 0 42px; }
	.modal-foot [data-c="publish"] { flex: 1 0 100%; order: 10; margin-left: 0 !important; height: 46px; justify-content: center; }
	.post-actions .act { min-height: 40px; }
	.comment-acts .c-act { min-height: 36px; min-width: 36px; display: inline-flex; align-items: center; justify-content: center; }
	.segmented a, .segmented button, .seg-links a { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
	.c-tools .tool { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
	.row .btn[data-compact] span { display: none; }
	.row .btn[data-compact] { width: 38px; height: 38px; padding: 0; justify-content: center; flex-shrink: 0; }
}
@media (max-width: 440px) {
	.ci-long { display: none; }
	.ci-short { display: inline; }
}
@media (max-width: 900px) {
	.app:has(.mpro-page) { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
	.app .main > .mpro.mpro-page:not(.mpro-full) { height: calc(100dvh - 62px - var(--tabbar-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important; min-height: 0 !important; }
}

@media (max-width: 600px) {
	.mtop .round-btn { width: 40px; height: 40px; }
	.toast { bottom: auto; top: calc(12px + env(safe-area-inset-top)); transform: translate(-50%, -20px); }
	.toast.show { transform: translate(-50%, 0); }
	.lb-img { touch-action: pan-y; }
}

.viewer { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (max-width: 600px) {
	.search input, .v-foot input, .c-box textarea, .c-box #comments, #dlefastreplycomments textarea, .modal .field, .field, .modal-login input { font-size: 16px !important; }
	body:has(.viewer) .toast { top: auto; bottom: 96px; }
	.v-head .v-btn { width: 40px; height: 40px; }
}

/* Файлы в окне «Новый пост» и плееры DLE в ленте */
.att-list { display: flex; flex-direction: column; gap: 8px; }
.att-list[hidden] { display: none; }
.att-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.att-item.is-busy { opacity: .75; }
.att-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--hover2); color: #2E9E6B; font-size: 17px; }
.att-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 12.5px; color: var(--muted); }
.att-txt b { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-rm { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.att-rm:hover { background: var(--hover2); color: var(--ink); }
.media-players { display: flex; flex-direction: column; gap: 10px; }
.media + .media-players, .media-grid + .media-players { margin-top: 10px; }
.media-players .dleaudioplayer, .media-players .dlevideoplayer { width: 100% !important; border-radius: 14px; overflow: hidden; }
body:has(.overlay:not([hidden])) #dlemod-demo-bar, body:has(.viewer) #dlemod-demo-bar, body:has(.mpro-full) #dlemod-demo-bar { display: none !important; }

/* @упоминания */
.mention-pop { position: fixed; z-index: 125; max-height: 296px; overflow-y: auto; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); }
.mention-pop[hidden] { display: none; }
.mention-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border-radius: 12px; text-align: left; color: var(--ink); }
.mention-item.on, .mention-item:hover { background: var(--hover2); }
.mention-item .grow { display: flex; flex-direction: column; min-width: 0; }
.mention-item b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-item b .verified { font-size: 12px; color: var(--acc-text); }
.mention-item .grow > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-empty { padding: 12px; font-size: 13.5px; color: var(--muted); }

/* Статистика автора */
.app:has(.st-page) { grid-template-columns: 248px minmax(0, 1fr); max-width: 1320px; }
.app:has(.st-page) .side-right { display: none; }
@media (max-width: 900px) { .app:has(.st-page) { grid-template-columns: minmax(0, 1fr); } }
.st-page { display: flex; flex-direction: column; gap: 16px; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; }
.st-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.st-who .page-title { margin: 0; font-size: 26px; }
.st-period a { color: var(--muted); }
.st-period a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (min-width: 1180px) { .st-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); } .st-kpi-l { min-height: 2.6em; } }
.st-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 14px 12px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); text-align: left; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.st-kpi:hover { transform: translateY(-1px); }
.st-kpi.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.st-kpi-ico { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); font-size: 14px; margin-bottom: 4px; }
.st-kpi-l { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.st-kpi b { font-family: var(--f-head); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.st-delta { font-size: 12px; font-weight: 600; color: var(--muted); min-height: 16px; }
.st-delta.up { color: var(--green); } .st-delta.down { color: var(--danger); } .st-delta.new { color: var(--acc-text); }
.st-chart { padding: 18px 20px 14px; }
.st-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.st-chart-head b { font-size: 16px; font-weight: 600; }
.st-chart-head .muted { font-size: 13px; }
.st-plot { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 220px auto; column-gap: 10px; }
.st-y { position: relative; grid-row: 1; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted2); min-width: 26px; text-align: right; }
.st-y span { position: absolute; right: 0; transform: translateY(-50%); }
.st-svg { position: relative; grid-row: 1; grid-column: 2; touch-action: pan-y; cursor: crosshair; }
.st-svg svg { width: 100%; height: 100%; display: block; overflow: visible; }
.st-grid-l { stroke: var(--line2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.st-x { grid-column: 2; position: relative; height: 22px; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted2); }
.st-x span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.st-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--c); transform: translate(-50%, -50%); pointer-events: none; }
.st-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none; }
.st-tipbox { position: absolute; top: 0; transform: translate(-50%, calc(-100% - 14px)); z-index: 2; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 10px; font-size: 12.5px; white-space: nowrap; pointer-events: none; display: flex; gap: 6px; align-items: baseline; }
.st-tipbox span { opacity: .7; font-size: 11.5px; }
.st-tipbox.below { transform: translate(-50%, 14px); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.st-box { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.st-box .card-title .muted { font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.st-sub { margin-top: 6px; }
.st-posts { display: flex; flex-direction: column; gap: 4px; }
.st-post { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 14px; color: var(--ink); }
.st-post:hover { background: var(--hover2); }
.st-rank { width: 18px; flex-shrink: 0; font-family: var(--f-mono); font-size: 12px; color: var(--muted2); text-align: center; }
.st-thumb { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--hover2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-post .grow { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.st-post b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-bar { height: 5px; border-radius: 99px; background: var(--hover2); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 99px; background: var(--acc); }
.st-post-m { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.st-post-m i { margin-right: 4px; }
.st-aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-aud div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: var(--hover2); }
.st-aud b { font-family: var(--f-head); font-size: 20px; font-weight: 700; }
.st-aud span { font-size: 12px; color: var(--muted); }
.st-spark { height: 56px; }
.st-spark svg { width: 100%; height: 100%; display: block; }
.st-hours { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.st-hours i { flex: 1; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--acc) 55%, transparent); min-height: 3px; }
.st-hours-l { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted2); margin-top: -6px; }
.st-tip { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--acc-soft); font-size: 13px; color: var(--ink2); line-height: 1.45; }
.st-tip i { color: var(--acc-text); margin-top: 2px; }
.st-cats { display: flex; flex-direction: column; gap: 12px; }
.st-cat { display: grid; grid-template-columns: minmax(0, 130px) 1fr 40px; align-items: center; gap: 10px; font-size: 13.5px; }
.st-cat-n { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cat-bar { height: 8px; border-radius: 99px; background: var(--hover2); overflow: hidden; }
.st-cat-bar i { display: block; height: 100%; border-radius: 99px; }
.st-cat b { text-align: right; font-weight: 600; font-size: 13px; }
.st-table-wrap { overflow-x: auto; margin: 0 -4px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.st-table th { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--muted); text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.st-table th:first-child { text-align: left; }
.st-table td { padding: 10px 6px; border-bottom: 1px solid var(--line2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-table td:first-child { text-align: left; white-space: normal; min-width: 180px; }
.st-table td:first-child a { display: block; color: var(--ink); font-weight: 500; }
.st-table td:first-child .muted { font-size: 12px; }
.st-er { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--hover2); font-weight: 600; font-size: 12.5px; }
.st-er.hi { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.st-none { margin: 0; font-size: 13.5px; }
.st-foot { font-size: 12.5px; margin: 0; }
@media (max-width: 600px) {
	.st-head { padding: 16px; }
	.st-who .page-title { font-size: 21px; }
	.st-period { width: 100%; } .st-period a { flex: 1; }
	.st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-kpi:last-child:nth-child(odd) { grid-column: span 2; }
	.st-kpi { padding: 10px 12px; gap: 1px; border-radius: 16px; }
	.st-kpi-ico { width: 26px; height: 26px; font-size: 12px; margin-bottom: 2px; }
	.st-kpi b { font-size: 19px; }
	.st-chart { padding: 14px 12px 10px; }
	.st-plot { grid-template-rows: 180px auto; }
	.st-box { padding: 16px; }
	.st-table td:first-child { min-width: 130px; }
}

/* Ряд историй: затухание у края и стрелки */
.stories-wrap { position: relative; }
.stories::after { content: ""; flex: 0 0 4px; }
.stories-wrap::before, .stories-wrap::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 64px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.stories-wrap::before { left: 1px; border-radius: var(--r-card) 0 0 var(--r-card); background: linear-gradient(90deg, var(--card) 18%, transparent); }
.stories-wrap::after { right: 1px; border-radius: 0 var(--r-card) var(--r-card) 0; background: linear-gradient(270deg, var(--card) 18%, transparent); }
.stories-wrap.more-l::before, .stories-wrap.more-r::after { opacity: 1; }
.stories-arrow { position: absolute; top: 40px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); font-size: 12px; cursor: pointer; }
.stories-arrow:hover { background: var(--hover2); }
.stories-arrow--l { left: 8px; } .stories-arrow--r { right: 8px; }
@media (hover: hover) and (pointer: fine) {
	.stories-wrap.more-l .stories-arrow--l, .stories-wrap.more-r .stories-arrow--r { display: inline-flex; }
}

/* Популярные авторы на телефоне и планшете (правой колонки там нет) */
.rail-mobile:empty { display: none; }
.au-strip { padding: 14px 0 12px; }
.au-strip .card-title { padding: 0 18px; margin-bottom: 10px; }
.au-strip .card-title a { color: var(--acc-text); text-transform: none; letter-spacing: 0; }
.au-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 18px 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.au-row::-webkit-scrollbar { display: none; }
.au-row::after { content: ""; flex: 0 0 4px; }
.au-item { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 16px; color: var(--ink); text-align: center; scroll-snap-align: start; }
.au-item:hover { background: var(--hover2); }
.au-av { position: relative; display: block; }
.au-av .av { border: 2px solid var(--card); box-shadow: 0 0 0 2px var(--acc-soft); }
.au-av b { position: absolute; right: -2px; bottom: -2px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: var(--acc); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--card); }
.au-name { font-size: 13px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.au-sub .growth { font-size: 11.5px; }

/* Телефон: картинки, выровненные в редакторе влево/вправо, — на всю ширину, без обтекания (текст рядом становится слишком узким) */
@media (max-width: 600px) {
	.text img[style*="float"], .text img[align="left"], .text img[align="right"], .text figure[style*="float"], .text .image-left, .text .image-right, .text .fr-fil, .text .fr-fir { float: none !important; display: block; width: 100% !important; max-width: 100% !important; height: auto !important; margin: 12px 0 !important; }
}

/* Основное поле комментария — заметное поле, как у ответа (1.1.0) */
.c-box textarea[name="comments"], .c-box #comments { height: 64px !important; min-height: 64px !important; padding: 12px 14px !important; border: 1.5px solid var(--ring) !important; border-radius: 14px; background: var(--card) !important; transition: border-color .15s, box-shadow .15s; }
.c-box textarea[name="comments"]:hover { border-color: var(--faint) !important; }
.c-box textarea[name="comments"]:focus, .c-box #comments:focus { border-color: var(--acc) !important; box-shadow: 0 0 0 3px var(--acc-soft) !important; }
.c-box textarea[name="comments"]::placeholder { color: var(--muted); opacity: 1; }
.c-box:focus-within { border-color: var(--line); }

/* Каналы: категории группами, карточки с подпиской (1.1.0) */
.cat-chips .chip-all { color: var(--acc-text); border-color: var(--acc-soft); background: var(--acc-soft); font-weight: 600; }
.cat-chips .chip-all i { font-size: 12px; }
.ch-group { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.ch-head { display: flex; align-items: center; gap: 12px; }
.ch-head .grow { min-width: 0; }
.ch-head-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); font-size: 17px; }
.ch-title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.ch-sub { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; }
.ch-head-act { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.ch-head { flex-wrap: wrap; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ch-card { --c: #9A968C; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .15s, transform .15s; min-width: 0; }
.ch-card:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.ch-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ch-ico { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); font-size: 20px; margin-bottom: 6px; }
.ch-name { font-size: 15px; font-weight: 650; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 4px; }
.ch-meta > span { white-space: nowrap; }
.ch-meta > span + span::before { content: "· "; }
.ch-card .btn { position: relative; z-index: 2; margin-top: auto; }
@media (max-width: 600px) {
	.ch-group { padding: 14px 10px 12px; border-radius: 20px; gap: 12px; }
	.ch-head { padding: 0 4px; }
	.ch-meta { flex-direction: column; }
	.ch-meta > span + span::before { content: none; }
	.ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ch-card { padding: 14px 10px 10px; }
	.ch-title { font-size: 18px; }
	.ch-head-act { width: 100%; justify-content: space-between; padding-left: 52px; }
	.ch-head .rail-link { font-size: 12.5px; }
}

/* Свой канал: кнопки, окно создания, автор канала (1.1.0) */
.ch-page-head { display: flex; align-items: flex-end; gap: 16px; }
.ch-page-head .grow { min-width: 0; }
.ch-page-head > .btn { flex: 0 0 auto; }
.ch-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px dashed var(--ring); background: transparent; color: var(--acc-text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ch-add:hover { border-color: var(--acc); background: var(--acc-soft); }
.ch-mine { font-size: 10.5px; margin-top: -2px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 99px; background: var(--acc-soft); color: var(--acc-text); }
.ch-ico--img { overflow: hidden; background: var(--hover2); }
.ch-ico--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-icon--img { overflow: hidden; padding: 0; }
.cat-icon--img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.cat-owner { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.cat-owner b { color: var(--ink); font-weight: 600; }
.cat-owner:hover b { color: var(--acc-text); }
.ch-modal { max-width: 560px; }
.ch-form { gap: 16px; padding-bottom: 20px; }
.ch-form-top { display: flex; gap: 16px; align-items: center; }
.ch-prev { --c: #4B3FE0; position: relative; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 24px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 16%, var(--card)); color: var(--c); font-size: 32px; overflow: hidden; }
.ch-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-prev.has-img > .fa-solid:first-child { visibility: hidden; }
.ch-prev-cam { position: absolute; right: 4px; bottom: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--card); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--card); }
.ch-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-sw { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px transparent; transition: box-shadow .15s; }
.ch-sw.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--c); }
.ch-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; max-height: 136px; overflow-y: auto; padding: 2px; }
.ch-ic { height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; font-size: 16px; }
.ch-ic:hover { color: var(--ink); border-color: var(--ring); }
.ch-ic.on { color: var(--c); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.ch-note { margin: 0; display: flex; gap: 8px; align-items: baseline; }
@media (max-width: 600px) {
	.ch-page-head { flex-direction: column; align-items: stretch; }
	.ch-page-head > .btn { align-self: flex-start; }
	.ch-add { align-self: stretch; justify-content: center; }
	.ch-prev { width: 72px; height: 72px; border-radius: 20px; font-size: 28px; }
}
.ch-form [data-c="rmav"] { align-self: flex-start; }

.empty-cat .btn { margin-top: 8px; }

/* Реакции (1.1.0) */
.act.like { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.act.like .rx-me { font-size: 17px; line-height: 1; display: inline-block; }
.act.like.pop .rx-me { animation: rxpop .4s ease; }
@keyframes rxpop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.rx-top { display: inline-flex; align-items: center; margin: 0 1px 0 2px; }
.rx-top i { font-style: normal; font-size: 14px; line-height: 1; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1.5px var(--card); }
.rx-top i + i { margin-left: -5px; }
.rx-pick { position: fixed; z-index: 1200; display: flex; gap: 2px; padding: 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(20, 20, 18, .16), 0 2px 6px rgba(20, 20, 18, .08); }
.rx-pick.in { animation: rxin .18s ease-out; }
@keyframes rxin { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.rx-pick button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: transform .12s, background .12s; }
.rx-pick button span { font-size: 26px; line-height: 1; display: block; }
.rx-pick button:hover, .rx-pick button:focus-visible { transform: translateY(-4px) scale(1.18); background: var(--hover2); outline: none; }
@media (max-width: 600px) { .rx-pick button { width: 44px; height: 44px; } }
[data-theme="dark"] .rx-pick { box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }

.cat-owner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 4px; }
.cat-owner-row .cat-owner { margin-top: 0; }
.cat-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.cat-mode i { font-size: 12px; }
.ch-form [data-c="modehint"] { display: block; margin-top: 6px; }
.cat-hero[data-vl-nopost] ~ .composer { display: none; }
.s-item__img { width: 40px; height: 40px; background: var(--acc-soft); color: var(--acc-text); }
.s-item__img img { display: block; }
