/* =========================================================
   POSTERX — MAIN STYLESHEET
   Единая система стилей
   Dark / Light / Desktop / Tablet / Mobile
   ========================================================= */


/* =========================================================
   1. COLORS AND VARIABLES
   ========================================================= */

:root {
    color-scheme: dark;

    --bg: #0d1424;
    --sidebar: #101a2d;
    --surface: #151f33;
    --surface-2: #1a2740;
    --surface-hover: #202f4b;

    --border: #263650;

    --text: #edf3ff;
    --muted: #91a0b9;
    --muted-2: #71829e;

    --accent: #2584ff;
    --accent-hover: #4595ff;
    --accent-soft: rgba(37, 132, 255, .15);

    --green: #24c77a;
    --red: #ff777f;
    --orange: #ffb45e;

    --shadow: 0 12px 35px rgba(0, 0, 0, .13);

    --radius-sm: 9px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --sidebar-width: 252px;
    --topbar-height: 86px;
}

html[data-theme="light"] {
    color-scheme: light;

    --bg: #f3f6fb;
    --sidebar: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f8fd;
    --surface-hover: #edf3fc;

    --border: #e2e8f2;

    --text: #1c2940;
    --muted: #6f7d93;
    --muted-2: #8995a8;

    --accent: #1878ee;
    --accent-hover: #0868dc;
    --accent-soft: rgba(24, 120, 238, .10);

    --green: #13a86b;

    --shadow: 0 10px 30px rgba(30, 55, 90, .06);
}


/* =========================================================
   2. RESET AND BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 14px;

    transition:
        background .2s,
        color .2s;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   3. ICONS
   ========================================================= */

[data-lucide] {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    stroke-width: 1.8;
    vertical-align: middle;
}

.brand-icon [data-lucide] {
    width: 21px;
    height: 21px;
    stroke-width: 2.3;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon [data-lucide] {
    width: 19px;
    height: 19px;
}

.stat-icon [data-lucide],
.quick-icon [data-lucide] {
    width: 19px;
    height: 19px;
}

.icon-button [data-lucide],
.theme-toggle [data-lucide] {
    width: 20px;
    height: 20px;
}

.balance-symbol [data-lucide] {
    width: 18px;
    height: 18px;
}

.button [data-lucide] {
    width: 15px;
    height: 15px;
}

.empty-icon [data-lucide] {
    width: 23px;
    height: 23px;
}

.mobile-nav [data-lucide] {
    width: 19px;
    height: 19px;
}


/* =========================================================
   4. APPLICATION LAYOUT
   ========================================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
}

.main-area {
    min-width: 0;
    flex: 1;
}

.page-content {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    padding: 29px 31px 25px;
}


/* =========================================================
   5. SIDEBAR
   ========================================================= */

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);

    height: 100vh;

    position: sticky;
    top: 0;

    display: flex;
    flex-direction: column;

    padding: 23px 15px 18px;

    background: var(--sidebar);
    border-right: 1px solid var(--border);

    z-index: 5;

    transition:
        width .22s,
        min-width .22s,
        background .2s;
}

.sidebar-scroll {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;

    flex: 1;

    padding-bottom: 12px;

    scrollbar-width: thin;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 8px;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 9px 35px;

    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: linear-gradient(145deg, #32a5ff, #1769e8);

    color: white;
    font-size: 23px;
    font-weight: 900;

    transform: rotate(-8deg);
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.7px;
}


/* Menu captions */

.menu-caption {
    padding: 0 12px 11px;

    color: var(--muted-2);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;

    white-space: nowrap;
}

.menu-caption-spaced {
    margin-top: 22px;
}


/* Navigation */

.side-nav {
    display: grid;
    gap: 5px;
}

.nav-link {
    min-height: 41px;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 0 12px;

    border-radius: 9px;

    color: var(--muted);

    white-space: nowrap;

    transition: .18s;
}

.nav-link:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.nav-link.active {
    background: linear-gradient(100deg, #176ce5, #267ff2);

    color: white;

    box-shadow: 0 5px 15px rgba(22, 111, 230, .22);
}

.nav-icon {
    width: 21px;
    flex: 0 0 21px;

    text-align: center;
    font-size: 19px;
}

.nav-label {
    font-size: 12.5px;
    font-weight: 600;
}


/* Sidebar clock */

.sidebar-clock {
    display: none !important;
}

.clock-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: var(--green);
    background: rgba(36, 199, 122, .12);
}

.clock-icon [data-lucide] {
    width: 19px;
    height: 19px;
}

.clock-meta {
    display: grid;
    gap: 3px;

    min-width: 0;
    flex: 1;
}

.clock-meta strong {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.clock-meta small {
    overflow: hidden;

    color: var(--muted);
    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Sidebar bottom */

.sidebar-bottom {
    min-height: 58px;

    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 10px;
    padding: 11px 5px 0;

    border-top: 1px solid var(--border);
}

.avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: linear-gradient(145deg, #667b9f, #354968);

    color: white;

    font-size: 15px;
    font-weight: 800;
}

.avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    border-radius: inherit;
}

.user-meta {
    min-width: 0;

    display: grid;
    gap: 4px;
}

.user-meta strong {
    overflow: hidden;

    font-size: 12px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-meta span {
    color: var(--muted);
    font-size: 10px;
}

.user-more {
    margin-left: auto;

    color: var(--muted);
    font-size: 21px;
}


/* Collapsed sidebar */

.sidebar.collapsed {
    width: 76px;
    min-width: 76px;

    padding-left: 12px;
    padding-right: 12px;
}

.sidebar.collapsed .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .menu-caption,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .user-meta,
.sidebar.collapsed .user-more {
    display: none;
}

.sidebar.collapsed .nav-link {
    position: relative;
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .sidebar-bottom {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar.collapsed .sidebar-bottom .avatar {
    width: 42px;
    height: 42px;
}

.sidebar.collapsed .nav-link:hover::after {
    content: attr(title);

    position: absolute;
    left: 57px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 30;

    padding: 8px 11px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--surface-2);
    color: var(--text);

    white-space: nowrap;

    box-shadow: var(--shadow);

    font-size: 11px;
}


/* =========================================================
   6. TOPBAR
   ========================================================= */

.topbar {
    position: relative;

    min-height: var(--topbar-height);
    height: var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 30px;

    background: var(--sidebar);

    border-bottom: 1px solid var(--border);

    overflow: visible;
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-left {
    min-width: 0;
}

.topbar-actions {
    position: relative;
    z-index: 5;

    flex-shrink: 0;
}

.breadcrumbs {
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs span {
    margin: 0 9px;
    color: var(--muted-2);
}

.breadcrumbs strong {
    color: var(--text);
    font-weight: 700;
}


/* Icon buttons */

.icon-button {
    width: 48px;
    height: 48px;
    min-width: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
    color: var(--text);

    cursor: pointer;

    transition: .18s;
}

.icon-button:hover {
    background: var(--surface-hover);
}

.sidebar-toggle {
    font-size: 17px;
}

.notification-dot {
    position: absolute;
    right: 7px;
    top: 6px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #ff647b;
}

.notification-button {
    display: grid;
    place-items: center;
}

.notification-button > [data-lucide] {
    width: 17px;
    height: 17px;
}


/* Balance */

.balance-pill {
    min-height: 48px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
    color: var(--muted);

    font-size: 15px;
}

.balance-symbol {
    color: #49a5ff;
    font-weight: 800;
}

.balance-pill strong,
.balance-amount {
    color: var(--text);
    font-size: 16px;
}

.add-balance {
    width: 30px;
    height: 30px;

    border: 0;
    border-radius: 9px;

    background: var(--accent);
    color: white;

    cursor: pointer;

    font-size: 21px;
}


/* Profile button */

.profile-button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 6px 14px 6px 8px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--surface);
    color: var(--text);

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: .18s;
}

.profile-button:hover {
    background: var(--surface-hover);
    border-color: var(--muted-2);
}

.profile-button .small-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;

    flex-basis: 42px;

    font-size: 12px;
}

.small-avatar {
    width: 29px;
    height: 29px;

    flex-basis: 29px;

    font-size: 11px;
}

.profile-name {
    white-space: nowrap;
}


/* =========================================================
   7. HEADER CLOCK
   ========================================================= */

.header-clock {
    min-width: 0;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 4px 12px;

    border: 0;
    border-radius: 12px;

    background: transparent;
    color: var(--text);

    cursor: pointer;

    transition: background .2s;
}

.header-clock:hover {
    background: var(--surface-hover);
}

/* Центрируем часы на широком экране */

.topbar .header-clock {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    z-index: 2;
}

.header-clock-icon {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    color: var(--green);
    background: rgba(36, 199, 122, .12);
}

.header-clock-icon [data-lucide] {
    width: 15px;
    height: 15px;
}

.header-clock-meta {
    display: grid;
    gap: 3px;

    min-width: 0;

    text-align: center;
}

.header-clock-meta strong {
    color: var(--text);

    font-size: 23px;
    line-height: 1;

    font-weight: 750;
    letter-spacing: 1.1px;

    font-variant-numeric: tabular-nums;
}

.header-clock-meta small {
    color: var(--muted);

    font-size: 10px;
    line-height: 1.3;

    white-space: nowrap;
}

.header-clock-meta #headerClockDate {
    color: var(--text);

    font-size: 11px;
    font-weight: 600;
}

.header-clock-meta #sidebarTimezone {
    font-size: 10px;
}

.header-clock-chevron {
    position: absolute;
    right: 8px;
    top: 8px;

    width: 12px;
    height: 12px;

    color: var(--muted);
}


/* Clock styles */

.header-clock.clock-style-glow {
    border: 1px solid rgba(73, 160, 255, .5);

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(54, 139, 255, .22),
            transparent 75%
        ),
        var(--surface);

    box-shadow:
        0 0 25px rgba(45, 130, 255, .15),
        inset 0 0 20px rgba(45, 130, 255, .06);
}

.header-clock.clock-style-glow .header-clock-meta strong {
    color: #70b7ff;
    text-shadow: 0 0 13px rgba(65, 157, 255, .7);
}

.header-clock.clock-style-minimal {
    min-width: 200px;

    border: none;
    background: transparent;
    box-shadow: none;
}

.header-clock.clock-style-minimal .header-clock-meta strong {
    font-size: 27px;
    letter-spacing: 1px;
}

.header-clock.clock-style-minimal:hover {
    background: var(--surface-hover);
}


/* =========================================================
   8. PROFILE MENU
   ========================================================= */

.profile-menu {
    position: fixed;
    z-index: 10000;

    width: 292px;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);
    color: var(--text);

    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.profile-menu[hidden] {
    display: none !important;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 10px 15px;
}

.profile-menu-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;

    flex-basis: 52px;
}

.profile-menu-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;

    overflow: hidden;
}

.profile-menu-name,
.profile-menu-info strong {
    overflow: hidden;

    font-size: 14px;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-info span {
    color: var(--muted);
    font-size: 11px;
}

.profile-menu-divider {
    height: 1px;

    margin: 7px 2px;

    background: var(--border);
}

.profile-menu > button {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 11px;

    border: 0;
    border-radius: 12px;

    background: transparent;
    color: var(--text);

    text-align: left;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background .15s;
}

.profile-menu > button:hover {
    background: var(--surface-hover);
}

.profile-menu > button svg {
    width: 17px;
    height: 17px;

    color: var(--muted);
}

.profile-menu > .profile-menu-logout {
    color: var(--red);
}

.profile-menu > .profile-menu-logout svg {
    color: var(--red);
}


/* =========================================================
   9. WELCOME BANNER
   ========================================================= */

.welcome-banner {
    min-height: 208px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    overflow: hidden;

    padding: 29px 34px;

    border: 1px solid rgba(80, 132, 220, .25);
    border-radius: 16px;

    background:
        radial-gradient(
            ellipse at 82% 55%,
            rgba(65, 76, 205, .30),
            transparent 35%
        ),
        linear-gradient(
            110deg,
            #14284b 0%,
            #172344 52%,
            #1c1e48 100%
        );

    box-shadow: var(--shadow);
}

html[data-theme="light"] .welcome-banner {
    background:
        radial-gradient(
            ellipse at 82% 55%,
            rgba(90, 130, 255, .18),
            transparent 35%
        ),
        linear-gradient(
            110deg,
            #e5f0ff 0%,
            #e9edff 55%,
            #eeeaff 100%
        );

    border-color: #d7e3fb;
}

.welcome-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: #72b6ff;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.35px;
}

html[data-theme="light"] .eyebrow {
    color: #2676dc;
}

.welcome-banner h1 {
    margin: 12px 0 8px;

    font-size: 27px;
    line-height: 1.13;
    letter-spacing: -.7px;
}

.welcome-banner h1 span {
    color: #3995ff;
}

.welcome-banner p {
    margin: 0;

    color: #b5c5df;

    font-size: 12px;
    line-height: 1.6;
}

html[data-theme="light"] .welcome-banner p {
    color: #526783;
}

.desktop-break {
    display: initial;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 17px;
}


/* Welcome illustration */

.welcome-art {
    position: relative;

    width: 300px;
    height: 165px;

    flex: 0 0 300px;

    margin-right: 22px;
}

.art-glow {
    position: absolute;
    inset: 15px 25px;

    background: #485cff;

    filter: blur(48px);
    opacity: .38;
}

.art-window {
    position: absolute;

    width: 170px;
    height: 123px;

    left: 45px;
    top: 20px;

    padding: 11px;

    border: 1px solid rgba(154, 186, 255, .65);
    border-radius: 13px;

    background: linear-gradient(145deg, #376ed4, #6544c9);

    box-shadow: 0 15px 35px #080e2e77;

    transform: rotate(-7deg);
}

.art-window-top {
    display: flex;
    gap: 4px;
}

.art-window-top i {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #b9d9ff;
}

.art-picture {
    height: 56px;

    display: grid;
    place-items: center;

    margin-top: 13px;

    border-radius: 7px;

    color: #d9eaff;
    font-size: 39px;

    background: linear-gradient(135deg, #8ac6ff, #a58aff);
}

.art-lines {
    display: flex;
    gap: 5px;

    margin-top: 8px;
}

.art-lines i {
    width: 38px;
    height: 4px;

    border-radius: 5px;

    background: #c5d5ff99;
}

.network-bubble {
    position: absolute;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: white;
    font-weight: 900;

    box-shadow: 0 8px 20px #050b2580;
}

.vk-bubble {
    right: 34px;
    top: 20px;

    background: linear-gradient(145deg, #36aaff, #1763d9);

    font-size: 17px;
}

.max-bubble {
    right: 5px;
    top: 83px;

    background: linear-gradient(145deg, #a45aff, #5728cf);

    font-size: 12px;
}

.tg-bubble {
    left: 53px;
    bottom: 1px;

    width: 30px;
    height: 30px;

    background: #239ee8;

    font-size: 17px;
}


/* =========================================================
   10. BUTTONS
   ========================================================= */

.button {
    min-height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 13px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition: .18s;
}

.button-primary {
    background: linear-gradient(110deg, #1681f7, #1769e8);

    color: white;

    box-shadow: 0 5px 14px rgba(24, 115, 230, .2);
}

.button-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.button-outline {
    border-color: rgba(152, 183, 231, .42);

    background: rgba(255, 255, 255, .045);
    color: var(--text);
}

html[data-theme="light"] .button-outline {
    border-color: #b9cce8;

    background: rgba(255, 255, 255, .6);
    color: #294260;
}

.button-outline:hover {
    background: rgba(255, 255, 255, .12);
}

.button-small {
    min-height: 29px;
    font-size: 10px;
}


/* =========================================================
   11. DASHBOARD
   ========================================================= */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 28px 0 14px;
}

.section-heading h2,
.panel-heading h2 {
    margin: 0 0 5px;

    font-size: 15px;
    letter-spacing: -.2px;
}

.section-heading p,
.panel-heading p {
    margin: 0;

    color: var(--muted);
    font-size: 11px;
}

.period-label {
    padding: 8px 10px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--surface);
    color: var(--muted);

    font-size: 10px;
}

.period-label span {
    margin-left: 12px;
}


/* Stats */

.stats-grid,
.posterx-stats {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 13px;
}

.stat-card {
    min-width: 0;

    padding: 16px 17px 14px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);

    box-shadow: var(--shadow);
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--muted);
    font-size: 11px;
}

.stat-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 17px;
}

.stat-icon.blue,
.quick-icon.blue {
    color: #54a5ff;
    background: rgba(48, 137, 255, .13);
}

.stat-icon.cyan,
.quick-icon.cyan {
    color: #36c8dc;
    background: rgba(45, 194, 215, .12);
}

.stat-icon.violet,
.quick-icon.violet {
    color: #a68bff;
    background: rgba(143, 108, 255, .14);
}

.stat-icon.orange {
    color: #ffb45e;
    background: rgba(255, 165, 70, .12);
}

.stat-value {
    margin: 12px 0 8px;

    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.7px;
}

.stat-foot {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);
    font-size: 9px;
}

.trend {
    color: var(--green);
    font-weight: 800;
}

.neutral {
    color: var(--muted-2);
    font-weight: 800;
}


/* Dashboard panels */

.dashboard-grid,
.posterx-dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(280px, 1fr);

    gap: 14px;

    margin-top: 19px;
}

.posterx-dashboard-grid {
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(300px, .9fr);
}

.panel {
    min-width: 0;

    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);

    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.text-link {
    color: var(--accent);

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.text-link [data-lucide] {
    width: 14px;
    height: 14px;
}

.empty-state {
    min-height: 190px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.empty-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    margin-bottom: 12px;

    border-radius: 13px;

    background: var(--accent-soft);
    color: var(--accent);

    font-size: 23px;
}

.empty-state strong {
    font-size: 12px;
}

.empty-state p {
    margin: 6px 0 13px;

    color: var(--muted);
    font-size: 10px;
}


/* Quick actions */

.quick-panel {
    display: flex;
    flex-direction: column;
}

.quick-panel .panel-heading {
    margin-bottom: 8px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px 0;

    border-bottom: 1px solid var(--border);
}

.quick-action:last-child {
    border-bottom: 0;
}

.quick-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 17px;
}

.quick-action > span:nth-child(2) {
    min-width: 0;

    display: grid;
    gap: 4px;
}

.quick-action strong {
    font-size: 10px;
}

.quick-action small {
    color: var(--muted);
    font-size: 9px;
}

.quick-action > b {
    margin-left: auto;

    color: var(--muted-2);
    font-size: 18px;
}

.quick-action b [data-lucide] {
    width: 17px;
    height: 17px;
}

.quick-action:hover strong {
    color: var(--accent);
}

.posterx-dashboard-grid .quick-panel {
    display: flex;
    flex-direction: column;
}

.posterx-dashboard-grid .quick-action {
    flex: 1;
}


/* Dashboard footer */

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    padding: 19px 2px 0;

    color: var(--muted-2);
    font-size: 9px;
}

.footer-separator {
    margin: 0 5px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.system-status i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);
}


/* =========================================================
   12. PROFILE NOTIFICATIONS
   ========================================================= */

.app-notification {
    position: fixed;
    z-index: 11000;

    left: 50%;
    bottom: 28px;

    max-width: calc(100% - 32px);

    padding: 13px 20px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--surface);
    color: var(--text);

    box-shadow: 0 8px 30px rgba(0, 0, 0, .22);

    font-size: 13px;
    font-weight: 650;

    opacity: 0;
    pointer-events: none;

    transform: translate(-50%, 12px);

    transition: .2s ease;
}

.app-notification.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.app-notification[data-type="error"] {
    border-color: #ef777f;
}

.app-notification[data-type="success"] {
    border-color: #24c77a;
}


/* =========================================================
   13. TIMEZONE MODAL
   ========================================================= */

.timezone-modal[hidden] {
    display: none !important;
}

.timezone-modal {
    position: fixed;
    inset: 0;

    z-index: 20000;

    display: grid;
    place-items: center;

    padding: 20px;
}

.timezone-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 8, 18, .68);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.timezone-dialog {
    position: relative;

    width: min(100%, 490px);

    max-height: min(88vh, 820px);

    display: flex;
    flex-direction: column;

    overflow-y: auto;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);
    color: var(--text);

    box-shadow: 0 25px 80px rgba(0, 0, 0, .4);
}

.timezone-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}

.timezone-dialog-head h2 {
    margin: 0 0 6px;
    font-size: 19px;
}

.timezone-dialog-head p {
    max-width: 370px;

    margin: 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.timezone-search {
    min-height: 43px;

    display: flex;
    align-items: center;
    gap: 9px;

    margin: 18px 0 12px;
    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--bg);
    color: var(--muted);
}

.timezone-search input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-size: 13px;
}

.timezone-current {
    display: grid;
    gap: 3px;

    margin-bottom: 12px;
    padding: 11px 12px;

    border-radius: 10px;

    background: var(--accent-soft);
}

.timezone-current span,
.timezone-current small {
    color: var(--muted);
    font-size: 10px;
}

.timezone-current strong {
    font-size: 13px;
}

.timezone-list {
    min-height: 100px;
    max-height: 260px;

    overflow-y: auto;
}

.timezone-option {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 8px 10px;

    border: 0;
    border-bottom: 1px solid var(--border);

    background: transparent;
    color: var(--text);

    text-align: left;

    cursor: pointer;
}

.timezone-option:hover,
.timezone-option.selected {
    background: var(--surface-hover);
}

.timezone-option > span:first-child {
    display: grid;
    gap: 3px;
}

.timezone-option strong {
    font-size: 12px;
}

.timezone-option small {
    color: var(--muted);
    font-size: 10px;
}

.timezone-option-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timezone-option-right [data-lucide] {
    width: 16px;
    height: 16px;

    color: var(--green);
}

.timezone-no-results {
    padding: 20px 8px;

    color: var(--muted);
    font-size: 12px;

    text-align: center;
}

.timezone-dialog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-top: 15px;
}

.timezone-dialog-foot span {
    max-width: 290px;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}


/* Clock style selector */

.timezone-style-heading {
    margin: 18px 0 10px;

    font-size: 12px;
    font-weight: 750;
}

.timezone-style-options {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

    margin-bottom: 18px;
}

.timezone-style-option {
    display: grid;
    justify-items: center;
    gap: 6px;

    padding: 10px 6px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--bg);
    color: var(--text);

    cursor: pointer;
}

.timezone-style-option.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.style-preview {
    width: 100%;

    padding: 10px 3px;

    border-radius: 7px;

    text-align: center;

    font-size: 17px;
    font-weight: 800;

    font-variant-numeric: tabular-nums;
}

.preview-digital {
    background: #17263b;
    color: white;
}

.preview-glow {
    background: #101e32;
    color: #70b7ff;

    text-shadow: 0 0 9px #398fff;
}

.preview-minimal {
    background: transparent;
    color: var(--text);
}

.timezone-style-option strong {
    font-size: 11px;
}

.timezone-style-option small {
    color: var(--muted);
    font-size: 9px;
}


/* =========================================================
   14. LOGIN SCREEN
   ========================================================= */

.posterx-login {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 28px 18px;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(37, 132, 255, .18),
            transparent 48%
        ),
        var(--bg);

    color: var(--text);
}

.posterx-login-card {
    width: min(100%, 460px);

    padding: 34px;

    border: 1px solid var(--border);
    border-radius: 28px;

    background: var(--surface);

    box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
}

.posterx-login-logo {
    display: flex;
    align-items: center;
    gap: 11px;

    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.5px;
}

.posterx-login-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--accent);
    color: white;

    font-size: 21px;
}

.posterx-login-art {
    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    margin: 42px 0 26px;

    border-radius: 24px;

    background: var(--accent-soft);
    color: var(--accent);
}

.posterx-login-art svg {
    width: 36px;
    height: 36px;
}

.posterx-login-eyebrow {
    color: var(--accent);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.posterx-login-copy h1 {
    margin: 12px 0;

    font-size: clamp(29px, 6vw, 38px);
    line-height: 1.12;
    letter-spacing: -1.4px;
}

.posterx-login-copy p {
    margin: 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.65;
}

.posterx-login-button {
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    margin-top: 30px;

    border-radius: 15px;

    background: var(--accent);
    color: #fff;

    font-size: 15px;
    font-weight: 800;

    transition: .18s;
}

.posterx-login-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.posterx-login-button svg {
    width: 19px;
    height: 19px;
}

.posterx-login-foot {
    margin-top: 16px;

    color: var(--muted-2);

    font-size: 12px;
    text-align: center;
}


/* =========================================================
   15. VK ACCOUNTS PAGE
   ========================================================= */

.vk-accounts-page {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;
}


/* Page heading */

.vk-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 8px 0 25px;
}

.vk-page-heading .eyebrow {
    margin-bottom: 9px;
}

.vk-page-heading h1 {
    margin: 0;

    font-size: clamp(25px, 3vw, 32px);
    font-weight: 750;
    letter-spacing: -.7px;
}

.vk-page-heading p {
    max-width: 600px;

    margin: 8px 0 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}


/* Main connect button */

.vk-add-account {
    min-height: 48px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 25px;

    border: 1px solid var(--accent);
    border-radius: 13px;

    background: linear-gradient(
        110deg,
        var(--accent),
        #1769e8
    );

    color: #fff !important;

    font-size: 14px;
    font-weight: 750;

    white-space: nowrap;

    box-shadow: 0 6px 18px rgba(37, 132, 255, .22);

    cursor: pointer;

    transition:
        transform .2s,
        box-shadow .2s,
        filter .2s;
}

.vk-add-account:hover {
    filter: brightness(1.1);

    transform: translateY(-2px);

    box-shadow: 0 9px 24px rgba(37, 132, 255, .3);
}

.vk-add-account:active {
    transform: scale(.98);
}

.vk-add-account svg {
    width: 19px;
    height: 19px;
}


/* Accounts summary */

.vk-accounts-summary {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 0 0 17px;
    padding: 13px 16px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--surface);
}

.vk-summary-icon {
    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: #62a7ff;
    background: rgba(47, 130, 255, .13);
}

.vk-summary-icon svg {
    width: 20px;
    height: 20px;
}

.vk-accounts-summary strong {
    display: block;

    font-size: 18px;
    line-height: 1.2;
}

.vk-accounts-summary span {
    display: block;

    margin-top: 3px;

    color: var(--muted);
    font-size: 11px;
}


/* Accounts grid */

.vk-accounts-list {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 13px;

    align-items: stretch;
}


/* Account card */

.vk-account-tile,
.vk-account-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 13px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    transition:
        border-color .2s,
        transform .2s,
        box-shadow .2s;
}

.vk-account-tile:hover,
.vk-account-card:hover {
    border-color: rgba(48, 132, 255, .55);

    transform: translateY(-2px);

    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}


/* Card top */

.vk-account-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vk-account-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    flex: 0 0 auto;

    padding: 5px 8px;

    border-radius: 30px;

    font-size: 10px;
    font-weight: 700;
}

.vk-account-status i,
.vk-status-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: currentColor;
}

.vk-account-status.is-active {
    color: #22c979;
    background: rgba(34, 201, 121, .12);
}

.vk-account-status.is-inactive {
    color: #ff7777;
    background: rgba(255, 100, 100, .12);
}

.vk-card-menu-button {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--muted);
    background: transparent;

    cursor: pointer;
}

.vk-card-menu-button:hover {
    color: var(--text);
    border-color: var(--accent);
}

.vk-card-menu-button svg {
    width: 16px;
    height: 16px;
}


/* Account identity */

.vk-account-identity {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;

    padding: 10px 0 12px;

    text-align: center;
}

.vk-account-avatar {
    position: relative;

    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    display: grid;
    place-items: center;

    overflow: hidden;

    margin-bottom: 9px;

    border-radius: 50%;

    background: linear-gradient(135deg, #237bea, #7054d8);

    color: #fff;

    font-size: 19px;
    font-weight: 750;
}

.vk-account-avatar img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.vk-account-avatar.is-fallback img {
    display: none;
}

.vk-account-avatar span {
    position: relative;
    z-index: 0;
}

.vk-account-name {
    max-width: 100%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: var(--text);

    font-size: 13px;
    font-weight: 750;

    text-decoration: none;

    overflow-wrap: anywhere;

    transition: color .2s;
}

.vk-account-name:hover {
    color: var(--accent);
}

.vk-account-name svg {
    width: 12px;
    height: 12px;

    flex: 0 0 auto;

    color: var(--muted);
}

.vk-account-id-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;
}

.vk-account-id-row strong {
    color: var(--text);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.vk-account-id-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}


/* Copy button */

.vk-copy-button {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: transparent;
    color: var(--muted);

    cursor: pointer;

    transition: .2s;
}

.vk-copy-button:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.vk-copy-button svg {
    width: 13px;
    height: 13px;
}


/* Account metrics */

.vk-account-metrics {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    padding: 10px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.vk-account-metrics div {
    min-width: 0;
}

.vk-account-metrics span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 9px;
}

.vk-account-metrics strong {
    display: block;

    overflow: hidden;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Account actions */

.vk-account-actions {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: auto;
    padding-top: 10px;
}

.vk-account-action {
    min-width: 0;
    min-height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 0 8px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: transparent;
    color: var(--text);

    font-size: 10px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition: .2s;
}

.vk-account-action:first-child {
    flex: 1;
}

.vk-account-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.vk-account-action svg {
    width: 13px;
    height: 13px;
}

.vk-account-delete:hover {
    color: #ff7777;
    border-color: #ff7777;
    background: rgba(255, 100, 100, .07);
}


/* Legacy account card layout */

.vk-account-main {
    display: flex;
    align-items: center;
    gap: 16px;

    min-width: 0;
}

.vk-account-info {
    min-width: 0;
    flex: 1;
}


/* Empty and loading states */

.vk-accounts-empty,
.vk-accounts-loading {
    grid-column: 1 / -1;

    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 28px;

    border: 1px dashed var(--border);
    border-radius: 17px;

    color: var(--muted);

    text-align: center;
}

.vk-accounts-empty strong {
    color: var(--text);
    font-size: 15px;
}

.vk-accounts-empty p {
    max-width: 360px;

    margin: 0;

    font-size: 12px;
    line-height: 1.5;
}

.vk-empty-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 3px;

    border-radius: 15px;

    color: var(--accent);
    background: var(--accent-soft);
}

.vk-empty-icon svg {
    width: 22px;
    height: 22px;
}

.vk-accounts-loading {
    flex-direction: row;
    min-height: 130px;
}

.vk-accounts-loading svg {
    width: 23px;
    height: 23px;

    animation: vk-spin 1s linear infinite;
}

@keyframes vk-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   16. VK CONNECT MODAL
   ========================================================= */

.vk-modal[hidden] {
    display: none !important;
}

.vk-modal {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.vk-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 8, 18, .72);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.vk-modal-dialog {
    position: relative;
    z-index: 1;

    width: min(100%, 590px);

    max-height: min(90vh, 850px);

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--surface);
    color: var(--text);

    box-shadow: 0 25px 90px rgba(0, 0, 0, .38);

    animation: vkModalAppear .2s ease;
}

@keyframes vkModalAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.vk-modal-open {
    overflow: hidden;
}


/* Modal header */

.vk-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 20px;
}

.vk-modal-header > div {
    min-width: 0;
    flex: 1;
}

.vk-modal-header h2 {
    margin: 5px 0 7px;

    font-size: 22px;
    font-weight: 750;
    letter-spacing: -.4px;
}

.vk-modal-header p {
    max-width: 440px;

    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

.vk-modal-close {
    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: transparent;
    color: var(--muted);

    cursor: pointer;
}

.vk-modal-close:hover {
    color: var(--text);
    border-color: var(--accent);
}

.vk-modal-close svg {
    width: 17px;
    height: 17px;
}


/* Recommendation block */

.vk-recommendation {
    min-width: 0;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 20px;
    padding: 14px;

    border: 1px solid rgba(47, 130, 255, .25);
    border-radius: 14px;

    background: rgba(47, 130, 255, .08);
}

.vk-recommendation-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: var(--accent);
    background: var(--accent-soft);
}

.vk-recommendation-icon svg {
    width: 19px;
    height: 19px;
}

.vk-recommendation-content {
    min-width: 0;
    flex: 1;
}

.vk-recommendation-content > strong {
    display: block;

    margin: 1px 0 6px;

    color: var(--text);

    font-size: 13px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.vk-recommendation-content p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

.vk-recommendation-hint {
    margin-top: 11px;
    padding-top: 10px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.vk-recommendation-hint strong {
    color: var(--text);
}


/* Connect steps */

.vk-connect-steps {
    display: grid;
    grid-template-columns: 1fr;

    gap: 13px;

    margin-bottom: 20px;
}

.vk-connect-step {
    min-width: 0;

    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.vk-connect-step > span {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--accent-soft);
    color: #69aaff;

    font-size: 12px;
    font-weight: 700;
}

.vk-connect-step > div {
    min-width: 0;
    flex: 1;
}

.vk-connect-step strong {
    display: block;

    margin: 2px 0 4px;

    color: var(--text);

    font-size: 12px;
    line-height: 1.4;
}

.vk-connect-step p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}


/* Connect buttons */

.vk-modal-auth,
.vk-connect-open,
.vk-connect-submit {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 18px;

    border: 0;
    border-radius: 11px;

    background: var(--accent);
    color: white;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.vk-modal-auth {
    width: 100%;
    margin-bottom: 18px;
}

.vk-modal-auth:hover,
.vk-connect-open:hover,
.vk-connect-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.vk-modal-auth svg,
.vk-connect-open svg,
.vk-connect-submit svg {
    width: 17px;
    height: 17px;
}

.vk-connect-submit {
    width: 100%;
    margin-top: 12px;
}

.vk-connect-submit:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}


/* URL input */

.vk-url-label {
    display: block;

    margin: 0 0 8px;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}

.vk-url-input {
    display: block;

    width: 100%;
    min-height: 90px;

    resize: vertical;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 11px;

    outline: none;

    background: var(--bg);
    color: var(--text);

    font: 12px / 1.5 monospace;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.vk-url-input:focus {
    border-color: var(--accent);

    box-shadow: 0 0 0 3px rgba(47, 130, 255, .12);
}

.vk-url-input::placeholder {
    color: var(--muted);
    opacity: .7;
}


/* Modal footer */

.vk-modal-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.vk-modal-footer p {
    margin: 0;
    width: 100%;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: left;
}

.vk-modal-footer .vk-connect-submit {
    width: 100%;
    min-height: 48px;
    justify-content: center;
}


/* Legacy connect panel */

.vk-connect-panel {
    margin-bottom: 25px;
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);
}

.vk-connect-heading {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 24px;
}

.vk-connect-heading h3 {
    margin: 0 0 5px;

    color: var(--text);

    font-size: 18px;
    font-weight: 700;
}

.vk-connect-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}

.vk-connect-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: var(--accent-soft);
    color: var(--accent);
}

.vk-connect-icon svg {
    width: 22px;
    height: 22px;
}

.vk-connect-note {
    margin: 12px 0 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}

.vk-list-heading {
    margin-top: 12px;
}


/* =========================================================
   17. LIGHT THEME ADJUSTMENTS
   ========================================================= */

html[data-theme="light"] .vk-account-tile,
html[data-theme="light"] .vk-account-card,
html[data-theme="light"] .vk-connect-panel {
    box-shadow: 0 4px 16px rgba(20, 40, 80, .035);
}

html[data-theme="light"] .vk-account-tile:hover,
html[data-theme="light"] .vk-account-card:hover {
    box-shadow: 0 12px 30px rgba(20, 40, 80, .09);
}

html[data-theme="light"] .vk-modal-backdrop {
    background: rgba(20, 30, 50, .48);
}

html[data-theme="light"] .vk-modal-dialog {
    background: var(--surface);
}

html[data-theme="light"] .vk-recommendation {
    background: rgba(24, 120, 238, .055);
    border-color: rgba(24, 120, 238, .2);
}


/* =========================================================
   18. MOBILE NAVIGATION
   ========================================================= */

.mobile-nav {
    display: none;
}


/* =========================================================
   19. RESPONSIVE — LARGE SCREENS
   ========================================================= */

@media (max-width: 1250px) {
    .vk-accounts-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .sidebar {
        width: 225px;
        min-width: 225px;
    }

    .page-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .welcome-art {
        transform: scale(.85);
        transform-origin: right center;

        margin-right: 0;
    }

    .stats-grid,
    .posterx-stats {
        gap: 9px;
    }

    .stat-card {
        padding: 13px;
    }

    .posterx-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .vk-accounts-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .timezone-dialog {
        padding: 19px;
    }
}


/* =========================================================
   20. RESPONSIVE — TABLETS
   ========================================================= */

@media (max-width: 900px) {
    .topbar {
        min-height: 76px;
        height: 76px;

        padding: 0 18px;
        gap: 12px;
    }

    .topbar-actions {
        gap: 9px;
    }

    .balance-pill {
        min-height: 44px;
        padding: 0 12px;
    }

    .topbar .icon-button,
    .topbar .notification-button,
    .topbar .theme-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .topbar .header-clock {
        position: static;

        min-width: 0;
        min-height: 42px;

        margin-left: auto;
        padding: 5px 8px;

        transform: none;
    }

    .topbar .header-clock-meta strong {
        font-size: 17px;
    }

    .topbar .header-clock-meta #headerClockDate,
    .topbar .header-clock-chevron,
    .topbar .header-clock-icon {
        display: none;
    }

    .header-clock-meta small {
        font-size: 9px;
    }

    .dashboard-grid,
    .posterx-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .vk-accounts-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   21. RESPONSIVE — TABLETS AND SMALL DEVICES
   ========================================================= */

@media (max-width: 760px) {
    .sidebar {
        width: 76px;
        min-width: 76px;

        padding-left: 12px;
        padding-right: 12px;
    }

    .sidebar .brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar .brand-name,
    .sidebar .menu-caption,
    .sidebar .nav-label,
    .sidebar .user-meta,
    .sidebar .user-more {
        display: none;
    }

    .sidebar .nav-link {
        justify-content: center;
        padding: 0;
    }

    .sidebar .sidebar-bottom {
        justify-content: center;
    }

    .topbar {
        min-height: 74px;
        height: 74px;

        padding: 0 16px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .balance-pill {
        min-height: 42px;
        height: 42px;
    }

    .icon-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .profile-button {
        min-height: 46px;
        padding: 4px 8px;
        gap: 7px;
    }

    .profile-button .small-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex-basis: 36px;
    }

    .welcome-art {
        opacity: .65;
        margin-right: -55px;
    }

    .dashboard-grid,
    .posterx-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .posterx-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timezone-dialog {
        padding: 17px;
    }

    .timezone-dialog-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .vk-page-heading {
        align-items: flex-start;
    }

    .vk-add-account {
        min-height: 44px;
        padding: 0 17px;
    }

    .vk-modal-dialog {
        width: min(100%, 560px);
    }
}


/* =========================================================
   22. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .sidebar {
        display: none;
    }

    .topbar {
        min-height: 64px;
        height: 64px;

        padding: 0 10px;
    }

    .topbar-left {
        gap: 6px;
    }

    .topbar-actions {
        gap: 5px;
    }

    .breadcrumbs {
        font-size: 11px;
    }

    .balance-pill {
        display: none;
    }

    .topbar .icon-button,
    .topbar .notification-button,
    .topbar .theme-toggle {
        width: 35px;
        height: 35px;
        min-width: 35px;

        border-radius: 10px;
    }

    .profile-button {
        min-height: 40px;

        padding: 3px;

        border: 0;

        background: transparent;
    }

    .profile-button:hover {
        background: var(--surface-hover);
    }

    .profile-button .small-avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
        flex-basis: 34px;
    }

    .profile-name {
        display: none;
    }

    .profile-menu {
        width: min(292px, calc(100vw - 20px));
    }

    .page-content {
        padding: 15px 13px 92px;
    }

    .welcome-banner {
        min-height: 190px;
        padding: 21px 19px;
    }

    .welcome-banner h1 {
        font-size: 23px;
    }

    .welcome-banner p {
        max-width: 245px;
        font-size: 10px;
    }

    .desktop-break {
        display: none;
    }

    .welcome-actions {
        gap: 7px;
    }

    .button {
        min-height: 32px;
        padding: 0 9px;
        font-size: 9px;
    }

    .welcome-art {
        position: absolute;

        right: -95px;
        bottom: -6px;

        transform: scale(.7);

        opacity: .24;
    }

    .section-heading {
        margin-top: 22px;
    }

    .stats-grid,
    .posterx-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-top {
        font-size: 10px;
    }

    .stat-icon {
        width: 26px;
        height: 26px;
    }

    .stat-value {
        margin: 10px 0 6px;
        font-size: 24px;
    }

    .stat-foot {
        gap: 5px;
        font-size: 8px;
    }

    .dashboard-grid,
    .posterx-dashboard-grid {
        margin-top: 13px;
        gap: 11px;
    }

    .panel {
        padding: 14px;
    }

    .dashboard-footer {
        flex-wrap: wrap;
        font-size: 8px;
    }

    /* Mobile navigation */

    .mobile-nav {
        position: fixed;
        z-index: 20;

        left: 0;
        right: 0;
        bottom: 0;

        height: calc(63px + env(safe-area-inset-bottom));

        display: flex;
        justify-content: space-around;

        padding: 5px 4px env(safe-area-inset-bottom);

        background: var(--sidebar);

        border-top: 1px solid var(--border);
    }

    .mobile-nav a {
        flex: 1;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        color: var(--muted);

        font-size: 8px;
    }

    .mobile-nav a span {
        font-size: 19px;
        line-height: 20px;
    }

    .mobile-nav a.active {
        color: var(--accent);
    }

    /* Login */

    .posterx-login-card {
        padding: 26px 22px;
        border-radius: 23px;
    }

    /* VK accounts */

    .vk-page-heading {
        flex-direction: column;
        align-items: stretch;

        gap: 15px;

        margin-bottom: 20px;
    }

    .vk-page-heading h1 {
        font-size: 26px;
    }

    .vk-page-heading p {
        font-size: 12px;
    }

    .vk-add-account {
        width: 100%;
        min-height: 48px;
    }

    .vk-accounts-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vk-account-tile,
    .vk-account-card {
        padding: 11px;
    }

    .vk-account-avatar {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        font-size: 17px;
    }

    .vk-account-name {
        font-size: 12px;
    }

    .vk-account-metrics {
        gap: 5px;
    }

    .vk-account-metrics span {
        font-size: 8px;
    }

    .vk-account-metrics strong {
        font-size: 10px;
    }

    .vk-account-actions {
        gap: 5px;
    }

    .vk-account-action {
        min-height: 30px;
        padding: 0 5px;
        font-size: 9px;
    }

    .vk-account-action svg {
        width: 12px;
        height: 12px;
    }

    /* VK modal */

    .vk-modal {
        align-items: flex-end;
        padding: 0;
    }

    .vk-modal-dialog {
        width: 100%;

        max-height: 92vh;
        max-height: 92dvh;

        padding: 21px 17px
            calc(20px + env(safe-area-inset-bottom));

        border-radius: 20px 20px 0 0;
    }

    .vk-modal-header h2 {
        font-size: 19px;
    }

    .vk-modal-header p {
        font-size: 11px;
    }

    .vk-recommendation {
        gap: 10px;
        padding: 12px;
    }

    .vk-recommendation-content > strong {
        font-size: 12px;
    }

    .vk-recommendation-content p {
        font-size: 11px;
    }

    .vk-recommendation-hint {
        font-size: 10px;
    }

    .vk-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .vk-modal-footer p {
        max-width: none;
    }

    .vk-connect-submit {
        width: 100%;
        justify-content: center;
    }

    .vk-connect-panel {
        padding: 16px;
    }

    .vk-connect-steps {
        grid-template-columns: 1fr;
        gap: 13px;
    }
}


/* =========================================================
   23. RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {
    .topbar {
        padding-left: 8px;
        padding-right: 8px;
    }

    .topbar-actions {
        gap: 3px;
    }

    .breadcrumbs {
        font-size: 10px;
    }

    .vk-accounts-list {
        grid-template-columns: 1fr;
    }

    .vk-account-tile,
    .vk-account-card {
        padding: 13px;
    }

    .vk-account-identity {
        padding: 11px 0 13px;
    }

    .vk-account-avatar {
        width: 58px;
        height: 58px;
    }

    .vk-account-name {
        font-size: 13px;
    }

    .vk-account-action {
        padding: 0 8px;
        font-size: 10px;
    }

    .vk-modal-dialog {
        padding-left: 14px;
        padding-right: 14px;
    }

    .vk-recommendation {
        gap: 8px;
        padding: 10px;
    }

    .vk-recommendation-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .timezone-style-options {
        gap: 5px;
    }
}


/* =========================================================
   POSTERX — VK COMMUNITIES
   ========================================================= */
.px-communities-page { max-width: 1280px; }
.px-community-toolbar { display:flex; align-items:center; justify-content:space-between; gap:22px; margin:0 0 16px; padding:17px 19px; }
.px-community-account-select { display:flex; flex-direction:column; gap:7px; min-width:min(100%, 330px); }
.px-community-account-select label { color:var(--muted); font-size:11px; font-weight:700; }
.px-community-account-select select { width:100%; min-height:43px; padding:0 12px; border:1px solid var(--border); border-radius:11px; background:var(--surface-2); color:var(--text); font:inherit; outline:none; }
.px-community-hint { display:flex; align-items:flex-start; gap:9px; max-width:490px; color:var(--muted); font-size:11px; line-height:1.5; }
.px-community-hint svg { width:17px; height:17px; flex:0 0 17px; color:var(--accent); }
.px-community-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:26px; }
.px-community-stat { display:flex; flex-direction:column; gap:6px; padding:14px 16px; }
.px-community-stat span { color:var(--muted); font-size:11px; }
.px-community-stat strong { color:var(--text); font-size:24px; line-height:1.15; }
.px-available-section,.px-connected-section { margin-top:26px; }
.px-section-title { display:flex; align-items:flex-end; justify-content:space-between; gap:15px; margin-bottom:13px; }
.px-section-title h2 { margin:0; color:var(--text); font-size:19px; letter-spacing:-.35px; }
.px-section-title p { margin:5px 0 0; color:var(--muted); font-size:11px; }
.px-section-title > span { color:var(--accent); font-size:11px; font-weight:700; white-space:nowrap; }
.px-available-tools { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.px-community-search { display:flex; align-items:center; gap:9px; width:min(100%,360px); min-height:42px; padding:0 12px; border:1px solid var(--border); border-radius:11px; background:var(--surface); color:var(--muted); }
.px-community-search svg { width:17px; height:17px; flex:0 0 17px; }
.px-community-search input { width:100%; border:0; outline:0; background:transparent; color:var(--text); font:inherit; font-size:12px; }
.px-available-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.px-available-community { min-width:0; display:flex; align-items:center; gap:11px; padding:11px 13px; border:1px solid var(--border); border-radius:13px; background:var(--surface); cursor:pointer; transition:border-color .18s,background .18s; }
.px-available-community:hover { border-color:var(--accent); }
.px-available-community:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); }
.px-available-community.is-connected { cursor:default; opacity:.7; }
.px-available-community input { width:16px; height:16px; accent-color:var(--accent); flex:0 0 16px; }
.px-available-avatar,.px-community-avatar { position:relative; width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; overflow:hidden; border-radius:12px; background:var(--accent-soft); color:var(--accent); font-size:12px; font-weight:800; }
.px-available-avatar img,.px-community-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.px-available-info { min-width:0; display:flex; flex:1; flex-direction:column; gap:4px; }
.px-available-info strong { overflow:hidden; color:var(--text); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.px-available-info small { color:var(--muted); font-size:10px; }
.px-select-indicator { width:8px; height:8px; flex:0 0 8px; border:1px solid var(--muted-2); border-radius:50%; }
.px-already-connected { display:flex; align-items:center; gap:4px; color:#22c979; font-size:9px; white-space:nowrap; }
.px-already-connected svg { width:13px; height:13px; }
.px-connected-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.px-community-card { min-width:0; display:flex; flex-direction:column; gap:13px; padding:14px; border:1px solid var(--border); border-radius:15px; background:var(--surface); transition:border-color .18s,transform .18s; }
.px-community-card:hover { border-color:rgba(48,132,255,.5); transform:translateY(-1px); }
.px-community-card.is-disabled { opacity:.72; }
.px-community-card-main { min-width:0; display:flex; align-items:center; gap:11px; }
.px-community-avatar { width:49px; height:49px; flex-basis:49px; border-radius:14px; }
.px-community-info { min-width:0; display:flex; flex-direction:column; gap:4px; }
.px-community-name { display:flex; align-items:center; gap:5px; max-width:100%; overflow:hidden; color:var(--text); font-size:12px; font-weight:750; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.px-community-name svg { width:12px; height:12px; flex:0 0 12px; color:var(--muted); }
.px-community-info > span,.px-community-info small { overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.px-community-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:10px; border-top:1px solid var(--border); }
.px-community-status { display:inline-flex; align-items:center; gap:6px; color:#22c979; font-size:10px; font-weight:700; }
.px-community-status i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.px-community-status.is-disabled { color:var(--muted); }
.px-community-action { min-height:30px; display:inline-flex; align-items:center; gap:5px; padding:0 9px; border:1px solid var(--border); border-radius:8px; background:transparent; color:var(--text); font:inherit; font-size:10px; cursor:pointer; }
.px-community-action:hover { border-color:var(--accent); color:var(--accent); }
.px-community-action svg { width:13px; height:13px; }
.px-community-action.is-danger:hover { border-color:#ef6464; color:#ef6464; }
.px-empty-state,.px-loading,.px-empty-note { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; min-height:145px; padding:22px; border:1px dashed var(--border); border-radius:15px; color:var(--muted); text-align:center; font-size:12px; }
.px-empty-state strong { color:var(--text); font-size:14px; }
.px-empty-state p { max-width:360px; margin:0; font-size:11px; line-height:1.5; }
.px-empty-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:var(--accent-soft); color:var(--accent); }
.px-empty-icon svg,.px-loading svg { width:21px; height:21px; }
.px-loading { flex-direction:row; min-height:100px; }
.px-loading svg { animation:px-spin 1s linear infinite; }
@keyframes px-spin { to { transform:rotate(360deg); } }
@media (max-width:1050px) { .px-connected-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .px-community-toolbar { align-items:stretch; flex-direction:column; gap:13px; } .px-community-account-select { min-width:0; } .px-community-stats { gap:8px; } .px-community-stat { padding:11px; } .px-community-stat strong { font-size:21px; } .px-available-list { grid-template-columns:1fr; } .px-connected-list { grid-template-columns:1fr; } .px-available-tools { align-items:stretch; flex-direction:column; } .px-community-search { width:100%; min-height:44px; } .px-available-tools .button { width:100%; justify-content:center; min-height:43px; } .px-section-title h2 { font-size:17px; } }
@media (max-width:380px) { .px-community-stats { grid-template-columns:1fr 1fr; } .px-community-stat:last-child { grid-column:1/-1; } .px-community-card { padding:12px; } }


/* =========================================================
   POSTERX — COMMUNITY WORKSPACE / TABS / CARDS
   ========================================================= */
.px-community-toolbar { align-items:end; }
.px-community-account-select { flex:1; min-width:220px; max-width:560px; }
.px-find-communities { min-height:43px; white-space:nowrap; }
.px-connected-heading { align-items:center; margin-top:30px; }
.px-connected-count { padding:7px 11px; border:1px solid var(--border); border-radius:30px; color:var(--muted); font-size:11px; white-space:nowrap; }
.px-community-card { gap:14px; padding:17px; border-radius:17px; }
.px-community-card-main { align-items:center; }
.px-community-info { flex:1; }
.px-community-info > .px-community-status { display:none; }
.px-community-card-bottom { align-items:center; }
.px-community-open { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-size:11px; font-weight:700; text-decoration:none; }
.px-community-open:hover { color:var(--text); }
.px-community-open svg { width:15px; height:15px; }
.px-community-card-actions { display:flex; gap:6px; }
.px-available-actions { display:flex; align-items:center; gap:12px; }
.px-available-actions > span { color:var(--muted); font-size:11px; white-space:nowrap; }
.px-close-search { width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--border); border-radius:10px; color:var(--muted); background:var(--surface); cursor:pointer; }
.px-close-search:hover { color:var(--text); border-color:var(--accent); }
.px-community-workspace { width:100%; max-width:1400px; margin:0 auto; }
.px-workspace-back { margin:0 0 16px; }
.px-workspace-back a { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; font-weight:650; text-decoration:none; }
.px-workspace-back a:hover { color:var(--accent); }
.px-workspace-back svg { width:16px; height:16px; }
.px-workspace-tabs { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:5px; overflow-x:auto; margin:0 0 22px; padding:7px; border:1px solid var(--border); border-radius:15px; background:var(--surface); box-shadow:0 8px 24px rgba(0,0,0,.08); scrollbar-width:thin; }
.px-workspace-tab { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:0 13px; border-radius:10px; color:var(--muted); font-size:12px; font-weight:650; text-decoration:none; transition:background .18s,color .18s; }
.px-workspace-tab svg { width:15px; height:15px; }
.px-workspace-tab:hover { color:var(--text); background:var(--surface-2); }
.px-workspace-tab.is-active { color:var(--accent); background:var(--accent-soft); }
.px-workspace-content { min-height:420px; }
.px-workspace-welcome { display:flex; align-items:center; gap:17px; padding:22px; margin-bottom:16px; }
.px-workspace-avatar { position:relative; width:64px; height:64px; flex:0 0 64px; display:grid; place-items:center; overflow:hidden; border-radius:17px; background:var(--accent-soft); color:var(--accent); font-size:17px; font-weight:800; }
.px-workspace-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.px-workspace-identity { flex:1; min-width:0; }
.px-workspace-identity h2 { margin:5px 0 4px; font-size:21px; letter-spacing:-.45px; }
.px-workspace-identity p { margin:0; color:var(--muted); font-size:12px; }
.px-workspace-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.px-workspace-info { min-width:0; padding:20px; }
.px-workspace-section-title { display:flex; align-items:center; gap:11px; margin-bottom:17px; }
.px-workspace-section-title > svg { width:20px; height:20px; color:var(--accent); }
.px-workspace-section-title h3 { margin:0; font-size:14px; }
.px-workspace-section-title p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.px-info-row { display:flex; justify-content:space-between; gap:15px; padding:12px 0; border-top:1px solid var(--border); font-size:12px; }
.px-info-row span { color:var(--muted); }
.px-info-row strong { text-align:right; font-weight:650; }
.px-workspace-placeholder { display:flex; flex-direction:column; align-items:flex-start; gap:9px; padding:18px; border:1px dashed var(--border); border-radius:13px; color:var(--muted); font-size:12px; line-height:1.55; }
.px-workspace-placeholder > svg { width:23px; height:23px; color:var(--accent); }
.px-workspace-placeholder strong { color:var(--text); font-size:13px; }
.px-settings-panel { padding:23px; }
.px-settings-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:20px; }
.px-settings-panel-heading h2,.px-coming-soon h2 { margin:0; font-size:20px; }
.px-settings-panel-heading p,.px-coming-soon > p { margin:6px 0 0; color:var(--muted); font-size:12px; }
.px-profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.px-profile-field { display:flex; flex-direction:column; gap:7px; padding:15px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); }
.px-profile-field span { color:var(--muted); font-size:11px; }
.px-profile-field strong { overflow-wrap:anywhere; color:var(--text); font-size:13px; }
.px-coming-soon { min-height:300px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.px-coming-icon { width:48px; height:48px; display:grid; place-items:center; margin-bottom:17px; border-radius:15px; background:var(--accent-soft); color:var(--accent); }
.px-coming-icon svg { width:23px; height:23px; }
.px-coming-note { display:flex; align-items:flex-start; gap:10px; max-width:720px; margin-top:22px; padding:14px 16px; border:1px solid var(--border); border-radius:12px; color:var(--muted); font-size:12px; line-height:1.6; }
.px-coming-note svg { width:17px; height:17px; flex:0 0 17px; color:var(--accent); }
.px-workspace-loading { display:flex; align-items:center; justify-content:center; gap:10px; min-height:180px; color:var(--muted); }
.px-workspace-loading svg { width:19px; height:19px; animation:px-spin 1s linear infinite; }
@media (max-width:900px) { .px-connected-list { grid-template-columns:repeat(2,minmax(0,1fr)); } .px-workspace-grid { grid-template-columns:1fr; } }
@media (max-width:700px) { .px-community-toolbar { align-items:stretch; } .px-community-account-select { max-width:none; } .px-find-communities { width:100%; justify-content:center; } .px-available-tools { align-items:stretch; flex-direction:column; } .px-available-actions { justify-content:space-between; } .px-available-actions .button { flex:1; justify-content:center; } .px-connected-list { grid-template-columns:1fr; } .px-workspace-tabs { margin:0 -2px 17px; border-radius:12px; } .px-workspace-tab { min-height:40px; padding:0 12px; } .px-workspace-welcome { align-items:flex-start; flex-wrap:wrap; padding:16px; } .px-workspace-identity { flex-basis:calc(100% - 85px); } .px-workspace-welcome > .px-community-status { margin-left:81px; } .px-profile-grid { grid-template-columns:1fr; } .px-settings-panel { padding:17px; } .px-settings-panel-heading { align-items:flex-start; flex-direction:column; } .px-community-card { padding:14px; } }


/* Live VK dashboard and profile editor */
.px-live-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.px-live-stat{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:3px 9px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.px-live-stat svg{grid-row:span 2;width:19px;height:19px;color:var(--accent)}
.px-live-stat span{font-size:11px;color:var(--muted)}.px-live-stat strong{font-size:21px;color:var(--text);font-variant-numeric:tabular-nums}
.px-live-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:15px;margin-bottom:15px}
.px-live-section{padding:19px;min-width:0}.px-live-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.px-live-heading h3{margin:0;font-size:15px}.px-live-heading>span{font-size:10px;color:var(--muted)}.px-live-heading>a{font-size:11px;color:var(--accent);text-decoration:none}
.px-live-post,.px-live-comment{padding:12px 0;border-top:1px solid var(--border)}.px-live-post:first-of-type,.px-live-comment:first-of-type{border-top:0}.px-live-post-text{font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.px-live-post-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;color:var(--muted);font-size:10px}.px-live-comment p{margin:0 0 6px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.px-live-comment small{font-size:10px;color:var(--muted)}.px-live-about>p{font-size:12px;line-height:1.65;color:var(--muted);white-space:pre-wrap}.px-live-facts{display:flex;flex-wrap:wrap;gap:8px}.px-live-facts span{padding:8px 10px;border:1px solid var(--border);border-radius:9px;font-size:10px;color:var(--muted)}.px-live-facts a{color:var(--accent)}
.px-profile-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.px-profile-form label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:11px;font-weight:650}.px-profile-form label:nth-child(2){grid-column:1/-1}.px-profile-form input,.px-profile-form textarea{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);font:inherit;font-size:13px;resize:vertical}.px-profile-form-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:5px}.px-profile-form-actions span{font-size:10px;color:var(--muted)}.px-dashboard-error{padding:20px;margin-bottom:14px}.px-dashboard-error p{font-size:12px;color:var(--muted)}.px-muted{font-size:12px;color:var(--muted)}
@media(max-width:800px){.px-live-columns{grid-template-columns:1fr}.px-live-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.px-live-stat{padding:12px}.px-live-stat strong{font-size:18px}.px-profile-form{grid-template-columns:1fr}.px-profile-form label:nth-child(2),.px-profile-form-actions{grid-column:1}.px-profile-form-actions{align-items:stretch;flex-direction:column}.px-profile-form-actions .button{width:100%;justify-content:center}}


/* Live VK dashboard and profile editor */
.px-live-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.px-live-stat{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:3px 9px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.px-live-stat svg{grid-row:span 2;width:19px;height:19px;color:var(--accent)}
.px-live-stat span{font-size:11px;color:var(--muted)}.px-live-stat strong{font-size:21px;color:var(--text);font-variant-numeric:tabular-nums}
.px-live-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:15px;margin-bottom:15px}
.px-live-section{padding:19px;min-width:0}.px-live-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.px-live-heading h3{margin:0;font-size:15px}.px-live-heading>span{font-size:10px;color:var(--muted)}.px-live-heading>a{font-size:11px;color:var(--accent);text-decoration:none}
.px-live-post,.px-live-comment{padding:12px 0;border-top:1px solid var(--border)}.px-live-post:first-of-type,.px-live-comment:first-of-type{border-top:0}.px-live-post-text{font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.px-live-post-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;color:var(--muted);font-size:10px}.px-live-comment p{margin:0 0 6px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.px-live-comment small{font-size:10px;color:var(--muted)}.px-live-about>p{font-size:12px;line-height:1.65;color:var(--muted);white-space:pre-wrap}.px-live-facts{display:flex;flex-wrap:wrap;gap:8px}.px-live-facts span{padding:8px 10px;border:1px solid var(--border);border-radius:9px;font-size:10px;color:var(--muted)}.px-live-facts a{color:var(--accent)}
.px-profile-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.px-profile-form label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:11px;font-weight:650}.px-profile-form label:nth-child(2){grid-column:1/-1}.px-profile-form input,.px-profile-form textarea{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);font:inherit;font-size:13px;resize:vertical}.px-profile-form-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:5px}.px-profile-form-actions span{font-size:10px;color:var(--muted)}.px-dashboard-error{padding:20px;margin-bottom:14px}.px-dashboard-error p{font-size:12px;color:var(--muted)}.px-muted{font-size:12px;color:var(--muted)}
@media(max-width:800px){.px-live-columns{grid-template-columns:1fr}.px-live-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.px-live-stat{padding:12px}.px-live-stat strong{font-size:18px}.px-profile-form{grid-template-columns:1fr}.px-profile-form label:nth-child(2),.px-profile-form-actions{grid-column:1}.px-profile-form-actions{align-items:stretch;flex-direction:column}.px-profile-form-actions .button{width:100%;justify-content:center}}


/* Live VK dashboard and profile editor */
.px-live-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.px-live-stat{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:3px 9px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.px-live-stat svg{grid-row:span 2;width:19px;height:19px;color:var(--accent)}
.px-live-stat span{font-size:11px;color:var(--muted)}.px-live-stat strong{font-size:21px;color:var(--text);font-variant-numeric:tabular-nums}
.px-live-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:15px;margin-bottom:15px}
.px-live-section{padding:19px;min-width:0}.px-live-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.px-live-heading h3{margin:0;font-size:15px}.px-live-heading>span{font-size:10px;color:var(--muted)}.px-live-heading>a{font-size:11px;color:var(--accent);text-decoration:none}
.px-live-post,.px-live-comment{padding:12px 0;border-top:1px solid var(--border)}.px-live-post:first-of-type,.px-live-comment:first-of-type{border-top:0}.px-live-post-text{font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.px-live-post-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;color:var(--muted);font-size:10px}.px-live-comment p{margin:0 0 6px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.px-live-comment small{font-size:10px;color:var(--muted)}.px-live-about>p{font-size:12px;line-height:1.65;color:var(--muted);white-space:pre-wrap}.px-live-facts{display:flex;flex-wrap:wrap;gap:8px}.px-live-facts span{padding:8px 10px;border:1px solid var(--border);border-radius:9px;font-size:10px;color:var(--muted)}.px-live-facts a{color:var(--accent)}
.px-profile-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.px-profile-form label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:11px;font-weight:650}.px-profile-form label:nth-child(2){grid-column:1/-1}.px-profile-form input,.px-profile-form textarea{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);font:inherit;font-size:13px;resize:vertical}.px-profile-form-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:5px}.px-profile-form-actions span{font-size:10px;color:var(--muted)}.px-dashboard-error{padding:20px;margin-bottom:14px}.px-dashboard-error p{font-size:12px;color:var(--muted)}.px-muted{font-size:12px;color:var(--muted)}
@media(max-width:800px){.px-live-columns{grid-template-columns:1fr}.px-live-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.px-live-stat{padding:12px}.px-live-stat strong{font-size:18px}.px-profile-form{grid-template-columns:1fr}.px-profile-form label:nth-child(2),.px-profile-form-actions{grid-column:1}.px-profile-form-actions{align-items:stretch;flex-direction:column}.px-profile-form-actions .button{width:100%;justify-content:center}}

/* PosterX community overview: compact today rows */
.px-live-rows{display:flex;flex-direction:column;gap:0}
.px-live-row{display:grid;grid-template-columns:104px minmax(120px,1fr) auto 18px;align-items:center;gap:12px;padding:11px 12px;border-top:1px solid var(--border);color:var(--text);text-decoration:none;min-width:0;transition:background .15s ease}
.px-live-row:first-child{border-top:0}
.px-live-row:hover{background:var(--surface-hover,rgba(127,127,127,.07))}
.px-live-row-date{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.px-live-row-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.px-live-row-text small{display:block;margin-top:4px;color:var(--muted);font-size:10px;overflow:hidden;text-overflow:ellipsis}
.px-live-row-metrics{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:10px;white-space:nowrap}
.px-live-row-metrics span{display:inline-flex;align-items:center;gap:4px}
.px-live-row-metrics svg{width:12px;height:12px}
.px-live-row-open{width:14px;height:14px;color:var(--muted)}
.px-live-empty{padding:12px;margin:0;font-size:12px}
@media(max-width:700px){.px-live-row{grid-template-columns:76px minmax(80px,1fr) 16px;gap:8px;padding:10px 8px}.px-live-row-metrics{grid-column:2;grid-row:2;gap:9px;margin-top:4px}.px-live-row-open{grid-column:3;grid-row:1}.px-live-row-text{grid-column:2;grid-row:1}.px-live-row-date{grid-column:1;grid-row:1;align-self:start;padding-top:1px}.px-live-comment-row .px-live-row-metrics{grid-column:2;grid-row:3}.px-live-comment-row .px-live-row-text{white-space:normal}.px-live-comment-row .px-live-row-text small{white-space:nowrap}}


/* PosterX local overview + manual VK statistics */
.px-local-overview-panel,.px-local-info{padding:20px;}
.px-local-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;}
.px-local-panel-head h3{margin:0;font-size:16px;font-weight:800;}
.px-local-panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px;}
.px-local-updated{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin:12px 0 16px;}
.px-local-updated svg{width:15px;height:15px;}
.px-local-updated strong{color:var(--text);font-weight:650;}
.px-local-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;}
.px-local-stat{min-width:0;display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2,var(--surface));}
.px-local-stat-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:var(--accent-soft);color:var(--accent);}
.px-local-stat-icon svg{width:17px;height:17px;}
.px-local-stat-copy{min-width:0;display:grid;gap:3px;}
.px-local-stat-copy small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.px-local-stat-copy strong{font-size:17px;font-weight:800;line-height:1.15;overflow-wrap:anywhere;}
.px-local-stat-note{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:1.5;}
.px-local-empty{min-height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:var(--muted);text-align:center;}
.px-local-empty>svg{width:25px;height:25px;color:var(--accent);}
.px-local-empty strong{color:var(--text);font-size:13px;}
.px-local-empty span{max-width:440px;font-size:12px;line-height:1.5;}
.px-local-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px;}
.px-local-info .px-info-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--border);font-size:12px;}
.px-local-info .px-info-row span{color:var(--muted);}
.px-local-info .px-info-row strong{text-align:right;overflow-wrap:anywhere;}
.px-local-description{color:var(--muted);font-size:12px;line-height:1.6;white-space:pre-wrap;}
.px-local-welcome{margin-bottom:14px;}
@media(max-width:900px){.px-local-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:650px){.px-local-panel-head{align-items:flex-start;flex-direction:column;}.px-local-panel-head .button{width:100%;justify-content:center;}.px-local-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.px-local-bottom-grid{grid-template-columns:1fr;}.px-local-stat{padding:10px;gap:8px;}.px-local-stat-icon{width:30px;height:30px;flex-basis:30px;}.px-local-stat-copy strong{font-size:15px;}}


/* PosterX overview compact layout v3 */
.px-local-welcome{padding:14px 16px!important;gap:12px;align-items:center;min-height:unset}
.px-local-welcome .eyebrow{display:none!important}
.px-local-welcome .px-workspace-identity h2{margin:0 0 4px;font-size:19px}
.px-local-welcome .px-workspace-identity p{margin:0;font-size:12px}
.px-overview-head-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.px-overview-head-actions .button{min-height:34px;padding:0 11px;font-size:12px}
.px-local-overview-panel{padding:15px!important}
.px-local-panel-head{margin-bottom:11px;gap:12px}
.px-local-panel-head h3{font-size:15px;margin:0 0 3px}
.px-local-panel-head p{font-size:11px;margin:0}
.px-local-panel-head .button{min-height:36px;padding:0 12px;font-size:12px;white-space:nowrap}
.px-local-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.px-local-stat{padding:8px 9px;gap:8px;border-radius:10px}
.px-local-stat-icon{width:28px;height:28px;flex-basis:28px;border-radius:8px}
.px-local-stat-icon svg{width:14px;height:14px}
.px-local-stat-copy small{font-size:10px}
.px-local-stat-copy strong{font-size:14px}
.px-local-stat-note{font-size:10px;margin-top:8px}
.px-local-bottom-grid{gap:10px;margin-top:10px}
.px-local-info{padding:13px!important}
.px-local-info .px-info-row{padding:7px 0;font-size:11px}
.px-local-description{font-size:12px;line-height:1.45;margin:5px 0 9px}
.px-feature-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.px-feature-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid var(--border);border-radius:20px;color:var(--muted);font-size:10px;white-space:nowrap}
.px-feature-chip svg{width:12px;height:12px}
.px-feature-chip.is-on{color:var(--green);border-color:rgba(36,199,122,.25);background:rgba(36,199,122,.07)}
@media(max-width:900px){.px-local-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.px-local-welcome{align-items:flex-start;flex-wrap:wrap}.px-overview-head-actions{width:100%;margin-left:0;justify-content:space-between}.px-local-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.px-local-panel-head{align-items:center;flex-direction:row}.px-local-panel-head .button{width:auto}.px-local-stat{padding:8px}.px-local-stat-copy strong{font-size:13px}}

/* =====================================================
   POSTERX — PUBLICATIONS WORKSPACE (PHASE 4)
   ===================================================== */
.pxp-publications-page,.pxp-editor-page{display:flex;flex-direction:column;gap:22px;min-width:0}
.pxp-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.pxp-page-heading h1,.pxp-editor-heading h1{margin:7px 0 6px;font-size:clamp(25px,3vw,34px);font-weight:750;letter-spacing:-.035em}
.pxp-page-heading p,.pxp-editor-heading p{margin:0;color:var(--muted,#8994a8);line-height:1.55}
.pxp-publication-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pxp-publication-summary>div{padding:18px 20px;border:1px solid var(--border,#263249);border-radius:16px;background:var(--card,#131e31);display:flex;flex-direction:column;gap:8px}
.pxp-publication-summary span{font-size:13px;color:var(--muted,#8994a8)}.pxp-publication-summary strong{font-size:27px;line-height:1.1;font-weight:750}
.pxp-publication-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.pxp-publication-filters{display:flex;gap:6px;flex-wrap:wrap;padding:4px;border:1px solid var(--border,#263249);border-radius:12px;background:var(--card,#131e31)}
.pxp-publication-filters button{border:0;border-radius:8px;background:transparent;color:var(--muted,#8994a8);padding:9px 13px;font:inherit;font-size:13px;cursor:pointer}.pxp-publication-filters button.is-active{background:var(--accent-soft,rgba(80,130,255,.16));color:var(--text,#f4f7fc)}
.pxp-publication-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pxp-publication-card{min-width:0;padding:19px;border:1px solid var(--border,#263249);border-radius:16px;background:var(--card,#131e31);display:flex;flex-direction:column;gap:14px}
.pxp-publication-card-head,.pxp-publication-meta,.pxp-publication-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pxp-publication-card-head{justify-content:space-between}.pxp-publication-card-head small{color:var(--muted,#8994a8);font-size:11px}
.pxp-status{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:650}.pxp-status>i{width:7px;height:7px;border-radius:50%;background:#8792a5}.pxp-status-draft>i{background:#8792a5}.pxp-status-scheduled>i{background:#4b9cff}.pxp-status-published>i{background:#35bd83}.pxp-status-failed>i{background:#ef6b72}.pxp-status-partially_published>i{background:#e7a94d}
.pxp-publication-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;color:var(--text,#f4f7fc);font-size:14px}.pxp-publication-meta{color:var(--muted,#8994a8);font-size:12px}.pxp-publication-meta span{display:inline-flex;align-items:center;gap:6px}.pxp-publication-meta svg{width:14px;height:14px}
.pxp-publication-actions{margin-top:auto;padding-top:5px}.pxp-icon-action{width:34px;height:34px;border:1px solid var(--border,#263249);border-radius:9px;background:transparent;color:var(--muted,#8994a8);display:grid;place-items:center;cursor:pointer;margin-left:auto}.pxp-icon-action.is-danger:hover{color:#ef6b72;border-color:#ef6b72}
.pxp-empty,.pxp-loading{grid-column:1/-1;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:28px;text-align:center;border:1px dashed var(--border,#263249);border-radius:16px;color:var(--muted,#8994a8)}.pxp-empty>span{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:var(--accent-soft,rgba(80,130,255,.12));color:var(--accent,#6d9cff)}.pxp-empty strong{color:var(--text,#f4f7fc)}.pxp-empty p{margin:0;max-width:440px;font-size:13px;line-height:1.5}
.pxp-publication-note{display:flex;align-items:flex-start;gap:8px;margin:0;color:var(--muted,#8994a8);font-size:12px;line-height:1.5}.pxp-publication-note svg{width:16px;height:16px;flex:none}
.pxp-editor-top{display:flex;align-items:center;justify-content:space-between}.pxp-back-link{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--muted,#8994a8);font:inherit;cursor:pointer;padding:7px 0}.pxp-back-link:hover{color:var(--text,#f4f7fc)}.pxp-editor-heading h1{margin:7px 0 6px}.pxp-editor-heading p{margin:0;color:var(--muted,#8994a8)}
.pxp-publication-form{display:flex;flex-direction:column;gap:16px}.pxp-editor-panel{padding:22px;display:flex;flex-direction:column;gap:17px}.pxp-form-title{display:flex;align-items:flex-start;gap:12px}.pxp-form-title>span{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:var(--accent-soft,rgba(80,130,255,.15));color:var(--accent,#6d9cff);font-weight:750;flex:none}.pxp-form-title h2{margin:1px 0 4px;font-size:17px}.pxp-form-title p{margin:0;color:var(--muted,#8994a8);font-size:12px}
#pxpPublicationText{width:100%;min-height:230px;resize:vertical;padding:14px 15px;border:1px solid var(--border,#263249);border-radius:12px;background:var(--input-bg,rgba(5,12,24,.28));color:var(--text,#f4f7fc);font:inherit;line-height:1.6;outline:none}#pxpPublicationText:focus,.pxp-schedule-field input:focus{border-color:var(--accent,#6d9cff)}.pxp-text-counter{display:flex;justify-content:space-between;color:var(--muted,#8994a8);font-size:11px;margin-top:-10px}
.pxp-community-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pxp-community-choice{position:relative;display:flex;align-items:center;gap:11px;min-width:0;padding:11px 38px 11px 11px;border:1px solid var(--border,#263249);border-radius:12px;cursor:pointer;transition:border-color .15s,background .15s}.pxp-community-choice:has(input:checked){border-color:var(--accent,#6d9cff);background:var(--accent-soft,rgba(80,130,255,.1))}.pxp-community-choice input{position:absolute;opacity:0;pointer-events:none}.pxp-choice-avatar{width:39px;height:39px;flex:none;overflow:hidden;display:grid;place-items:center;border-radius:11px;background:var(--surface,#202c40);color:var(--muted,#8994a8)}.pxp-choice-avatar img{width:100%;height:100%;object-fit:cover}.pxp-community-choice>span:nth-of-type(2){display:flex;flex-direction:column;gap:4px;min-width:0}.pxp-community-choice strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pxp-community-choice small{font-size:11px;color:var(--muted,#8994a8)}.pxp-choice-check{position:absolute;right:13px;color:var(--accent,#6d9cff);opacity:0}.pxp-community-choice:has(input:checked) .pxp-choice-check{opacity:1}
.pxp-selected-hint{color:var(--muted,#8994a8);font-size:12px}.pxp-no-communities{grid-column:1/-1;padding:20px;border:1px dashed var(--border,#263249);border-radius:12px}.pxp-no-communities p{color:var(--muted,#8994a8);font-size:13px;line-height:1.5}
.pxp-schedule-field{display:flex;flex-direction:column;gap:8px;max-width:360px}.pxp-schedule-field>span{font-size:13px;font-weight:650}.pxp-schedule-field input{padding:11px 12px;border:1px solid var(--border,#263249);border-radius:10px;background:var(--input-bg,rgba(5,12,24,.28));color:var(--text,#f4f7fc);font:inherit;outline:none}.pxp-schedule-field small{color:var(--muted,#8994a8);font-size:11px}.pxp-editor-actions{display:flex;justify-content:flex-end;gap:10px}
@media(max-width:760px){.pxp-page-heading{align-items:flex-start;flex-direction:column}.pxp-page-heading>.button{width:100%;justify-content:center}.pxp-publication-summary{gap:8px}.pxp-publication-summary>div{padding:13px}.pxp-publication-summary span{font-size:11px}.pxp-publication-summary strong{font-size:22px}.pxp-publication-list{grid-template-columns:1fr}.pxp-publication-filters{width:100%;overflow-x:auto;flex-wrap:nowrap}.pxp-publication-filters button{white-space:nowrap}.pxp-community-picker{grid-template-columns:1fr}.pxp-editor-panel{padding:16px}.pxp-editor-actions{flex-direction:column-reverse}.pxp-editor-actions .button{width:100%;justify-content:center}}

/* =========================================================
   POSTERX PUBLICATIONS WORKSPACE — PHASE 5
   Табличный контент-план, фильтры, календарь и предпросмотр
   ========================================================= */
.pxp-publications-workspace{gap:16px}
.pxp-heading-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.pxp-pub-filters{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(170px,1fr) minmax(150px,.8fr) minmax(145px,.8fr) auto;gap:9px;padding:13px;border:1px solid var(--border);border-radius:15px;background:var(--surface)}
.pxp-pub-filters>label{display:flex;flex-direction:column;gap:5px;min-width:0;color:var(--muted);font-size:11px;font-weight:650}
.pxp-pub-filters input,.pxp-pub-filters select{height:39px;width:100%;min-width:0;padding:0 11px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--text);font:inherit;font-size:12px;outline:none}
.pxp-pub-filters input:focus,.pxp-pub-filters select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.pxp-pub-search{position:relative;justify-content:flex-end}.pxp-pub-search>svg{position:absolute;left:11px;bottom:11px;width:16px;height:16px;color:var(--muted)}.pxp-pub-search input{padding-left:35px}
.pxp-filter-reset,.pxp-calendar-clear,.pxp-today-btn{align-self:end;height:39px;padding:0 12px;border:1px solid var(--border);border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}.pxp-filter-reset:hover,.pxp-calendar-clear:hover,.pxp-today-btn:hover{color:var(--accent);border-color:var(--accent)}
.pxp-publication-toolbar{min-height:40px}.pxp-filtered-count{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.pxp-publication-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start;min-width:0}
.pxp-table-panel,.pxp-side-card{min-width:0;border:1px solid var(--border);border-radius:15px;background:var(--surface);box-shadow:var(--shadow)}
.pxp-table-panel{overflow:hidden}.pxp-table-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 17px;border-bottom:1px solid var(--border)}.pxp-table-panel-head h2,.pxp-side-card-title h2{margin:0;font-size:15px;font-weight:750}.pxp-table-panel-head p,.pxp-side-card-title p{margin:4px 0 0;color:var(--muted);font-size:11px}.pxp-table-hint{display:flex;align-items:center;gap:6px;white-space:nowrap;color:var(--muted);font-size:11px}.pxp-table-hint svg{width:15px;height:15px}
.pxp-table-scroll{width:100%;overflow:auto;scrollbar-width:thin}.pxp-data-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;font-size:12px}.pxp-data-table th{position:sticky;top:0;z-index:1;padding:11px 10px;background:var(--surface-2);border-bottom:1px solid var(--border);color:var(--muted);text-align:left;font-size:10px;font-weight:750;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap}.pxp-data-table td{padding:10px;border-bottom:1px solid var(--border);vertical-align:middle}.pxp-data-table tbody tr{background:var(--surface);transition:background .15s}.pxp-data-table tbody tr:hover,.pxp-data-table tbody tr.is-selected{background:var(--accent-soft)}.pxp-data-table tbody tr:last-child td{border-bottom:0}
.pxp-cell-material{width:245px;max-width:245px}.pxp-material-open{display:flex;align-items:center;gap:9px;width:100%;padding:0;border:0;background:none;color:var(--text);text-align:left;cursor:pointer}.pxp-material-thumb{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--accent)}.pxp-material-thumb svg{width:17px;height:17px}.pxp-material-open>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}.pxp-material-open b{display:block;overflow:hidden;max-width:185px;font-size:11px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.pxp-material-open small{color:var(--muted);font-size:10px}
.pxp-cell-edit{display:inline-flex;align-items:center;gap:6px;max-width:190px;padding:6px 7px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:11px;text-align:left;cursor:pointer}.pxp-cell-edit:hover:not(:disabled){border-color:var(--border);background:var(--surface-2)}.pxp-cell-edit:disabled{opacity:.6;cursor:not-allowed}.pxp-cell-edit>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}.pxp-cell-edit svg{width:13px;height:13px;flex:none;color:var(--muted)}.pxp-time-edit{white-space:nowrap}.pxp-time-edit>svg:last-child{opacity:0}.pxp-time-edit:hover>svg:last-child{opacity:1}
.pxp-status{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2);color:var(--muted);font-size:10px;font-weight:700;white-space:nowrap}.pxp-status-scheduled{color:#65a7ff;border-color:rgba(37,132,255,.25);background:var(--accent-soft)}.pxp-status-published{color:var(--green);border-color:rgba(36,199,122,.25)}.pxp-status-failed{color:var(--red);border-color:rgba(255,119,127,.25)}
.pxp-automation-chips{display:flex;gap:4px;flex-wrap:wrap}.pxp-automation-chips span{display:inline-flex;gap:3px;padding:4px 5px;border:1px solid var(--border);border-radius:5px;color:var(--muted);font-size:9px;white-space:nowrap}.pxp-automation-chips i{font-style:normal;color:var(--muted-2)}.pxp-views-na{color:var(--muted-2);font-size:13px}.pxp-row-actions{display:flex;align-items:center;gap:4px;white-space:nowrap}.pxp-row-actions .pxp-icon-action{width:29px;height:29px;margin:0}.pxp-publish-now{height:29px;padding:0 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2);color:var(--muted);font-size:10px;white-space:nowrap;cursor:not-allowed;opacity:.65}
.pxp-table-empty,.pxp-preview-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:220px;padding:24px;color:var(--muted);text-align:center}.pxp-table-empty>svg,.pxp-preview-empty>svg{width:28px;height:28px;color:var(--accent)}.pxp-table-empty strong,.pxp-preview-empty strong{color:var(--text);font-size:13px}.pxp-table-empty span,.pxp-preview-empty span{max-width:240px;font-size:11px;line-height:1.5}
.pxp-publication-side{display:flex;flex-direction:column;gap:14px;min-width:0}.pxp-side-card{padding:14px}.pxp-preview-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.pxp-preview-head h2{margin:3px 0 0;font-size:14px}.pxp-preview-network{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:7px;background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:700}.pxp-preview-network svg{width:13px;height:13px}
.pxp-vk-post{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--bg)}.pxp-vk-post-head{display:flex;align-items:center;gap:9px;padding:12px}.pxp-vk-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--accent-soft);color:var(--accent)}.pxp-vk-avatar svg{width:17px;height:17px}.pxp-vk-post-head>div:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.pxp-vk-post-head b{overflow:hidden;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.pxp-vk-post-head small{color:var(--muted);font-size:9px}.pxp-vk-post-head>svg{width:17px;color:var(--muted)}.pxp-vk-post-text{padding:0 12px 12px;color:var(--text);font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto}.pxp-vk-media-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:105px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface-2);color:var(--muted);font-size:10px}.pxp-vk-media-placeholder svg{width:22px;height:22px}.pxp-vk-post-stats{display:flex;justify-content:space-around;padding:10px 6px;color:var(--muted);font-size:10px}.pxp-vk-post-stats span{display:flex;align-items:center;gap:4px}.pxp-vk-post-stats svg{width:13px;height:13px}.pxp-preview-details{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:13px}.pxp-preview-details>div{display:flex;flex-direction:column;gap:5px;min-width:0}.pxp-preview-details>div>span{color:var(--muted);font-size:10px}.pxp-preview-details b{font-size:11px}.pxp-preview-actions{margin-top:13px}.pxp-preview-actions .button{width:100%;justify-content:center}
.pxp-side-card-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.pxp-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.pxp-calendar-head b{font-size:12px;text-transform:capitalize}.pxp-calendar-head .pxp-icon-action{width:27px;height:27px;margin:0}.pxp-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.pxp-cal-weekday{padding:5px 0;color:var(--muted);font-size:9px;text-align:center}.pxp-cal-day,.pxp-cal-blank{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:34px;padding:4px 1px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:10px;cursor:pointer}.pxp-cal-day:hover{background:var(--surface-2);border-color:var(--border)}.pxp-cal-day.is-active{background:var(--accent);color:white}.pxp-cal-day i{width:4px;height:4px;border-radius:50%;background:var(--accent);font-size:0}.pxp-cal-day.is-active i{background:white}.pxp-calendar-clear{width:100%;height:30px;margin-top:9px;font-size:10px}
.pxp-inline-modal-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px;background:rgba(3,8,18,.68);backdrop-filter:blur(5px)}.pxp-inline-modal{width:min(440px,100%);max-height:min(80vh,680px);overflow:auto;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 25px 80px rgba(0,0,0,.35)}.pxp-inline-modal>header,.pxp-inline-modal>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid var(--border)}.pxp-inline-modal>header h2{margin:4px 0 0;font-size:16px}.pxp-inline-modal>footer{justify-content:flex-end;border-top:1px solid var(--border);border-bottom:0}.pxp-inline-modal-body{padding:16px}.pxp-inline-modal-field{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px}.pxp-inline-modal-field input{height:42px;padding:0 11px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--text);font:inherit}.pxp-inline-modal-hint{margin:9px 0 0;color:var(--muted);font-size:11px}.pxp-inline-modal-list{display:flex;flex-direction:column;gap:5px;max-height:390px;overflow:auto}.pxp-inline-modal-list label{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid var(--border);border-radius:8px;cursor:pointer}.pxp-inline-modal-list label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.pxp-inline-modal-list input{accent-color:var(--accent)}.pxp-inline-modal-list span{display:flex;align-items:center;gap:8px;font-size:12px}.pxp-inline-modal-list img{width:25px;height:25px;border-radius:50%;object-fit:cover}
html[data-theme="light"] .pxp-table-panel,html[data-theme="light"] .pxp-side-card{background:#fff}html[data-theme="light"] .pxp-data-table tbody tr{background:#fff}html[data-theme="light"] .pxp-data-table tbody tr:hover,html[data-theme="light"] .pxp-data-table tbody tr.is-selected{background:#edf5ff}html[data-theme="light"] .pxp-vk-post{background:#fff}html[data-theme="light"] .pxp-vk-media-placeholder{background:#f5f8fd}
@media(max-width:1180px){.pxp-publication-layout{grid-template-columns:minmax(0,1fr) 300px}.pxp-pub-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.pxp-pub-search{grid-column:1/-1}.pxp-filter-reset{align-self:end}}
@media(max-width:900px){.pxp-publication-layout{grid-template-columns:1fr}.pxp-publication-side{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);align-items:start}.pxp-publication-side>.pxp-side-card:first-child{grid-row:span 1}}
@media(max-width:620px){.pxp-heading-actions{width:100%}.pxp-heading-actions .button{flex:1;justify-content:center}.pxp-pub-filters{grid-template-columns:1fr 1fr;padding:10px}.pxp-pub-search{grid-column:1/-1}.pxp-publication-side{grid-template-columns:1fr}.pxp-table-panel-head{align-items:flex-start;flex-direction:column}.pxp-table-hint{display:none}.pxp-publication-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.pxp-publication-summary>div{padding:11px}.pxp-publication-summary strong{font-size:20px}.pxp-publication-summary span{font-size:10px}.pxp-data-table{min-width:980px}.pxp-filter-reset{grid-column:1/-1}.pxp-publication-toolbar{align-items:flex-start;flex-direction:column}.pxp-publication-filters{max-width:100%;overflow:auto;flex-wrap:nowrap}.pxp-publication-filters button{white-space:nowrap}}

/* POSTERX PUBLICATIONS — compact planner refinements */
.pxp-publications-workspace{gap:11px}
.pxp-controls-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center}
.pxp-publication-summary{display:flex;gap:6px;min-width:0}
.pxp-publication-summary>div{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface);white-space:nowrap}
.pxp-publication-summary span{font-size:10px;color:var(--muted)}
.pxp-publication-summary strong{font-size:15px;line-height:1;font-variant-numeric:tabular-nums}
.pxp-pub-filters{display:flex;align-items:center;gap:6px;padding:6px;border-radius:9px}
.pxp-pub-filters>label{display:flex;flex-direction:row;align-items:center;gap:5px;font-size:10px;white-space:nowrap}
.pxp-pub-filters>label>span{display:none}
.pxp-pub-filters input,.pxp-pub-filters select{height:31px;padding:0 8px;font-size:11px}
.pxp-pub-search{flex:1 1 180px;min-width:140px}
.pxp-pub-search>svg{bottom:8px;left:9px;width:14px;height:14px}
.pxp-pub-search input{padding-left:28px}
.pxp-pub-filters>label:not(.pxp-pub-search){flex:0 1 155px}
.pxp-filter-reset{height:31px;padding:0 8px;font-size:10px;white-space:nowrap}
.pxp-week-strip{padding:8px 10px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}
.pxp-week-nav{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.pxp-week-nav strong{font-size:11px;font-weight:700;text-transform:capitalize}
.pxp-week-nav .pxp-icon-action{width:24px;height:24px;margin:0}
.pxp-week-today{margin-left:auto;padding:4px 9px;border:1px solid var(--border);border-radius:7px;background:transparent;color:var(--accent);font-size:10px;cursor:pointer}
.pxp-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.pxp-week-day{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);cursor:pointer}
.pxp-week-day>span{font-size:9px;color:var(--muted);font-weight:700}
.pxp-week-day>b{font-size:12px;font-variant-numeric:tabular-nums}
.pxp-week-day>small{font-size:9px;color:var(--muted)}
.pxp-week-day.has-items>small{color:var(--accent)}
.pxp-week-day.is-today{border-color:var(--accent)}
.pxp-week-day.is-active{background:var(--accent);border-color:var(--accent);color:#fff}
.pxp-week-day.is-active>span,.pxp-week-day.is-active>small{color:rgba(255,255,255,.82)}
.pxp-publication-toolbar{min-height:30px;display:flex;align-items:center;justify-content:space-between}
.pxp-publication-layout{grid-template-columns:minmax(0,1fr) 310px;gap:10px}
.pxp-table-panel-head{padding:9px 12px}
.pxp-table-panel-head h2{font-size:13px}
.pxp-table-panel-head p{font-size:10px}
.pxp-data-table{min-width:940px;font-size:10px}
.pxp-data-table th{padding:7px 8px;font-size:9px}
.pxp-data-table td{padding:5px 7px}
.pxp-cell-material{width:205px;max-width:205px}
.pxp-material-open{gap:7px}
.pxp-material-thumb{width:29px;height:29px;border-radius:7px}
.pxp-material-open b{max-width:160px;font-size:10px}
.pxp-material-open small{font-size:9px}
.pxp-cell-edit{padding:4px 5px;font-size:10px}
.pxp-status{padding:3px 6px;font-size:9px}
.pxp-automation-chips{gap:3px}
.pxp-automation-chips span{padding:3px 4px;font-size:8px}
.pxp-publish-now{height:25px;padding:0 6px;font-size:9px;cursor:pointer;color:var(--accent);border-color:rgba(55,130,255,.35);opacity:1}
.pxp-publish-now:hover{background:var(--accent-soft)}
.pxp-row-actions .pxp-icon-action{width:25px;height:25px}
.pxp-vk-avatar{overflow:hidden;flex:none;width:38px;height:38px;border-radius:50%}
.pxp-vk-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.pxp-side-card{padding:11px}
.pxp-preview-head{margin-bottom:8px}
.pxp-vk-post-head{padding:9px}
.pxp-vk-post-text{font-size:11px;max-height:220px}
.pxp-publication-note{font-size:10px}
@media(max-width:1250px){.pxp-controls-row{grid-template-columns:1fr}.pxp-controls-row .pxp-publication-summary{order:0}.pxp-pub-filters{order:1}}
@media(max-width:900px){.pxp-publication-layout{grid-template-columns:1fr}.pxp-publication-side{display:block}.pxp-publication-side>.pxp-side-card:first-child{max-width:none}}
@media(max-width:700px){.pxp-controls-row{gap:7px}.pxp-publication-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.pxp-publication-summary>div{justify-content:space-between;padding:7px}.pxp-publication-summary span{font-size:9px}.pxp-publication-summary strong{font-size:13px}.pxp-pub-filters{display:grid;grid-template-columns:1fr 1fr}.pxp-pub-search{grid-column:1/-1}.pxp-pub-filters>label:not(.pxp-pub-search){flex:auto}.pxp-week-day{flex-direction:column;gap:2px;padding:6px 2px}.pxp-week-day>small{font-size:8px}.pxp-week-nav strong{font-size:10px}.pxp-data-table{min-width:900px}}

/* PosterX publications: compact calendar and theme-safe status filters */
.pxp-preview-network{display:inline-flex;align-items:center;gap:6px}
.pxp-vk-mark{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:7px;background:#0077ff;color:#fff;font-size:12px;font-weight:800;letter-spacing:-1px;text-transform:uppercase}
.pxp-week-strip{padding:6px 8px!important}
.pxp-week-nav{margin-bottom:5px!important}
.pxp-week-days{gap:4px!important}
.pxp-week-day{min-height:42px;padding:5px 3px!important;display:grid!important;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:6px!important;row-gap:1px!important;justify-content:center!important}
.pxp-week-day>span{grid-column:1;grid-row:1/3;font-size:9px!important;align-self:center}
.pxp-week-day>b{grid-column:2;grid-row:1;font-size:10px!important;white-space:nowrap}
.pxp-week-day>small{grid-column:2;grid-row:2;font-size:8px!important;white-space:nowrap}
.pxp-week-all{margin-left:5px;padding:4px 9px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2);color:var(--text);font-size:10px;cursor:pointer;white-space:nowrap}
.pxp-week-all.is-active{background:var(--accent);border-color:var(--accent);color:#fff}
.pxp-publication-toolbar{gap:8px;flex-wrap:wrap}
.pxp-publication-filters{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:3px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}
.pxp-publication-filters button{min-height:29px;padding:5px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap;opacity:1}
.pxp-publication-filters button:hover{background:var(--surface-2);border-color:var(--border)}
.pxp-publication-filters button.is-active{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 2px 7px rgba(30,110,230,.2)}
html[data-theme="light"] .pxp-publication-filters{background:#fff;border-color:#d9e1ed}
html[data-theme="light"] .pxp-publication-filters button{color:#344054}
html[data-theme="light"] .pxp-publication-filters button:hover{background:#f1f5fb;border-color:#d9e1ed}
html[data-theme="light"] .pxp-publication-filters button.is-active{background:#1769e8;border-color:#1769e8;color:#fff}
html[data-theme="light"] .pxp-week-strip{background:#fff;border-color:#d9e1ed}
html[data-theme="light"] .pxp-week-day{background:#f7f9fc;border-color:#e2e8f0;color:#263449}
html[data-theme="light"] .pxp-week-day.is-active{background:#1769e8;border-color:#1769e8;color:#fff}
html[data-theme="light"] .pxp-week-day.is-active>span,html[data-theme="light"] .pxp-week-day.is-active>small{color:rgba(255,255,255,.9)}
html[data-theme="light"] .pxp-week-all{background:#f7f9fc;color:#344054;border-color:#d9e1ed}
html[data-theme="light"] .pxp-week-all.is-active{background:#1769e8;color:#fff;border-color:#1769e8}
@media(max-width:700px){.pxp-week-day{display:flex!important;flex-direction:column!important;gap:2px!important}.pxp-week-day>span,.pxp-week-day>b,.pxp-week-day>small{grid-column:auto;grid-row:auto}.pxp-week-day>b{font-size:9px!important}.pxp-week-day>small{font-size:7px!important}.pxp-publication-filters{width:100%;overflow-x:auto;flex-wrap:nowrap}.pxp-publication-filters button{flex:0 0 auto}}

/* PosterX publications phase 7: unified status + week planning bar, clearer typography */
.pxp-planning-bar{display:flex;flex-direction:column;gap:8px;padding:9px 11px;border:1px solid var(--border);border-radius:12px;background:var(--surface);}
.pxp-planning-bar .pxp-publication-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:0;}
.pxp-planning-bar .pxp-week-strip{padding:0!important;border:0!important;background:transparent!important;}
.pxp-planning-bar .pxp-week-nav{margin:0 0 6px!important;}
.pxp-publication-filters{gap:5px;padding:3px;border:0;background:transparent;}
.pxp-publication-filters button{min-height:32px;padding:6px 13px;font-size:12px;font-weight:750;letter-spacing:.005em;}
.pxp-week-days{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px!important;}
.pxp-week-day{min-height:52px!important;padding:6px 8px!important;display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;gap:2px!important;border-radius:9px;font-weight:700;}
.pxp-week-day>span{font-size:11px!important;font-weight:850!important;letter-spacing:.04em;color:var(--text)!important;}
.pxp-week-day>b{font-size:13px!important;font-weight:850!important;line-height:1.15;}
.pxp-week-day>small{font-size:10px!important;font-weight:650!important;line-height:1.2;}
.pxp-week-day.is-active>span,.pxp-week-day.is-active>small{color:rgba(255,255,255,.94)!important;}
.pxp-week-today,.pxp-week-all{font-size:11px!important;font-weight:750!important;padding:5px 11px!important;}
.pxp-data-table{font-size:12px!important;}
.pxp-data-table th{font-size:10px!important;font-weight:800!important;padding:9px 10px!important;}
.pxp-data-table td{padding:8px 9px!important;}
.pxp-material-open b{font-size:12px!important;font-weight:700!important;}
.pxp-material-open small{font-size:10px!important;}
.pxp-cell-edit{font-size:11px!important;font-weight:600!important;}
.pxp-status{font-size:10px!important;font-weight:750!important;padding:4px 7px!important;}
.pxp-automation-chips span{font-size:9px!important;font-weight:650!important;}
.pxp-publish-now{font-size:10px!important;font-weight:750!important;}
html[data-theme="light"] .pxp-planning-bar{background:#fff;border-color:#d8e1ed;}
html[data-theme="light"] .pxp-week-day{background:#f6f8fc;border-color:#d7e0ec;color:#263449;}
html[data-theme="light"] .pxp-week-day>span,html[data-theme="light"] .pxp-week-day>small{color:#526176!important;}
html[data-theme="light"] .pxp-week-day.is-active{background:#1769e8;border-color:#1769e8;color:#fff;}
html[data-theme="light"] .pxp-week-day.is-active>span,html[data-theme="light"] .pxp-week-day.is-active>small{color:#fff!important;}
@media(max-width:900px){.pxp-planning-bar{gap:6px}.pxp-planning-bar .pxp-publication-toolbar{align-items:flex-start;flex-direction:column}.pxp-week-days{gap:4px!important}.pxp-week-day{padding:5px 3px!important;}}
@media(max-width:620px){.pxp-week-day>span{font-size:9px!important}.pxp-week-day>b{font-size:10px!important}.pxp-week-day>small{font-size:8px!important}.pxp-publication-filters{width:100%;overflow-x:auto;flex-wrap:nowrap}.pxp-publication-filters button{flex:0 0 auto;}}

/* POSTERX — Composer workspace */
.pxp-composer-page{max-width:1680px;margin:0 auto;padding-bottom:32px}.pxp-composer-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.pxp-composer-top-meta{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:600}.pxp-composer-live-dot,.pxp-preview-live-badge i{width:8px;height:8px;border-radius:50%;background:#20b981;box-shadow:0 0 0 4px rgba(32,185,129,.12)}.pxp-composer-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}.pxp-composer-heading h1{margin:5px 0 7px;font-size:clamp(25px,3vw,34px);font-weight:800;letter-spacing:-.035em}.pxp-composer-heading p{margin:0;color:var(--muted);font-size:13px}.pxp-composer-heading-actions{display:flex;gap:9px;flex-shrink:0}.pxp-composer-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,390px);gap:20px;align-items:start}.pxp-composer-main{display:flex;flex-direction:column;gap:15px;min-width:0}.pxp-composer-card,.pxp-composer-preview-card,.pxp-composer-side-settings{padding:21px;border:1px solid var(--border);border-radius:17px;background:var(--surface, var(--card));box-shadow:0 8px 28px rgba(0,0,0,.035)}.pxp-composer-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.pxp-composer-card-head>div{display:flex;align-items:center;gap:12px;min-width:0}.pxp-composer-step{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:11px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:800}.pxp-composer-card-head h2{margin:0;color:var(--text);font-size:16px;font-weight:800}.pxp-composer-card-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.pxp-composer-counter,.pxp-composer-attach-count{color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}.pxp-composer-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:9px}.pxp-composer-toolbar button,.pxp-composer-tags button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text);font-size:11px;font-weight:700;cursor:pointer}.pxp-composer-toolbar button:hover,.pxp-composer-tags button:hover{border-color:var(--accent);color:var(--accent)}.pxp-composer-toolbar button svg{width:13px;height:13px}.pxp-composer-toolbar>span{flex:1}.pxp-composer-card textarea{display:block;width:100%;min-height:250px;resize:vertical;padding:16px;border:1px solid var(--border);border-radius:12px;outline:none;background:var(--bg);color:var(--text);font:500 14px/1.7 inherit}.pxp-composer-card textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.pxp-composer-text-foot{display:flex;justify-content:space-between;gap:10px;margin-top:9px;color:var(--muted);font-size:10px}.pxp-media-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.pxp-media-type{position:relative;display:flex;align-items:center;flex-direction:column;gap:6px;padding:14px 8px;border:1px solid var(--border);border-radius:12px;background:var(--bg);cursor:pointer;text-align:center;transition:.18s}.pxp-media-type:hover{border-color:var(--accent);background:var(--accent-soft)}.pxp-media-type input{position:absolute;width:1px;height:1px;opacity:0}.pxp-media-type-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:var(--accent-soft);color:var(--accent)}.pxp-media-type-icon svg{width:18px;height:18px}.pxp-media-type b{color:var(--text);font-size:11px}.pxp-media-type small{color:var(--muted);font-size:9px}.pxp-media-dropzone{display:flex;align-items:center;flex-direction:column;gap:5px;margin-top:12px;padding:18px;border:1px dashed var(--border);border-radius:12px;color:var(--muted);font-size:11px;transition:.18s}.pxp-media-dropzone>svg{width:22px;height:22px;color:var(--accent)}.pxp-media-dropzone strong{color:var(--text);font-size:12px}.pxp-media-dropzone.is-dragover{border-color:var(--accent);background:var(--accent-soft)}.pxp-media-queue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:11px}.pxp-media-queue-empty{grid-column:1/-1;padding:12px;border-radius:9px;background:var(--bg);color:var(--muted);font-size:11px;text-align:center}.pxp-media-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--bg)}.pxp-media-file-preview{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;overflow:hidden;border-radius:7px;background:var(--surface-2);color:var(--accent)}.pxp-media-file-preview img{width:100%;height:100%;object-fit:cover}.pxp-media-file-preview svg{width:19px}.pxp-media-file-info{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.pxp-media-file-info b{overflow:hidden;color:var(--text);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.pxp-media-file-info small{color:var(--muted);font-size:9px}.pxp-media-file>button{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border:0;border-radius:7px;background:var(--surface-2);color:var(--muted);cursor:pointer}.pxp-media-file>button:hover{background:rgba(239,68,68,.12);color:#ef4444}.pxp-media-file>button svg{width:14px}.pxp-composer-info{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:11px 12px;border-radius:10px;background:var(--accent-soft);color:var(--muted);font-size:10px;line-height:1.55}.pxp-composer-info>svg{width:15px;height:15px;flex:0 0 15px;color:var(--accent)}.pxp-ai-soon{padding:5px 8px;border-radius:7px;background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:800}.pxp-ai-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pxp-ai-actions button{display:flex;align-items:center;gap:9px;min-width:0;padding:12px;border:1px solid var(--border);border-radius:11px;background:var(--bg);text-align:left;opacity:.72}.pxp-ai-actions button>svg{width:19px;height:19px;flex:0 0 19px;color:var(--accent)}.pxp-ai-actions button>span{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.pxp-ai-actions b{color:var(--text);font-size:10px}.pxp-ai-actions small{color:var(--muted);font-size:9px}.pxp-ai-actions em{color:var(--muted);font-size:8px;font-style:normal;font-weight:800}.pxp-composer-community-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.pxp-composer-schedule-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(200px,.8fr);gap:15px;align-items:center}.pxp-composer-platform-note{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--border);border-radius:11px;background:var(--bg)}.pxp-composer-platform-note>svg{width:22px;height:22px;color:var(--accent)}.pxp-composer-platform-note>span{display:flex;flex-direction:column;gap:4px}.pxp-composer-platform-note b{color:var(--text);font-size:11px}.pxp-composer-platform-note small{color:var(--muted);font-size:10px;line-height:1.4}.pxp-composer-tags{display:flex;flex-direction:column;gap:9px;margin-top:17px}.pxp-composer-tags>b{color:var(--text);font-size:11px}.pxp-composer-tags>div{display:flex;gap:7px;flex-wrap:wrap}.pxp-composer-tags>small{color:var(--muted);font-size:10px}.pxp-composer-bottom-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.pxp-composer-aside{position:sticky;top:18px;display:flex;flex-direction:column;gap:13px;min-width:0}.pxp-composer-preview-card{padding:16px}.pxp-composer-preview-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.pxp-composer-preview-head h2{margin:4px 0 0;color:var(--text);font-size:16px;font-weight:800}.pxp-preview-live-badge{display:flex;align-items:center;gap:7px;padding:5px 8px;border-radius:7px;background:rgba(32,185,129,.1);color:#20b981;font-size:9px;font-weight:900}.pxp-preview-live-badge i{width:6px;height:6px;box-shadow:none}.pxp-preview-network-switch{display:flex;gap:6px;margin-bottom:12px;padding:4px;border-radius:9px;background:var(--bg)}.pxp-preview-network-switch button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-height:31px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:10px;font-weight:700}.pxp-preview-network-switch button.is-active{background:var(--surface-2);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.08)}.pxp-preview-network-switch button:disabled{opacity:.4;cursor:not-allowed}.pxp-vk-mark{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:6px;background:#2787f5;color:#fff;font-size:9px;font-weight:900}.pxp-composer-vk-post{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--bg)}.pxp-composer-vk-post>header{display:flex;align-items:center;gap:9px;padding:12px}.pxp-composer-vk-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;overflow:hidden;border-radius:50%;background:var(--accent-soft)}.pxp-composer-vk-avatar img{width:100%;height:100%;object-fit:cover}.pxp-composer-avatar-fallback{display:grid;place-items:center;width:100%;height:100%;color:var(--accent);font-size:15px;font-weight:800}.pxp-composer-vk-post>header>div:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.pxp-composer-vk-post>header b{overflow:hidden;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.pxp-composer-vk-post>header small{color:var(--muted);font-size:9px}.pxp-composer-vk-post>header>svg{width:18px;color:var(--muted)}.pxp-composer-vk-text{padding:0 12px 13px;color:var(--text);font-size:12px;line-height:1.65;overflow-wrap:anywhere}.pxp-preview-placeholder{color:var(--muted);font-style:italic}.pxp-composer-preview-media{display:grid;grid-template-columns:1fr;gap:3px;border-top:1px solid var(--border)}.pxp-composer-preview-media.is-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pxp-composer-preview-media img,.pxp-composer-preview-media video{display:block;width:100%;max-height:300px;object-fit:cover;background:#111}.pxp-composer-preview-media.is-grid img,.pxp-composer-preview-media.is-grid video{height:150px}.pxp-composer-preview-attachment{display:flex;align-items:center;gap:9px;padding:16px;background:var(--surface-2);color:var(--text);font-size:10px;overflow-wrap:anywhere}.pxp-composer-preview-attachment svg{width:21px;flex:0 0 21px;color:var(--accent)}.pxp-composer-vk-post>footer{display:flex;justify-content:space-around;gap:5px;padding:11px 7px;border-top:1px solid var(--border);color:var(--muted);font-size:9px}.pxp-composer-vk-post>footer span{display:flex;align-items:center;gap:5px}.pxp-composer-vk-post>footer svg{width:13px;height:13px}.pxp-composer-preview-targets{padding:0 12px 11px;color:var(--accent);font-size:9px}.pxp-composer-preview-foot{display:flex;align-items:flex-start;gap:7px;margin-top:11px;color:var(--muted);font-size:9px;line-height:1.5}.pxp-composer-preview-foot svg{width:14px;height:14px;flex:0 0 14px}.pxp-composer-side-settings{padding:15px}.pxp-composer-side-settings h3{margin:0 0 12px;color:var(--text);font-size:13px}.pxp-side-setting{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--border);font-size:10px}.pxp-side-setting span{color:var(--muted)}.pxp-side-setting b{color:var(--text)}
html[data-theme="light"] .pxp-composer-card,html[data-theme="light"] .pxp-composer-preview-card,html[data-theme="light"] .pxp-composer-side-settings{background:#fff}html[data-theme="light"] .pxp-composer-card textarea,html[data-theme="light"] .pxp-media-type,html[data-theme="light"] .pxp-media-file,html[data-theme="light"] .pxp-composer-vk-post{background:#fff}html[data-theme="light"] .pxp-composer-vk-text{color:#202b3b}html[data-theme="light"] .pxp-composer-vk-post>footer{background:#fff}
@media(max-width:1100px){.pxp-composer-grid{grid-template-columns:minmax(0,1fr) 320px}.pxp-composer-community-picker{grid-template-columns:1fr}}
@media(max-width:850px){.pxp-composer-grid{grid-template-columns:1fr}.pxp-composer-aside{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.7fr);align-items:start}.pxp-composer-community-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.pxp-composer-page{padding-bottom:20px}.pxp-composer-heading{align-items:stretch;flex-direction:column}.pxp-composer-heading-actions{width:100%}.pxp-composer-heading-actions .button{flex:1;justify-content:center}.pxp-composer-top-meta{font-size:9px}.pxp-composer-card{padding:14px}.pxp-composer-card-head h2{font-size:14px}.pxp-media-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pxp-media-queue{grid-template-columns:1fr}.pxp-ai-actions{grid-template-columns:1fr}.pxp-composer-community-picker{grid-template-columns:1fr}.pxp-composer-schedule-grid{grid-template-columns:1fr}.pxp-composer-aside{display:flex}.pxp-composer-bottom-actions{flex-direction:column-reverse}.pxp-composer-bottom-actions .button{width:100%;justify-content:center}.pxp-composer-text-foot{flex-direction:column;gap:4px}.pxp-composer-topbar{align-items:flex-start;flex-direction:column}}

/* PosterX composer — Hooppy-inspired compact publishing workspace */
.pxp-hooppy-nav{align-items:center;gap:14px;padding:8px 0 14px;border-bottom:1px solid var(--border)}
.pxp-composer-tabs,.pxp-composer-platform-tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.pxp-composer-tabs button,.pxp-composer-platform-tabs button{min-height:34px;padding:0 13px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer}
.pxp-composer-tabs button.is-active,.pxp-composer-platform-tabs button.is-active{background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 20%,transparent)}
.pxp-composer-platform-tabs{margin-bottom:10px}
.pxp-composer-platform-tabs button{min-height:30px;padding:0 10px;font-size:11px}
.pxp-composer-card-head{margin-bottom:12px}
.pxp-composer-card{padding:18px}
.pxp-composer-card textarea{min-height:210px}
.pxp-attachment-actions{display:flex;gap:7px;flex-wrap:wrap;margin:4px 0 12px}
.pxp-attachment-actions button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--text);font-size:11px;font-weight:650;cursor:pointer}
.pxp-attachment-actions button:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.pxp-attachment-actions svg{width:14px;height:14px}
.pxp-dynamic-attachments{display:grid;gap:9px;margin-bottom:12px}
.pxp-dynamic-attachment{padding:12px;border:1px solid var(--border);border-radius:11px;background:var(--bg)}
.pxp-dynamic-attachment>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:var(--text);font-size:12px;font-weight:750}
.pxp-dynamic-attachment>header button{width:25px;height:25px;border:0;border-radius:7px;background:var(--surface-2);color:var(--muted);font-size:18px;cursor:pointer}
.pxp-dynamic-attachment>div{display:grid;gap:8px;color:var(--muted);font-size:11px}
.pxp-dynamic-attachment label{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:650}
.pxp-dynamic-attachment input:not([type=checkbox]),.pxp-dynamic-attachment textarea{width:100%;min-height:36px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font:inherit}
.pxp-dynamic-attachment .pxp-inline-check{display:flex;align-items:center;gap:7px}
.pxp-dynamic-attachment .pxp-block-file{display:inline-flex;align-items:center;width:max-content;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer}
.pxp-block-file input{max-width:220px;font-size:10px}
.pxp-publish-when .pxp-schedule-field{margin-top:12px}
.pxp-when-switch{display:flex;gap:3px;padding:4px;border-radius:10px;background:var(--bg)}
.pxp-when-switch button{flex:1;min-height:31px;padding:0 7px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:10px;font-weight:700;cursor:pointer}
.pxp-when-switch button.is-active{background:var(--surface);color:var(--text);box-shadow:0 1px 4px #00000012}
.pxp-publish-options{display:grid;gap:10px}
.pxp-publish-options label{display:flex;align-items:center;gap:8px;color:var(--text);font-size:11px;font-weight:600}
.pxp-publish-options input{accent-color:var(--accent)}
.pxp-api-note{display:block;margin-top:11px;color:var(--muted);font-size:9px;line-height:1.5}
.pxp-tag-chips{display:flex;gap:6px;flex-wrap:wrap}
.pxp-tag-chips button{padding:6px 9px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font-size:10px;font-weight:650;cursor:pointer}
html[data-theme="light"] .pxp-dynamic-attachment{background:#f8fafc}
@media(max-width:850px){.pxp-hooppy-nav{align-items:flex-start;flex-wrap:wrap}.pxp-composer-tabs{order:3;width:100%}}
@media(max-width:620px){.pxp-composer-tabs{overflow-x:auto;flex-wrap:nowrap}.pxp-composer-tabs button{white-space:nowrap}.pxp-attachment-actions button{flex:1 1 calc(50% - 7px);justify-content:center}}


/* PosterX Composer Phase 10 — compact layout + native social text */
.pxp-composer-page{max-width:1540px;padding-bottom:16px}
.pxp-composer-topbar{gap:9px;margin-bottom:10px}
.pxp-composer-heading{align-items:center;margin-bottom:12px;gap:12px}
.pxp-composer-heading h1{font-size:clamp(20px,2vw,26px);margin:2px 0 4px}
.pxp-composer-heading p{font-size:11px}
.pxp-composer-heading-actions{gap:6px}
.pxp-composer-heading-actions .button{min-height:32px;padding:0 10px;font-size:11px}
.pxp-composer-grid{grid-template-columns:minmax(0,1fr) minmax(280px,330px);gap:12px}
.pxp-composer-main{gap:9px}
.pxp-composer-card,.pxp-composer-preview-card,.pxp-composer-side-settings{padding:13px;border-radius:13px}
.pxp-composer-card-head{margin-bottom:8px}
.pxp-composer-card-head>div{gap:8px}
.pxp-composer-step{width:27px;height:27px;flex-basis:27px;border-radius:8px;font-size:10px}
.pxp-composer-card-head h2{font-size:13px}
.pxp-composer-card-head p{font-size:10px;margin-top:2px}
.pxp-composer-toolbar{gap:4px;margin-bottom:6px}
.pxp-composer-toolbar button,.pxp-composer-tags button{min-height:27px;padding:0 8px;border-radius:7px;font-size:10px}
.pxp-composer-toolbar button svg{width:12px;height:12px}
.pxp-composer-card textarea{min-height:145px;padding:11px;font-size:13px;line-height:1.55}
.pxp-composer-text-foot{margin-top:5px;font-size:9px}
.pxp-composer-platform-tabs{margin-bottom:7px}
.pxp-composer-platform-tabs button{min-height:27px;padding:0 8px;font-size:10px}
.pxp-attachment-actions{gap:5px;margin:3px 0 8px}
.pxp-attachment-actions button{min-height:27px;padding:0 8px;border-radius:7px;font-size:10px}
.pxp-attachment-actions svg{width:12px;height:12px}
.pxp-media-type-grid{gap:6px}
.pxp-media-type{gap:4px;padding:8px 5px;border-radius:9px}
.pxp-media-type-icon{width:27px;height:27px;border-radius:8px}
.pxp-media-type-icon svg{width:14px;height:14px}
.pxp-media-type b{font-size:10px}
.pxp-media-type small{font-size:8px}
.pxp-media-dropzone{gap:3px;margin-top:7px;padding:10px;border-radius:9px;font-size:9px}
.pxp-media-dropzone>svg{width:17px;height:17px}
.pxp-media-dropzone strong{font-size:10px}
.pxp-media-queue{gap:6px;margin-top:7px}
.pxp-media-file{gap:6px;padding:6px;border-radius:8px}
.pxp-media-file-preview{width:34px;height:34px;flex-basis:34px}
.pxp-composer-info{gap:6px;margin-top:8px;padding:8px 9px;border-radius:8px;font-size:9px}
.pxp-ai-actions{gap:6px}
.pxp-ai-actions button{gap:7px;padding:8px;border-radius:9px}
.pxp-ai-actions button>svg{width:16px;height:16px;flex-basis:16px}
.pxp-ai-actions b{font-size:9px}
.pxp-ai-actions small{font-size:8px}
.pxp-composer-community-picker{gap:6px}
.pxp-composer-aside{gap:9px;top:10px}
.pxp-composer-preview-card{padding:11px}
.pxp-composer-preview-head{margin-bottom:8px}
.pxp-composer-preview-head h2{font-size:13px}
.pxp-preview-network-switch{gap:4px;margin-bottom:8px;padding:3px}
.pxp-preview-network-switch button{min-height:27px;font-size:9px}
.pxp-composer-vk-post>header{gap:7px;padding:9px}
.pxp-composer-vk-avatar{width:32px;height:32px;flex-basis:32px}
.pxp-composer-vk-post>header b{font-size:10px}
.pxp-composer-vk-post>header small{font-size:8px}
.pxp-composer-vk-text{padding:0 9px 9px;font-size:11px;line-height:1.5}
.pxp-composer-vk-post>footer{padding:8px 5px;font-size:8px}
.pxp-composer-preview-foot{margin-top:7px;font-size:8px}
.pxp-composer-side-settings{padding:11px}
.pxp-composer-side-settings h3{margin-bottom:7px;font-size:12px}
.pxp-side-setting{padding:6px 0;font-size:9px}
.pxp-composer-tabs button{min-height:29px;padding:0 9px;font-size:10px}
.pxp-emoji-picker{margin:-1px 0 8px;padding:9px;border:1px solid var(--border);border-radius:10px;background:var(--surface, var(--card));box-shadow:0 8px 24px rgba(0,0,0,.12)}
.pxp-emoji-picker[hidden]{display:none}
.pxp-emoji-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;color:var(--text);font-size:11px}
.pxp-emoji-picker-head button{width:24px;height:24px;border:0;border-radius:6px;background:var(--surface-2);color:var(--text);font-size:18px;cursor:pointer}
.pxp-emoji-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px}
.pxp-emoji-grid button{display:grid;place-items:center;min-width:0;min-height:29px;padding:0;border:0;border-radius:6px;background:transparent;font-size:18px;cursor:pointer}
.pxp-emoji-grid button:hover{background:var(--accent-soft)}
@media(max-width:1100px){.pxp-composer-grid{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:850px){.pxp-composer-grid{grid-template-columns:1fr}.pxp-composer-aside{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.7fr)}}
@media(max-width:620px){.pxp-composer-card{padding:11px}.pxp-composer-heading{margin-bottom:9px}.pxp-composer-heading h1{font-size:20px}.pxp-composer-card textarea{min-height:125px}.pxp-composer-aside{display:flex}.pxp-emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.pxp-composer-tabs{overflow-x:auto;flex-wrap:nowrap}.pxp-attachment-actions button{flex:1 1 calc(50% - 5px)}}

/* PosterX Composer Phase 11 — compact single-network VK workspace */
.pxp-composer-platform-tabs{display:none!important}
.pxp-composer-card-head .pxp-composer-step{display:none}
.pxp-composer-card-head{margin-bottom:8px}
.pxp-composer-card-head p{display:none}
.pxp-composer-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:5px 6px;margin:0;border:1px solid var(--border);border-radius:9px 9px 0 0;background:var(--surface-2)}
.pxp-composer-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;padding:0 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);font-size:10px;font-weight:650;cursor:pointer}
.pxp-composer-toolbar button:hover{background:var(--accent-soft);color:var(--accent)}
.pxp-composer-toolbar button svg{width:13px;height:13px}
.pxp-composer-toolbar .pxp-toolbar-divider{height:19px;width:1px;background:var(--border);margin:0 2px}
.pxp-composer-card textarea#pxpPublicationText{border-radius:0 0 9px 9px;border-top:0;min-height:180px}
.pxp-ai-menu-wrap{position:relative}
.pxp-ai-menu{position:absolute;z-index:30;top:calc(100% + 5px);left:0;width:245px;padding:7px;border:1px solid var(--border);border-radius:10px;background:var(--card);box-shadow:0 12px 32px rgba(0,0,0,.2)}
.pxp-ai-menu[hidden]{display:none}
.pxp-ai-menu>b{display:block;padding:5px 8px 7px;font-size:11px;color:var(--text)}
.pxp-ai-menu button{display:block;width:100%;min-height:29px;text-align:left;padding:5px 8px;border:0;border-radius:6px;background:transparent;color:var(--text);font-size:10px;cursor:not-allowed;opacity:.55}
.pxp-ai-menu button:hover{background:var(--surface-2)}
.pxp-ai-menu small{display:block;margin:6px 8px 3px;color:var(--muted);font-size:9px}
.pxp-inline-composer-options{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.pxp-inline-tools{flex:1 1 220px;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--surface-2)}
.pxp-inline-tools summary{display:flex;align-items:center;gap:6px;min-height:31px;padding:0 9px;color:var(--text);font-size:10px;font-weight:700;cursor:pointer;list-style:none}
.pxp-inline-tools summary::-webkit-details-marker{display:none}
.pxp-inline-tools summary svg{width:13px;height:13px;color:var(--accent)}
.pxp-inline-tools[open]{padding-bottom:7px}
.pxp-inline-tools .pxp-publish-options{display:flex;gap:6px 12px;flex-wrap:wrap;padding:4px 9px}
.pxp-inline-tools .pxp-publish-options label{font-size:10px}
.pxp-inline-tools .pxp-tag-chips{display:flex;gap:5px;flex-wrap:wrap;padding:3px 8px}
.pxp-inline-tools .pxp-tag-chips button{min-height:25px;padding:0 8px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text);font-size:10px}
.pxp-inline-tools>small{display:block;padding:0 9px;color:var(--muted);font-size:9px}
.pxp-media-compact-card{padding:9px 12px!important}
.pxp-media-compact-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--text)}
.pxp-hidden-upload-inputs{display:none!important}
.pxp-media-compact-card .pxp-media-dropzone{min-height:36px;padding:7px 10px;display:flex;flex-direction:row;justify-content:center;gap:7px;font-size:9px}
.pxp-media-compact-card .pxp-media-dropzone svg{width:14px;height:14px}
.pxp-media-compact-card .pxp-media-queue{margin-top:5px}
.pxp-communities-under-date .pxp-side-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pxp-communities-under-date .pxp-side-head h3{margin:0}
.pxp-communities-under-date .pxp-side-head>span{font-size:9px;color:var(--muted)}
.pxp-communities-under-date .pxp-community-picker{display:grid;grid-template-columns:1fr;gap:5px;max-height:260px;overflow:auto;margin-top:8px}
.pxp-communities-under-date .pxp-community-choice{min-height:42px;padding:5px 7px;display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);cursor:pointer}
.pxp-communities-under-date .pxp-choice-avatar{width:27px;height:27px;flex:0 0 27px}
.pxp-communities-under-date .pxp-community-choice strong{font-size:10px}
.pxp-communities-under-date .pxp-community-choice small{font-size:8px}
.pxp-composer-aside{align-self:start}
@media(max-width:850px){.pxp-composer-aside{display:flex!important}.pxp-communities-under-date .pxp-community-picker{max-height:220px}}
@media(max-width:620px){.pxp-composer-toolbar button{min-height:30px;padding:0 7px}.pxp-composer-toolbar button span{font-size:9px}.pxp-inline-tools{flex-basis:100%}.pxp-ai-menu{left:auto;right:0}}

/* PosterX Composer Phase 12 — balanced three-column workspace */
.pxp-composer-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(245px,.72fr) minmax(290px,.88fr);gap:12px;align-items:start}
.pxp-composer-main,.pxp-composer-middle,.pxp-composer-aside{display:flex;flex-direction:column;gap:10px;min-width:0}
.pxp-composer-middle,.pxp-composer-aside{position:sticky;top:12px;align-self:start}
.pxp-composer-middle .pxp-composer-side-settings{padding:12px}
.pxp-composer-middle .pxp-when-switch{display:flex;flex-wrap:wrap;gap:4px}
.pxp-composer-middle .pxp-when-switch button{flex:1 1 auto;min-height:29px;padding:0 7px;font-size:10px}
.pxp-composer-middle .pxp-schedule-field{display:flex;flex-direction:column;gap:5px;margin-top:9px}
.pxp-composer-middle .pxp-schedule-field span{font-size:10px;color:var(--muted);font-weight:650}
.pxp-composer-middle .pxp-schedule-field input{width:100%;min-width:0;min-height:34px;padding:5px 7px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font-size:11px}
.pxp-composer-middle .pxp-communities-under-date .pxp-community-picker{max-height:min(54vh,520px)}
.pxp-composer-aside .pxp-composer-preview-card{position:static}
.pxp-tag-manager{padding:5px 9px 2px}
.pxp-tag-add-row{display:flex;gap:6px;margin-top:8px}
.pxp-tag-add-row input{flex:1;min-width:0;height:29px;padding:0 8px;border:1px solid var(--border);border-radius:7px;background:var(--bg);color:var(--text);font-size:10px;outline:none}
.pxp-tag-add-row input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.pxp-tag-add-row button{min-height:29px;padding:0 10px;border:1px solid var(--accent);border-radius:7px;background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:750;cursor:pointer}
.pxp-inline-tools .pxp-tag-chips button{display:inline-flex;align-items:center;gap:7px}
.pxp-inline-tools .pxp-tag-chips button span{color:var(--muted);font-size:13px;line-height:1}
.pxp-tags-empty{color:var(--muted);font-size:10px;padding:5px 2px}
html[data-theme="light"] .pxp-tag-add-row input{background:#fff;color:#202b3b}
@media(max-width:1250px){.pxp-composer-grid{grid-template-columns:minmax(0,1.35fr) minmax(225px,.72fr) minmax(260px,.88fr);gap:9px}.pxp-composer-card,.pxp-composer-preview-card,.pxp-composer-side-settings{padding:10px}}
@media(max-width:1050px){.pxp-composer-grid{grid-template-columns:minmax(0,1fr) minmax(250px,.8fr)}.pxp-composer-main{grid-column:1/-1}.pxp-composer-middle,.pxp-composer-aside{position:static}.pxp-composer-middle{grid-column:1}.pxp-composer-aside{grid-column:2;grid-row:2}}
@media(max-width:700px){.pxp-composer-grid{grid-template-columns:minmax(0,1fr)}.pxp-composer-main,.pxp-composer-middle,.pxp-composer-aside{grid-column:1;grid-row:auto;position:static}.pxp-composer-middle{display:grid;grid-template-columns:1fr}.pxp-composer-middle .pxp-communities-under-date .pxp-community-picker{max-height:260px}}

/* PosterX media layout selector and compact previews */
.pxp-media-layout{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:8px 0 12px;padding:8px 10px;border:1px solid var(--border-color,rgba(128,145,170,.22));border-radius:10px}
.pxp-media-layout strong{font-size:12px;margin-right:5px}
.pxp-media-layout button{border:1px solid var(--border-color,rgba(128,145,170,.25));background:var(--card-bg,transparent);color:var(--text-secondary);border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600;cursor:pointer}
.pxp-media-layout button.is-active{background:rgba(45,125,235,.14);border-color:#3988f5;color:var(--accent,#3988f5)}
.pxp-composer-preview-media.is-carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;padding-bottom:5px}
.pxp-composer-preview-media.is-carousel>*{flex:0 0 86%;scroll-snap-align:start;max-width:86%}
.pxp-composer-preview-media.is-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.pxp-composer-preview-media.is-grid>*{width:100%;aspect-ratio:1.15;object-fit:cover;min-width:0}
.pxp-media-file[draggable="true"]{cursor:grab}
.pxp-media-file.is-dragging{opacity:.4}

/* PosterX community workspace — compact modules in the existing theme */
.px-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.px-module-card{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.px-module-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:11px;background:var(--accent-soft);color:var(--accent)}
.px-module-icon svg{width:18px;height:18px}
.px-module-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.px-module-copy strong{font-size:12px;color:var(--text)}
.px-module-copy>span{font-size:10px;line-height:1.45;color:var(--muted)}
.px-module-status{flex:0 0 auto;padding:5px 8px;border:1px solid var(--border);border-radius:20px;color:var(--muted);font-size:10px;white-space:nowrap}
.px-bot-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 19px;margin-bottom:12px}
.px-bot-summary-main{display:flex;align-items:center;gap:12px;min-width:0}
.px-bot-summary h2{margin:0 0 4px;font-size:16px}.px-bot-summary p{margin:0;color:var(--muted);font-size:11px}
.px-subnav{display:flex;gap:5px;overflow-x:auto;margin:0 0 13px;padding:5px;border:1px solid var(--border);border-radius:12px;background:var(--surface);scrollbar-width:thin}
.px-subnav-item{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:11px;font-weight:650;white-space:nowrap;cursor:pointer}
.px-subnav-item svg{width:14px;height:14px}.px-subnav-item:hover{background:var(--surface-2);color:var(--text)}.px-subnav-item.is-active{background:var(--accent-soft);color:var(--accent)}
.px-module-note{display:flex;align-items:flex-start;gap:9px;margin-top:15px;padding:12px 13px;border:1px solid var(--border);border-radius:10px;color:var(--muted);font-size:11px;line-height:1.55}.px-module-note svg{width:16px;height:16px;flex:0 0 16px;color:var(--accent)}
.px-payment-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.px-mode-option{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2);cursor:pointer}.px-mode-option:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.px-mode-option input{margin:3px 0 0;accent-color:var(--accent)}.px-mode-option span{display:flex;flex-direction:column;gap:5px}.px-mode-option strong{font-size:12px}.px-mode-option small,.px-payment-fields small{font-size:10px;line-height:1.5;color:var(--muted)}
.px-payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.px-payment-fields>label{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:11px;font-weight:650;color:var(--text)}.px-payment-fields select,.px-price-input input{width:100%;min-height:39px;padding:9px 11px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--text);font:inherit;font-size:12px}.px-price-input{display:flex;align-items:center;width:100%;position:relative}.px-price-input input{padding-right:35px}.px-price-input>span{position:absolute;right:12px;color:var(--muted);font-size:12px}.px-payment-fields .button{margin-top:3px}
@media(max-width:650px){.px-module-grid,.px-payment-mode-grid,.px-payment-fields{grid-template-columns:1fr}.px-bot-summary{align-items:flex-start;flex-direction:column}.px-module-card{padding:12px}.px-module-status{font-size:9px}}


/* PosterX — VK bot connection */
.px-bot-connection-form { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr); gap:18px; margin-top:20px; }
.px-bot-connection-form .px-bot-token-field { grid-column:1/-1; }
.px-bot-connection-form input { width:100%; min-height:44px; margin-top:7px; padding:0 12px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); color:var(--text); outline:none; }
.px-bot-connection-form small { display:block; margin-top:6px; color:var(--muted); font-size:11px; line-height:1.5; }
.px-bot-connection-state { display:flex; align-items:center; gap:10px; padding:13px 15px; margin-top:15px; border:1px solid var(--border); border-radius:11px; color:var(--muted); background:var(--surface-2); font-size:12px; }
.px-bot-connection-state.is-connected { color:var(--green); border-color:rgba(36,199,122,.3); }
.px-bot-connection-state [data-lucide] { width:18px; height:18px; }
.px-bot-callback-url { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:13px; border:1px solid var(--border); border-radius:11px; background:var(--surface-2); }
.px-bot-callback-url > span { width:100%; color:var(--muted); font-size:11px; }
.px-bot-callback-url code { flex:1; min-width:220px; overflow-wrap:anywhere; color:var(--text); font-size:12px; }
.px-bot-connection-form .px-profile-form-actions { grid-column:1/-1; }
@media(max-width:700px) { .px-bot-connection-form { grid-template-columns:1fr; } .px-bot-connection-form .px-bot-token-field,.px-bot-callback-url,.px-bot-connection-form .px-profile-form-actions { grid-column:1; } .px-bot-callback-url { align-items:stretch; } .px-bot-callback-url .button { width:100%; justify-content:center; } }

/* PosterX publication settings and reusable VK bot message templates */
.px-publication-settings-form { display:grid; gap:16px; max-width:780px; }
.px-settings-grid-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.px-publication-settings-hint,.px-bot-message-note { display:flex; align-items:flex-start; gap:10px; padding:13px 14px; border:1px solid var(--border); border-radius:12px; color:var(--muted); font-size:12px; line-height:1.5; }
.px-publication-settings-hint svg,.px-bot-message-note svg { flex:0 0 auto; width:17px; }
.px-bot-template-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.px-bot-template-tools input,.px-bot-template-tools select { min-width:170px; min-height:40px; padding:8px 10px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); }
@media(max-width:700px){.px-settings-grid-two{grid-template-columns:1fr}.px-bot-template-tools{align-items:stretch}.px-bot-template-tools input,.px-bot-template-tools select{width:100%;min-width:0}}

/* VK bot message editor — restore the shared PosterX form language */
.px-bot-messages-panel{padding:20px}.px-bot-messages-panel .px-settings-panel-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:15px}.px-bot-messages-panel .px-settings-panel-heading>div:first-child{min-width:220px;flex:1}.px-bot-messages-panel .px-settings-panel-heading h2{font-size:18px}.px-bot-messages-panel .px-settings-panel-heading p{max-width:620px;line-height:1.5}.px-bot-template-tools{max-width:100%;gap:7px}.px-bot-template-tools input,.px-bot-template-tools select{min-width:145px;min-height:36px;font:inherit;font-size:11px}.px-bot-template-tools .button{min-height:36px;padding:0 10px;font-size:11px}.px-bot-message-note{margin:0 0 15px;padding:10px 12px;font-size:11px}.px-bot-message-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.px-bot-message-field{display:flex;flex-direction:column;gap:8px;min-width:0;padding:13px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}.px-bot-message-label{display:flex;flex-direction:column;gap:4px;min-width:0}.px-bot-message-label label{color:var(--text);font-size:12px;font-weight:750}.px-bot-message-label span{color:var(--muted);font-size:10px;line-height:1.4}.px-bot-message-field textarea{display:block;width:100%;min-height:108px;resize:vertical;padding:10px 11px;border:1px solid var(--border);border-radius:9px;outline:none;background:var(--bg);color:var(--text);font:500 12px/1.55 inherit}.px-bot-message-field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.px-bot-message-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.px-bot-message-meta>span{color:var(--muted);font-size:10px}.px-bot-reset-one{padding:5px 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--muted);font:inherit;font-size:10px;cursor:pointer}.px-bot-reset-one:hover{border-color:var(--accent);color:var(--accent)}.px-bot-messages-panel .px-profile-form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding-top:14px;border-top:1px solid var(--border)}.px-bot-messages-panel .px-profile-form-actions>span{color:var(--muted);font-size:10px}
@media(max-width:850px){.px-bot-message-list{grid-template-columns:1fr}.px-bot-template-tools{width:100%}}
@media(max-width:600px){.px-bot-messages-panel{padding:14px}.px-bot-template-tools input,.px-bot-template-tools select{width:100%}.px-bot-messages-panel .px-profile-form-actions{align-items:stretch;flex-direction:column}.px-bot-messages-panel .px-profile-form-actions .button{width:100%;justify-content:center}}


/* PosterX community workspace: persistent identity + local group clock */
.px-community-sticky-header{position:sticky;top:var(--topbar-height,72px);z-index:80;display:grid;grid-template-columns:minmax(240px,1fr) minmax(220px,320px) auto;align-items:center;gap:22px;margin:12px 0 16px;padding:14px 18px;background:var(--panel,#151f32);border:1px solid var(--border,#293a57);border-radius:16px;box-shadow:0 10px 28px rgba(0,0,0,.18);backdrop-filter:blur(16px)}
.px-community-sticky-brand{display:flex;align-items:center;gap:14px;min-width:0}.px-community-sticky-avatar{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:var(--surface-2,#1d2b43);color:var(--accent,#2583ff)}.px-community-sticky-avatar img{width:100%;height:100%;object-fit:cover}.px-community-sticky-name{display:flex;flex-direction:column;gap:5px;min-width:0}.px-community-sticky-name strong{font-size:17px;line-height:1.25;color:var(--text,#f5f7fc);overflow-wrap:anywhere}.px-community-sticky-name span{font-size:11px;color:var(--muted,#91a3c2)}
.px-community-clock{justify-self:center;min-width:210px}.px-community-clock-trigger{width:100%;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 14px;border:1px solid var(--border,#293a57);border-radius:12px;background:var(--surface,#101a2c);color:var(--text,#f5f7fc);cursor:pointer;transition:border-color .18s,background .18s}.px-community-clock-trigger:hover{border-color:var(--accent,#2583ff);background:var(--surface-2,#1b2b45)}.px-community-clock-time{font-size:28px;font-weight:800;letter-spacing:.04em;line-height:1.1;font-variant-numeric:tabular-nums}.px-community-clock-date{font-size:11px;color:var(--text-secondary,#b5c4dc);text-transform:capitalize}.px-community-clock-zone{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted,#91a3c2)}.px-community-sticky-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;white-space:nowrap}
.px-community-post-list{display:grid;gap:9px;margin-top:16px}.px-community-post-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;border:1px solid var(--border,#293a57);border-radius:12px;background:var(--surface,#101a2c)}.px-community-post-copy{display:grid;gap:6px;min-width:0}.px-community-post-copy strong{font-size:13px;line-height:1.45;color:var(--text,#f5f7fc);overflow-wrap:anywhere}.px-community-post-copy small,.px-community-post-time small{font-size:11px;color:var(--muted,#91a3c2)}.px-community-post-time{display:grid;gap:4px;flex:0 0 auto;text-align:right}.px-community-post-time b{font-size:13px;color:var(--text,#f5f7fc);font-variant-numeric:tabular-nums}.px-loading-inline{display:flex;align-items:center;gap:10px;padding:22px;color:var(--muted,#91a3c2)}
.pxp-target-local-times{display:grid;gap:5px;min-width:150px}.pxp-target-local-time{display:grid;gap:2px}.pxp-target-local-time b{font-size:11px;color:var(--text,#f5f7fc);font-weight:650}.pxp-target-local-time small,.pxp-local-time-na{font-size:11px;color:var(--muted,#91a3c2);white-space:normal}
.px-bot-payment-panel .px-payment-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.px-bot-payment-panel .px-mode-option{position:relative;display:flex;align-items:flex-start;gap:12px;min-height:88px;padding:16px;border:1px solid var(--border,#293a57);border-radius:14px;background:var(--surface,#101a2c);cursor:pointer;transition:border-color .18s,background .18s}.px-bot-payment-panel .px-mode-option:has(input:checked){border-color:var(--accent,#2583ff);background:rgba(37,131,255,.11);box-shadow:inset 0 0 0 1px rgba(37,131,255,.18)}.px-bot-payment-panel .px-mode-option input{accent-color:var(--accent,#2583ff);margin:3px 0 0}.px-bot-payment-panel .px-mode-option span{display:grid;gap:6px}.px-bot-payment-panel .px-mode-option strong{font-size:13px;color:var(--text,#f5f7fc)}.px-bot-payment-panel .px-mode-option small{font-size:11px;line-height:1.45;color:var(--muted,#91a3c2)}.px-bot-payment-panel .px-payment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.px-bot-payment-panel .px-payment-field{display:grid;gap:8px;font-size:12px;font-weight:650;color:var(--text-secondary,#c0cce0)}.px-bot-payment-panel .px-payment-field input,.px-bot-payment-panel .px-payment-field select{width:100%;min-width:0;min-height:44px;padding:0 13px;border:1px solid var(--border,#293a57);border-radius:10px;background:var(--surface,#101a2c);color:var(--text,#f5f7fc);font:inherit}.px-bot-payment-panel .px-payment-field small{font-size:11px;font-weight:400;color:var(--muted,#91a3c2)}.px-bot-payment-panel .px-price-input{display:flex;align-items:center;border:1px solid var(--border,#293a57);border-radius:10px;background:var(--surface,#101a2c);padding-right:13px}.px-bot-payment-panel .px-price-input input{border:0;background:transparent}.px-bot-payment-panel .px-bot-queue-settings{margin-top:20px;padding:18px;border:1px solid var(--border,#293a57);border-radius:14px;background:var(--surface,#101a2c)}.px-bot-payment-panel .px-bot-section-title{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:var(--accent,#2583ff)}.px-bot-payment-panel .px-bot-section-title>div{display:grid;gap:3px}.px-bot-payment-panel .px-bot-section-title strong{font-size:14px;color:var(--text,#f5f7fc)}.px-bot-payment-panel .px-bot-section-title small{font-size:11px;color:var(--muted,#91a3c2)}.px-bot-payment-panel .px-settings-grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.px-bot-payment-panel .px-profile-form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.px-bot-payment-panel #pxBotPaymentHint{font-size:11px;color:var(--muted,#91a3c2)}
@media(max-width:760px){.px-community-sticky-header{position:sticky;grid-template-columns:1fr auto;gap:10px;padding:10px}.px-community-clock{grid-column:1/-1;grid-row:2;justify-self:stretch}.px-community-clock-trigger{flex-direction:row;justify-content:center;flex-wrap:wrap;gap:8px}.px-community-clock-time{font-size:22px}.px-community-sticky-actions{grid-column:2;grid-row:1}.px-bot-payment-panel .px-payment-mode-grid,.px-bot-payment-panel .px-payment-fields,.px-bot-payment-panel .px-settings-grid-two{grid-template-columns:1fr}.px-community-post-row{align-items:flex-start;flex-direction:column}.px-community-post-time{text-align:left}}

/* =====================================================
   PATCH 19 — persistent community header + real group feed
   ===================================================== */
.px-community-sticky-header{position:sticky;top:var(--topbar-height,72px);z-index:80;display:grid;grid-template-columns:minmax(260px,1fr) auto minmax(180px,1fr);align-items:center;gap:22px;margin:0 0 14px;padding:14px 18px;background:var(--panel,#151f33);border:1px solid var(--border,#293b59);border-radius:16px;box-shadow:0 10px 28px rgba(0,0,0,.18);backdrop-filter:blur(16px)}
.px-community-sticky-identity{display:flex;align-items:center;gap:13px;min-width:0}.px-community-sticky-avatar{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:var(--surface-2,#1b2a44);color:var(--accent,#2785ff);font-weight:800}.px-community-sticky-avatar img{width:100%;height:100%;object-fit:cover}.px-community-sticky-name{display:flex;flex-direction:column;gap:4px;min-width:0}.px-community-sticky-name strong{font-size:17px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.px-community-sticky-name span{font-size:11px;color:var(--muted,#91a4c1)}
.px-community-sticky-clock{position:relative;display:flex;align-items:center;gap:10px;min-width:220px;padding:5px 13px;border-left:1px solid var(--border,#293b59);border-right:1px solid var(--border,#293b59)}.px-clock-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(24,190,130,.12);color:#22c98b}.px-clock-trigger{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left}.px-clock-trigger strong{font-size:25px;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:.04em}.px-clock-trigger span{font-size:11px;font-weight:650;text-transform:capitalize}.px-clock-trigger small{font-size:10px;color:var(--muted,#91a4c1)}.px-clock-trigger:hover strong{color:var(--accent,#2785ff)}.px-community-sticky-clock [data-clock-zone]{position:absolute;top:calc(100% + 10px);left:35px;z-index:100;min-width:270px;max-width:min(88vw,360px);padding:10px 12px;border:1px solid var(--border,#344967);border-radius:12px;background:var(--panel,#151f33);color:var(--text,#eef4ff);box-shadow:0 14px 36px rgba(0,0,0,.32)}.px-community-sticky-clock [data-clock-zone]:not([hidden]){display:block}
.px-community-sticky-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.px-community-post-actions{display:flex;align-items:center;gap:8px}.px-community-post-toolbar{display:flex;align-items:flex-end;gap:14px;margin:18px 0;padding:14px;border:1px solid var(--border,#293b59);border-radius:13px;background:rgba(255,255,255,.02)}.px-community-post-toolbar label{display:flex;flex-direction:column;gap:6px;min-width:190px;color:var(--muted,#91a4c1);font-size:12px;font-weight:650}.px-community-post-toolbar input,.px-community-post-toolbar select{width:100%;min-height:40px;padding:8px 11px;border:1px solid var(--border,#344967);border-radius:10px;background:var(--input-bg,#111c30);color:var(--text,#eef4ff)}.px-community-post-toolbar .px-community-post-search{flex:1;max-width:420px}.px-community-post-list{display:grid;gap:11px}.px-community-post-card{padding:16px 18px;border:1px solid var(--border,#293b59);border-radius:14px;background:var(--panel-soft,rgba(255,255,255,.025));transition:border-color .16s,transform .16s}.px-community-post-card:hover{border-color:var(--accent,#2785ff);transform:translateY(-1px)}.px-community-post-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.px-community-post-card-head time{font-size:12px;color:var(--muted,#91a4c1);text-align:right}.px-community-post-card>p{margin:13px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.px-community-post-card-foot{display:flex;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid var(--border,#293b59);font-size:11px;color:var(--muted,#91a4c1)}.px-community-post-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:190px;padding:26px;text-align:center;color:var(--muted,#91a4c1)}.px-community-post-empty>i{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(39,133,255,.12);color:var(--accent,#2785ff)}.px-community-post-empty strong{color:var(--text,#eef4ff);font-size:15px}.px-community-post-empty span{max-width:520px;font-size:12px;line-height:1.5}.px-community-post-empty.is-error>i{color:#f87171;background:rgba(248,113,113,.12)}
@media(max-width:850px){.px-community-sticky-header{grid-template-columns:1fr auto;gap:12px;padding:12px}.px-community-sticky-clock{grid-column:1/-1;grid-row:2;border:0;border-top:1px solid var(--border,#293b59);padding:10px 0 0;min-width:0}.px-community-sticky-actions{grid-column:2;grid-row:1}.px-community-sticky-name strong{font-size:14px}.px-clock-trigger strong{font-size:22px}.px-community-post-toolbar{flex-direction:column;align-items:stretch}.px-community-post-toolbar label,.px-community-post-toolbar .px-community-post-search{max-width:none;width:100%}}

/* Patch 21 — one community identity header and a clear local-time clock */
.px-community-sticky-header{
  position:sticky;top:var(--topbar-height,72px);z-index:90;
  grid-template-columns:minmax(240px,1fr) minmax(250px,330px) auto;
  gap:20px;align-items:center;margin:10px 0 14px;padding:12px 18px;
  background:var(--panel,#151f33);border:1px solid var(--border,#293b59);
  border-radius:16px;box-shadow:0 12px 30px rgba(0,0,0,.2);backdrop-filter:blur(16px)
}
.px-community-sticky-identity{display:flex;align-items:center;gap:13px;min-width:0}
.px-community-sticky-clock{
  justify-self:center;display:flex;align-items:center;gap:12px;min-width:250px;
  padding:7px 16px;border:1px solid var(--border,#293b59);border-radius:14px;
  background:linear-gradient(135deg,rgba(39,133,255,.10),rgba(34,201,139,.06));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)
}
.px-clock-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:rgba(34,201,139,.13);color:#22c98b;display:grid;place-items:center}
.px-clock-trigger{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.px-clock-caption{font-size:9px;font-weight:800;letter-spacing:.11em;color:var(--muted,#91a4c1)}
.px-clock-trigger strong{font-size:27px;line-height:1.05;font-weight:850;letter-spacing:.045em;font-variant-numeric:tabular-nums;color:var(--text,#f5f7fc)}
.px-clock-trigger span{font-size:11px;font-weight:650;text-transform:capitalize;color:var(--text-secondary,#b5c4dc)}
.px-clock-trigger .px-clock-zone-label{font-size:10px;font-weight:600;color:var(--accent,#2785ff)}
.px-clock-trigger:hover strong{color:var(--accent,#2785ff)}
.px-community-sticky-clock [data-clock-zone]{position:absolute;top:calc(100% + 10px);left:35px;z-index:100;min-width:270px;max-width:min(88vw,360px);padding:10px 12px;border:1px solid var(--border,#344967);border-radius:12px;background:var(--panel,#151f33);color:var(--text,#eef4ff);box-shadow:0 14px 36px rgba(0,0,0,.32)}
.px-community-sticky-clock [data-clock-zone]:not([hidden]){display:block}
@media(max-width:850px){
 .px-community-sticky-header{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:10px}
 .px-community-sticky-clock{grid-column:1/-1;grid-row:2;justify-self:stretch;min-width:0;padding:9px 12px}
 .px-clock-trigger strong{font-size:23px}
 .px-community-sticky-actions{grid-column:2;grid-row:1}
}
@media(max-width:480px){.px-clock-icon{display:none}.px-community-sticky-clock{justify-content:center}.px-clock-trigger{align-items:center}}

/* Patch 22 — compact, understated community clock + shared timezone dialog look */
.px-community-sticky-clock{
  min-width:205px!important;gap:9px!important;padding:5px 11px!important;
  border:1px solid var(--border,#293b59)!important;border-radius:12px!important;
  background:transparent!important;box-shadow:none!important
}
.px-clock-icon{width:29px!important;height:29px!important;flex:0 0 29px!important;border-radius:9px!important;background:rgba(34,201,139,.09)!important}
.px-clock-trigger{gap:1px!important;padding:2px 4px!important;border-radius:8px!important;outline-offset:3px}
.px-clock-trigger:hover{background:rgba(255,255,255,.025)}
.px-clock-caption{font-size:8px!important;letter-spacing:.08em!important;font-weight:700!important;color:var(--muted,#91a4c1)!important}
.px-clock-trigger strong{font-size:20px!important;line-height:1.05!important;font-weight:750!important;letter-spacing:.025em!important;color:var(--text-secondary,#c8d3e5)!important}
.px-clock-trigger span{font-size:10px!important;font-weight:550!important;color:var(--muted,#91a4c1)!important}
.px-clock-trigger .px-clock-zone-label{font-size:9px!important;font-weight:550!important;color:var(--muted,#91a4c1)!important}
.px-clock-trigger.clock-style-glow strong{color:#8abfff!important;text-shadow:0 0 7px rgba(57,143,255,.3)}
.px-clock-trigger.clock-style-digital strong{color:var(--text,#f5f7fc)!important}
.px-clock-trigger.clock-style-minimal strong{color:var(--text-secondary,#c8d3e5)!important;font-weight:650!important;letter-spacing:0!important}
.px-clock-picker{position:fixed!important;inset:0!important;z-index:25000!important;display:grid!important;place-items:center!important;padding:18px!important}
.px-clock-picker .timezone-backdrop{position:absolute!important;inset:0!important}
.px-clock-picker .timezone-dialog{z-index:1!important;width:min(100%,490px)!important;max-height:min(88vh,820px)!important}
.px-clock-picker .timezone-list{max-height:230px!important}
.px-community-clock-dialog .timezone-dialog-foot span{max-width:310px}
@media(max-width:850px){
 .px-community-sticky-clock{grid-column:1/-1;grid-row:2;justify-self:start!important;border:1px solid var(--border,#293b59)!important;padding:5px 10px!important;min-width:0!important}
 .px-clock-icon{display:grid!important}
 .px-clock-trigger{align-items:flex-start!important}
 .px-clock-trigger strong{font-size:18px!important}
}
@media(max-width:480px){.px-community-sticky-clock{justify-content:flex-start!important}.px-clock-icon{display:grid!important}}


/* PosterX Phase VK Bot: conditional publication settings */
.px-bot-mode-panel[hidden] { display: none !important; }
.px-bot-payment-panel .px-bot-queue-settings { margin-top: 18px; }
.px-bot-payment-panel .px-bot-paid-delay-field {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    margin-top: 16px; font-size: 11px; font-weight: 650; color: var(--text);
}
.px-bot-payment-panel .px-bot-paid-delay-field input {
    width: 100%; min-height: 39px; padding: 9px 11px;
    border: 1px solid var(--border); border-radius: 9px;
    background: var(--surface-2); color: var(--text); font: inherit; font-size: 12px;
}
.px-bot-payment-panel .px-bot-paid-delay-field small {
    color: var(--muted); font-size: 10px; line-height: 1.5;
}
.px-bot-payment-panel .px-payment-mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.px-bot-payment-panel .px-mode-option { min-height: 92px; }
.px-bot-payment-panel .px-mode-option strong { font-size: 13px; }
@media(max-width:650px) {
    .px-bot-payment-panel .px-payment-mode-grid { grid-template-columns: 1fr; }
    .px-bot-payment-panel .px-bot-queue-settings { padding: 13px; }
    .px-bot-payment-panel .px-settings-grid-two { grid-template-columns: 1fr; }
}

/* PosterX Phase VK Bot: template editor */
.px-content-template-panel { display: grid; gap: 18px; }
.px-content-template-panel .px-template-assignment-card {
    display: grid; gap: 12px; padding: 16px;
    border: 1px solid var(--border); border-radius: 13px;
    background: var(--surface-2);
}
.px-template-assignment-card > div:first-child { display: grid; gap: 4px; }
.px-template-assignment-card > div:first-child strong { font-size: 13px; color: var(--text); }
.px-template-assignment-card > div:first-child span,
.px-template-assignment-status { color: var(--muted); font-size: 11px; line-height: 1.5; }
.px-template-assignment-controls { display: flex; align-items: center; gap: 9px; }
.px-template-assignment-controls select,
.px-template-meta-grid input,
.px-template-meta-grid select,
.px-template-body-label textarea {
    width: 100%; min-width: 0; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 9px;
    background: var(--surface); color: var(--text); font: inherit; font-size: 12px;
}
.px-template-assignment-controls select { flex: 1; min-height: 40px; }
.px-template-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.px-template-editor-toolbar > div:first-child { display: grid; gap: 4px; }
.px-template-editor-toolbar h3 { margin: 0; font-size: 15px; color: var(--text); }
.px-template-editor-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.px-template-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.px-template-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.px-template-meta-grid label,
.px-template-body-label { display: grid; gap: 7px; color: var(--text); font-size: 11px; font-weight: 650; }
.px-template-body-label textarea { resize: vertical; min-height: 220px; line-height: 1.6; font-weight: 450; }
.px-template-variable-box { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.px-template-variable-box > strong { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 12px; }
.px-template-variable-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.px-template-variable-list button {
    display: grid; gap: 4px; padding: 9px; text-align: left;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface); color: var(--text); cursor: pointer;
}
.px-template-variable-list button:hover { border-color: var(--accent); }
.px-template-variable-list code { color: var(--accent); font-size: 11px; }
.px-template-variable-list span { color: var(--muted); font-size: 10px; }
.px-template-variable-box > small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.px-template-preview { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.px-template-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--border); }
.px-template-preview-head strong { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text); }
.px-template-preview-head span { color: var(--muted); font-size: 10px; }
#pxContentTemplatePreview { padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 12px; line-height: 1.65; }
@media(max-width:650px) {
    .px-template-assignment-controls, .px-template-editor-toolbar { align-items: stretch; flex-direction: column; }
    .px-template-meta-grid, .px-template-variable-list { grid-template-columns: 1fr 1fr; }
}


/* PosterX — компактная и выровненная форма «Публикации и оплата» */
.px-bot-payment-panel { min-width: 0; }
.px-bot-payment-panel .px-settings-panel-heading { align-items: flex-start; gap: 14px; }
.px-bot-payment-panel .px-payment-mode-grid { margin: 16px 0 18px; gap: 10px; }
.px-bot-payment-panel .px-mode-option {
    min-height: 78px; padding: 13px 14px; border-radius: 12px;
}
.px-bot-payment-panel .px-mode-option strong { line-height: 1.35; }
.px-bot-payment-panel .px-mode-option small { line-height: 1.45; }
.px-bot-payment-panel .px-payment-fields {
    grid-template-columns: minmax(190px, 0.72fr) minmax(260px, 1.28fr);
    align-items: start; gap: 18px; margin-top: 0;
}
.px-bot-payment-panel .px-payment-field {
    min-width: 0; align-content: start; gap: 7px; line-height: 1.35;
}
.px-bot-payment-panel .px-price-field .px-price-input {
    width: min(100%, 230px); min-height: 46px; padding-right: 13px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface-2); transition: border-color .15s, box-shadow .15s;
}
.px-bot-payment-panel .px-price-field .px-price-input:focus-within {
    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.px-bot-payment-panel .px-price-field .px-price-input input {
    min-height: 44px; padding: 0 8px 0 13px; border: 0; outline: 0;
    background: transparent; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.px-bot-payment-panel .px-price-field .px-price-input > span {
    position: static; flex: 0 0 auto; padding: 0 3px; font-size: 14px; font-weight: 650;
}
.px-bot-payment-panel .px-account-field select { width: 100%; min-height: 46px; }
.px-bot-payment-panel .px-account-field .button {
    align-self: flex-start; min-height: 34px; margin-top: 1px; padding: 0 11px;
}
.px-bot-payment-panel .px-payment-field small { max-width: 62ch; line-height: 1.5; }
.px-bot-payment-panel .px-bot-queue-settings {
    margin-top: 18px; padding: 15px 16px; border-radius: 12px;
}
.px-bot-payment-panel .px-bot-section-title { margin-bottom: 12px; }
.px-bot-payment-panel .px-settings-grid-two {
    grid-template-columns: repeat(2, minmax(150px, 220px)); gap: 12px;
}
.px-bot-payment-panel .px-settings-grid-two .px-payment-field input {
    min-height: 42px; font-variant-numeric: tabular-nums;
}
.px-bot-payment-panel .px-bot-paid-delay-field {
    display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start;
    gap: 7px; margin-top: 16px;
}
.px-bot-payment-panel .px-bot-paid-delay-field input {
    width: min(100%, 220px); min-height: 42px; font-variant-numeric: tabular-nums;
}
.px-bot-payment-panel .px-profile-form-actions {
    align-items: center; margin-top: 18px; padding-top: 14px;
    border-top: 1px solid var(--border);
}
.px-bot-payment-panel #pxBotPaymentHint { max-width: 58ch; line-height: 1.5; }
.px-bot-payment-panel .px-bot-info-note {
    display: flex; align-items: flex-start; gap: 9px; margin-top: 13px;
    padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px;
    color: var(--muted); font-size: 10px; line-height: 1.5;
}
.px-bot-payment-panel .px-bot-info-note svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; color: var(--accent); }
@media (max-width: 760px) {
    .px-bot-payment-panel .px-payment-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .px-bot-payment-panel .px-price-field .px-price-input,
    .px-bot-payment-panel .px-bot-paid-delay-field input { width: 100%; max-width: 260px; }
    .px-bot-payment-panel .px-settings-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .px-bot-payment-panel .px-profile-form-actions { align-items: stretch; flex-direction: column; }
    .px-bot-payment-panel .px-profile-form-actions .button { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
    .px-bot-payment-panel .px-settings-grid-two { grid-template-columns: minmax(0, 1fr); }
    .px-bot-payment-panel .px-bot-queue-settings { padding: 12px; }
    .px-bot-payment-panel .px-mode-option { min-height: 0; padding: 12px; }
}


/* PosterX community module status indicators */
.px-workspace-tab { position:relative; }
.px-tab-status-dot {
    display:inline-block;
    flex:0 0 7px;
    width:7px;
    height:7px;
    margin-left:1px;
    border-radius:50%;
    background:var(--muted);
    box-shadow:0 0 0 2px color-mix(in srgb, var(--muted) 12%, transparent);
}
.px-tab-status-dot.is-ready {
    background:#22c783;
    box-shadow:0 0 0 2px rgba(34,199,131,.14), 0 0 9px rgba(34,199,131,.48);
}
.px-tab-status-dot.is-partial {
    background:#e5a33b;
    box-shadow:0 0 0 2px rgba(229,163,59,.15), 0 0 8px rgba(229,163,59,.35);
}
.px-tab-status-dot.is-off,
.px-tab-status-dot.is-empty,
.px-tab-status-dot.is-unknown {
    background:#8993a3;
    box-shadow:0 0 0 2px rgba(137,147,163,.13);
}
.px-tab-status-dot.is-future {
    background:#697386;
    box-shadow:0 0 0 2px rgba(137,147,163,.10);
}
.px-sr-only {
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.px-overview-module-list {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-top:12px;
}
.px-overview-module-chip {
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    padding:9px 10px;
    border:1px solid var(--border);
    border-radius:11px;
    color:var(--text);
    text-decoration:none;
    background:var(--surface-2);
    transition:border-color .18s, background .18s, transform .18s;
}
.px-overview-module-chip:hover {
    border-color:var(--accent);
    background:var(--surface);
    transform:translateY(-1px);
}
.px-overview-module-chip .px-tab-status-dot { margin:0; }
.px-overview-module-name {
    flex:0 0 auto;
    font-size:11px;
    font-weight:700;
}
.px-overview-module-state {
    min-width:0;
    margin-left:auto;
    color:var(--muted);
    font-size:10px;
    text-align:right;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
@media(max-width:700px) {
    .px-overview-module-list { grid-template-columns:1fr; }
    .px-overview-module-chip { padding:10px; }
}


/* PosterX bot: combined connection + publishing settings */
.px-bot-setup-grid {
    display:grid;
    grid-template-columns:minmax(0, .92fr) minmax(0, 1.08fr);
    align-items:start;
    gap:16px;
    margin-top:16px;
}
.px-bot-setup-grid > * { min-width:0; }
.px-bot-setup-grid .px-settings-panel { height:100%; }
.px-bot-connection-panel,
.px-bot-publishing-column { min-width:0; }
.px-bot-connection-panel .px-settings-panel-heading h2,
.px-bot-column-heading h2 {
    display:flex;
    align-items:center;
    gap:9px;
    margin:0;
}
.px-bot-connection-panel .px-settings-panel-heading h2 svg,
.px-bot-column-heading h2 svg {
    width:19px;
    height:19px;
    color:var(--accent);
}
.px-bot-connection-panel .px-settings-panel-heading p,
.px-bot-column-heading p {
    max-width:520px;
    margin-top:6px;
    line-height:1.45;
}
.px-bot-connection-panel .px-bot-callback-url {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
}
.px-bot-connection-panel .px-bot-callback-url code {
    flex:1 1 100%;
    min-width:0;
    overflow-wrap:anywhere;
}
.px-bot-connection-panel .px-profile-form-actions {
    align-items:flex-start;
    flex-wrap:wrap;
}
.px-bot-connection-panel .px-profile-form-actions > span {
    flex:1 1 100%;
}
.px-bot-connection-panel .px-profile-form-actions > button {
    margin-left:auto;
}
.px-bot-column-heading {
    padding:5px 2px 12px;
}
.px-bot-column-kicker {
    display:block;
    margin-bottom:6px;
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    letter-spacing:.12em;
}
.px-bot-column-heading h2 { font-size:19px; }
.px-bot-publishing-column .px-bot-payment-panel {
    margin:0;
}
.px-bot-publishing-column .px-settings-panel-heading {
    padding-bottom:12px;
}
.px-bot-publishing-column .px-payment-mode-grid {
    grid-template-columns:1fr;
}
.px-bot-publishing-column .px-payment-fields {
    grid-template-columns:1fr;
}
.px-bot-publishing-column .px-bot-info-note {
    font-size:11px;
}
@media(max-width:1050px) {
    .px-bot-setup-grid {
        grid-template-columns:minmax(0,1fr);
    }
    .px-bot-connection-panel,
    .px-bot-publishing-column { width:100%; }
}
@media(min-width:1051px) {
    .px-bot-setup-grid .px-bot-connection-panel { position:relative; }
}


/* PosterX compact bot settings — refined visual pass */
.px-bot-setup-grid {
    grid-template-columns:minmax(0, .88fr) minmax(0, 1.12fr);
    align-items:start;
    gap:12px;
    margin-top:12px;
}
.px-bot-setup-grid .px-settings-panel { height:auto; }
.px-bot-connection-panel,
.px-bot-publishing-column { min-height:0; }
.px-bot-connection-panel {
    padding:16px;
    border-radius:13px;
}
.px-bot-connection-panel .px-settings-panel-heading {
    padding:0 0 10px;
    margin:0;
    align-items:center;
}
.px-bot-connection-panel .px-settings-panel-heading h2,
.px-bot-column-heading h2 { font-size:16px; }
.px-bot-connection-panel .px-bot-connection-state {
    margin:0 0 12px;
    padding:9px 10px;
    min-height:0;
    border-radius:9px;
    font-size:11px;
    line-height:1.35;
}
.px-bot-connection-form { gap:10px; }
.px-bot-connection-panel .px-payment-field {
    gap:5px;
    font-size:11px;
}
.px-bot-connection-panel input {
    min-height:36px;
    padding:8px 10px;
    font-size:12px;
}
.px-bot-callback-url {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:7px 10px;
    padding:10px;
    border-radius:9px;
}
.px-bot-callback-title {
    grid-column:1/-1;
    display:flex;
    align-items:center;
    gap:6px;
    font-size:11px;
    font-weight:650;
}
.px-bot-callback-url code {
    min-width:0;
    overflow-wrap:anywhere;
    font-size:10px;
}
.px-bot-callback-url .button {
    min-height:30px;
    padding:5px 9px;
    font-size:10px;
}
.px-bot-connection-panel .px-profile-form-actions {
    display:flex;
    justify-content:flex-end;
    padding:0;
    margin:0;
}
.px-bot-connection-panel .px-profile-form-actions .button {
    min-height:34px;
    padding:7px 13px;
    font-size:11px;
}
.px-bot-check-actions {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid var(--border);
}
.px-bot-check-actions span {
    min-width:0;
    color:var(--muted);
    font-size:9px;
}
.px-bot-check-actions .button {
    flex:0 0 auto;
    min-height:30px;
    padding:5px 9px;
    font-size:10px;
}
.px-bot-column-heading {
    padding:2px 2px 8px;
}
.px-bot-column-heading h2 { font-size:16px; }
.px-bot-column-heading p { margin:3px 0 0; font-size:11px; }
.px-bot-publishing-column .px-bot-payment-panel {
    padding:14px;
    border-radius:13px;
}
.px-bot-publishing-column .px-settings-panel-heading {
    padding:0 0 9px;
    margin:0;
}
.px-bot-publishing-column .px-settings-panel-heading h3 {
    margin:0;
    font-size:13px;
}
.px-bot-publishing-column .px-module-status { font-size:9px; }
.px-bot-publishing-column .px-payment-mode-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
}
.px-bot-publishing-column .px-mode-option {
    min-height:0;
    padding:9px;
    border-radius:9px;
    gap:7px;
}
.px-bot-publishing-column .px-mode-option > span {
    min-width:0;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:5px;
}
.px-bot-publishing-column .px-mode-option strong {
    font-size:10px;
    line-height:1.3;
}
.px-bot-publishing-column .px-mode-option small { display:none; }
.px-bot-publishing-column .px-payment-fields {
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
    gap:10px;
    margin-top:10px;
}
.px-bot-publishing-column .px-payment-field {
    gap:5px;
    font-size:10px;
}
.px-bot-publishing-column .px-payment-field input,
.px-bot-publishing-column .px-payment-field select {
    min-height:34px;
    padding:7px 9px;
    font-size:11px;
}
.px-bot-publishing-column .px-account-field .button {
    min-height:30px;
    padding:5px 8px;
    font-size:9px;
}
.px-bot-publishing-column .px-bot-queue-settings {
    margin-top:10px;
    padding:10px;
    border-radius:9px;
}
.px-bot-publishing-column .px-bot-section-title {
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:8px;
    font-size:11px;
}
.px-bot-publishing-column .px-settings-grid-two {
    gap:8px;
}
.px-bot-publishing-column .px-bot-paid-delay-field {
    margin-top:10px;
}
.px-bot-publishing-column .px-profile-form-actions {
    margin-top:10px;
    padding-top:10px;
    justify-content:flex-end;
}
.px-bot-publishing-column .px-profile-form-actions button {
    min-height:34px;
    padding:7px 12px;
    font-size:10px;
}
.px-bot-payment-footer {
    display:flex;
    align-items:center;
    gap:5px;
    margin-top:8px;
    color:var(--muted);
    font-size:9px;
}
.px-info-tip {
    position:relative;
    display:inline-flex;
    flex:0 0 17px;
    align-items:center;
    justify-content:center;
    width:17px;
    height:17px;
    padding:0;
    border:0;
    border-radius:50%;
    color:var(--muted);
    background:transparent;
    cursor:pointer;
    vertical-align:middle;
}
.px-info-tip svg { width:14px; height:14px; }
.px-info-tip:hover,
.px-info-tip:focus-visible,
.px-info-tip.is-open { color:var(--accent); outline:none; }
.px-info-tip::after {
    content:attr(data-tooltip);
    position:absolute;
    z-index:50;
    left:50%;
    bottom:calc(100% + 8px);
    width:max-content;
    max-width:min(260px,75vw);
    padding:8px 10px;
    border:1px solid var(--border);
    border-radius:8px;
    color:var(--text);
    background:var(--surface, #172235);
    box-shadow:0 8px 24px rgba(0,0,0,.25);
    font-size:10px;
    font-weight:450;
    line-height:1.45;
    text-align:left;
    white-space:normal;
    opacity:0;
    visibility:hidden;
    transform:translate(-50%,3px);
    pointer-events:none;
    transition:opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.px-info-tip:hover::after,
.px-info-tip:focus-visible::after,
.px-info-tip.is-open::after {
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0);
}
@media(max-width:1050px) {
    .px-bot-setup-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:680px) {
    .px-bot-publishing-column .px-payment-mode-grid,
    .px-bot-publishing-column .px-payment-fields { grid-template-columns:1fr; }
    .px-bot-connection-panel,
    .px-bot-publishing-column .px-bot-payment-panel { padding:12px; }
}

/* Final alignment: balanced two-column bot settings */
.px-bot-setup-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:12px;
}
.px-bot-setup-grid > .px-bot-connection-panel,
.px-bot-setup-grid > .px-bot-publishing-column {
    width:100%;
    min-width:0;
    height:100%;
}
.px-bot-connection-panel {
    display:flex;
    flex-direction:column;
}
.px-bot-publishing-column {
    display:flex;
    flex-direction:column;
}
.px-bot-publishing-column #pxBotPaymentsMount {
    display:flex;
    flex:1 1 auto;
    min-height:100%;
}
.px-bot-publishing-column .px-bot-payment-panel {
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    height:100%;
}
.px-bot-publishing-column .px-bot-payment-panel form {
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
}
.px-bot-publishing-column .px-bot-payment-panel form > .px-profile-form-actions {
    margin-top:auto;
}
.px-bot-panel-title {
    display:flex;
    align-items:center;
    gap:8px;
}
.px-bot-panel-title h2 {
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
}
.px-bot-connection-panel .px-settings-panel-heading {
    justify-content:space-between;
}
.px-bot-callback-title,
.px-bot-publishing-column .px-bot-section-title,
.px-field-label {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    width:100%;
}
.px-bot-publishing-column .px-mode-option > span {
    display:flex;
    flex:1 1 auto;
    align-items:center;
    justify-content:space-between;
    flex-wrap:nowrap;
    gap:8px;
    min-width:0;
}
.px-bot-publishing-column .px-mode-option strong {
    flex:1 1 auto;
    min-width:0;
}
.px-bot-publishing-column .px-mode-option .px-info-tip {
    flex:0 0 17px;
    margin-left:auto;
}
.px-bot-publishing-column .px-payment-field > .px-info-tip {
    align-self:flex-end;
}
.px-bot-publishing-column .px-account-field .px-info-tip {
    margin-left:auto;
}
.px-bot-payment-footer {
    margin-top:auto;
    padding-top:9px;
}
@media(max-width:1050px) {
    .px-bot-setup-grid {
        grid-template-columns:minmax(0,1fr);
        align-items:stretch;
    }
    .px-bot-setup-grid > .px-bot-connection-panel,
    .px-bot-setup-grid > .px-bot-publishing-column {
        height:auto;
    }
    .px-bot-publishing-column #pxBotPaymentsMount,
    .px-bot-publishing-column .px-bot-payment-panel {
        min-height:0;
        height:auto;
    }
}

/* PosterX bot settings — complete clean redesign */
.px-bot-redesign {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:16px;
    margin-top:14px;
}
.px-bot-redesign > * { min-width:0; }
.px-bot-redesign .px-bot-connection-panel,
.px-bot-redesign .px-bot-payment-panel {
    width:100%;
    min-width:0;
    height:auto;
    padding:20px;
    border:1px solid var(--border);
    border-radius:15px;
    background:var(--surface, #151f32);
    box-shadow:0 8px 28px rgba(0,0,0,.10);
}
.px-redesign-card-heading {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}
.px-redesign-heading-icon {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 38px;
    width:38px;
    height:38px;
    border-radius:11px;
    color:var(--accent);
    background:color-mix(in srgb, var(--accent) 12%, transparent);
}
.px-redesign-heading-icon svg { width:19px; height:19px; }
.px-redesign-heading-copy { flex:1 1 auto; min-width:0; }
.px-redesign-heading-copy h2 {
    margin:0;
    font-size:17px;
    line-height:1.3;
    font-weight:750;
    color:var(--text);
}
.px-redesign-heading-copy p {
    margin:4px 0 0;
    color:var(--muted);
    font-size:12px;
    line-height:1.45;
}
.px-redesign-card-heading > .px-info-tip { margin-left:auto; }
.px-bot-connection-panel .px-bot-connection-state {
    display:flex;
    align-items:center;
    gap:9px;
    min-height:42px;
    margin:0 0 18px;
    padding:10px 12px;
    border-radius:10px;
    font-size:12px;
    line-height:1.45;
}
.px-bot-connection-panel .px-bot-connection-form { display:flex; flex-direction:column; gap:14px; }
.px-bot-connection-panel .px-payment-field {
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:12px;
    font-weight:650;
}
.px-bot-connection-panel .px-payment-field input {
    width:100%;
    min-height:43px;
    padding:10px 12px;
    border-radius:10px;
    font-size:13px;
}
.px-bot-connect-actions {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
}
.px-bot-connect-actions .button {
    min-height:39px;
    padding:9px 14px;
    border-radius:9px;
    font-size:12px;
}
.px-bot-connect-actions .button-outline { margin-left:auto; }
.px-bot-check-meta {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:18px;
    padding-top:14px;
    border-top:1px solid var(--border);
}
.px-bot-check-meta > span:first-child {
    color:var(--muted);
    font-size:10px;
    line-height:1.4;
}
.px-bot-check-meta .px-module-status { flex:0 0 auto; font-size:10px; }
.px-bot-publishing-column { min-width:0; }
.px-bot-payment-redesign .px-redesign-card-heading { margin-bottom:16px; }
.px-bot-payment-redesign .px-settings-panel-heading { display:none; }
.px-bot-payment-redesign .px-payment-mode-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:0 0 18px;
}
.px-bot-payment-redesign .px-mode-option {
    display:flex;
    align-items:flex-start;
    gap:10px;
    min-height:106px;
    padding:14px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--surface-2, rgba(255,255,255,.025));
    cursor:pointer;
    transition:border-color .18s, background .18s, box-shadow .18s;
}
.px-bot-payment-redesign .px-mode-option:hover {
    border-color:color-mix(in srgb, var(--accent) 55%, var(--border));
}
.px-bot-payment-redesign .px-mode-option:has(input:checked) {
    border-color:var(--accent);
    background:color-mix(in srgb, var(--accent) 9%, var(--surface));
    box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.px-bot-payment-redesign .px-mode-option > input {
    flex:0 0 auto;
    width:16px;
    height:16px;
    margin:2px 0 0;
    accent-color:var(--accent);
}
.px-mode-card-content { display:flex; flex:1; flex-direction:column; gap:8px; min-width:0; }
.px-mode-card-title {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.px-mode-card-title strong {
    color:var(--text);
    font-size:13px;
    line-height:1.35;
    font-weight:750;
}
.px-mode-card-content small {
    color:var(--muted);
    font-size:11px;
    line-height:1.5;
}
.px-mode-radio { display:none; }
.px-bot-settings-stack {
    display:flex;
    flex-direction:column;
    gap:14px;
}
.px-bot-payment-redesign .px-payment-field {
    display:flex;
    flex-direction:column;
    gap:7px;
    min-width:0;
    color:var(--text);
    font-size:12px;
    font-weight:650;
}
.px-field-label {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    width:100%;
    min-height:18px;
    font-size:12px;
    font-weight:700;
}
.px-field-unit { margin-left:auto; color:var(--muted); font-size:11px; }
.px-bot-payment-redesign .px-payment-field input,
.px-bot-payment-redesign .px-payment-field select {
    width:100%;
    min-height:42px;
    padding:9px 12px;
    border-radius:10px;
    font-size:13px;
}
.px-bot-payment-redesign .px-price-input {
    position:relative;
    display:flex;
    align-items:center;
}
.px-bot-payment-redesign .px-price-input input { padding-right:38px; }
.px-bot-payment-redesign .px-price-input > span {
    position:absolute;
    right:13px;
    color:var(--muted);
    font-size:12px;
    pointer-events:none;
}
.px-bot-payment-redesign .px-account-field .px-payment-account-link {
    display:inline-flex;
    align-items:center;
    align-self:flex-start;
    gap:7px;
    margin-top:1px;
    color:var(--accent);
    font-size:11px;
    font-weight:650;
    text-decoration:none;
}
.px-bot-payment-redesign .px-account-field .px-payment-account-link:hover { text-decoration:underline; }
.px-bot-payment-redesign .px-bot-queue-settings {
    margin-top:16px;
    padding:14px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--surface-2, rgba(255,255,255,.025));
}
.px-bot-payment-redesign .px-bot-section-title {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
}
.px-bot-payment-redesign .px-bot-section-title > div {
    display:flex;
    flex-direction:column;
    gap:3px;
}
.px-bot-payment-redesign .px-bot-section-title strong {
    font-size:13px;
    font-weight:750;
}
.px-bot-payment-redesign .px-bot-section-title span {
    color:var(--muted);
    font-size:11px;
    font-weight:400;
}
.px-bot-payment-redesign .px-settings-grid-two {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.px-bot-payment-redesign .px-settings-grid-two .px-payment-field { font-size:11px; }
.px-bot-payment-redesign .px-bot-paid-delay-field { margin-top:15px; }
.px-bot-payment-redesign .px-bot-payment-actions {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    margin-top:18px;
    padding-top:15px;
    border-top:1px solid var(--border);
}
.px-bot-payment-redesign .px-bot-payment-actions > span {
    flex:1;
    color:var(--muted);
    font-size:10px;
}
.px-bot-payment-redesign .px-bot-payment-actions .button {
    min-height:40px;
    padding:9px 15px;
    border-radius:9px;
    font-size:12px;
}
.px-bot-payment-disclaimer {
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:13px;
    color:var(--muted);
    font-size:10px;
    line-height:1.4;
}
.px-info-tip {
    flex:0 0 18px;
    width:18px;
    height:18px;
    margin-left:auto;
}
.px-info-tip svg { width:15px; height:15px; }
.px-info-tip::after {
    left:auto;
    right:0;
    bottom:calc(100% + 9px);
    max-width:min(280px,75vw);
    transform:translateY(3px);
}
.px-info-tip:hover::after,
.px-info-tip:focus-visible::after,
.px-info-tip.is-open::after { transform:translateY(0); }
@media(max-width:1050px) {
    .px-bot-redesign { grid-template-columns:1fr; align-items:stretch; }
}
@media(max-width:620px) {
    .px-bot-redesign .px-bot-connection-panel,
    .px-bot-redesign .px-bot-payment-panel { padding:15px; }
    .px-bot-payment-redesign .px-payment-mode-grid { grid-template-columns:1fr; }
    .px-bot-payment-redesign .px-mode-option { min-height:0; }
    .px-bot-payment-redesign .px-settings-grid-two { grid-template-columns:1fr 1fr; }
    .px-bot-connect-actions .button-outline { margin-left:0; }
}

/* Right column refinement: compact choices, readable labels, natural card height */
.px-bot-payment-redesign {
    align-self:start;
    height:auto;
    min-height:0;
}
.px-bot-payment-redesign .px-redesign-card-heading {
    margin-bottom:14px;
    padding-bottom:12px;
    border-bottom:1px solid var(--border);
}
.px-bot-payment-redesign .px-payment-mode-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin:0 0 17px;
}
.px-bot-payment-redesign .px-mode-option {
    min-height:0;
    height:auto;
    padding:12px 13px;
    align-items:center;
    gap:9px;
    border-radius:10px;
}
.px-bot-payment-redesign .px-mode-option > input {
    width:16px;
    height:16px;
    margin:0;
}
.px-bot-payment-redesign .px-mode-card-content {
    justify-content:center;
    gap:5px;
}
.px-bot-payment-redesign .px-mode-card-title {
    justify-content:flex-start;
    min-height:20px;
}
.px-bot-payment-redesign .px-mode-card-title strong {
    font-size:14px;
    line-height:1.35;
    letter-spacing:-.01em;
}
.px-bot-payment-redesign .px-mode-card-content small {
    display:block;
    font-size:11px;
    line-height:1.4;
}
.px-bot-payment-redesign .px-bot-settings-stack {
    display:flex;
    flex-direction:column;
    gap:13px;
}
.px-bot-payment-redesign .px-payment-field {
    gap:6px;
}
.px-bot-payment-redesign .px-field-label {
    min-height:20px;
    justify-content:space-between;
    font-size:12px;
    line-height:1.35;
}
.px-field-tools {
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-left:auto;
}
.px-bot-payment-redesign .px-payment-field input,
.px-bot-payment-redesign .px-payment-field select {
    min-height:40px;
    font-size:13px;
}
.px-bot-payment-redesign .px-price-input {
    width:100%;
}
.px-bot-payment-redesign .px-price-input input {
    width:100%;
}
.px-bot-payment-redesign .px-account-field .px-payment-account-link {
    margin-top:2px;
    font-size:11px;
}
.px-bot-payment-redesign .px-bot-queue-settings {
    margin-top:15px;
    padding:12px 13px;
}
.px-bot-payment-redesign .px-bot-section-title {
    margin-bottom:10px;
}
.px-bot-payment-redesign .px-bot-section-title strong {
    font-size:13px;
}
.px-bot-payment-redesign .px-settings-grid-two {
    gap:9px;
}
.px-bot-payment-redesign .px-settings-grid-two .px-payment-field {
    font-size:11px;
}
.px-bot-payment-redesign .px-settings-grid-two input {
    min-height:38px;
}
.px-bot-payment-redesign .px-bot-paid-delay-field {
    margin-top:14px;
}
.px-bot-payment-redesign .px-bot-payment-actions {
    margin-top:16px;
    padding-top:13px;
}
.px-bot-payment-redesign .px-bot-payment-disclaimer {
    justify-content:flex-end;
    margin-top:10px;
    font-size:10px;
}
.px-bot-payment-redesign .px-info-tip {
    align-self:center;
    margin:0;
}
.px-bot-payment-redesign .px-info-tip::after {
    right:0;
    left:auto;
    transform:translateY(3px);
}
.px-bot-payment-redesign .px-info-tip:hover::after,
.px-bot-payment-redesign .px-info-tip:focus-visible::after,
.px-bot-payment-redesign .px-info-tip.is-open::after {
    transform:translateY(0);
}
@media(max-width:620px) {
    .px-bot-payment-redesign .px-payment-mode-grid {
        grid-template-columns:1fr;
    }
    .px-bot-payment-redesign .px-mode-option {
        padding:12px;
    }
}


/* Compact symmetric layout for VK bot settings */
.px-bot-redesign {
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:16px;
}
.px-bot-redesign > .px-bot-connection-panel,
.px-bot-redesign > .px-bot-publishing-column {
    display:flex;
    min-width:0;
    height:100%;
}
.px-bot-redesign .px-bot-payment-panel {
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    height:100%;
    padding:18px;
}
.px-bot-payment-redesign .px-redesign-card-heading {
    margin-bottom:12px;
    padding-bottom:10px;
}
.px-bot-payment-redesign .px-payment-mode-grid.px-mode-compact {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:0 0 14px;
}
.px-bot-payment-redesign .px-mode-compact .px-mode-option {
    display:flex;
    align-items:center;
    min-height:48px;
    padding:9px 11px;
    gap:8px;
    border-radius:9px;
}
.px-bot-payment-redesign .px-mode-compact .px-mode-card-content {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    width:100%;
}
.px-bot-payment-redesign .px-mode-compact .px-mode-card-content strong {
    font-size:12px;
    line-height:1.3;
    font-weight:750;
}
.px-bot-payment-redesign .px-mode-compact .px-info-tip {
    flex:0 0 18px;
    margin-left:auto;
}
.px-bot-payment-redesign .px-bot-numeric-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    align-items:end;
    gap:8px;
    margin:0 0 14px;
}
.px-bot-payment-redesign .px-bot-numeric-grid .px-payment-field {
    display:flex;
    flex-direction:column;
    min-width:0;
    gap:6px;
    font-size:10px;
}
.px-bot-payment-redesign .px-bot-numeric-grid .px-field-label {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:4px;
    min-height:28px;
    font-size:10px;
    line-height:1.25;
}
.px-bot-payment-redesign .px-bot-numeric-grid .px-info-tip {
    flex:0 0 15px;
    width:15px;
    height:15px;
}
.px-bot-payment-redesign .px-bot-numeric-grid .px-info-tip svg {
    width:13px;
    height:13px;
}
.px-bot-payment-redesign .px-bot-numeric-grid input {
    width:100%;
    min-width:0;
    min-height:38px;
    padding:8px 9px;
    font-size:12px;
}
.px-bot-payment-redesign .px-bot-account-row {
    display:flex;
    flex-direction:column;
    gap:6px;
    padding-top:12px;
    border-top:1px solid var(--border);
}
.px-bot-payment-redesign .px-bot-account-row select {
    min-height:39px;
}
.px-bot-payment-redesign .px-bot-account-row .px-payment-account-link {
    margin-top:0;
}
.px-bot-payment-redesign .px-bot-payment-actions {
    margin-top:auto;
    padding-top:12px;
}
.px-bot-payment-redesign .px-bot-payment-disclaimer {
    margin-top:8px;
}
.px-bot-payment-redesign .px-bot-payment-actions > span { display:none; }
@media(max-width:1180px) and (min-width:1051px) {
    .px-bot-payment-redesign .px-bot-numeric-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:1050px) {
    .px-bot-redesign {
        grid-template-columns:1fr;
        align-items:stretch;
    }
    .px-bot-redesign > .px-bot-connection-panel,
    .px-bot-redesign > .px-bot-publishing-column,
    .px-bot-redesign .px-bot-payment-panel {
        height:auto;
    }
}
@media(max-width:620px) {
    .px-bot-payment-redesign .px-bot-numeric-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .px-bot-payment-redesign .px-mode-compact .px-mode-option {
        min-height:44px;
    }
}

.px-bot-redesign .px-bot-publishing-column #pxBotPaymentsMount {
    display:flex;
    flex:1 1 auto;
    min-width:0;
}
.px-bot-redesign .px-bot-publishing-column .px-bot-payment-panel {
    width:100%;
}


/* PosterX hotfix 2026-11-08: keep community publication filters aligned with active theme. */
html[data-theme="light"] .px-community-post-toolbar,
html[data-theme="light"] .px-community-post-toolbar label {
    color: var(--text, #1c2940);
}
html[data-theme="light"] .px-community-post-toolbar {
    background: #ffffff;
    border-color: var(--border, #e2e8f2);
}
html[data-theme="light"] .px-community-post-toolbar input,
html[data-theme="light"] .px-community-post-toolbar select {
    color: var(--text, #1c2940) !important;
    background: var(--surface-2, #f5f8fd) !important;
    border-color: var(--border, #e2e8f2) !important;
    color-scheme: light;
}
html[data-theme="light"] .px-community-post-toolbar input::placeholder {
    color: var(--muted, #6f7d93);
    opacity: 1;
}

/* PosterX Fix 3 — community identity header in the light theme.
   Keep the same geometry and hierarchy; replace dark fallback surfaces with light tokens. */
html[data-theme="light"] .px-community-sticky-header {
  background: rgba(255,255,255,.96) !important;
  border-color: #dce5f0 !important;
  box-shadow: 0 10px 28px rgba(35,55,85,.09) !important;
  color: #1c2940 !important;
  backdrop-filter: blur(16px);
}
html[data-theme="light"] .px-community-sticky-name strong,
html[data-theme="light"] .px-community-sticky-identity .px-community-sticky-name strong {
  color: #1c2940 !important;
}
html[data-theme="light"] .px-community-sticky-name span {
  color: #718097 !important;
}
html[data-theme="light"] .px-community-sticky-avatar {
  background: #edf3fa !important;
  color: #1878ee !important;
  border: 1px solid #e2eaf4;
}
html[data-theme="light"] .px-community-sticky-clock {
  background: linear-gradient(135deg,#f7faff,#f2f8ff) !important;
  border: 1px solid #dce6f2 !important;
  box-shadow: 0 2px 8px rgba(35,65,105,.04) !important;
}
html[data-theme="light"] .px-clock-icon {
  background: #e5f8f0 !important;
  color: #0eaa70 !important;
}
html[data-theme="light"] .px-clock-caption {
  color: #77869b !important;
}
html[data-theme="light"] .px-clock-trigger strong,
html[data-theme="light"] .px-clock-trigger.clock-style-digital strong,
html[data-theme="light"] .px-clock-trigger.clock-style-minimal strong,
html[data-theme="light"] .px-clock-trigger.clock-style-glow strong {
  color: #26364d !important;
  text-shadow: none !important;
}
html[data-theme="light"] .px-clock-trigger span,
html[data-theme="light"] .px-clock-trigger small,
html[data-theme="light"] .px-clock-trigger .px-clock-zone-label {
  color: #718097 !important;
}
html[data-theme="light"] .px-clock-trigger:hover {
  background: rgba(24,120,238,.045) !important;
}
html[data-theme="light"] .px-community-sticky-clock [data-clock-zone] {
  background: #fff !important;
  border-color: #dce5f0 !important;
  color: #1c2940 !important;
  box-shadow: 0 14px 36px rgba(30,55,90,.16) !important;
}
html[data-theme="light"] .px-community-sticky-actions .button.button-outline {
  background: #fff !important;
  border-color: #d4deeb !important;
  color: #31506f !important;
}
html[data-theme="light"] .px-community-sticky-actions .button.button-outline:hover {
  background: #f1f6fd !important;
  border-color: #1878ee !important;
  color: #1769d2 !important;
}
@media (max-width:850px) {
  html[data-theme="light"] .px-community-sticky-clock {
    border-color: #dce6f2 !important;
  }
}
