/* Shared styles for the public social pages (profile and Explore) */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(#d1d5db 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  color: var(--black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.wb-modal-open { overflow: hidden; }

.wrap { max-width: 920px; margin: 0 auto; padding: 22px 18px 70px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; color: var(--black); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.wb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; font-family: inherit; font-size: 13px; font-weight: 800; color: var(--border);
  text-decoration: none; background: #fff; border: 2.5px solid var(--border); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--border); cursor: pointer; white-space: nowrap;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.wb-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--border); }
.wb-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border); }
.wb-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.wb-btn[hidden] { display: none !important; }
.wb-btn-primary { background: var(--lime); }
.wb-btn-primary:hover { background: var(--lime-light); }
.wb-btn-danger { background: #fee2e2; color: #b91c1c; }
.wb-btn.on { background: var(--muted-light); }

.wb-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  font-family: inherit; font-size: 16px; font-weight: 900; color: var(--border); background: #fff;
  border: 2px solid var(--border); border-radius: 7px; cursor: pointer;
}
.wb-icon-btn:hover { background: var(--muted-light); }

.card { background: #fff; border: 2.5px solid var(--border); border-radius: 14px; box-shadow: 5px 5px 0 var(--border); padding: 24px; }

.wb-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
  font-weight: 900; text-transform: uppercase; background: var(--lime);
  border: 2px solid var(--border); border-radius: 50%;
}
.wb-avatar img { width: 100%; height: 100%; object-fit: cover; }

.wb-muted { color: var(--muted); font-size: 12px; font-weight: 600; }
.wb-section-title { margin: 18px 0 10px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.wb-chip {
  display: inline-block; align-self: flex-start; padding: 2px 9px; font-size: 11px; font-weight: 800;
  background: var(--lime-light); border: 1.5px solid var(--border); border-radius: 999px;
}

/* Tabs */
.wb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.wb-tab {
  padding: 8px 15px; font-family: inherit; font-size: 13px; font-weight: 800; color: var(--border);
  background: #fff; border: 2px solid var(--border); border-radius: 7px; box-shadow: 2px 2px 0 var(--border); cursor: pointer;
}
.wb-tab[aria-selected="true"] { background: var(--lime); box-shadow: 3px 3px 0 var(--border); }

/* Post grid */
.wb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wb-post {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background: #fff; border: 2px solid var(--border); border-radius: 12px; box-shadow: 3px 3px 0 var(--border);
}
.wb-post-author { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wb-post-who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--black); text-decoration: none; }
.wb-post-who:hover span { text-decoration: underline; }
.wb-post-link { display: flex; align-items: center; gap: 12px; color: var(--black); text-decoration: none; }
.wb-post-link:hover strong { text-decoration: underline; }
.wb-favicon { width: 40px; height: 40px; flex: none; padding: 6px; background: var(--muted-light); border: 1.5px solid var(--border); border-radius: 9px; }
.wb-post-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wb-post-text strong { font-size: 14px; font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.wb-caption { font-size: 13px; line-height: 1.45; color: #334155; overflow-wrap: anywhere; white-space: pre-wrap; }
.wb-post-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1.5px solid #e2e8f0; }
.wb-spacer { flex: 1; }

.wb-like {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-family: inherit;
  font-size: 13px; font-weight: 800; color: var(--border); background: #fff;
  border: 2px solid var(--border); border-radius: 999px; cursor: pointer;
}
.wb-like:hover { background: var(--muted-light); }
.wb-like.liked { background: #fee2e2; color: #be123c; border-color: #be123c; }
.wb-heart { font-size: 15px; line-height: 1; }
.wb-like.big { padding: 8px 14px; font-size: 14px; }
.wb-like-btn.liked { color: #be123c; background: #fee2e2; }

/* ⋯ menu */
.wb-menu-wrap { position: relative; }
.wb-menu {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 170px; padding: 5px;
  background: #fff; border: 2px solid var(--border); border-radius: 9px; box-shadow: 3px 3px 0 var(--border);
}
.wb-menu[hidden] { display: none; }
.wb-menu.down { bottom: auto; top: calc(100% + 6px); }
.wb-menu-item {
  display: block; width: 100%; padding: 8px 10px; font-family: inherit; font-size: 13px; font-weight: 700;
  text-align: left; color: var(--black); background: none; border: none; border-radius: 6px; cursor: pointer;
}
.wb-menu-item:hover { background: var(--lime-light); }
.wb-menu-item.danger { color: #b91c1c; }

/* Modals */
.wb-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; background: rgba(15, 23, 42, 0.55); }
.wb-modal { width: 100%; max-width: 520px; background: #fff; border: 3px solid var(--border); border-radius: 14px; box-shadow: 6px 6px 0 var(--border); }
.wb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 2px solid var(--border); }
.wb-modal-head h2 { font-size: 17px; font-weight: 900; overflow-wrap: anywhere; }
.wb-modal-body { padding: 16px 18px 18px; }
.wb-modal-body > .wb-post { box-shadow: none; }

.wb-form { display: flex; flex-direction: column; gap: 10px; }
.wb-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.wb-input {
  width: 100%; padding: 10px 12px; font-family: inherit; font-size: 14px; color: var(--black);
  background: #fff; border: 2px solid var(--border); border-radius: 8px; outline: none; resize: vertical;
}
.wb-input:focus { box-shadow: 3px 3px 0 var(--lime-dark); }
.wb-count { align-self: flex-end; margin-top: -6px; }
.wb-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.wb-radio input { width: 16px; height: 16px; accent-color: var(--lime-dark); }

.wb-handle-box { display: flex; align-items: center; background: #fff; border: 2px solid var(--border); border-radius: 8px; }
.wb-handle-box:focus-within { box-shadow: 3px 3px 0 var(--lime-dark); }
.wb-handle-at { padding-left: 12px; font-size: 15px; font-weight: 900; color: var(--muted); }
.wb-handle-input { flex: 1; min-width: 0; padding: 10px 12px 10px 3px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--black); background: none; border: none; outline: none; }
.wb-handle-input:disabled { color: var(--muted); }
.wb-handle-status { min-height: 18px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.wb-handle-status.ok { color: var(--success); }
.wb-handle-status.bad { color: #b91c1c; }
.wb-handle-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wb-handle-chips:empty { display: none; }
.wb-handle-chip { padding: 4px 10px; font-family: inherit; font-size: 12px; font-weight: 800; color: var(--black); background: var(--lime-light); border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; }
.wb-handle-chip:hover { background: var(--lime); }

.wb-edit-photo { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1.5px solid #e2e8f0; }
.wb-edit-photo-text { min-width: 0; }
.wb-edit-photo-text strong { display: block; font-size: 15px; font-weight: 900; overflow-wrap: anywhere; }
.wb-edit-photo-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wb-edit-photo-buttons .wb-btn { padding: 6px 11px; font-size: 12px; box-shadow: 2px 2px 0 var(--border); }
.wb-edit-form { gap: 14px; }
.wb-edit-row { display: flex; flex-direction: column; gap: 6px; }
.wb-edit-row .wb-count { margin-top: 0; }

.wb-comments { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.wb-comment { display: flex; align-items: flex-start; gap: 10px; }
.wb-comment-text { flex: 1; min-width: 0; }
.wb-comment-text p { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.wb-comment-line { display: flex; align-items: center; gap: 8px; }
.wb-comment-handle { font-size: 13px; font-weight: 800; color: var(--black); text-decoration: none; }
.wb-comment-handle:hover { text-decoration: underline; }
.wb-comment .wb-menu { bottom: auto; top: calc(100% + 4px); }
.wb-comment-form { display: flex; gap: 8px; }
.wb-comment-form .wb-btn { box-shadow: 2px 2px 0 var(--border); }

.wb-empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.wb-more { display: flex; justify-content: center; margin-top: 18px; }

.wb-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 2000; max-width: calc(100vw - 32px);
  padding: 11px 16px; font-size: 13px; font-weight: 800; color: #fff; background: var(--border);
  border-radius: 9px; box-shadow: 3px 3px 0 var(--lime); transform: translate(-50%, 140%);
  transition: transform 0.2s ease; pointer-events: none;
}
.wb-toast.show { transform: translate(-50%, 0); }


@media (max-width: 560px) {
  .top { gap: 8px; }
  .top-links { gap: 8px; flex-wrap: nowrap; }
  .top-links .wb-btn { padding: 7px 11px; font-size: 12px; box-shadow: 2px 2px 0 var(--border); }
  .top-links.signed-out .wb-hide-phone { display: none; } /* Log in and Sign up matter more here */
  .wb-tab { padding: 7px 11px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-btn, .wb-toast { transition: none; }
}

/* ── Instagram-style posts ── */
.wb-feed { display: flex; flex-direction: column; gap: 24px; max-width: 480px; margin: 0 auto; }
.wb-post { gap: 0; padding: 0; overflow: hidden; border-width: 2.5px; border-radius: 14px; box-shadow: 4px 4px 0 var(--border); }
.wb-post-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 12px; }
.wb-post-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--black); text-decoration: none; }
.wb-post-who:hover strong { text-decoration: underline; }
.wb-post-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wb-post-handle-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-post-handle-line strong { font-size: 14px; font-weight: 800; }
.wb-post-handle-line .wb-muted { font-size: 13px; }
.wb-post-board { font-size: 11px; font-weight: 700; color: var(--muted); }
.wb-post-head .wb-icon-btn { border: none; font-size: 18px; }

.wb-media { position: relative; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--muted-light); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); user-select: none; }
.wb-media-clickable { cursor: pointer; }
.wb-media-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wb-media-img.wb-media-shot, .wb-pv-media .wb-media-img.wb-media-shot { object-fit: cover; object-position: top center; }
.wb-media-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; padding: 16px; text-align: center; }
.wb-media-tile img { width: 58px; height: 58px; padding: 9px; background: #fff; border: 2px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.wb-media-tile strong { max-width: 90%; font-size: 17px; font-weight: 900; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wb-media-tile span { font-size: 12px; font-weight: 700; color: #475569; }
.wb-heart-pop { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; }
.wb-heart-pop svg { width: 96px; height: 96px; fill: #fff; stroke: var(--border); stroke-width: 1; }
.wb-heart-pop.show { animation: wbHeartPop 0.9s ease forwards; }
@keyframes wbHeartPop {
  0% { opacity: 0; transform: scale(0.4); }
  15% { opacity: 1; transform: scale(1.15); }
  30% { transform: scale(0.95); }
  45% { transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}


.wb-actions { display: flex; align-items: center; gap: 2px; padding: 4px 6px 0; }
.wb-act { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--black); background: none; border: none; border-radius: 50%; cursor: pointer; transition: transform 0.1s ease; }
.wb-act:hover { color: #475569; }
.wb-act:active { transform: scale(0.85); }
.wb-act.on svg { fill: currentColor; }
.wb-act-like.on { color: #ef4444; animation: wbLikePop 0.3s ease; }
@keyframes wbLikePop { 50% { transform: scale(1.25); } }
.wb-likes { padding: 0 14px; font-size: 14px; font-weight: 800; }
.wb-caption-line { padding: 4px 14px 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.wb-caption-handle, .wb-comment-handle { font-weight: 800; color: var(--black); text-decoration: none; }
.wb-caption-handle:hover, .wb-comment-handle:hover { text-decoration: underline; }
.wb-mention { font-weight: 700; color: #1d4ed8; text-decoration: none; }
.wb-mention:hover { text-decoration: underline; }
.wb-more-link, .wb-view-comments { padding: 0; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: none; cursor: pointer; }
.wb-view-comments { display: block; padding: 4px 14px 0; text-align: left; }
.wb-view-comments[hidden] { display: none; }
.wb-time { display: block; padding: 6px 14px 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.4px; color: var(--muted); }

/* Profile grid: 3 squares per row */
.wb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wb-tile { position: relative; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; font-family: inherit; text-align: left; background: var(--muted-light); border: 2px solid var(--border); border-radius: 8px; cursor: pointer; }
.wb-tile .wb-media { height: 100%; aspect-ratio: auto; border: none; }
.wb-tile .wb-media-tile img { width: 46px; height: 46px; }
.wb-tile-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(15, 23, 42, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-tile-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 15px; font-weight: 900; color: #fff; background: rgba(15, 23, 42, 0.55); opacity: 0; transition: opacity 0.15s ease; }
.wb-tile:hover .wb-tile-overlay, .wb-tile:focus-visible .wb-tile-overlay { opacity: 1; }

/* Post view: picture left, comments right */
.wb-modal.wb-modal-post { position: relative; max-width: 980px; }
.wb-modal-post .wb-modal-body { padding: 0; }
/* Close sits inside the popup, top-left over the picture */
.wb-modal-post .wb-modal-head { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 0; border: none; }
.wb-modal-post .wb-modal-head .wb-icon-btn { box-shadow: 2px 2px 0 var(--border); }
.wb-modal-post .wb-modal-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wb-pv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); height: min(78vh, 640px); }
.wb-pv-media { display: flex; flex-direction: column; min-height: 0; background: var(--black); border-right: 2px solid var(--border); border-radius: 11px 0 0 11px; overflow: hidden; }
.wb-pv-media .wb-media { flex: 1; aspect-ratio: auto; border: none; }
.wb-pv-media .wb-media-img { position: relative; z-index: 1; object-fit: contain; }
/* Pictures that don't fill the space sit on a soft, bright blur of themselves, lifted by a shadow */
.wb-media-backdrop { display: none; }
.wb-pv-media .wb-media-backdrop { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.8) brightness(1.1); transform: scale(1.4); opacity: 0.85; pointer-events: none; }
.wb-pv-media .wb-media:has(.wb-media-backdrop) { background: #fff; }
.wb-pv-media .wb-media:has(.wb-media-backdrop) .wb-media-img { padding: 18px; filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.22)); }
/* The whole picture is a link to the website */
.wb-pv-open { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; color: inherit; text-decoration: none; cursor: pointer; }
.wb-pv-open-hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; max-width: calc(100% - 28px); padding: 7px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; color: var(--black); background: #fff; border: 2px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.wb-pv-open:hover .wb-pv-open-hint, .wb-pv-open:focus-visible .wb-pv-open-hint { opacity: 1; transform: none; }
.wb-pv-open:hover .wb-pv-open-hint { background: var(--lime-light); }
@media (hover: none) { .wb-pv-open-hint { opacity: 1; transform: none; } }
/* The caption, as a quote under the picture */
.wb-pv-quote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; padding: 12px 18px; background: var(--lime-light); border-top: 2px solid var(--border); max-height: 30%; overflow-y: auto; flex-shrink: 0; }
.wb-pv-quote-text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--black); white-space: pre-wrap; overflow-wrap: anywhere; }
.wb-pv-quote-text::before, .wb-pv-quote-text::after { font-family: Georgia, 'Times New Roman', serif; font-size: 1.35em; font-weight: 900; line-height: 0; color: var(--lime-dark); }
.wb-pv-quote-text::before { content: '\201C'; margin-right: 3px; }
.wb-pv-quote-text::after { content: '\201D'; margin-left: 2px; }
.wb-pv-quote-by { margin-left: auto; font-size: 12px; font-weight: 800; color: #3f6212; text-decoration: none; white-space: nowrap; }
.wb-pv-quote-by::before { content: '— '; }
.wb-pv-quote-by:hover { text-decoration: underline; }
.wb-pv-side { display: flex; flex-direction: column; min-height: 0; }
.wb-pv-side .wb-post-head { border-bottom: 1.5px solid #e2e8f0; }
.wb-pv-comments { display: flex; flex-direction: column; gap: 16px; flex: 1; padding: 14px; overflow-y: auto; }
.wb-pv-comment { display: flex; align-items: flex-start; gap: 10px; }
.wb-pv-avatar { flex: none; color: var(--black); text-decoration: none; }
.wb-pv-text { flex: 1; min-width: 0; }
.wb-pv-line { font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.wb-pv-meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.wb-pv-likecount[hidden] { display: none; }
.wb-pv-reply { padding: 0; font: inherit; color: var(--muted); background: none; border: none; cursor: pointer; }
.wb-pv-reply:hover { color: var(--black); }
.wb-pv-meta .wb-icon-btn { width: 22px; height: 22px; font-size: 14px; border: none; opacity: 0; }
.wb-pv-comment:hover .wb-pv-meta .wb-icon-btn, .wb-pv-meta .wb-icon-btn:focus-visible { opacity: 1; }
.wb-comment-like { flex: none; margin-top: 4px; padding: 3px; color: var(--muted); background: none; border: none; cursor: pointer; }
.wb-comment-like:hover { color: var(--black); }
.wb-comment-like.on { color: #ef4444; }
.wb-comment-like.on svg { fill: currentColor; }
.wb-pv-thread { display: flex; flex-direction: column; gap: 8px; }
.wb-pv-toggle { align-self: flex-start; margin-left: 42px; padding: 0; font-family: inherit; font-size: 12px; font-weight: 800; color: var(--muted); background: none; border: none; cursor: pointer; }
.wb-pv-toggle::before { content: '—— '; }
.wb-pv-toggle[hidden], .wb-pv-replies[hidden] { display: none; }
.wb-pv-replies { display: flex; flex-direction: column; gap: 12px; margin-left: 42px; }
.wb-pv-empty { margin: auto; font-size: 14px; font-weight: 600; text-align: center; color: var(--muted); }
.wb-pv-footer { border-top: 1.5px solid #e2e8f0; }
.wb-pv-footer .wb-time { padding-bottom: 10px; }
.wb-reply-chip { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; font-size: 12px; font-weight: 700; background: var(--muted-light); }
.wb-reply-chip[hidden] { display: none; }
.wb-reply-cancel { font-size: 16px; color: var(--muted); background: none; border: none; cursor: pointer; }
.wb-pv-form { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1.5px solid #e2e8f0; }
.wb-pv-input { flex: 1; min-width: 0; font: inherit; font-size: 14px; background: none; border: none; outline: none; }
.wb-pv-send { font: inherit; font-size: 14px; font-weight: 900; color: var(--lime-dark); background: none; border: none; cursor: pointer; }
.wb-pv-send:disabled { opacity: 0.4; cursor: default; }
.wb-pv-form.signed-out { font-size: 13px; font-weight: 600; color: var(--muted); }
.wb-pv-form.signed-out a { margin-right: 4px; font-weight: 800; color: var(--black); }

@media (hover: none) {
  .wb-pv-meta .wb-icon-btn { opacity: 1; }
}

@media (max-width: 760px) {
  .wb-backdrop:has(.wb-modal-post) { padding: 0; }
  .wb-modal.wb-modal-post { max-width: none; min-height: 100vh; border: none; border-radius: 0; box-shadow: none; }
  .wb-modal-post .wb-modal-head { position: sticky; top: 0; left: auto; z-index: 3; justify-content: flex-start; padding: 8px 10px; background: #fff; border-bottom: 2px solid var(--border); }
  .wb-pv { display: block; height: auto; }
  .wb-pv-media { border-right: none; border-radius: 0; }
  .wb-pv-media .wb-media { aspect-ratio: 1.91 / 1; }
  .wb-pv-comments { overflow: visible; }
  .wb-tiles { gap: 3px; }
  .wb-tile { border-width: 1.5px; border-radius: 4px; }
  .wb-tile-title { display: none; }
  .wb-feed { gap: 18px; }
}

/* ── Board covers: pixel-letter name on a flat color, like a type specimen ── */
.wb-cover { display: flex; flex-direction: column; }
.wb-cover-art { flex: 1; min-height: 0; display: flex; align-items: center; padding: 9% 9% 4%; }
.wb-cover-pixels { display: block; width: 100%; height: 100%; max-height: 100%; }
.wb-cover-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 9% 7%; }
.wb-cover-label { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-cover-count::after { content: ' ------'; letter-spacing: 0; opacity: 0.8; }
.wb-tile .wb-cover-art { padding: 10% 9% 4%; }
.wb-tile .wb-cover-foot { padding-bottom: 26px; }
.wb-tile .wb-cover-label { font-size: 10px; }
.wb-pv-media .wb-cover { min-height: 280px; }
@media (max-width: 640px) {
  .wb-tile .wb-cover-foot { display: none; }
}
