/* ─── Create post button ─── */
    .wall-head-bottom {
      display: flex; align-items: center; justify-content: space-between;
      padding-bottom: 12px;
    }
    .wall-create-btn {
      display: flex; align-items: center; gap: 5px;
      padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
      background: var(--accent); color: #fff; border: none; cursor: pointer;
      transition: opacity .15s, transform .15s var(--ease);
      box-shadow: 0 4px 14px var(--accent-soft);
    }
    .wall-create-btn:hover { opacity: .88; transform: translateY(-1px); }
    .wall-create-btn i { font-size: 14px; }

    /* ─── Post creation modal ─── */
    .pub-tab-row {
      display: flex; gap: 0;
      background: var(--bg3); border-radius: 9px; padding: 3px;
      margin-bottom: 14px;
    }
    .pub-tab {
      flex: 1; padding: 7px 10px; border-radius: 7px; border: none;
      background: none; color: var(--muted); font-size: 12.5px; font-weight: 500;
      cursor: pointer; transition: background .13s, color .13s; font-family: inherit;
    }
    .pub-tab.active { background: var(--bg4); color: var(--text); }
    .post-textarea {
      width: 100%; min-height: 120px; resize: vertical;
      background: var(--bg3); border: 1px solid var(--border); border-radius: 9px;
      padding: 10px 12px; color: var(--text); font-family: inherit;
      font-size: 13.5px; line-height: 1.5; outline: none; box-sizing: border-box;
      transition: border-color .15s;
    }
    .post-textarea:focus { border-color: var(--accent); }
    .schedule-row {
      margin-top: 12px; display: flex; flex-direction: column; gap: 5px;
    }
    .schedule-label {
      font-size: 11.5px; color: var(--muted); font-weight: 500;
    }
    .schedule-input {
      background: var(--bg3); border: 1px solid var(--border); border-radius: 9px;
      padding: 9px 12px; color: var(--text); font-family: inherit; font-size: 13px;
      outline: none; transition: border-color .15s;
      color-scheme: dark;
    }
    .schedule-input:focus { border-color: var(--accent); }
    .post-counter { font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px; }
    .post-submit-status { font-size: 12px; color: var(--muted); min-height: 16px; margin-top: 4px; }
    /* ─── Wall section ─── */
    .wall-pane {
      display: flex; flex-direction: column;
      height: 100%; min-height: 0;
      overflow: hidden;
      grid-column: 2 / 4;
    }
    .wall-head {
      flex-shrink: 0;
      border-bottom: 1px solid var(--border);
      background: var(--surface);
    }
    .wall-head-inner {
      max-width: 640px;
      margin: 0 auto;
      padding: 16px 16px 0;
      display: flex; flex-direction: column; gap: 10px;
    }
    .wall-tabs { display: flex; gap: 3px; }
    .wtab {
      padding: 7px 14px; background: transparent; border: none; border-radius: 18px;
      color: var(--muted); font-size: 13px; font-weight: 500;
      transition: background .12s, color .12s;
    }
    .wtab.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
    .wtab:hover:not(.active) { background: rgba(255,255,255,.06); color: var(--text); }

    /* ── Feed scroll container ── */
    .wall-scroll {
      flex: 1; min-height: 0;
      overflow-y: auto; overflow-x: hidden;
      background: var(--bg2);
    }
    /* ── Centered 640px column ── */
    .wall-feed {
      max-width: 640px;
      width: 100%;
      margin: 0 auto;
      padding: 12px 0 40px;
      display: flex; flex-direction: column; gap: 8px;
    }

    /* ── Post card ── */
    .wall-card {
      background: var(--bg);
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.07);
      overflow: hidden;
      transition: box-shadow .18s;
    }
    .wall-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.25); }

    /* Card top padding block */
    .wc-inner { padding: 12px 14px 10px; }

    /* Head row: avatar + meta + menu */
    .wc-head {
      display: flex; align-items: center; gap: 9px;
      margin-bottom: 8px;
    }
    .wc-ava-wrap {
      width: 36px; height: 36px; border-radius: 50%;
      overflow: hidden; flex-shrink: 0; background: var(--bg4);
    }
    .wc-ava { width: 100%; height: 100%; object-fit: cover; display: block; }
    .wc-ava-ph {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700; color: var(--muted);
    }
    .wc-meta { flex: 1; min-width: 0; }
    .wc-name {
      font-size: 13px; font-weight: 600; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      line-height: 1.2;
    }
    .wc-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .wc-menu-btn {
      width: 26px; height: 26px; border-radius: 7px;
      border: none; background: none; color: var(--muted);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 15px; flex-shrink: 0;
      transition: background .12s, color .12s;
    }
    .wc-menu-btn:hover { background: rgba(255,255,255,.07); color: var(--text); }

    /* Post text */
    .wc-text {
      font-size: 13.5px; line-height: 1.5; color: var(--text);
      white-space: pre-wrap; word-break: break-word;
      margin-bottom: 0;
    }
    .wc-text-collapsed {
      max-height: 90px; overflow: hidden;
      -webkit-mask-image: linear-gradient(180deg, #fff 50%, transparent);
      mask-image: linear-gradient(180deg, #fff 50%, transparent);
    }
    .wc-expand {
      display: inline-block; font-size: 12.5px; color: var(--accent);
      cursor: pointer; background: none; border: none;
      padding: 4px 0 0; line-height: 1;
    }
    .wc-expand:hover { text-decoration: underline; }

    /* Photos — full card width, sit between wc-inner and wc-actions */
    .wall-photos { display: grid; gap: 2px; width: 100%; overflow: hidden; }
    .wall-photos.has-text { margin-top: 10px; }    /* gap if text above */
    .wall-photos.n1 { grid-template-columns: 1fr; }
    .wall-photos.n2 { grid-template-columns: 1fr 1fr; }
    .wall-photos.n3 { grid-template-columns: 1fr 1fr; }
    .wall-photos.n4 { grid-template-columns: 1fr 1fr; }

    .wall-photo { overflow: hidden; cursor: pointer; }
    /* Single photo: full natural height */
    .wall-photos.n1 .wall-photo img {
      display: block; width: 100%; height: auto; max-height: 640px;
      object-fit: contain; background: #000;
      transition: filter .18s;
    }
    /* Multi: cover crop, fixed height */
    .wall-photos.n2 .wall-photo,
    .wall-photos.n4 .wall-photo { height: 220px; }
    .wall-photos.n3 .wall-photo:first-child { grid-column: 1/-1; height: 240px; }
    .wall-photos.n3 .wall-photo:not(:first-child) { height: 160px; }
    .wall-photos:not(.n1) .wall-photo img {
      display: block; width: 100%; height: 100%;
      object-fit: cover; transition: filter .18s;
    }
    .wall-photo:hover img { filter: brightness(1.07); }

    /* Action bar */
    .wc-actions {
      display: flex; align-items: center; gap: 0;
      padding: 3px 6px 8px;
      border-top: 1px solid rgba(255,255,255,.05);
      margin-top: 6px;
    }
    .wc-action {
      display: flex; align-items: center; gap: 5px;
      padding: 6px 8px; border-radius: 7px;
      background: none; border: none; color: var(--muted);
      font-size: 12.5px; font-family: inherit; cursor: pointer;
      transition: background .12s, color .12s;
    }
    .wc-action:hover { background: rgba(255,255,255,.05); color: var(--text); }
    .wc-action.like:hover, .wc-action.liked { color: #e44; }
    .wc-action i { font-size: 16px; line-height: 1; }
    .wc-views {
      margin-left: auto; display: flex; align-items: center; gap: 4px;
      color: var(--muted); font-size: 12px; padding: 6px 6px;
    }
    .wc-views i { font-size: 15px; }

    /* Infinite scroll loader */
    .wall-load-more {
      padding: 16px; text-align: center; color: var(--muted);
      font-size: 12.5px; display: flex; align-items: center;
      justify-content: center; gap: 7px;
    }
    .wall-scroll .list-empty, .wall-scroll .list-loading {
      padding: 40px 20px; text-align: center; max-width: 640px; margin: 0 auto;
    }
