/* Wall feed — aligned with home/moner card system */

:root {
  --wall-gutter: 1rem;
  --wall-stack: 1rem;
}

body.wall-light {
  background: var(--moner-bg) !important;
  color: var(--moner-text) !important;
}

main:has(.wall-container) {
  max-width: var(--layout-wide, 87.5rem);
  margin: 0 auto;
  padding: 1.25rem var(--layout-gutter, 1rem) 2rem;
}

.wall-container {
  width: 100%;
}

.wall-layout {
  display: flex;
  margin: 0 auto;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

.wall-sidebar-column { flex: 0 0 280px; }
.wall-content { flex: 1 1 auto; min-width: 400px; }

.wall-banner-column,
.wall-settings-column { flex: 0 0 300px; max-width: 300px; }

/* Post cards — same surface language as home-nav-card / moner-card */
.wall-post-card {
  background: var(--moner-bg-card);
  border: 1px solid var(--moner-border);
  border-radius: var(--radius-card, 10px);
  overflow: hidden;
  margin-bottom: var(--wall-stack);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wall-post-card:hover { border-color: var(--moner-border-strong); }

body.wall-light .wall-post-card {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000000;
}

body.wall-light .wall-post-card:hover {
  border-color: var(--moner-red);
  box-shadow: 6px 6px 0 var(--moner-red);
}

.wall-post-card:last-child { margin-bottom: 0; }

.wall-post-header {
  padding: 0.85rem var(--wall-gutter);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--moner-border);
}

.wall-post-header-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.wall-post-header--lead {
  gap: 0.75rem;
}

.wall-post-header--lead .wall-create-btn.moner-btn {
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
}

/* Detached create bar — mobile only; desktop uses header inline button */
.wall-create-bar {
  display: none;
}

body.wall-light .wall-post-header { border-color: #e4e4e7; }

.wall-post-avatar-slot { flex-shrink: 0; }

.wall-post-avatar-slot img.user-avatar,
.wall-post-avatar-slot .user-avatar-placeholder,
.wall-post-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  margin-right: 0;
  flex-shrink: 0;
}

body.wall-light .user-avatar-placeholder.wall-post-avatar {
  background: var(--moner-bg-card, #1f1f23);
  color: #fff;
}

.wall-anon-avatar {
  width: 32px;
  height: 32px;
  background: #444;
  color: #aaa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

body.wall-light .wall-anon-avatar { background: #18181b; color: #fff; }

.wall-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--moner-border);
  border-radius: var(--radius-card, 10px);
  background: var(--moner-bg-card);
}

body.wall-light .wall-profile-head {
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  background: #fff;
}

.wall-profile-head-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.wall-profile-head-avatar {
  flex-shrink: 0;
}

.wall-profile-head-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.wall-profile-head-bio {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--moner-text-muted, #888);
  white-space: pre-wrap;
}

.wall-profile-head-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--moner-text-muted, #888);
}

.wall-profile-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.wall-profile-head-link,
.wall-profile-head-back {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--moner-text-muted, #888);
  text-decoration: none;
}

.wall-profile-head-link:hover,
.wall-profile-head-back:hover {
  color: var(--moner-red);
}

.wall-post-author { min-width: 0; }

.wall-post-username {
  display: inline-block;
  font-weight: 700;
  color: var(--moner-text);
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
}

body.wall-light .wall-post-username { color: var(--moner-text); }

.wall-post-profile-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wall-post-profile-link:hover {
  color: var(--moner-red);
}

.wall-post-avatar-link {
  display: inline-flex;
  border-radius: 50%;
}

.wall-post-avatar-link:focus-visible {
  outline: 2px solid var(--moner-red);
  outline-offset: 2px;
}

.wall-comment-author {
  font-weight: 700;
  margin-right: 0.2rem;
}

.wall-post-meta {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--moner-text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0.03em;
}

body.wall-light .wall-post-meta { color: #52525b; }

/* Post body text — readable, distinct from author name in header */
.wall-post-text {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: var(--moner-text);
}

body.wall-light .wall-post-text { color: var(--moner-text); }

.wall-post-content {
  padding: 1rem var(--wall-gutter) 0.85rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Caption under media (e.g. «Maria Sky») — same tone as body, not like a second nick */
.wall-post-caption {
  padding: 0.75rem var(--wall-gutter) 0.35rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

.wall-post-username .styled-username {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: inherit;
  text-transform: none;
}

.wall-comment-author .styled-username {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: inherit;
  text-transform: none;
}

/* Media */
.post-media-container { padding: 6px var(--wall-gutter); display: flex; justify-content: center; }

.post-media-grid { display: grid; gap: 4px; margin-bottom: 0; }
.post-media-grid.two { grid-template-columns: repeat(2, 1fr); }
.post-media-grid.three-up { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); }
.post-media-grid.three-up .media-item:first-child { grid-row: 1 / 3; }
.post-media-grid.four { grid-template-columns: repeat(2, 1fr); }
.post-media-grid.six-up { grid-template-columns: repeat(3, 1fr); }
.post-media-grid.nine-up { grid-template-columns: repeat(3, 1fr); }

.media-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.media-item.video-preview { aspect-ratio: 16/9; }
.media-video-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--moner-bg);
}
.post-media-grid .media-item.video-preview { aspect-ratio: 1/1; }

.media-item img,
.media-item video { width: 100%; height: 100%; object-fit: cover; }

.media-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  pointer-events: none;
}

.single-media {
  max-width: 600px;
  aspect-ratio: auto;
  margin: 0 auto;
  display: block;
}

.single-media img,
.single-media video {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  display: block;
}

.single-media.video-preview video { max-height: 70vh; }

.media-more-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  font-size: 11px;
}

/* Actions — flat bar on card surface, like home support cards */
.wall-post-actions {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem var(--wall-gutter) 0.65rem;
  border-top: 1px solid var(--moner-border);
  font-size: 0.82rem;
  background: transparent;
}

body.wall-light .wall-post-actions { border-color: #e4e4e7; }

.wall-post-action { flex: 1; text-align: center; min-width: 0; }
.wall-post-action + .wall-post-action { border-left: none; }

.wall-post-action-btn,
.wall-post-action-link,
.wall-post-action-static {
  display: block;
  width: 100%;
  padding: 0.5rem 0.35rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--moner-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  box-sizing: border-box;
}

.wall-post-action-static { cursor: default; }

.wall-post-action-btn:hover,
.wall-post-action-link:hover {
  background: color-mix(in srgb, var(--moner-red) 10%, transparent);
  border-color: color-mix(in srgb, var(--moner-red) 25%, transparent);
  color: var(--moner-red);
}

.wall-post-action-btn.wall-post-action-active {
  color: var(--moner-red);
  font-weight: 700;
  border-color: color-mix(in srgb, var(--moner-red) 35%, transparent);
  background: color-mix(in srgb, var(--moner-red) 8%, transparent);
}

body.wall-light .wall-post-action-btn,
body.wall-light .wall-post-action-link,
body.wall-light .wall-post-action-static { color: var(--moner-text-muted); }

body.wall-light .wall-post-action-btn:hover,
body.wall-light .wall-post-action-link:hover {
  background: color-mix(in srgb, var(--moner-red) 8%, transparent);
  color: var(--moner-red);
}

/* Comments */
.wall-post-comments-preview {
  background: color-mix(in srgb, var(--moner-bg-card) 88%, var(--moner-bg));
  padding: 0.65rem var(--wall-gutter) 0.5rem;
  font-size: 0.84rem;
  color: var(--moner-text-muted);
  border-top: 1px solid var(--moner-border);
}

body.wall-light .wall-post-comments-preview {
  background: #f4f4f5;
  color: #3f3f46;
  border-color: #e4e4e7;
}

.wall-comment-entry { margin-bottom: 4px; }
.wall-comment-entry:last-child { margin-bottom: 0; }

.wall-post-comment-form {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--moner-border);
  padding: 0.65rem var(--wall-gutter);
  background: var(--moner-bg-card);
  gap: 0.5rem;
}

body.wall-light .wall-post-comment-form {
  border-color: #e4e4e7;
  background: #fff;
}

.wall-post-comment-input {
  flex: 1;
  min-width: 0;
  height: 2.5rem;
  background: var(--moner-bg);
  border: 1px solid var(--moner-border);
  border-radius: 8px;
  color: var(--moner-text);
  padding: 0 0.75rem;
  font-size: 0.84rem;
  font-family: inherit;
  line-height: 1.2;
  transition: border-color 0.15s ease;
}

.wall-post-comment-input:focus {
  outline: none;
  border-color: var(--moner-red);
}

body.wall-light .wall-post-comment-input {
  background: #fff;
  border: 2px solid #000;
  color: #18181b;
}

.wall-comment-submit-btn {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--moner-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease;
}

.wall-comment-submit-btn:hover { background: var(--moner-red-hover); }

/* Create button — moner-btn; override legacy main.css blue pill */
.wall-create-btn.moner-btn {
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
  background: var(--moner-red);
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
}

.wall-create-btn.moner-btn:hover {
  background: var(--moner-red-hover);
}

/* Settings sidebar cards */
.wall-side-card {
  margin-bottom: 1rem;
}

.wall-side-card.site-banner-slot,
.wall-banner-column .wall-side-card {
  padding: 1rem;
}

.wall-settings-column .box-title {
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.wall-settings-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--moner-border);
  font-size: 0.88rem;
}

.wall-settings-item:last-child { border-bottom: none; }

.wall-settings-item a {
  color: var(--moner-text-muted);
  text-decoration: none;
  display: block;
  padding: 0.35rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.wall-settings-item a:hover {
  color: var(--moner-red);
  background: color-mix(in srgb, var(--moner-red) 8%, transparent);
}

body.wall-light .wall-settings-item { border-color: #e4e4e7; }
body.wall-light .wall-settings-item a { color: var(--moner-text); }
body.wall-light .wall-settings-item a:hover {
  color: var(--moner-red);
  background: color-mix(in srgb, var(--moner-red) 6%, #fff);
}

/* Pagination */
.wall-pagination {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.wall-pagination a {
  color: var(--moner-red);
  text-decoration: none;
  margin: 0 0.35rem;
}

.wall-pagination a:hover { text-decoration: underline; }

.wall-pagination span { color: var(--moner-text-muted, #888); margin: 0 0.5rem; }

.wall-empty {
  color: var(--moner-text-muted, #888);
  text-align: center;
  margin: 30px 0;
}

.wall-empty--in-card {
  margin: 0;
  padding: 1.25rem var(--wall-gutter) 1.5rem;
  border-top: 1px solid var(--moner-border);
}

body.wall-light .wall-empty--in-card {
  border-color: #e4e4e7;
}

.wall-container > .wall-profile-head {
  margin-bottom: var(--wall-stack);
}

@media (max-width: 1024px) {
  .wall-layout { flex-direction: column; }
  .wall-content { order: 1; min-width: 0; width: 100%; max-width: 100%; }
  .wall-banner-column { order: 2; }
  .wall-settings-column { order: 3; }
  .wall-banner-column,
  .wall-settings-column { width: 100%; }
  .wall-box,
  body.wall-light .wall-box { min-width: 0; width: 100%; }
  .wall-banner-column .wall-box { height: auto !important; }
  .single-media.video-preview video { max-height: 50vh; }
}

@media (max-width: 768px) {
  main:has(.wall-container) { padding: 0.5rem; }

  .wall-banner-column,
  .wall-settings-banner-box {
    display: none !important;
  }

  .wall-settings-column {
    order: 0;
    flex: none;
    max-width: none;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .wall-settings-column .wall-box:first-child {
    padding: 0.45rem 0.5rem;
  }

  .wall-settings-column .box-title {
    display: none;
  }

  .wall-post-action-btn,
  .wall-post-action-link {
    min-height: 44px;
    padding: 0.65rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wall-settings-column .wall-settings-item {
    display: inline-block;
    padding: 0.35rem 0.55rem;
    margin: 0.15rem;
    border: 1px solid var(--moner-border, #3a3a3f);
    border-radius: 999px;
    font-size: 0.72rem;
    vertical-align: middle;
  }

  body.wall-light .wall-settings-column .wall-settings-item {
    border-color: #000;
  }

  .wall-settings-column .wall-settings-item a {
    display: inline;
    white-space: nowrap;
  }

  .wall-settings-column .wall-settings-item a:hover {
    background: transparent;
  }

  .wall-post-header { padding: 10px var(--wall-gutter); gap: 8px; }
  .wall-post-content { padding: 0.85rem var(--wall-gutter); font-size: 1rem; line-height: 1.65; }
  .wall-post-caption { padding: 0.65rem var(--wall-gutter) 0.3rem; font-size: 0.95rem; line-height: 1.55; }
  .wall-post-actions { flex-wrap: wrap; gap: 0.35rem; }
  .wall-post-comment-form { padding: 12px var(--wall-gutter); }
  .wall-create-bar {
    display: block;
    margin-bottom: 0.5rem;
  }

  .wall-create-bar .wall-create-btn.moner-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .wall-post-header--lead .wall-create-btn.moner-btn {
    display: none;
  }
  .single-media { max-width: 95%; }
}

/* ---- Create post page (/wall/create/) ---- */
main:has(.wall-create-page) {
  max-width: none;
  padding: 1.5rem;
}

.wall-create-page {
  display: flex;
  justify-content: center;
}

.wall-create-shell {
  width: 100%;
  max-width: 680px;
}

.wall-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.wall-create-title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--moner-text, #e5e5e5);
}

.wall-create-title-accent {
  color: var(--moner-red);
}

body.wall-light .wall-create-title { color: #18181b; }

.wall-create-lead {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--moner-text-muted, #888);
  line-height: 1.45;
}

.wall-create-card {
  border-radius: 10px;
  overflow: hidden;
}

.wall-create-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.wall-create-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wall-create-section--inline {
  padding-top: 0.15rem;
}

.wall-create-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--moner-text-muted, #888);
}

.wall-create-form textarea,
.wall-create-form #id_content {
  width: 100%;
  min-height: 7.5rem;
  padding: 0.75rem 0.85rem;
  background: var(--moner-bg, #0e0e0e);
  color: var(--moner-text, #e5e5e5);
  border: 1px solid var(--moner-border, #3a3a3f);
  border-radius: 6px;
  font-family: var(--moner-font, inherit);
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.wall-light .wall-create-form textarea,
body.wall-light .wall-create-form #id_content {
  background: #fff;
  border-width: 2px;
  border-color: #000;
}

.wall-create-form textarea:focus,
.wall-create-form #id_content:focus {
  outline: none;
  border-color: var(--moner-red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.wall-create-error {
  margin: 0;
  font-size: 0.82rem;
  color: var(--moner-red);
}

.wall-create-category {
  display: flex;
  gap: 0.5rem;
}

.wall-create-category-btn {
  flex: 1;
  cursor: pointer;
}

.wall-create-category-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wall-create-category-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--moner-text-muted, #888);
  background: var(--moner-bg, #0e0e0e);
  border: 1px solid var(--moner-border, #3a3a3f);
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

body.wall-light .wall-create-category-btn span {
  background: #fff;
  border-width: 2px;
  border-color: #000;
}

.wall-create-category-btn input:checked + span {
  color: #fff;
  background: var(--moner-red);
  border-color: var(--moner-red);
}

body.wall-light .wall-create-category-btn input:checked + span {
  border-color: var(--moner-red);
  box-shadow: 4px 4px 0 #000;
}

.wall-create-category-btn:hover span {
  border-color: var(--moner-red);
  color: var(--moner-red);
}

.wall-create-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 9.5rem;
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--moner-bg, #0e0e0e);
  border: 2px dashed var(--moner-border, #3a3a3f);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

body.wall-light .wall-create-dropzone {
  background: #fafafa;
  border-color: #a1a1aa;
}

.wall-create-dropzone:hover,
.wall-create-dropzone:focus-visible,
.wall-create-dropzone.dragover {
  border-color: var(--moner-red);
  background: rgba(220, 38, 38, 0.06);
  outline: none;
}

.wall-create-dropzone.has-files {
  min-height: 5.5rem;
  padding: 0.85rem;
}

.wall-create-dropzone-icon {
  color: var(--moner-text-muted, #888);
  line-height: 0;
}

.wall-create-dropzone-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--moner-text, #e5e5e5);
}

.wall-create-dropzone-hint,
.wall-create-dropzone-formats {
  margin: 0;
  font-size: 0.78rem;
  color: var(--moner-text-muted, #888);
  line-height: 1.4;
}

.wall-create-file-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wall-create-file-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  background: var(--moner-bg-card, #242428);
  border: 1px solid var(--moner-border, #3a3a3f);
  border-radius: 6px;
}

body.wall-light .wall-create-file-item {
  background: #fff;
  border-width: 2px;
  border-color: #000;
}

.wall-create-file-thumb {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 4px;
  overflow: hidden;
  background: var(--moner-bg, #0e0e0e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--moner-text-muted, #888);
}

.wall-create-file-thumb img,
.wall-create-file-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wall-create-file-type {
  position: absolute;
  left: 2px;
  bottom: 2px;
  padding: 1px 3px;
  font-size: 0.5rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 2px;
}

.wall-create-file-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.wall-create-file-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--moner-text, #e5e5e5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wall-create-file-size {
  font-size: 0.72rem;
  color: var(--moner-text-muted, #888);
}

.wall-create-file-remove {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--moner-border, #3a3a3f);
  border-radius: 4px;
  background: transparent;
  color: var(--moner-text-muted, #888);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.wall-create-file-remove:hover {
  border-color: var(--moner-red);
  color: var(--moner-red);
}

.wall-create-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.wall-create-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wall-create-check-box {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--moner-border, #3a3a3f);
  border-radius: 3px;
  background: var(--moner-bg, #0e0e0e);
  transition: border-color 0.15s, background 0.15s;
}

body.wall-light .wall-create-check-box {
  border-width: 2px;
  border-color: #000;
  background: #fff;
}

.wall-create-check input:checked + .wall-create-check-box {
  background: var(--moner-red);
  border-color: var(--moner-red);
  box-shadow: inset 0 0 0 2px var(--moner-bg-card, #242428);
}

.wall-create-check-text {
  font-size: 0.88rem;
  color: var(--moner-text, #e5e5e5);
}

body.wall-light .wall-create-check-text { color: #18181b; }

.wall-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.wall-create-actions .moner-btn {
  min-height: 2.5rem;
}

.wall-create-cancel {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wall-create-progress {
  padding: 0.85rem;
  background: var(--moner-bg, #0e0e0e);
  border: 1px solid var(--moner-border, #3a3a3f);
  border-radius: 6px;
}

.wall-create-progress-text {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--moner-text-muted, #888);
}

.wall-create-progress-bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--moner-bg-card, #242428);
}

.wall-create-progress-inner {
  height: 100%;
  width: 0;
  background: var(--moner-red);
  animation: wallCreateProgress 1.5s infinite linear;
}

@keyframes wallCreateProgress {
  0% { width: 0%; margin-left: 0; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

/* Preview modal — uses wall-post-card inside overlay */
.wall-create-preview[hidden] { display: none !important; }

.wall-create-preview {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wall-create-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.wall-create-preview-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: 90vh;
  overflow-y: auto;
}

.wall-create-preview-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--moner-border, #3a3a3f);
  border-radius: 4px;
  background: var(--moner-bg-card, #242428);
  color: var(--moner-text, #e5e5e5);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.wall-create-preview-close:hover {
  border-color: var(--moner-red);
  color: var(--moner-red);
}

.wall-create-preview-card {
  margin: 0;
}

.wall-create-preview-card .wall-post-actions {
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 768px) {
  main:has(.wall-create-page) { padding: 0.75rem; }

  .wall-create-head {
    flex-direction: column;
  }

  .wall-create-head .moner-btn {
    width: 100%;
    justify-content: center;
  }

  .wall-create-actions {
    flex-direction: column;
  }

  .wall-create-actions .moner-btn,
  .wall-create-actions .wall-create-cancel {
    width: 100%;
  }
}