:root {
    --bg: #f4efe6;
    --paper: rgba(255, 250, 240, 0.96);
    --ink: #18202a;
    --muted: #5b6570;
    --line: rgba(24, 32, 42, 0.12);
    --accent: #0f766e;
    --accent-soft: rgba(15, 118, 110, 0.12);
    --warn: #b45309;
    --danger: #b91c1c;
    --shadow: 0 18px 45px rgba(24, 32, 42, 0.08);
    --serif: "Merriweather", Georgia, "Times New Roman", serif;
    --sans: "Manrope", "Segoe UI", sans-serif;
    --text: var(--ink);
    --chip-bg: rgba(255, 255, 255, 0.72);
    --chip-bg-strong: rgba(255, 255, 255, 0.78);
    --input-bg: rgba(255, 255, 255, 0.82);
    --textarea-bg: rgba(255, 255, 255, 0.85);
    --panel-soft: rgba(255, 250, 240, 0.62);
    --panel-outline: rgba(24, 32, 42, 0.08);
    --thumb-bg: rgba(255, 255, 255, 0.55);
    --thumb-bg-embedded: rgba(255, 255, 255, 0.54);
    --popover-bg: rgba(255, 255, 255, 0.97);
    --popover-link-bg: rgba(255, 255, 255, 0.88);
    --popover-logout-bg: rgba(255, 255, 255, 0.72);
    --popover-shadow: 0 12px 40px rgba(24, 32, 42, 0.14);
    --mobile-drawer-section: rgba(255, 255, 255, 0.82);
    --mobile-drawer-nav: rgba(255, 255, 255, 0.9);
    --body-orb-1: rgba(245, 158, 11, 0.12);
    --body-orb-2: rgba(15, 118, 110, 0.12);
    --input-placeholder: rgba(24, 32, 42, 0.45);
    --showcase-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.12));
    --showcase-base: rgba(255, 250, 240, 0.7);
    --featured-media-bg: linear-gradient(110deg, rgba(240, 236, 228, 0.9) 0%, rgba(255, 250, 240, 0.95) 45%, rgba(240, 236, 228, 0.9) 90%);
    --button-light-bg: rgba(255, 255, 255, 0.86);
    --empty-state-bg: rgba(255, 255, 255, 0.72);
    --sticky-header-bg: rgba(251, 246, 238, 0.98);
    --sticky-header-shadow: 0 3px 12px rgba(24, 32, 42, 0.04);
    --drawer-bg: rgba(247, 241, 231, 0.98);
    --post-card-mobile-bg: rgba(255, 250, 242, 0.72);
    --post-card-mobile-border: rgba(24, 32, 42, 0.08);
    --scroll-top-bg: rgba(255, 255, 255, 0.78);
    --meta-pill-bg: rgba(255, 255, 255, 0.76);
    --link-inline: #0b635d;
    --card-surface: rgba(255, 255, 255, 0.82);
    --embedded-card-bg: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c1016;
    --paper: rgba(30, 38, 50, 0.96);
    --ink: #eef2f7;
    --muted: #9aa6b8;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #3ee0c9;
    --accent-soft: rgba(62, 224, 201, 0.18);
    --warn: #fbbf24;
    --danger: #f87171;
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
    --text: var(--ink);
    --chip-bg: rgba(255, 255, 255, 0.1);
    --chip-bg-strong: rgba(255, 255, 255, 0.14);
    --input-bg: rgba(255, 255, 255, 0.08);
    --textarea-bg: rgba(255, 255, 255, 0.08);
    --panel-soft: rgba(255, 255, 255, 0.06);
    --panel-outline: rgba(255, 255, 255, 0.12);
    --thumb-bg: rgba(255, 255, 255, 0.08);
    --thumb-bg-embedded: rgba(255, 255, 255, 0.07);
    --popover-bg: rgba(26, 33, 44, 0.98);
    --popover-link-bg: rgba(255, 255, 255, 0.1);
    --popover-logout-bg: rgba(255, 255, 255, 0.08);
    --popover-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    --mobile-drawer-section: rgba(255, 255, 255, 0.06);
    --mobile-drawer-nav: rgba(255, 255, 255, 0.08);
    --body-orb-1: rgba(245, 158, 11, 0.08);
    --body-orb-2: rgba(62, 224, 201, 0.1);
    --input-placeholder: rgba(238, 242, 247, 0.45);
    --showcase-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    --showcase-base: rgba(22, 30, 42, 0.92);
    --featured-media-bg: linear-gradient(110deg, rgba(28, 38, 52, 0.98) 0%, rgba(40, 52, 68, 0.95) 45%, rgba(28, 38, 52, 0.98) 90%);
    --button-light-bg: rgba(255, 255, 255, 0.1);
    --empty-state-bg: rgba(255, 255, 255, 0.08);
    --sticky-header-bg: rgba(18, 24, 32, 0.97);
    --sticky-header-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
    --drawer-bg: rgba(14, 18, 26, 0.98);
    --post-card-mobile-bg: rgba(30, 38, 50, 0.88);
    --post-card-mobile-border: rgba(255, 255, 255, 0.1);
    --scroll-top-bg: rgba(255, 255, 255, 0.12);
    --meta-pill-bg: rgba(255, 255, 255, 0.12);
    --link-inline: #7af0dc;
    --card-surface: rgba(255, 255, 255, 0.09);
    --embedded-card-bg: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, var(--body-orb-1), transparent 28%),
        radial-gradient(circle at bottom right, var(--body-orb-2), transparent 30%),
        var(--bg);
    font-family: var(--sans);
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; border-radius: 16px; }

.page-shell, .admin-shell { min-height: 100vh; }
.page-shell { padding: 32px 24px 48px; }
.site-header, .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.site-header h1, .section-head h1, .auth-card h1 {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}
.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: var(--muted);
}
.site-branding .eyebrow .site-brand-teletext {
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.06em;
    text-transform: none;
    text-decoration: none;
}
.site-branding .eyebrow .site-brand-teletext:hover {
    color: var(--accent);
}
.site-nav, .admin-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.site-nav a, .admin-nav a, .group-list a, .quick-links a, .pager a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--chip-bg);
}
.site-nav-form {
    margin: 0;
}
.site-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--chip-bg);
    color: inherit;
    cursor: pointer;
    font: inherit;
}
.site-user-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--muted);
}
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--chip-bg-strong);
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 999px;
}
.group-list a.is-active, .pager a.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mobile-feed-drawer {
    display: none;
}
.mobile-feed-drawer-card {
    display: grid;
    gap: 10px;
}
.mobile-feed-section {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--mobile-drawer-section);
}
.mobile-feed-section h2 {
    margin: 0 0 10px;
    font-size: 16px;
}
.mobile-feed-nav {
    display: grid;
    gap: 8px;
}
.mobile-feed-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--mobile-drawer-nav);
}

.flash {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
}
.flash-success { background: rgba(16, 185, 129, 0.1); }
.flash-error { background: rgba(239, 68, 68, 0.08); }

.feed-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    gap: 24px;
    align-items: start;
}
.sidebar-card, .panel, .post-card, .filter-panel, .metric-card, .auth-card {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 24px;
}
.sidebar-card, .panel, .auth-card { padding: 20px; }
.sidebar-card h2, .panel h2 { margin: 0 0 16px; font-size: 20px; }
.group-list, .quick-links { display: flex; flex-direction: column; gap: 10px; }

.cut-phrase-panel {
    margin-top: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cut-phrase-toggle {
    width: 100%;
    text-align: center;
}
.cut-phrase-memo {
    margin: 0;
}
.cut-phrase-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.cut-phrase-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 176px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    background: var(--textarea-bg);
    resize: vertical;
}
.cut-phrase-textarea::placeholder {
    color: var(--input-placeholder);
}
.cut-phrase-mark-read {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}
.cut-phrase-mark-read input {
    margin-top: 2px;
    flex-shrink: 0;
}
.cut-phrase-hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}
.cut-phrase-status {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--accent);
    min-height: 1.2em;
}
.stats-card dl { margin: 0; display: grid; gap: 12px; }
.stats-card div { display: flex; justify-content: space-between; gap: 12px; }
.stats-card dt { color: var(--muted); }

.feed-main { min-width: 0; }
.filter-panel { padding: 18px; margin-bottom: 16px; }
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.filter-actions, .button-row, .post-actions, .table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-actions { margin-top: 14px; }
input[type="text"], input[type="search"], input[type="password"], input[type="url"], input[type="date"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--input-bg);
    font: inherit;
    color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder,
textarea::placeholder {
    color: var(--input-placeholder);
}
label span, fieldset legend {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--muted);
}
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-grid { display: grid; gap: 8px; }
.inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
}
.button-light { background: var(--button-light-bg); color: var(--ink); border: 1px solid var(--line); }
.button-accent { background: var(--accent); color: #fff; }
.button-danger { background: var(--danger); color: #fff; }
.button-icon {
    min-width: 38px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 18px;
    line-height: 1;
}

.posts { display: grid; gap: 18px; }
.post-card {
    position: relative;
    padding: 22px;
    overflow: hidden;
}
.post-card.is-read { opacity: 0.88; }
.post-card.is-disliked,
.post-card.is-hidden { border-color: rgba(180, 83, 9, 0.4); }
.post-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.post-head > div:first-of-type {
    min-width: 0;
    flex: 1 1 auto;
}
.post-head h3 {
    margin: 6px 0;
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 26px);
}
.post-headline-toggle {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.22;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    line-break: auto;
    text-wrap: pretty;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.post-card.is-read .post-headline-toggle,
.article-card.is-read h1 {
    color: var(--muted);
    font-weight: 400;
}
.post-headline-toggle:disabled {
    cursor: default;
}
.post-head h3 a,
.post-headline-toggle {
    color: inherit;
    text-decoration: none;
}
.post-card.has-expandable-content .post-headline-toggle:hover,
.post-card.has-expandable-content .post-headline-toggle:focus-visible,
.post-head h3 a:hover {
    color: var(--accent);
}
.post-headline-toggle:focus-visible {
    outline: 2px solid rgba(15, 118, 110, 0.32);
    outline-offset: 3px;
    border-radius: 6px;
}
.meta-top, .meta-bottom, .sidebar-note { color: var(--muted); margin: 0; }
.meta-top {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.channel-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.16s ease, border-color 0.16s ease;
}
.channel-link:hover,
.channel-link:focus-visible {
    color: var(--accent);
    border-color: rgba(15, 118, 110, 0.32);
}
.channel-inline-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    max-width: 100%;
}
.reaction-badge-inline {
    flex-shrink: 0;
}
.post-badges { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(24, 32, 42, 0.06);
    border: 1px solid var(--line);
    font-size: 13px;
}
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(15, 118, 110, 0.2); }
.badge-muted { color: var(--muted); }
.badge-warning { background: rgba(180, 83, 9, 0.12); color: var(--warn); }
.reaction-badge {
    gap: 6px;
    padding-inline: 10px;
}
.reaction-badge-icon {
    font-size: 12px;
    line-height: 1;
    color: #ef4444;
    transform: translateY(-1px);
}
.reaction-badge-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.post-body {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.75;
}
.post-expanded-content {
    display: none;
}
.post-card.is-expanded .post-expanded-content {
    display: block;
}
.post-expand-loading,
.post-expand-error {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card-surface);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.post-expand-error {
    color: var(--warn);
    border-color: rgba(180, 83, 9, 0.24);
    background: rgba(180, 83, 9, 0.08);
}
.post-body-content {
    overflow-wrap: anywhere;
}
.post-extra {
    margin-top: 18px;
}
.embedded-posts {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.embedded-post-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--embedded-card-bg);
}
.embedded-post-head h4 {
    margin: 6px 0 0;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: pretty;
}
.embedded-post-head h4 a {
    color: inherit;
    text-decoration: none;
}
.embedded-post-head h4 a:hover {
    color: var(--accent);
}
.embedded-post-meta {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.embedded-post-body {
    margin-top: 10px;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.65;
}
.post-body a,
.embedded-post-body a {
    color: var(--link-inline);
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(180deg, transparent 0 56%, var(--accent-soft) 56% 100%);
    box-shadow: inset 0 -1px 0 rgba(15, 118, 110, 0.38);
    border-radius: 3px;
    padding: 0 1px;
}
.embedded-post-media {
    margin-top: 12px;
}
.telegram-video-card {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card-surface);
}
.telegram-video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 220px;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.2), transparent 35%),
        linear-gradient(135deg, rgba(24, 32, 42, 0.94), rgba(24, 32, 42, 0.78));
}
.telegram-video-shell::after {
    content: "";
    display: block;
    padding-top: 62%;
}
.telegram-video-shell > * {
    position: absolute;
    inset: 0;
}
.telegram-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.telegram-video-placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    color: rgba(255, 255, 255, 0.78);
}
.telegram-video-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(24, 32, 42, 0.04) 0%, rgba(24, 32, 42, 0.84) 100%);
    color: rgba(255, 255, 255, 0.96);
}
.telegram-video-overlay strong {
    font-size: 18px;
    line-height: 1.2;
}
.telegram-video-overlay span {
    font-size: 13px;
}
.telegram-video-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.telegram-video-play {
    inset: auto auto 18px 18px;
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(24, 32, 42, 0.28);
    transition: transform 0.16s ease, background 0.16s ease;
}
.telegram-video-play:hover {
    transform: scale(1.04);
    background: #ffffff;
}
.telegram-video-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-left: 4px;
}
.telegram-video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.telegram-video-toggle,
.telegram-video-source {
    min-height: 38px;
}
.telegram-video-player {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: #000;
}
.telegram-video-iframe {
    width: 100%;
    height: 560px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}
.telegram-video-card.is-loaded .telegram-video-shell::after {
    display: none;
}
.telegram-video-card.is-loaded .telegram-video-shell {
    min-height: 560px;
    background: rgba(255, 255, 255, 0.92);
}
.featured-story-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(24, 32, 42, 0.94), rgba(24, 32, 42, 0.8));
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}
.embedded-post-children {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-left: 10px;
    border-left: 2px solid rgba(15, 118, 110, 0.18);
}
.media-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.link-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}
.link-list a {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--chip-bg);
    border: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.post-actions {
    margin-top: 18px;
    position: relative;
    z-index: 2;
}
.post-action-form {
    margin: 0;
}
.post-card.is-removing {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.post-state-toggle.is-active {
    font-weight: 700;
}
.post-state-toggle.is-read-toggle.is-active {
    background: rgba(15, 118, 110, 0.14);
    color: var(--accent);
    border-color: rgba(15, 118, 110, 0.28);
}
.post-state-toggle.is-dislike-toggle.is-active {
    background: rgba(180, 83, 9, 0.12);
    color: var(--warn);
    border-color: rgba(180, 83, 9, 0.28);
}
.favorite-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(180, 152, 73, 0.6);
    cursor: pointer;
    font: inherit;
    font-size: 24px;
    line-height: 1;
}
.favorite-toggle.is-active {
    color: #d4a017;
}
.favorite-toggle:hover {
    color: #c68b00;
}
.favorite-toggle.is-pending,
.post-action-form .button.is-pending {
    opacity: 0.62;
    pointer-events: none;
}
.post-open-link {
    padding: 0;
}
.post-source-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--meta-pill-bg);
    color: var(--accent);
    font-size: 16px;
    line-height: 1;
}
.post-source-link:hover {
    background: rgba(15, 118, 110, 0.12);
}
.post-icon-button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border-radius: 999px;
}
.post-icon-button svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.post-pin-button {
    color: rgba(15, 118, 110, 0.72);
}
.post-pin-button.is-active {
    color: var(--accent);
    border-color: rgba(15, 118, 110, 0.28);
    background: rgba(15, 118, 110, 0.12);
}
.post-pin-button:hover {
    color: #0b5e57;
}
.pin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(15, 118, 110, 0.55);
    cursor: pointer;
}
.pin-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}
.pin-toggle.is-active {
    color: var(--accent);
}
.pin-toggle:hover {
    color: #0b5e57;
}
.mobile-label {
    display: none;
}
.desktop-label {
    display: inline;
}
.scroll-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(15, 118, 110, 0.25);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.28);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.empty-state {
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 24px;
    background: var(--empty-state-bg);
}
.pager {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.admin-body { background: #e9edf3; }
html[data-theme="dark"] .admin-body {
    background: #0b0f14;
}
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.admin-mobile-header { display: none; }
.admin-mobile-header-links {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.admin-sidebar {
    min-height: 100vh;
    padding: 18px 14px;
    background: #0f172a;
    color: #f8fafc;
    position: sticky;
    top: 0;
}
.admin-brand {
    display: block;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.05;
    margin-bottom: 16px;
}
.admin-user-block {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.admin-user-email {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    color: #f8fafc;
}
.admin-user-login {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(226, 232, 240, 0.72);
    word-break: break-word;
}
.admin-user-block .logout-form,
.admin-user-logout {
    margin-top: 10px;
    margin-bottom: 0;
}
.admin-user-logout .button {
    width: 100%;
    justify-content: center;
}
.admin-nav {
    flex-direction: column;
    gap: 6px;
}
.admin-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-nav-label {
    margin: 4px 8px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
}
.admin-nav-divider {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    margin: 8px 0;
}
.admin-nav a { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.admin-nav a.is-active {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.45);
    color: #e2e8f0;
}
.admin-main { padding: 18px; }
.admin-top-link-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.admin-mobile-home-link,
.admin-top-home-link {
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
}
.admin-mobile-home-link:hover,
.admin-top-home-link:hover {
    text-decoration: underline;
}
.admin-shell-auth {
    grid-template-columns: 1fr;
}
.admin-shell-auth .admin-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}
.admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
}
.admin-form { display: grid; gap: 10px; }
.single-column { max-width: 360px; }
.admin-helper-text {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.admin-inline-filter {
    display: inline-flex;
    align-items: flex-end;
    margin: 0;
}
.admin-inline-filter label {
    display: grid;
    gap: 4px;
}
.admin-inline-filter label span {
    margin: 0;
}
.admin-inline-filter select {
    min-width: 170px;
}
.table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
}
.table-sort-link span {
    color: var(--muted);
    font-size: 11px;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.metric-card {
    padding: 14px;
    display: grid;
    gap: 6px;
}
.metric-card strong { font-size: 26px; font-family: var(--serif); line-height: 1; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 8px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.code-block {
    padding: 12px;
    border-radius: 12px;
    background: #111827;
    color: #e5e7eb;
    overflow: auto;
}
.auth-card {
    max-width: 360px;
    margin: 28px auto;
}
.public-auth-page,
.legal-page {
    max-width: 760px;
    margin: 0 auto;
}
.public-auth-card {
    max-width: 560px;
}
.auth-note,
.legal-meta {
    color: var(--muted);
}
.auth-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.legal-card h2 {
    margin: 18px 0 8px;
    font-size: 18px;
}
.legal-list {
    margin: 0;
    padding-left: 18px;
}
.legal-list li + li {
    margin-top: 6px;
}
.consent-check {
    align-items: flex-start;
}
.consent-check span {
    margin-bottom: 0;
}

.admin-body {
    font-size: 14px;
    line-height: 1.35;
}
.admin-body .section-head {
    gap: 12px;
    margin-bottom: 14px;
}
.admin-body .section-head h1,
.admin-body .auth-card h1 {
    font-size: clamp(22px, 2.4vw, 30px);
}
.admin-body .eyebrow {
    font-size: 10px;
}
.admin-body .panel,
.admin-body .metric-card,
.admin-body .auth-card {
    border-radius: 16px;
}
.admin-body .panel,
.admin-body .auth-card {
    padding: 14px;
}
.admin-body .panel h2 {
    margin: 0 0 12px;
    font-size: 16px;
}
.admin-body .site-nav a,
.admin-body .admin-nav a,
.admin-body .pager a {
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
}
.admin-body .admin-pagination {
    margin-top: 10px;
}
.admin-body .admin-pagination-summary {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
.admin-body .admin-channels-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
    margin-bottom: 16px;
}
.admin-body .admin-channels-filter-search {
    flex: 2 1 220px;
    margin: 0;
    min-width: 0;
}
.admin-body .admin-channels-filter-search input[type="search"] {
    width: 100%;
    max-width: 420px;
}
.admin-body .admin-channels-filter-select {
    flex: 0 1 160px;
    margin: 0;
}
.admin-body .admin-channels-filter-select select {
    width: 100%;
    max-width: 220px;
}
.admin-body .admin-channels-filter-actions {
    flex: 0 0 auto;
    margin: 0;
    align-self: flex-end;
}
.admin-body .admin-users-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
    margin-bottom: 14px;
}
.admin-body .admin-users-search-label {
    flex: 1 1 220px;
    margin: 0;
}
.admin-body .admin-users-search-label input[type="search"] {
    width: 100%;
    max-width: 320px;
}
.admin-body .admin-user-sub-count {
    display: inline-block;
    min-width: 1.5em;
    font-weight: 600;
    margin-right: 8px;
}
.admin-body .admin-user-subs-link {
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    text-decoration: none;
}
.admin-body .admin-muted {
    color: var(--muted);
}
.admin-body .admin-users-subs-hint {
    margin-top: 12px;
}
.admin-body .pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    color: var(--muted);
    font-size: 13px;
}
.admin-body input[type="text"],
.admin-body input[type="search"],
.admin-body input[type="password"],
.admin-body input[type="url"],
.admin-body input[type="date"],
.admin-body input[type="number"],
.admin-body select,
.admin-body textarea {
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 14px;
}
.admin-body textarea {
    min-height: 84px;
}
.admin-body label span,
.admin-body fieldset legend {
    margin-bottom: 5px;
    font-size: 12px;
}
.admin-body .button {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}
.admin-body .button-row,
.admin-body .table-actions,
.admin-body .filter-actions {
    gap: 6px;
}
.admin-body .table {
    font-size: 13px;
}
.admin-body .table small {
    font-size: 11px;
}
.admin-body .table th,
.admin-body .table td {
    padding: 6px 6px;
}
.admin-body .admin-channels-table .channel-cell {
    min-width: 170px;
}
.admin-body .admin-channels-table .channel-title {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}
.admin-body .admin-channels-table .channel-slug {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}
.admin-body .admin-channels-table .channel-date,
.admin-body .admin-channels-table .channel-subscribers,
.admin-body .admin-channels-table .channel-sync {
    white-space: nowrap;
}
.admin-body .admin-channels-table .channel-state {
    min-width: 96px;
}
.admin-body .admin-groups-table td strong {
    font-size: 14px;
    line-height: 1.2;
}
.admin-body .admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-body .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--meta-pill-bg);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}
.admin-body .channel-state .status-pill {
    margin: 0 4px 4px 0;
}
.admin-body .status-pill.is-on,
.admin-body .status-pill.is-success,
.admin-body .status-pill.is-subscribed {
    background: rgba(15, 118, 110, 0.12);
    color: var(--accent);
    border-color: rgba(15, 118, 110, 0.18);
}
.admin-body .status-pill.is-off,
.admin-body .status-pill.is-idle,
.admin-body .status-pill.is-unsubscribed {
    background: rgba(91, 101, 112, 0.09);
    color: var(--muted);
}
.admin-body .status-pill.is-running {
    background: rgba(180, 83, 9, 0.12);
    color: var(--warn);
    border-color: rgba(180, 83, 9, 0.18);
}
.admin-body .status-pill.is-error {
    background: rgba(185, 28, 28, 0.12);
    color: var(--danger);
    border-color: rgba(185, 28, 28, 0.18);
}
.admin-body .table-actions-compact {
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.admin-body .table-actions-compact form {
    margin: 0;
    flex: 0 0 auto;
}
.admin-body .table-actions-compact .button {
    flex: 0 0 auto;
}
.admin-body .source-toggle.is-active {
    background: rgba(15, 118, 110, 0.16);
    color: var(--accent);
    border: 1px solid rgba(15, 118, 110, 0.24);
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.08), 0 6px 18px rgba(15, 118, 110, 0.18);
}
.admin-body .source-toggle.is-inactive {
    background: var(--button-light-bg);
    color: var(--muted);
    border: 1px solid var(--line);
    box-shadow: none;
}
.admin-body .button-tiny {
    min-width: 0;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.1;
}
.admin-body .flash {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.site-body {
    font-size: 14px;
    line-height: 1.4;
}
.site-body .page-shell {
    padding: 18px 16px 24px;
}
.site-body .site-header {
    gap: 12px;
    margin-bottom: 14px;
}
.site-body .site-header h1 {
    font-size: clamp(24px, 2.8vw, 34px);
}
.site-body .site-nav,
.site-body .group-list,
.site-body .quick-links,
.site-body .pager {
    gap: 6px;
}
.site-body .site-nav a,
.site-body .group-list a,
.site-body .quick-links a,
.site-body .pager a {
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
}
.site-body .feed-layout {
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    gap: 14px;
}
.site-body .sidebar-card,
.site-body .filter-panel,
.site-body .post-card {
    border-radius: 16px;
}
.site-body .sidebar-card {
    padding: 14px;
}
.site-body .sidebar-card h2 {
    margin-bottom: 10px;
    font-size: 16px;
}
.site-body .stats-card dl {
    gap: 8px;
}
.site-body .filter-panel {
    padding: 12px;
    margin-bottom: 10px;
}
.site-body .filter-grid {
    gap: 8px;
}
.site-body .filter-actions,
.site-body .post-actions {
    gap: 6px;
}
.site-body .filter-actions {
    margin-top: 10px;
}
.site-body input[type="text"],
.site-body input[type="search"],
.site-body input[type="password"],
.site-body input[type="url"],
.site-body input[type="date"],
.site-body input[type="number"],
.site-body select,
.site-body textarea {
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
}
.site-body label span,
.site-body fieldset legend {
    margin-bottom: 5px;
    font-size: 12px;
}
.site-body .button {
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 12px;
}
.site-body .button-icon {
    min-width: 32px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 16px;
}
.site-body .posts {
    gap: 10px;
}
.site-body .post-card {
    padding: 14px;
}
.site-body .post-head {
    gap: 10px;
    margin-bottom: 10px;
}
.site-body .post-card-thumb {
    display: block;
    margin: 0 0 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--thumb-bg);
    aspect-ratio: 16 / 9;
    max-height: min(38vh, 280px);
}
.site-body .post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.site-body .post-head h3 {
    margin: 3px 0;
    font-size: clamp(15px, 1.7vw, 19px);
}
.site-body .meta-top,
.site-body .meta-bottom,
.site-body .sidebar-note {
    font-size: 12px;
}
.site-body .meta-top {
    font-size: 15px;
    font-weight: 800;
}
.site-body .post-badges {
    gap: 5px;
}
.site-body .badge {
    padding: 5px 8px;
    font-size: 11px;
}
.site-body .post-body {
    font-size: 15px;
    line-height: 1.55;
}
.site-body .post-body a,
.site-body .embedded-post-body a {
    color: #095e58;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(180deg, transparent 0 56%, rgba(15, 118, 110, 0.22) 56% 100%);
    box-shadow: inset 0 -1px 0 rgba(15, 118, 110, 0.42);
    border-radius: 3px;
    padding: 0 1px;
}
.site-body .embedded-posts {
    gap: 8px;
    margin-top: 10px;
}
.site-body .embedded-post-card {
    padding: 10px;
    border-radius: 12px;
}
.site-body .embedded-post-head h4 {
    font-size: 15px;
    line-height: 1.2;
}
.site-body .embedded-post-meta {
    font-size: 11px;
}
.site-body .embedded-post-body {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.site-body .embedded-post-media {
    margin-top: 8px;
}
.site-body .telegram-video-card {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
}
.site-body .telegram-video-shell {
    min-height: 170px;
    border-radius: 12px;
}
.site-body .telegram-video-overlay {
    padding: 12px;
    gap: 4px;
}
.site-body .telegram-video-overlay strong {
    font-size: 15px;
}
.site-body .telegram-video-overlay span {
    font-size: 11px;
}
.site-body .telegram-video-chip {
    padding: 4px 8px;
    font-size: 10px;
}
.site-body .telegram-video-play {
    left: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
}
.site-body .telegram-video-play-icon {
    font-size: 24px;
}
.site-body .telegram-video-actions {
    gap: 8px;
    margin-top: 8px;
}
.site-body .telegram-video-player {
    border-radius: 12px;
}
.site-body .telegram-video-iframe {
    height: 440px;
    border-radius: 12px;
}
.site-body .telegram-video-card.is-loaded .telegram-video-shell {
    min-height: 440px;
}
.site-body .featured-story-video-placeholder {
    min-height: 150px;
    border-radius: 14px;
    font-size: 14px;
}
.site-body .embedded-post-children {
    gap: 8px;
    margin-top: 8px;
    padding-left: 8px;
}
.site-body .media-grid {
    margin-top: 10px;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.site-body .link-list {
    gap: 6px;
    margin-top: 10px;
}
.site-body .link-list a {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
}
.post-body a:hover,
.embedded-post-body a:hover,
.site-body .post-body a:hover,
.site-body .embedded-post-body a:hover,
.site-body .link-list a:hover {
    color: #084944;
    background: linear-gradient(180deg, transparent 0 52%, rgba(15, 118, 110, 0.3) 52% 100%);
    opacity: 1;
}
.site-body .post-actions {
    margin-top: 10px;
}
.site-body .empty-state {
    padding: 16px;
    border-radius: 16px;
    font-size: 13px;
}
.site-body .flash {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.site-body .page-shell {
    max-width: 1250px;
    margin: 0 auto;
    padding: 12px 18px 26px;
}
.site-body .site-header {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.site-body .site-header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.site-body .site-header-top .menu-toggle {
    grid-column: 1;
    justify-self: start;
}
.site-body .site-header-top .site-header-actions {
    grid-column: 2;
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
}
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--chip-bg-strong);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    flex-shrink: 0;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--chip-bg);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.theme-toggle svg {
    display: block;
    flex-shrink: 0;
}
.theme-toggle-moon {
    display: block;
}
.theme-toggle-sun {
    display: none;
}
html[data-theme="dark"] .theme-toggle-moon {
    display: none;
}
html[data-theme="dark"] .theme-toggle-sun {
    display: block;
}
html[data-theme="dark"] .post-body a,
html[data-theme="dark"] .embedded-post-body a {
    box-shadow: inset 0 -1px 0 rgba(62, 224, 201, 0.5);
}
html[data-theme="dark"] .article-content a {
    box-shadow: inset 0 -1px 0 rgba(62, 224, 201, 0.5);
}
.site-body .site-branding {
    display: grid;
    gap: 3px;
    text-align: center;
}
.site-body .site-branding h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(44px, 5.2vw, 66px);
    line-height: 0.95;
    letter-spacing: -0.045em;
}
.site-body .site-brand-link {
    display: inline-block;
}
.site-body .site-brand-link:hover {
    color: var(--accent);
}
.site-body .site-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-body .site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}
.site-body .site-nav a {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-body .site-nav-button {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-body .site-nav a:hover {
    color: var(--accent);
}
.site-body .site-nav-button:hover {
    color: var(--accent);
}

.site-body .site-user-menu {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
    flex-shrink: 0;
    text-align: right;
}
.site-body .site-user-nick {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.2;
}
.site-body .site-user-menu-toggle {
    margin: 0;
    padding: 4px 0 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    flex-shrink: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}
.site-body .site-user-menu-toggle:hover,
.site-body .site-user-menu-toggle:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
    outline: none;
}
.site-body .site-user-menu.is-open .site-user-menu-toggle {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.site-body .site-user-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: min(260px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--popover-bg);
    box-shadow: var(--popover-shadow);
    z-index: 40;
}
.site-body .site-user-menu-head {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.site-body .site-user-menu-email {
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink);
    word-break: break-word;
}
.site-body .site-user-menu-login {
    font-size: 12px;
    color: var(--muted);
}
.site-body .site-user-menu-actions {
    display: grid;
    gap: 8px;
}
.site-body .site-user-menu-link {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--popover-link-bg);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.site-body .site-user-menu-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.site-body .site-user-menu-logout-form {
    margin: 0;
}
.site-body .site-user-menu-logout {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--popover-logout-bg);
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.site-body .site-user-menu-logout:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.site-body .site-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.site-body .site-footer-link {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}
.site-body .site-footer-link:hover {
    color: var(--accent);
}
.site-body .feed-page {
    display: grid;
    gap: 16px;
}
.site-body .desktop-news-shell {
    display: grid;
    gap: 12px;
}
.site-body .desktop-topic-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 6px 0 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.site-body .desktop-topic-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.site-body .desktop-topic-row-right {
    justify-content: flex-end;
}
.site-body .desktop-topic-label {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.site-body .desktop-topic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}
.site-body .desktop-topic-links a {
    padding: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.3;
}
.site-body .desktop-topic-links a.is-active,
.site-body .desktop-topic-links a:hover {
    color: var(--accent);
    border-bottom-color: currentColor;
}
.site-body .desktop-filter-panel {
    margin: 0;
    padding: 10px 12px 10px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    background: var(--panel-soft);
    outline: 1px solid var(--panel-outline);
}
.site-body .desktop-filter-panel .filter-grid {
    grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.site-body .desktop-filter-panel .filter-actions {
    margin-top: 9px;
    gap: 12px;
}
.site-body .desktop-filter-panel label {
    font-size: 11px;
}
.site-body .desktop-filter-panel input[type="text"],
.site-body .desktop-filter-panel input[type="search"],
.site-body .desktop-filter-panel input[type="date"],
.site-body .desktop-filter-panel input[type="number"],
.site-body .desktop-filter-panel select {
    padding: 8px 9px;
    border-radius: 8px;
    font-size: 12px;
}
.site-body .desktop-filter-panel .button {
    padding: 7px 10px;
    font-size: 11px;
}
.site-body .news-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: start;
    padding: 14px 16px 16px;
    border: 1px solid var(--line);
    background: var(--showcase-shine), var(--showcase-base);
}
.site-body .news-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.site-body .news-section-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1;
}
.site-body .news-section-heading a {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.site-body .featured-story {
    display: grid;
    gap: 10px;
}
.site-body .featured-story-stack {
    display: grid;
    gap: 18px;
}
.site-body .featured-story-card {
    display: grid;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.site-body .featured-story-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.site-body .featured-story-media {
    display: block;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    max-height: min(42vh, 320px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--featured-media-bg);
}
.site-body .featured-story-media img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    border-radius: 0;
    background: transparent;
}
.site-body .featured-story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 2px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.site-body .featured-story-meta-lead {
    min-width: 0;
}
.site-body .featured-story-meta-tail {
    color: inherit;
}
.site-body .featured-story-title {
    margin: 0;
}
.site-body .featured-story-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 100%;
    font-family: var(--serif);
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.12;
    color: var(--ink);
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: pretty;
}
.site-body .featured-story-card.is-read .featured-story-title a {
    color: var(--muted);
    font-weight: 400;
}
.site-body .featured-story-title a:hover {
    color: var(--accent);
}
.site-body .featured-story-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.site-body .featured-story-excerpt {
    max-width: 54ch;
    margin: 0;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.56;
}
.site-body .featured-story-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.site-body .featured-story-links a {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-body .headline-board {
    display: grid;
    gap: 0;
}
.site-body .headline-board-empty {
    padding: 16px 0 0;
    color: var(--muted);
}
.site-body .headline-board-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-body .headline-board-list li {
    margin: 0;
}
.site-body .headline-board-article-link {
    display: grid;
    grid-template-columns: minmax(84px, max-content) minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.site-body .headline-board-article-link:hover strong {
    color: var(--accent);
}
.site-body .headline-board-time {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.site-body .headline-board-copy {
    min-width: 0;
}
.site-body .headline-board-copy strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 100%;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.22;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: pretty;
}
.site-body .headline-board-list li.is-read .headline-board-copy strong {
    color: var(--muted);
    font-weight: 400;
}
.site-body .headline-board-copy span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}
.site-body .headline-board-channel-link {
    display: inline-flex;
    margin: 4px 0 12px 94px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.site-body .feed-layout {
    grid-template-columns: 185px minmax(0, 1fr) 185px;
    gap: 16px;
    padding-top: 2px;
}
.site-body .sidebar-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.site-body .desktop-sidebar,
.site-body .desktop-right-sidebar {
    position: sticky;
    top: 22px;
}
.site-body .sidebar-card h2 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 20px;
}
.site-body .group-list,
.site-body .quick-links {
    gap: 0;
}
.site-body .group-list a,
.site-body .quick-links a {
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    font-family: var(--serif);
    font-size: 15px;
}
.site-body .group-list a.is-active {
    background: transparent;
    color: var(--accent);
    border-color: var(--line);
}
.site-body .quick-links a.is-active {
    background: transparent;
    color: var(--accent);
    border-bottom-color: currentColor;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.site-body .stats-card {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.site-body .stats-card h3 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: 20px;
}
.site-body .stats-card dl {
    gap: 8px;
}
.site-body .feed-main {
    min-width: 0;
}
.site-body .feed-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.site-body .feed-section-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 24px;
}
.site-body .desktop-channel-action-form {
    margin-top: 10px;
}
.site-body .desktop-channel-action-button {
    width: 100%;
}
.site-body .feed-section-note {
    max-width: 34ch;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.site-body .posts {
    gap: 0;
}
.site-body .posts > .post-card:first-child,
.site-body .posts > .post-card:first-child.is-read,
.site-body .posts > .post-card:first-child.is-disliked,
.site-body .posts > .post-card:first-child.is-hidden {
    border-top: 1px solid var(--line);
}
.site-body .post-card {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.site-body .post-card.is-disliked,
.site-body .post-card.is-hidden {
    border-bottom-color: rgba(180, 83, 9, 0.35);
}
.site-body .post-head {
    align-items: start;
    gap: 12px;
    padding-left: 0;
    margin-bottom: 8px;
}
.site-body .post-head h3 {
    margin: 4px 0 0;
    font-size: clamp(17px, 1.6vw, 23px);
    line-height: 1.05;
}
.site-body .meta-top {
    font-size: 18px;
    font-weight: 800;
}
.site-body .meta-bottom,
.site-body .sidebar-note {
    font-size: 12px;
    line-height: 1.45;
}
.site-body .post-badges {
    max-width: 180px;
    justify-content: flex-end;
}
.site-body .post-body {
    max-width: 62ch;
    font-size: 15px;
    line-height: 1.58;
}
.site-body .embedded-post-card {
    background: var(--thumb-bg-embedded);
    border-radius: 0;
}
.site-body .embedded-post-head h4 {
    font-size: 16px;
}
.site-body .post-actions {
    margin-top: 8px;
    gap: 6px;
}
.site-body .button {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
}

@media (max-width: 1200px) {
    .site-body .desktop-topic-strip {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .site-body .desktop-topic-row-right {
        justify-content: flex-start;
    }
    .site-body .desktop-filter-panel .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .site-body .news-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .site-body .desktop-sidebar,
    .site-body .desktop-right-sidebar {
        position: static;
    }
    .site-body .feed-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .site-body .feed-layout { grid-template-columns: 1fr; }
    .site-body .feed-main { order: 1; }
    .site-body .feed-layout > .sidebar-card:not(.right-sidebar) { order: 2; }
    .site-body .right-sidebar { order: 3; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; min-height: auto; }
    .admin-grid, .metric-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .admin-body {
        background: #f7f1e7;
    }
    html[data-theme="dark"] .admin-body {
        background: #0b0f14;
    }
    .admin-body.menu-open {
        overflow: hidden;
    }
    .admin-shell {
        display: block;
        min-height: 100vh;
    }
    .admin-mobile-header {
        position: sticky;
        top: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-bottom: 1px solid var(--line);
        background: var(--sticky-header-bg);
        backdrop-filter: blur(10px);
    }
    .admin-mobile-brand {
        min-width: 0;
        font-family: var(--serif);
        font-size: 18px;
        line-height: 1;
    }
    .admin-mobile-home-link {
        font-size: 12px;
        white-space: nowrap;
    }
    .admin-body .admin-menu-toggle {
        display: inline-block;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
    .admin-sidebar {
        position: fixed;
        inset: 51px 0 0;
        z-index: 35;
        display: none;
        min-height: 0;
        overflow: auto;
        padding: 12px;
        background: rgba(15, 23, 42, 0.98);
    }
    .admin-body.menu-open .admin-sidebar {
        display: block;
    }
    .admin-brand {
        display: none;
    }
    .admin-user-block {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .admin-nav {
        gap: 10px;
    }
    .admin-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }
    .admin-body .panel {
        overflow: hidden;
    }
    .admin-body .admin-table-wrap {
        margin: 0 -14px;
        padding: 0 14px 2px;
    }
    .admin-body .admin-channels-table {
        min-width: 1120px;
    }
    .admin-body .admin-channels-table th,
    .admin-body .admin-channels-table td {
        white-space: nowrap;
        vertical-align: top;
    }
    .admin-body .admin-channels-table td:nth-child(1) {
        min-width: 190px;
    }
    .admin-body .admin-channels-table td:nth-child(2) {
        min-width: 132px;
    }
    .admin-body .admin-channels-table td:nth-child(3) {
        min-width: 84px;
    }
    .admin-body .admin-channels-table td:nth-child(4) {
        min-width: 110px;
    }
    .admin-body .admin-channels-table td:nth-child(5) {
        min-width: 110px;
    }
    .admin-body .admin-channels-table td:nth-child(6) {
        min-width: 180px;
        white-space: normal;
    }
    .admin-body .admin-channels-table td:nth-child(8) {
        min-width: 104px;
    }
    .admin-body .admin-channels-table td:nth-child(9) {
        min-width: 132px;
    }
    .admin-body .admin-groups-table {
        min-width: 860px;
    }
    .admin-body .admin-groups-table th,
    .admin-body .admin-groups-table td {
        white-space: nowrap;
        vertical-align: top;
    }
    .admin-body .admin-groups-table td:nth-child(1) {
        min-width: 170px;
    }
    .admin-body .admin-groups-table td:nth-child(2) {
        min-width: 120px;
    }
    .admin-body .admin-groups-table td:nth-child(3) {
        min-width: 220px;
        white-space: normal;
    }
    .admin-body .admin-groups-table td:nth-child(4) {
        min-width: 110px;
    }
    .admin-body .admin-groups-table td:nth-child(9) {
        min-width: 108px;
    }
    body.site-body {
        background: #f7f1e7;
    }
    .site-body .page-shell {
        padding: 0;
    }
    .admin-main { padding: 10px; }
    .admin-top-link-row {
        display: none;
    }
    .site-body.menu-open {
        overflow: hidden;
    }
    .site-body .desktop-news-shell {
        display: none;
    }
    .site-body .site-header {
        position: sticky;
        top: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand top";
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 6px 10px;
        border-top: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        box-shadow: var(--sticky-header-shadow);
        background: var(--sticky-header-bg);
        backdrop-filter: blur(10px);
    }
    .site-body .site-header-top {
        grid-area: top;
        gap: 6px;
    }
    .site-body .site-branding {
        grid-area: brand;
        min-width: 0;
        text-align: left;
    }
    .site-body .site-branding h1 {
        font-size: 16px;
        line-height: 1;
        letter-spacing: -0.025em;
    }
    .site-body .site-branding .eyebrow,
    .site-body .site-subtitle {
        display: none;
    }
    .site-body .site-footer {
        margin-top: 14px;
        padding-top: 10px;
    }
    .site-body .site-footer-link {
        font-size: 11px;
    }
    .site-body .menu-toggle {
        display: inline-block;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
    .site-body .theme-toggle {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
    .site-body .theme-toggle svg {
        width: 16px;
        height: 16px;
    }
    .site-body .site-nav {
        display: none !important;
    }
    .site-body .site-user-nick {
        max-width: 42vw;
        font-size: 11px;
    }
    .site-body .site-user-menu-panel {
        z-index: 50;
    }
    .site-body .mobile-feed-drawer {
        position: fixed;
        inset: 48px 0 0;
        z-index: 25;
        background: var(--drawer-bg);
    }
    .site-body.menu-open .mobile-feed-drawer {
        display: block;
    }
    .site-body .mobile-feed-drawer-card {
        height: 100%;
        overflow: auto;
        padding: 0;
    }
    .site-body .mobile-feed-section {
        padding: 12px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }
    .site-body .mobile-feed-section h2 {
        margin-bottom: 8px;
        font-size: 14px;
    }
    .site-body .mobile-feed-nav {
        gap: 6px;
    }
    .site-body .mobile-feed-nav a {
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 13px;
    }
    .site-body .mobile-filter-panel {
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
    .site-body .mobile-channel-action-form {
        display: block;
    }
    .site-body .mobile-channel-action-button {
        width: 100%;
        justify-content: center;
    }
    .site-body .desktop-sidebar,
    .site-body .desktop-right-sidebar,
    .site-body .desktop-filter-panel {
        display: none;
    }
    .site-body .feed-section-head {
        display: none;
    }
    .site-body .filter-grid,
    .site-body .inline-grid { grid-template-columns: 1fr; }
    .site-body .feed-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    .site-body .feed-main {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .site-body .sidebar-card,
    .site-body .filter-panel,
    .site-body .post-card {
        border: 0;
        border-radius: 0;
    }
    .site-body .filter-panel,
    .site-body .post-card {
        padding: 10px 12px;
    }
    .site-body .sidebar-card h2 {
        margin-bottom: 8px;
        font-size: 14px;
    }
    .site-body .group-list,
    .site-body .quick-links {
        gap: 5px;
    }
    .site-body .group-list a,
    .site-body .quick-links a,
    .site-body .pager a {
        padding: 6px 8px;
        font-size: 12px;
    }
    .site-body .mobile-channel-action-button {
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.2;
    }
    .site-body .filter-actions,
    .site-body .post-actions {
        gap: 5px;
    }
    .site-body .posts {
        gap: 0;
    }
    .site-body .post-card {
        box-shadow: none;
        background: var(--post-card-mobile-bg);
        border-bottom: 1px solid var(--post-card-mobile-border);
    }
    .site-body .post-head {
        padding-left: 0;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 6px;
    }
    .site-body .post-badges {
        gap: 4px;
        max-width: none;
        justify-content: flex-start;
    }
    .site-body .badge {
        padding: 4px 6px;
        font-size: 10px;
    }
    .site-body .post-head h3 {
        font-size: 14px;
        line-height: 1.14;
    }
    .site-body .meta-top {
        font-size: 14px;
    }
    .site-body .meta-bottom {
        font-size: 10px;
    }
    .site-body .post-body {
        font-size: 14px;
        line-height: 1.46;
    }
    .site-body .post-extra {
        margin-top: 8px;
    }
    .site-body .embedded-post-card {
        padding: 8px;
        border-radius: 10px;
    }
    .site-body .embedded-post-head h4 {
        font-size: 14px;
    }
    .site-body .embedded-post-body {
        font-size: 13px;
        line-height: 1.42;
    }
    .site-body .telegram-video-card {
        padding: 8px;
        border-radius: 10px;
    }
    .site-body .telegram-video-shell {
        min-height: 150px;
        border-radius: 10px;
    }
    .site-body .telegram-video-overlay {
        padding: 10px;
    }
    .site-body .telegram-video-overlay strong {
        font-size: 13px;
    }
    .site-body .telegram-video-overlay span {
        font-size: 10px;
    }
    .site-body .telegram-video-play {
        left: 10px;
        bottom: 10px;
        width: 48px;
        height: 48px;
    }
    .site-body .telegram-video-play-icon {
        font-size: 20px;
    }
    .site-body .telegram-video-actions {
        gap: 6px;
        margin-top: 6px;
    }
    .site-body .telegram-video-toggle,
    .site-body .telegram-video-source {
        min-height: 0;
    }
    .site-body .telegram-video-player {
        border-radius: 10px;
    }
    .site-body .telegram-video-iframe {
        height: 340px;
        border-radius: 10px;
    }
    .site-body .telegram-video-card.is-loaded .telegram-video-shell {
        min-height: 340px;
    }
    .site-body .media-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .site-body .button {
        min-height: 26px;
        padding: 5px 7px;
        font-size: 10px;
    }
    .site-body .button-icon {
        min-width: 26px;
        font-size: 13px;
    }
    .site-body .post-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
    }
    .site-body .post-actions .post-action-form,
    .site-body .post-actions > a {
        flex: 0 0 auto;
        max-width: 100%;
    }
    .site-body .post-actions .button {
        width: auto;
        min-height: 0;
        padding: 7px 10px;
        border-radius: 999px;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }
    .site-body .post-actions .button-light {
        background: var(--chip-bg);
    }
    .site-body .post-state-toggle.is-active {
        font-weight: 600;
    }
    .site-body .favorite-toggle {
        min-width: 28px;
        font-size: 24px;
    }
    .site-body .post-open-link {
        min-height: 0;
        padding: 0;
        border-radius: 999px;
        font-size: 11px;
    }
    .site-body .post-source-link {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .site-body .post-icon-button {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
    .site-body .post-icon-button svg {
        width: 16px;
        height: 16px;
    }
}
.article-page {
    max-width: 980px;
    margin: 0 auto;
}
.article-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.article-back-link,
.article-source-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}
.article-card {
    padding: 24px 28px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.article-channel {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 800;
}
.article-card h1 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.04;
}
.article-meta {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}
.article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.article-content {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.8;
}
.article-empty-note {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card-surface);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.article-content a {
    color: var(--link-inline);
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(180deg, transparent 0 56%, var(--accent-soft) 56% 100%);
    box-shadow: inset 0 -1px 0 rgba(15, 118, 110, 0.42);
    border-radius: 3px;
    padding: 0 1px;
}
.article-media-grid {
    margin-top: 20px;
}
.error-page {
    display: flex;
    justify-content: center;
    padding: 36px 0 8px;
}
.error-card {
    width: min(760px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(180, 83, 9, 0.12), transparent 30%),
        var(--paper);
    box-shadow: var(--shadow);
}
.error-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.error-code {
    font-family: var(--serif);
    font-size: clamp(40px, 7vw, 70px);
    line-height: 1;
    color: var(--accent);
}
.error-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.72);
    box-shadow: 0 0 0 8px rgba(180, 83, 9, 0.14);
}
.error-copy h1 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.06;
}
.error-message {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.65;
}
.error-hint {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
    .site-body .empty-state {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin: 0;
    }
    .site-body .scroll-top {
        right: 12px;
        bottom: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .site-body .error-page {
        padding-top: 12px;
    }
    .site-body .error-card {
        padding: 22px 18px;
        border-radius: 18px;
    }
    .site-body .error-message {
        font-size: 15px;
        line-height: 1.55;
    }
    .site-body .error-hint {
        font-size: 13px;
    }
    .site-body .error-actions {
        gap: 8px;
        margin-top: 18px;
    }
}

/* Личный кабинет /lk */
.admin-body .lk-section-note {
    margin-top: 8px;
    max-width: 42rem;
}
.admin-body .lk-add-subscription-panel {
    margin-bottom: 1.5rem;
}
.admin-body .lk-subscription-counter {
    margin-top: 4px;
}
.admin-body .lk-add-subscription-form {
    margin-top: 12px;
    max-width: 36rem;
}
.admin-body .lk-add-subscription-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-body .lk-add-subscription-label input {
    width: 100%;
    max-width: 28rem;
}
.admin-body .lk-add-subscription-hint {
    margin-top: 8px;
}
.admin-body .lk-button-row {
    justify-content: flex-end;
}
.admin-body .lk-button-row form.inline-form {
    display: inline-flex;
    margin: 0;
}
.admin-body .lk-actions-cell {
    min-width: 200px;
    vertical-align: top;
}
.admin-body .lk-cuts-add-panel {
    margin-bottom: 1.5rem;
}
.admin-body .lk-cuts-form {
    max-width: 40rem;
    margin-top: 10px;
}
.admin-body .lk-cuts-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-body .lk-cuts-field textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
}
.admin-body .lk-cuts-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
}
.admin-body .lk-cuts-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}
.admin-body .lk-cuts-mark-read-input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--accent, #3b82f6);
}
.admin-body .lk-cuts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}
.admin-body .lk-cut-card {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.35);
}
.admin-body .lk-cut-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.admin-body .lk-cut-preview {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
.admin-body .lk-cut-meta {
    margin: 8px 0 0;
    font-size: 12px;
}
.admin-body .lk-cut-details {
    margin-top: 12px;
}
.admin-body .lk-cut-details summary {
    cursor: pointer;
    color: var(--accent);
    font-size: 14px;
    user-select: none;
}
.admin-body .lk-cut-details summary:hover {
    text-decoration: underline;
}
.admin-body .lk-cut-details[open] summary {
    margin-bottom: 10px;
}
.admin-body .lk-cut-delete-form {
    margin-top: 12px;
}

/* Админка: компактная таблица вырезок пользователя */
.admin-user-cuts-intro {
    max-width: 48rem;
    margin-bottom: 10px;
}
.admin-user-cuts-wrap {
    margin-top: 8px;
}
table.admin-user-cuts-table {
    font-size: 13px;
    line-height: 1.35;
}
table.admin-user-cuts-table th,
table.admin-user-cuts-table td {
    padding: 5px 8px;
    vertical-align: middle;
}
.admin-user-cuts-col-chk {
    width: 3.25rem;
    text-align: center;
}
.admin-user-cuts-col-date {
    width: 6.5rem;
    white-space: nowrap;
}
.admin-user-cuts-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    cursor: default;
    accent-color: var(--accent, #3b82f6);
    vertical-align: middle;
}
.admin-user-cuts-phrase-cell {
    max-width: 0;
}
.admin-user-cuts-phrase {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
