
/* PosterX publication UX refinement */
.pxp-option-chips{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.pxp-option-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border:1px solid var(--border,#dbe3ef);border-radius:7px;background:var(--surface-2,#f5f7fb);color:var(--text,#24344b);font-size:10px;font-weight:650;white-space:nowrap}
.pxp-option-chip svg{width:12px;height:12px;color:var(--accent,#2878ee)}
.pxp-option-chip.is-muted{color:var(--muted,#8290a4)}
.pxp-cell-material .pxp-material-open{align-items:flex-start}
.pxp-data-table td{vertical-align:middle}
.pxp-target-local-time{display:block;min-width:110px}
.pxp-target-local-time small{display:block;color:var(--muted,#7c8ba1);font-size:11px;white-space:nowrap}
.pxp-preview-media{display:grid;gap:6px;margin:12px 0;overflow:hidden}
.pxp-preview-media.is-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pxp-preview-media.is-grid img{width:100%;height:150px;object-fit:cover;border-radius:9px;border:1px solid var(--border,#dbe3ef)}
.pxp-preview-media.is-grid img:first-child:nth-last-child(1){grid-column:1/-1;height:auto;max-height:320px;aspect-ratio:16/10}
.pxp-preview-media.is-carousel{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 0 8px}
.pxp-preview-media.is-carousel img{flex:0 0 82%;width:82%;height:220px;object-fit:cover;border-radius:10px;border:1px solid var(--border,#dbe3ef);scroll-snap-align:start}
.pxp-preview-files{display:grid;gap:6px;margin:8px 0}
.pxp-preview-file{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid var(--border,#dbe3ef);border-radius:8px;color:var(--text,#26364d);background:var(--surface-2,#f7f9fc);font-size:11px;overflow-wrap:anywhere}
.pxp-preview-file svg{width:17px;height:17px;flex:0 0 17px;color:var(--accent,#2878ee)}
.pxp-publish-options-card{margin-top:12px;padding:16px}
.pxp-publish-options-card .pxp-side-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.pxp-publish-options-card .pxp-side-head h3{margin:0;font-size:15px}
.pxp-publish-options-card .pxp-side-head p{margin:4px 0 0;color:var(--muted,#8290a4);font-size:11px}
.pxp-publish-options-visible{display:grid;grid-template-columns:1fr;gap:7px}
.pxp-publish-options-visible label{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--border,#dbe3ef);border-radius:9px;background:var(--surface-2,#f7f9fc);cursor:pointer}
.pxp-publish-options-visible label input{flex:0 0 auto;width:16px;height:16px;accent-color:var(--accent,#2878ee)}
.pxp-publish-options-visible label span{display:flex;flex-direction:column;gap:2px}
.pxp-publish-options-visible label b{font-size:12px;color:var(--text,#26364d)}
.pxp-publish-options-visible label small{font-size:10px;color:var(--muted,#8290a4)}
.pxp-publish-options-card .pxp-api-note{display:block;margin-top:10px;line-height:1.45}
.pxp-composer-aside .pxp-composer-preview-card{position:relative}
.pxp-media-file-preview img{width:100%;height:100%;object-fit:cover;border-radius:7px}
.pxp-community-publications .pxp-preview-media{max-width:100%}
html[data-theme="light"] .pxp-option-chip,
html[data-theme="light"] .pxp-preview-file,
html[data-theme="light"] .pxp-publish-options-visible label{color:#26364d;background:#f7f9fc;border-color:#dce4ef}
html[data-theme="light"] .pxp-publish-options-visible label b{color:#26364d}
html[data-theme="light"] .pxp-publish-options-card{background:#fff;border-color:#dce4ef}
@media(max-width:760px){
 .pxp-preview-media.is-grid img{height:120px}
 .pxp-preview-media.is-carousel img{flex-basis:88%;width:88%;height:190px}
}

/* Final composer layout: explicit timezone, quiet options, attachments grouped together */
.pxp-timezone-field{margin-top:9px}
.pxp-timezone-field select{width:100%;min-height:38px}
.pxp-timezone-hint{display:block;margin-top:6px;color:var(--muted,#8290a4);font-size:10px;line-height:1.45}
.pxp-publish-options-details{margin-top:10px}
.pxp-publish-options-details>summary{display:flex;align-items:center;gap:7px;min-height:34px;font-size:12px;font-weight:650}
.pxp-publish-options-details>summary svg{width:14px;height:14px;color:var(--accent,#2878ee)}
.pxp-publish-options-details .pxp-publish-options-visible{display:flex;flex-wrap:wrap;gap:7px;padding:10px 2px 3px}
.pxp-publish-options-details .pxp-publish-options-visible label{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid var(--border,#dce4ef);border-radius:8px;background:var(--surface-2,#f7f9fc);font-size:11px;cursor:pointer}
.pxp-publish-options-details .pxp-publish-options-visible label span{font-size:11px;font-weight:600}
.pxp-publish-options-details .pxp-publish-options-visible label input{width:14px;height:14px;margin:0;accent-color:var(--accent,#2878ee)}
.pxp-publish-options-details .pxp-api-note{display:block;margin-top:7px;font-size:10px;color:var(--muted,#8290a4)}
.pxp-attachment-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 10px;padding:9px;border:1px solid var(--border,#dce4ef);border-radius:10px;background:var(--surface-2,#f7f9fc)}
.pxp-attachment-actions button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:7px 10px;border:1px solid var(--border,#dce4ef);border-radius:8px;background:var(--surface,#fff);color:var(--text,#26364d);font-size:11px;font-weight:650;cursor:pointer}
.pxp-attachment-actions button:hover{border-color:var(--accent,#2878ee);color:var(--accent,#2878ee)}
.pxp-attachment-actions button svg{width:14px;height:14px}
.pxp-composer-preview-media.is-single img{display:block;width:100%;max-height:300px;object-fit:contain;border-radius:9px}
.pxp-composer-preview-files{display:grid;gap:6px;margin:8px 0 12px}
.pxp-composer-preview-file{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 11px;border:1px solid var(--border,#dce4ef);border-radius:8px;background:var(--surface-2,#f7f9fc);color:var(--text,#26364d);font-size:11px}
.pxp-composer-preview-file>svg{width:17px;height:17px;flex:0 0 17px;color:var(--accent,#2878ee)}
.pxp-composer-preview-file span{min-width:0;overflow-wrap:anywhere}
.pxp-composer-preview-file small{margin-left:auto;color:var(--muted,#8290a4);white-space:nowrap}
.pxp-composer-preview-videos{display:grid;gap:8px;margin:10px 0}
.pxp-composer-preview-videos video{width:100%;max-height:280px;border-radius:9px;background:#111}
html[data-theme="light"] .pxp-publish-options-details .pxp-publish-options-visible label,
html[data-theme="light"] .pxp-attachment-actions{background:#f7f9fc;border-color:#dce4ef}
html[data-theme="light"] .pxp-attachment-actions button{background:#fff;color:#26364d;border-color:#dce4ef}
html[data-theme="light"] .pxp-composer-preview-file{background:#f7f9fc;border-color:#dce4ef;color:#26364d}
@media(max-width:640px){.pxp-attachment-actions{gap:5px}.pxp-attachment-actions button{flex:1 1 calc(33.333% - 5px);justify-content:center}.pxp-publish-options-details .pxp-publish-options-visible label{flex:1 1 calc(50% - 7px)}}

/* Scheduling mode: Moscow instant or each community's local wall clock */
.pxp-schedule-mode{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.pxp-schedule-mode>span{font-size:11px;font-weight:650;color:var(--text,#26364d)}
.pxp-schedule-mode>div{display:flex;gap:6px}
.pxp-schedule-mode button{flex:1;min-height:34px;padding:7px 10px;border:1px solid var(--border,#dce4ef);border-radius:8px;background:var(--surface-2,#f7f9fc);color:var(--text,#26364d);font-size:11px;font-weight:650;cursor:pointer}
.pxp-schedule-mode button.is-active{background:rgba(40,120,238,.12);border-color:var(--accent,#2878ee);color:var(--accent,#2878ee)}
.pxp-publish-options-details .pxp-publish-options-visible label span{display:inline-flex;align-items:center;gap:6px}
.pxp-publish-options-details .pxp-publish-options-visible label span svg{width:14px;height:14px;color:var(--muted,#8290a4);flex:0 0 14px}
.pxp-publish-options-details .pxp-publish-options-visible label:has(input:checked) span svg{color:var(--accent,#2878ee)}
html[data-theme="light"] .pxp-schedule-mode button{background:#f7f9fc;color:#26364d;border-color:#dce4ef}
html[data-theme="light"] .pxp-schedule-mode button.is-active{background:#eaf2ff;color:#1769d2;border-color:#2878ee}


/* Per-community publication rows and elapsed schedule state */
.pxp-data-table tr.is-time-elapsed{opacity:.55;background:var(--surface-2,#f4f6f9)}
.pxp-data-table tr.is-time-elapsed td{color:var(--muted,#8994a8)}
.pxp-time-elapsed-note{display:block;margin-top:4px;color:var(--muted,#8994a8);font-size:10px}
.pxp-community-single{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600}
.pxp-row-actions{gap:7px}
.pxp-row-actions .pxp-icon-action{width:28px;height:28px;min-width:28px;margin:0;padding:0;border:0!important;border-radius:7px;background:transparent!important;color:var(--muted,#8793a5);box-shadow:none!important}
.pxp-row-actions .pxp-icon-action svg{width:15px;height:15px;stroke-width:1.8}
.pxp-row-actions .pxp-icon-action:hover:not(:disabled){background:var(--surface-2,#f1f4f8)!important;color:var(--text,#26364d)}
.pxp-row-actions .pxp-icon-action.is-danger:hover:not(:disabled){background:rgba(220,53,69,.08)!important;color:#dc3545}
.pxp-row-actions .pxp-icon-action:disabled{opacity:.3;cursor:not-allowed}


/* PosterX publication workflow refinements.
   Scope is intentionally limited to publication list/editor; VK bot and account
   connection workspaces are not affected. */
.pxp-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.pxp-data-table { border-collapse: separate; border-spacing: 0; min-width: 980px; }
.pxp-data-table th { white-space: nowrap; }
.pxp-data-table td { vertical-align: middle; }
.pxp-data-table tbody tr { transition: background-color .16s ease, opacity .16s ease; }
.pxp-data-table tbody tr.is-time-elapsed { background: color-mix(in srgb, var(--text-muted, #8a8f98) 6%, transparent); }
.pxp-data-table tbody tr.is-time-elapsed td { color: var(--text-muted, #858b95); }
.pxp-data-table tbody tr.is-time-elapsed .pxp-material-open,
.pxp-data-table tbody tr.is-time-elapsed .pxp-cell-edit { color: inherit; }
.pxp-time-elapsed-note { display: block; margin-top: 4px; font-size: 11px; line-height: 1.35; opacity: .72; }
.pxp-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.pxp-row-actions .pxp-publish-now { min-height: 32px; padding: 6px 10px; font-size: 11px; opacity: .52; cursor: not-allowed; }
.pxp-row-actions .pxp-publish-now:disabled { pointer-events: none; }
.pxp-row-actions .pxp-icon-action {
    display: inline-grid; place-items: center; width: 32px; height: 32px;
    min-width: 32px; padding: 0; border: 1px solid transparent; border-radius: 9px;
    background: transparent; color: var(--text-secondary, #7b8491);
    box-shadow: none; transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.pxp-row-actions .pxp-icon-action svg { width: 15px; height: 15px; }
.pxp-row-actions .pxp-icon-action:hover:not(:disabled) {
    background: var(--surface-hover, rgba(127, 139, 156, .12));
    color: var(--text-primary, currentColor);
}
.pxp-row-actions .pxp-icon-action.is-danger:hover:not(:disabled) {
    background: rgba(220, 65, 65, .10); color: #d94b4b;
}
.pxp-row-actions .pxp-icon-action:disabled { opacity: .35; cursor: not-allowed; }
.pxp-community-single { display: inline-flex; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pxp-target-local-times { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.pxp-time-edit { min-width: 0; gap: 7px; }
.pxp-time-edit:disabled { cursor: default; opacity: .72; }
.pxp-composer-community-picker .pxp-community-choice:has(input:disabled) { cursor: default; }
.pxp-composer-community-picker .pxp-community-choice input:disabled + .pxp-choice-avatar { opacity: .95; }
.pxp-composer-community-picker .pxp-community-choice input:disabled ~ span,
.pxp-composer-community-picker .pxp-community-choice input:disabled ~ strong { opacity: 1; }
.pxp-composer-page .pxp-composer-card,
.pxp-composer-page .pxp-composer-preview-card,
.pxp-composer-page .pxp-composer-side-settings { min-width: 0; }
.pxp-composer-page textarea#pxpPublicationText { resize: vertical; min-height: 230px; line-height: 1.65; }
.pxp-composer-page button:focus-visible,
.pxp-publications-page button:focus-visible { outline: 2px solid var(--accent, #5688ef); outline-offset: 2px; }

@media (max-width: 760px) {
    .pxp-data-table { min-width: 900px; }
    .pxp-row-actions { gap: 4px; }
    .pxp-row-actions .pxp-publish-now { max-width: 112px; white-space: normal; line-height: 1.2; }
    .pxp-row-actions .pxp-icon-action { width: 30px; height: 30px; min-width: 30px; }
    .pxp-composer-page textarea#pxpPublicationText { min-height: 190px; }
}


/* 2026-11-08: schedule-first publication table and prominent local time */
.pxp-data-table th:first-child,
.pxp-data-table td.pxp-cell-schedule {
    min-width: 190px;
    width: 210px;
}
.pxp-cell-schedule .pxp-time-edit {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 76px;
    padding: 10px 12px;
    border: 1px solid var(--border, #dce4f0);
    border-radius: 12px;
    background: var(--surface, #fff);
    color: var(--text, #17243a);
    text-align: left;
}
.pxp-cell-schedule .pxp-time-edit > i:first-child {
    flex: 0 0 auto;
    color: var(--primary, #2878f0);
}
.pxp-cell-schedule .pxp-time-edit > i:last-child {
    flex: 0 0 auto;
    margin-left: auto;
    opacity: .55;
}
.pxp-target-local-times { display:flex; flex-direction:column; gap:2px; min-width:0; }
.pxp-target-local-time { display:flex; flex-direction:column; gap:2px; min-width:0; }
.pxp-target-local-time b {
    color: var(--text, #14233c);
    font-size: 19px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}
.pxp-target-local-time strong {
    color: var(--text, #26364f);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}
.pxp-target-local-time small {
    color: var(--muted, #718096);
    font-size: 10px;
    line-height: 1.25;
}
.pxp-cell-schedule .pxp-time-edit:hover:not(:disabled) {
    border-color: var(--primary, #2878f0);
    background: var(--surface-2, #f7faff);
}
.pxp-cell-schedule .pxp-time-edit:disabled { cursor:not-allowed; opacity:.72; }
.pxp-option-chip [data-lucide="images"] { width:14px; height:14px; }
@media (max-width: 900px) {
    .pxp-data-table th:first-child,
    .pxp-data-table td.pxp-cell-schedule { min-width:160px; width:170px; }
    .pxp-cell-schedule .pxp-time-edit { padding:8px; gap:6px; }
    .pxp-target-local-time b { font-size:17px; }
}
