/* Publishing workspace: controls and content, using the selected Adminova design. */
#secWall .wall-head { border:0; }
#secWall .wall-head-inner { padding:0; gap:0; }
#secWall .wall-scroll { padding:0; background:var(--bg); overscroll-behavior-y:contain; }
#secWall .community-wall-surface { max-width:640px; margin:0 auto; border:0; border-radius:0; background:transparent; }
#secWall .community-wall-block { background:var(--surface); border-radius:20px; margin-bottom:8px; overflow:hidden; }
#secWall .community-wall-publish { display:flex; flex-direction:column; gap:10px; padding:12px; overflow:visible; }
#secWall .community-wall-publish .wall-create-wrap { width:100%; }
#secWall .community-wall-publish .wall-create-btn { width:100%; min-height:44px; justify-content:center; border:0; border-radius:10px; background:#fff; color:#171717; font-size:15px; font-weight:600; }
#secWall .community-wall-publish .wall-create-btn > .ti-plus { font-size:23px; }
#secWall .community-wall-publish .wall-create-chevron { display:none; }
#secWall .community-wall-planned { min-height:44px; padding:8px; border:0; border-radius:10px; background:var(--surface2); color:var(--text); font-size:15px; }
#secWall .community-wall-planned span { color:var(--muted); padding-left:5px; }
#secWall .community-wall-feed-head { margin-bottom:0; border-radius:20px 20px 0 0; }
#secWall .wall-content-tabs { display:flex; align-items:center; gap:2px; margin:0; padding:8px 12px; overflow-x:auto; scrollbar-width:none; }
#secWall .wall-content-tabs button { flex:0 0 auto; min-height:32px; padding:5px 9px; border:0; border-radius:9px; color:var(--muted); font-size:14px; font-weight:500; white-space:nowrap; background:transparent; }
#secWall .wall-content-tabs button[aria-selected="true"] { background:var(--surface2); color:var(--text); }
#secWall .wall-head-bottom { padding:0 12px 10px; border:0; }
#secWall .wall-content-body { background:var(--surface); }
#secWall .wall-feed { display:flex; flex-direction:column; gap:8px; background:var(--bg); }
#secWall .wall-card { margin:0; border:0; border-radius:0 0 20px 20px; box-shadow:none; }
#secWall .wall-card + .wall-card { border-radius:20px; }
#secWall .wc-inner { padding:14px 12px 0; }
#secWall .wc-head { margin-bottom:12px; }
#secWall .wc-ava-wrap { width:30px; height:30px; flex:0 0 30px; }
#secWall .wc-name { font-size:14px; }
#secWall .wc-text { font-size:14px; line-height:1.45; }
#secWall .wall-photos.n4, #secWall .wall-photos.n3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
#secWall .wall-photos.n3 .wall-photo:first-child { grid-column:auto; }
#secWall .wall-photos.n3 .wall-photo, #secWall .wall-photos.n4 .wall-photo { height:auto; aspect-ratio:1; }
#secWall .community-wall-photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; }
#secWall .community-wall-photo-grid button { padding:0; border:0; aspect-ratio:1; overflow:hidden; background:var(--surface2); }
#secWall .community-wall-photo-grid img { width:100%; height:100%; object-fit:cover; }
#secWall .community-wall-photo-grid .list-empty { grid-column:1/-1; }
#secWall .community-wall-moments-grid button { aspect-ratio:9/16; }
#secWall .community-wall-notice { padding:12px; color:var(--muted); font-size:13px; }
#secWall .community-wall-notice button { border:0; background:transparent; color:var(--accent); font:inherit; }
#secWall .wall-video-grid { padding:12px; }
.wall-media-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px; }
.wall-media-toolbar .post-tool { min-height:40px; }
.wall-photo-cell { position:relative; min-width:0; }
#secWall .wall-photo-cell > button:first-child { display:block; width:100%; }
#secWall .wall-photo-cell .wall-photo-tools { position:absolute; right:4px; bottom:4px; width:40px; height:40px; aspect-ratio:auto; border-radius:8px; background:var(--surface); color:var(--text); font-size:22px; }
.wall-media-player { background:var(--surface2); }
.wall-media-player iframe { display:block; width:100%; aspect-ratio:16/9; border:0; }
.wall-media-player video, .wall-media-player img { display:block; width:100%; max-height:60dvh; object-fit:contain; }
.wall-media-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.wall-media-comment { padding:12px 0; border-bottom:1px solid var(--border); overflow-wrap:anywhere; }
.wall-album-row { display:flex; align-items:center; gap:4px; padding:6px 0; border-bottom:1px solid var(--border); }
.wall-album-row > button:first-child { flex:1; min-width:0; white-space:normal; text-align:left; justify-content:flex-start; overflow-wrap:anywhere; }
.wall-album-row button { min-height:44px; }
#secWall button.wall-video-card { min-width:0; padding:0; border:0; text-align:left; font:inherit; background:var(--surface); color:var(--text); cursor:pointer; }
.wall-post-attachments { display:grid; gap:8px; padding:0 12px; min-width:0; }
.wall-post-attachments:empty { display:none; }
.wall-post-attachments > * { max-width:100%; min-width:0; }
.wall-media-modal .adminova-modal-body { min-width:0; }
.post-creation-modal .post-editor-toolbar { flex-wrap:wrap; }
.post-media-input-row { display:flex; gap:6px; width:100%; min-width:0; }
.post-media-input-row input { width:0; min-width:0; }
.post-creation-modal .post-attachment-item > span { overflow:hidden; overflow-wrap:anywhere; padding:8px; font-size:12px; }
.wall-creator-field input[type="checkbox"] { width:18px; height:18px; padding:0; accent-color:var(--accent); }
@media (min-width:600px) and (min-height:600px) {
  #secWall .wall-head-inner { padding:12px 16px; }
  #secWall .wall-scroll { padding:16px; }
}
.wall-compact-tools { display:none; }
@media (max-width:599px), (max-width:999px) and (max-height:599px) {
  #secWall .wall-head { display:none; }
  .app.wall-page-scrolled .vk-topbar { grid-template-columns:minmax(0,1fr) !important; }
  .app.wall-page-scrolled .vk-topbar-community, .app.wall-page-scrolled .vk-topbar-heading,
  .app.wall-page-scrolled .topbar-search-toggle { display:none; }
  .app.wall-page-scrolled .vk-topbar-search { grid-column:1; display:flex; align-items:center; gap:10px; width:100%; padding:0 12px; }
  .app.wall-page-scrolled .vk-topbar .vk-global-search { display:flex; flex:1; min-width:0; height:36px; max-width:none; }
  .app.wall-page-scrolled .wall-compact-tools { display:flex; flex:0 0 auto; gap:10px; }
  .wall-compact-tools button, .wall-compact-tools a { display:grid; place-items:center; width:32px; height:40px; padding:0; border:0; background:transparent; color:var(--text); text-decoration:none; font-size:24px; }
  .app:not(.wall-page-scrolled) .wall-compact-tools { display:none; }
  .app.wall-page-scrolled.topbar-search-open .wall-compact-tools { display:none; }
}
