/* Business wall (shared/wall/wall.js). Mobile first; follows the system light/dark theme like the rest of the site.
   Everything is under .wl / .wl-* so it can sit on any page. */
.wl, .wl-dialog, .wp {
  --wl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wl-bg: #ffffff; --wl-bg2: #f3f6fc; --wl-line: #dfe6f3; --wl-ink: #10224f; --wl-muted: #5b6b8c; --wl-blue: #2f6fed;
  --wl-blue-soft: #e8efff; --wl-green: #11875a; --wl-green-soft: #e3f6ee; --wl-warm: #b45d00; --wl-warm-soft: #fff3e0;
  --wl-red: #c62f3a; --wl-red-soft: #fdecee; --wl-new: #ffd84d; --wl-radius: 16px; --wl-shadow: 0 1px 2px rgba(16, 34, 79, .06), 0 6px 18px rgba(16, 34, 79, .06);
  font-family: var(--wl-font); color: var(--wl-ink);
}
@media (prefers-color-scheme: dark) {
  .wl, .wl-dialog, .wp {
    --wl-bg: #131d38; --wl-bg2: #1a2648; --wl-line: #26355f; --wl-ink: #e8eefc; --wl-muted: #9eaccc; --wl-blue: #6f9bff;
    --wl-blue-soft: #1e2d57; --wl-green: #4fd39d; --wl-green-soft: #143b30; --wl-warm: #ffb45c; --wl-warm-soft: #3a2a12;
    --wl-red: #ff7a84; --wl-red-soft: #43191f; --wl-new: #c9a414; --wl-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
.wl { max-width: 680px; margin: 18px auto 32px; padding: 0 12px; text-align: left; position: relative; }
.wl *, .wl-dialog * { box-sizing: border-box; }
.wl-i { flex: none; display: block; }
.wl-muted { color: var(--wl-muted); }
.wl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wl-grow { flex: 1; min-width: 0; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.small, .wl .small { font-size: 13px; }

/* ---- head */
.wl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin: 4px 2px 12px; }
.wl-head-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* "My posts" switch, on the right of the heading */
.wl-mine-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; align-self: center; }
.wl-mine-toggle input { appearance: none; -webkit-appearance: none; position: relative; width: 36px; height: 20px; margin: 0; border-radius: 999px; background: var(--wl-muted, #8a94a6); cursor: pointer; transition: background .15s; flex: none; }
.wl-mine-toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.wl-mine-toggle input:checked { background: var(--wl-blue, #2563eb); }
.wl-mine-toggle input:checked::after { transform: translateX(16px); }
.wl-mine-toggle input:focus-visible { outline: 2px solid var(--wl-blue, #2563eb); outline-offset: 2px; }
.wl-h { font-size: 22px; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.wl-feed-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wl-blue); background: var(--wl-blue-soft); border-radius: 999px; padding: 3px 9px; }
.wl-since { margin: 0; font-size: 13px; font-weight: 600; color: var(--wl-warm); }
.wl-newer { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 6px; margin: 0 auto 10px; border: 0; border-radius: 999px;
  background: var(--wl-blue); color: #fff; font: 600 14px/1 var(--wl-font); padding: 10px 16px; box-shadow: 0 6px 18px rgba(47, 111, 237, .35); cursor: pointer; animation: wl-drop .3s ease; }
@keyframes wl-drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- composer prompt */
.wl-compose { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 1 1 0; min-width: 0; max-width: 600px; box-sizing: border-box; min-height: 56px; margin: 0; padding: 10px 18px;
  border-radius: 14px; border: 1px solid #f0b400; background: linear-gradient(135deg, #ffe45c, #ffc93c); color: #14203d; cursor: pointer;
  font-family: var(--wl-font); text-align: left; box-shadow: 0 6px 18px rgba(255, 190, 40, .35); transition: transform .12s, background .15s; }
/* compose + "Learn more" share one centred row; the row wraps on narrow screens */
.wl-compose-row { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto 14px; }
.wl-learn, .wl-learn:visited { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 10px 18px; box-sizing: border-box;
  border-radius: 14px; border: 1px solid #f0b400; background: linear-gradient(135deg, #ffe45c, #ffc93c); color: #14203d; font-family: var(--wl-font); text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 190, 40, .35); transition: transform .12s, background .15s; }
.wl-learn strong { font-weight: 800; font-size: 1.05rem; }
.wl-learn:hover { background: linear-gradient(135deg, #fff07a, #ffd45a); color: #14203d; }
.wl-learn:focus-visible { outline: 3px solid #2f6fed; outline-offset: 2px; }
.wl-learn:active { transform: scale(.99); }
/* always one line: on phones the two buttons shrink, the labels wrap and the compose prompt is dropped */
@media (max-width: 560px) { .wl-compose, .wl-learn { padding: 8px 10px; gap: 8px; } .wl-learn { white-space: normal; text-align: center; } .wl-compose-text small { display: none; } .wl-compose-text strong, .wl-learn strong { font-size: .95rem; } .wl-compose-icon { width: 30px; height: 30px; } }
.wl-compose:hover { background: linear-gradient(135deg, #fff07a, #ffd45a); }
.wl-compose:focus-visible { outline: 3px solid #2f6fed; outline-offset: 2px; }
.wl-compose:active { transform: scale(.99); }
.wl-compose-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(20, 32, 61, .1); display: inline-flex; align-items: center; justify-content: center; }
.wl-compose-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wl-compose-text strong { font-weight: 800; font-size: 1.05rem; }
.wl-compose-text small { font-size: 13px; font-weight: 600; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-owner-bar { background: var(--wl-bg2); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }

/* ---- filters */
.wl-filters { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.wl-chips-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.wl-chips-scroll::-webkit-scrollbar { display: none; }
.wl-chip-btn { flex: none; scroll-snap-align: start; border: 1px solid var(--wl-line); background: var(--wl-bg); color: var(--wl-ink); border-radius: 999px; padding: 7px 13px;
  font: 600 13px/1.1 var(--wl-font); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; }
.wl-chip-btn.on { background: var(--wl-ink); color: var(--wl-bg); border-color: var(--wl-ink); }
.wl-chip-btn:disabled { opacity: .6; cursor: default; }
.wl-chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.wl-more-filters { margin-top: 0; }
.wl-search { display: flex; align-items: center; gap: 8px; background: var(--wl-bg); border: 1px solid var(--wl-line); border-radius: 12px; padding: 0 12px; margin-bottom: 8px; color: var(--wl-muted); }
.wl-search input { flex: 1; border: 0; background: transparent; color: var(--wl-ink); font: 15px var(--wl-font); padding: 11px 0; outline: none; min-width: 0; }
.wl-trending { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; font-size: 13px; padding: 2px; }
.wl-trending::-webkit-scrollbar { display: none; }
.wl-filtered { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--wl-muted); margin: 0 2px 8px; }

/* ---- buttons */
.wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--wl-line); background: var(--wl-bg); color: var(--wl-ink);
  border-radius: 10px; padding: 10px 16px; font: 600 14px/1.1 var(--wl-font); cursor: pointer; text-decoration: none; min-height: 42px; }
.wl-btn.sm { padding: 7px 12px; min-height: 34px; font-size: 13px; }
.wl-btn.primary { background: var(--wl-blue); border-color: var(--wl-blue); color: #fff; }
.wl-btn.danger { background: var(--wl-red); border-color: var(--wl-red); color: #fff; }
.wl-btn.ghost { background: transparent; }
.wl-btn:disabled { opacity: .55; cursor: default; }
.wl-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--wl-muted); cursor: pointer; }
.wl-icon-btn:hover, .wl-icon-btn.on { background: var(--wl-bg2); color: var(--wl-ink); }
.wl-link-btn { border: 0; background: none; color: var(--wl-blue); font: 600 14px var(--wl-font); cursor: pointer; padding: 4px 0; text-align: left; }
.wl-link-btn.small { font-size: 13px; }

/* ---- a post */
.wl-list { display: flex; flex-direction: column; gap: 12px; }
.wl-cols { display: flex; gap: 14px; align-items: flex-start; }
.wl-cols > .wl-col { flex: 1 1 0; min-width: 0; }

/* ---- flowing columns (home page side panel): the wall fills the panel, each column is a window its posts drift up through */
.wl.is-flowing { display: flex; flex-direction: column; height: 100%; padding-bottom: 0; }
.wl.is-flowing .wl-cols { flex: 1 1 auto; min-height: 0; }
.wl.is-flowing .wl-col { height: 100%; overflow: hidden; position: relative; contain: strict; }
/* Fades at the top and bottom edges: overlays, not mask-image. A mask makes the browser repaint the whole column on
   every frame while its content moves; these two stay still and cost nothing. */
.wl.is-flowing .wl-col::before, .wl.is-flowing .wl-col::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.wl.is-flowing .wl-col::before { top: 0; height: 22px; background: linear-gradient(180deg, var(--bg, #f4f8fd), transparent); }
.wl.is-flowing .wl-col::after { bottom: 0; height: 48px; background: linear-gradient(0deg, var(--bg, #f4f8fd), transparent); }
.wl.is-flowing .wl-track { will-change: transform; backface-visibility: hidden; padding: 14px 2px 60px; }
.wl.is-flowing .wl-col.down .wl-track { position: absolute; left: 0; right: 0; bottom: 0; flex-direction: column-reverse; padding: 60px 2px 14px; }
.wl.is-flowing .wl-col.down.is-short .wl-track { position: static; flex-direction: column; padding: 14px 2px 60px; }

.wl.is-flowing .wl-track.wl-loop { animation: wl-loop .6s ease; }
@keyframes wl-loop { from { opacity: 0; } to { opacity: 1; } }
.wl.is-flowing .wl-sentinel, .wl.is-flowing .wl-more-wrap, .wl.is-flowing .wl-end, .wl.is-flowing .wl-open-wall, .wl.is-flowing .wl-skeleton { display: none; }
.wl-post { background: var(--wl-bg); border: 1px solid var(--wl-line); border-radius: var(--wl-radius); padding: 14px 14px 6px; box-shadow: var(--wl-shadow); position: relative;
  animation: wl-in .25s ease backwards; overflow-wrap: anywhere; }
/* "backwards", not "both": a finished animation that keeps filling stays active, which makes every post its own GPU
   layer with a rounded-corner mask. With moving columns that cost a full re-raster per frame (4 columns: 28 fps → 60). */
@keyframes wl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wl-post.is-new::before { content: "New"; position: absolute; top: -9px; left: 16px; background: var(--wl-new); color: #241a00; font: 800 11px/1 var(--wl-font); letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.wl-post.is-new { border-color: var(--wl-new); }
.wl-post.not-live { border-style: dashed; }
/* A shared link's spotlight: the other posts fade until hovered or the first click */
.wl-post.is-dim { opacity: .45; transition: opacity .25s; }
.wl-post.is-dim:hover, .wl-post.is-dim:focus-within { opacity: 1; }
/* The linked post: its outline blinks three times, then stays lit until the spotlight ends */
.wl-post.is-spot { border-color: var(--wl-blue); box-shadow: 0 0 0 3px var(--wl-blue), 0 0 22px 4px color-mix(in srgb, var(--wl-blue) 45%, transparent);
  animation: wl-spot-blink .7s ease-in-out 3; }
@keyframes wl-spot-blink { 50% { box-shadow: 0 0 0 1px var(--wl-blue), 0 0 0 0 transparent; border-color: var(--wl-line); } }
@media (prefers-reduced-motion: reduce) { .wl-post.is-spot { animation: none; } }
.wl-post.is-detail { box-shadow: none; border: 0; padding: 0; }
.wl-shared, .wl-pinned-on-wall { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--wl-muted); margin: 0 0 10px; }
.wl-shared a { color: var(--wl-ink); font-weight: 600; text-decoration: none; }
.wl-shared q { font-style: italic; }
.wl-rec { background: var(--wl-blue-soft); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.wl-rec p { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wl-rec .wl-rec-note { margin-top: 6px; font-style: italic; }
.wl-rec-actions { margin-top: 6px !important; gap: 4px 14px !important; }
.wl-rec-actions .wl-link-btn { font-size: 12px; color: var(--wl-muted); }

.wl-post-h { display: flex; align-items: center; gap: 10px; }
.wl-post-av { flex: none; text-decoration: none; }
.wl-av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #5b8cff, #8e6bff);
  color: #fff; font-weight: 700; flex: none; }
.wl-av.sq { border-radius: 10px; background: linear-gradient(135deg, #1f3f8f, #2f6fed); }
.wl-av img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.wl-post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.wl-name { font-weight: 700; color: var(--wl-ink); text-decoration: none; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-name:hover { text-decoration: underline; }
.wl-sub { font-size: 12.5px; color: var(--wl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-sub a { color: inherit; }
.wl-updated { color: var(--wl-green); font-weight: 600; }
.wl-kind { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; background: var(--wl-bg2); color: var(--wl-muted); }
.wl-kind.k-offer { background: var(--wl-green-soft); color: var(--wl-green); }
.wl-kind.k-looking, .wl-kind.k-question { background: var(--wl-warm-soft); color: var(--wl-warm); }
.wl-kind.k-hiring, .wl-kind.k-event, .wl-kind.k-announcement { background: var(--wl-blue-soft); color: var(--wl-blue); }
@media (max-width: 380px) { .wl-kind { display: none; } }

.wl-menu-wrap { position: relative; flex: none; margin-right: -6px; }
.wl-menu { position: absolute; right: 0; top: 40px; z-index: 20; min-width: 230px; background: var(--wl-bg); border: 1px solid var(--wl-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 34, 79, .18); padding: 6px; display: flex; flex-direction: column; }
.wl-menu button { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--wl-ink); font: 14px var(--wl-font); padding: 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.wl-menu button:hover { background: var(--wl-bg2); }
.wl-menu button.danger { color: var(--wl-red); }

.wl-status { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; background: var(--wl-bg2); color: var(--wl-muted); }
.wl-status.s-pending, .wl-status.s-scheduled { background: var(--wl-warm-soft); color: var(--wl-warm); }
.wl-status.s-rejected, .wl-status.s-taken-down { background: var(--wl-red-soft); color: var(--wl-red); }

.wl-title { font-size: 18px; line-height: 1.3; margin: 12px 0 4px; letter-spacing: -.005em; }
.wl-title a { color: inherit; text-decoration: none; }
.wl-title a:hover { text-decoration: underline; }
.wl-text { font-size: 15px; line-height: 1.55; }
.wl-text p { margin: 0 0 8px; }
.wl-text ul { margin: 0 0 8px; padding-left: 20px; }
.wl-text a { color: var(--wl-blue); }
.wl-text.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.wl-text img.mk-img { max-height: 340px; border-radius: 12px; }
.wl-more { margin-top: -4px; }
.wl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.wl-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--wl-bg2); color: var(--wl-ink); text-decoration: none; max-width: 100%; }
.wl-chip.link { color: var(--wl-blue); font-weight: 600; }
.wl-chip.warm { background: var(--wl-warm-soft); color: var(--wl-warm); }
.wl-chip.on { background: var(--wl-blue-soft); }
.wl-x { border: 0; background: none; color: inherit; font-size: 16px; cursor: pointer; padding: 0 2px; }
.wl-tags { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; }
.wl-tag { border: 0; background: none; color: var(--wl-blue); font: 600 13px var(--wl-font); cursor: pointer; padding: 2px 0; white-space: nowrap; }
.wl-tag.on { background: var(--wl-blue-soft); border-radius: 999px; padding: 3px 8px; }
.wl-tag button { border: 0; background: none; color: inherit; cursor: pointer; margin-left: 2px; }

/* At most 400px tall, scrolling without a visible scrollbar. The line is a background that scrolls with the entries
   (background-attachment: local), so the dots left of each entry stay inside the scrolling box. */
.wl-timeline { list-style: none; margin: 12px 0 0; padding: 0 0 0 22px; max-height: 400px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  background: linear-gradient(var(--wl-green), var(--wl-green)) 8px 0 / 2px 100% no-repeat; background-attachment: local; }
.wl-timeline::-webkit-scrollbar { display: none; width: 0; height: 0; }
.wl-timeline li { position: relative; margin: 0 0 10px; font-size: 14px; }
.wl-timeline li::before { content: ""; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--wl-green); border: 2px solid var(--wl-bg); }
.wl-timeline time { font-size: 12px; font-weight: 700; color: var(--wl-green); }
.wl-fu-text p { margin: 2px 0; }

.wl-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 12px 0 0; padding: 8px 10px; background: var(--wl-bg2); border-radius: 10px; font-size: 13px; color: var(--wl-muted); }
.wl-stats span { display: inline-flex; align-items: center; gap: 5px; }
.wl-stats .bad { color: var(--wl-red); }

.wl-actions { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin: 8px -6px 0; border-top: 1px solid var(--wl-line); padding-top: 4px; }
.wl-act { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 6px 4px; border: 0; background: none;
  color: var(--wl-muted); font: 600 13px var(--wl-font); border-radius: 10px; cursor: pointer; white-space: nowrap; }
.wl-act:hover:not(:disabled) { background: var(--wl-bg2); color: var(--wl-ink); }
.wl-act.on { color: var(--wl-blue); }
.wl-act.on .wl-i { fill: var(--wl-blue-soft); }
.wl-act:disabled { opacity: .45; cursor: default; }
/* Narrow cards (phones, and the home page's side columns): icon over a short label, every action the same width,
   nothing clipped. A container query, so it follows the card's width rather than the screen's. */
.wl-post { container-type: inline-size; }
@container (max-width: 560px) {
  .wl-act { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; min-height: 52px; padding: 6px 2px; }
  .wl-act span { font-size: 11px; line-height: 1.1; white-space: normal; text-align: center; }
}

/* ---- states */
.wl-empty { text-align: center; padding: 26px 16px; background: var(--wl-bg); border: 1px dashed var(--wl-line); border-radius: var(--wl-radius); color: var(--wl-muted); }
.wl-empty b { color: var(--wl-ink); }
.wl-skeleton div { height: 150px; border-radius: var(--wl-radius); margin-top: 12px; background: linear-gradient(90deg, var(--wl-bg2) 25%, var(--wl-bg) 50%, var(--wl-bg2) 75%); background-size: 200% 100%; animation: wl-shine 1.2s infinite; }
@keyframes wl-shine { to { background-position: -200% 0; } }
.wl-sentinel { height: 1px; }
.wl-more-wrap, .wl-open-wall, .wl-end { text-align: center; margin: 16px 0 0; }
.wl-error { color: var(--wl-red); background: var(--wl-red-soft); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.wl-ok { color: var(--wl-green); background: var(--wl-green-soft); border-radius: 10px; padding: 12px; }
.wl-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; max-width: min(92vw, 520px); background: #10224f; color: #fff; padding: 12px 16px;
  border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: wl-drop .25s ease; }
.wl-toast.bad { background: #8f1d27; }

/* ---- dialogs: full screen on phones */
html.wl-noscroll { overflow: hidden; }
.wl-dialog { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; background: transparent; }
.wl-dialog::backdrop { background: rgba(8, 14, 32, .55); backdrop-filter: blur(2px); }
.wl-dialog-card { background: var(--wl-bg); color: var(--wl-ink); display: flex; flex-direction: column; height: 100%; }
.wl-dialog-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--wl-line); }
.wl-dialog-h h2 { font-size: 17px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-dialog-b { padding: 16px 18px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.wl-dialog-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--wl-line); }
@media (min-width: 700px) {
  .wl-dialog { width: 480px; max-width: calc(100vw - 32px); height: auto; max-height: calc(100vh - 48px); margin: auto; }
  .wl-dialog.wide { width: 640px; }
  .wl-dialog-card { border-radius: 18px; height: auto; max-height: calc(100vh - 48px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
}

/* ---- forms */
.wl-form { display: flex; flex-direction: column; gap: 14px; }
.wl-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--wl-muted); margin: 0 0 12px; }
.wl-form .wl-field { margin: 0; }
.wl-field input, .wl-field textarea, .wl-field select, .wl-as select, .wl-inline input, .wl-place input, .wl-copy input {
  width: 100%; font: 16px/1.4 var(--wl-font); color: var(--wl-ink); background: var(--wl-bg); border: 1px solid var(--wl-line); border-radius: 10px; padding: 10px 12px; }
.wl-field textarea { resize: vertical; min-height: 90px; }
.wl-field input:focus, .wl-field textarea:focus, .wl-field select:focus { outline: 2px solid var(--wl-blue); outline-offset: -1px; border-color: transparent; }
.wl-field small { font-weight: 400; }
.wl-field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wl-tools { display: flex; gap: 2px; }
.wl-tools button { border: 1px solid var(--wl-line); background: var(--wl-bg); color: var(--wl-ink); border-radius: 8px; min-width: 32px; height: 30px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.wl-preview-btn { padding: 0 10px; font-weight: 600; }
.wl-preview { border: 1px dashed var(--wl-line); border-radius: 10px; padding: 10px 12px; min-height: 90px; font-weight: 400; color: var(--wl-ink); }
.wl-as { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wl-as-pick { flex: 1; min-width: 180px; }
.wl-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-tag-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--wl-line); border-radius: 10px; padding: 6px 8px; background: var(--wl-bg); cursor: text; }
.wl-tag-input input { border: 0 !important; padding: 4px !important; flex: 1; min-width: 120px; outline: none !important; }
.wl-place { position: relative; display: flex; gap: 6px; flex-wrap: wrap; }
.wl-place input { flex: 1; min-width: 180px; }
.wl-suggest { position: absolute; top: 46px; left: 0; right: 0; z-index: 5; list-style: none; margin: 0; padding: 4px; background: var(--wl-bg); border: 1px solid var(--wl-line); border-radius: 10px; box-shadow: var(--wl-shadow); }
.wl-suggest button { width: 100%; text-align: left; border: 0; background: none; color: var(--wl-ink); font: 14px var(--wl-font); padding: 9px; border-radius: 8px; cursor: pointer; }
.wl-suggest button:hover { background: var(--wl-bg2); }
.wl-switch { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.wl-switch input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--wl-blue); }
.wl-note { font-size: 13px; color: var(--wl-muted); background: var(--wl-bg2); border-radius: 10px; padding: 9px 12px; margin: 0; }
.wl-callout { display: flex; align-items: flex-start; gap: 8px; align-items: flex-start; background: var(--wl-blue-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.wl-radios, .wl-checks { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.wl-radios legend, .wl-checks legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.wl-radios label, .wl-checks label { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--wl-line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.wl-radios label:has(input:checked), .wl-checks label:has(input:checked) { border-color: var(--wl-blue); background: var(--wl-blue-soft); }
.wl-radios input, .wl-checks input { accent-color: var(--wl-blue); width: 18px; height: 18px; flex: none; }
.wl-inline { display: flex; gap: 8px; margin: 10px 0; }
.wl-people { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.wl-people button, .wl-people a { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--wl-line); background: var(--wl-bg); color: var(--wl-ink);
  border-radius: 12px; padding: 8px 10px; cursor: pointer; text-decoration: none; font: 14px var(--wl-font); }
.wl-people button[aria-selected="true"], .wl-people button[aria-checked="true"] { border-color: var(--wl-blue); background: var(--wl-blue-soft); }
.wl-people button:disabled { opacity: .55; cursor: default; }
.wl-people small { display: block; color: var(--wl-muted); font-size: 12px; }
.wl-check { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--wl-line); display: inline-flex; align-items: center; justify-content: center; color: var(--wl-blue); flex: none; }
.wl-result { padding-left: 18px; }
.wl-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.wl-share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; text-decoration: none; font: 700 14px var(--wl-font); color: #fff; background: #5b6b8c; border: 0; cursor: pointer; }
.wl-share-btn.s-linkedin { background: #0a66c2; } .wl-share-btn.s-x { background: #111; } .wl-share-btn.s-facebook { background: #1877f2; }
.wl-share-btn.s-whatsapp { background: #1fa855; } .wl-share-btn.s-email { background: #2f6fed; }
.wl-copy { display: flex; gap: 8px; align-items: flex-start; }
.wl-share-text { border: 1px solid var(--wl-line); border-radius: 12px; background: var(--wl-bg2); overflow: hidden; }
/* The beginning of the text only, fading out at the bottom so it reads as "there's more" */
.wl-share-preview { position: relative; max-height: 5.9em; overflow: hidden; padding: 10px 12px 0; font: 14px/1.45 var(--wl-font); color: var(--wl-ink); white-space: pre-line; cursor: text; user-select: none; }
.wl-share-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(to bottom, transparent, var(--wl-bg2)); pointer-events: none; }
.wl-share-preview:focus-visible { outline: 2px solid var(--wl-blue); outline-offset: -2px; }
.wl-share-text textarea { display: block; width: 100%; box-sizing: border-box; border: 0; margin: 0; padding: 10px 12px; resize: vertical; font: 14px/1.45 var(--wl-font); color: var(--wl-ink); background: var(--wl-bg); outline: 2px solid var(--wl-blue); outline-offset: -2px; border-radius: 12px 12px 0 0; }
.wl-share-url { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--wl-line); font-size: 13px; color: var(--wl-muted); }
.wl-share-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-share-tip { margin: 8px 0 0; display: flex; justify-content: flex-end; }
.wl-share-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.wl-share-icons .wl-share-btn { width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; }
.wl-share-icons .wl-share-btn:hover, .wl-share-icons .wl-share-btn:focus-visible { filter: brightness(1.12); transform: translateY(-1px); }
.wl-share-hint { text-align: center; margin: 10px 0 0; }
.wl-comments { margin-top: 16px; border-top: 1px solid var(--wl-line); padding-top: 12px; }
.wl-sub-h { font-size: 15px; margin: 0 0 8px; }
.wl-comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wl-comment-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.wl-comment-list p { margin: 2px 0 0; white-space: pre-wrap; }

/* ---- YouTube: a light poster, the player only after a tap */
.wl-video { position: relative; margin: 10px 0 4px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.wl-video iframe, .wl-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wl-video-poster { padding: 0; cursor: pointer; background: #000; display: block; }
.wl-video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .2s; }
.wl-video-poster:hover img { opacity: 1; }
.wl-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: rgba(220, 20, 20, .92);
  color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.wl-kind.k-featured { background: linear-gradient(135deg, #ffe45c, #ffc93c); color: #3a2a00; }

/* ---- home page side panel (index.html moves #home-wall into #home-side on wide screens) */
.home-side .wl { max-width: none; margin: 0; padding: 0 4px 40px; }
.home-side:has(.wl.is-flowing) { overflow: hidden !important; }
.home-side .wl.is-flowing { padding: 0 4px; }
.home-side .wl-newer { top: 8px; }
.home-side { box-sizing: border-box; }
.home-side > .home-wall:has(.wl.is-flowing) { height: 100%; }
