/* The Forum: posts, media, polls, composer, threads, profiles, activity, X import */

.sq-shell { display: grid; gap: 24px; align-items: start; }
.sq-main { min-width: 0; max-width: 640px; width: 100%; }
.sq-rail { display: none; }
.sq-discover { margin: 0 0 12px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sq-discover > summary { list-style: none; cursor: pointer; position: relative; min-height: 56px; padding: 10px 76px 10px 16px; display: grid; gap: 2px; align-content: center; }
.sq-discover > summary::-webkit-details-marker { display: none; }
.sq-discover > summary b { font: 800 16px/1.2 var(--display); }
.sq-discover > summary small { color: var(--ink-2); font-size: 13px; }
.sq-discover > summary::after { content: "Show ▾"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 700 13px var(--body); color: var(--center); }
.sq-discover[open] > summary::after { content: "Hide ▴"; }
.sq-discover-body { display: grid; gap: 12px; padding: 0 12px 12px; }
@media (min-width: 1100px) { .sq-discover { display: none !important; } }
@media (min-width: 1100px) {
  .sq-shell:not(.single) { grid-template-columns: minmax(0, 640px) 320px; justify-content: center; }
  .sq-rail { display: grid; gap: 12px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
}

.sq-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.sq-top h1, .sq-h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; }
.sq-top p { margin: 4px 0 0; }
.sq-h1 { margin: 6px 0 14px; }
.sq-activity-link {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); font-weight: 700; text-decoration: none;
}
.sq-activity-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--right); color: #fff; font: 700 12px/22px var(--mono); text-align: center; }
.sq-activity-count[hidden] { display: none; }
.sq-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.sq-back:hover { color: var(--ink); }

/* ---------- hero (signed out) ---------- */
.sq-hero {
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 22px 20px; margin-bottom: 14px;
  background-image: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--left) 10%, transparent), transparent 55%),
                    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--right) 10%, transparent), transparent 55%);
}
.sq-hero .brand-mark { height: 34px; margin-bottom: 10px; }
.sq-hero .brand-mark i { width: 9px; }
.sq-hero .brand-mark .l, .sq-hero .brand-mark .r { height: 22px; }
.sq-hero .brand-mark .c { height: 34px; }
.sq-hero h2 { font-size: clamp(24px, 5.5vw, 32px); font-weight: 800; }
.sq-hero p { color: var(--ink-2); margin: 10px 0 16px; font-size: 17px; }
.sq-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sq-hero-cta .btn { flex: 1 1 140px; }

/* ---------- composer ---------- */
.sq-composer { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; display: grid; gap: 10px; }
.sq-composer.compact { margin: 12px 0; }
.sq-comp-top { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start; }
.sq-comp-top .avatar { width: 40px; height: 40px; }
.sq-composer textarea {
  width: 100%; border: 0; background: transparent; resize: none; min-height: 56px; font-size: 19px; line-height: 1.45; padding: 8px 0; overflow: hidden;
}
.sq-composer.compact textarea { min-height: 44px; font-size: 16px; }
.sq-composer textarea:focus { outline: none; }
.sq-composer:focus-within { box-shadow: 0 0 0 2px var(--center), var(--shadow); }
.sq-comp-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.sq-comp-lean small { display: block; margin-bottom: 4px; font-size: 12px; }
.sq-comp-lean .lean-radio label { min-height: 38px; padding: 0 11px; }
.sq-comp-send { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sq-count { font: 600 12px var(--mono); color: var(--ink-2); }
.sq-count.warn { color: var(--right); }
.sq-attach { position: relative; margin-left: 50px; }
.sq-x { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: 18px; cursor: pointer; }
@media (max-width: 480px) { .sq-attach { margin-left: 0; } }

/* ---------- feed tabs ---------- */
.sq-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 6px 0 0; overflow-x: auto; scrollbar-width: none; }
.sq-tabs::-webkit-scrollbar { display: none; }
.sq-tabs button, .sq-tabs a {
  flex: 1 0 auto; min-height: 48px; padding: 0 16px; border: 0; background: transparent; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 15px; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; justify-content: center;
}
.sq-tabs .on { color: var(--ink); border-bottom-color: var(--ink); }
.sq-caption { margin: 8px 0 10px; }
.sq-newpill {
  position: sticky; top: 76px; z-index: 5; display: block; margin: 0 auto 10px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--center); color: #fff; font-weight: 700; cursor: pointer; box-shadow: var(--shadow);
}
.sq-newpill[hidden] { display: none; }

/* ---------- posts ---------- */
.sq-feed { display: grid; gap: 10px; }
.sq-post {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 14px 8px; cursor: pointer;
  border-left: 4px solid var(--c, var(--line));
}
.sq-post[data-b="left"] { --c: var(--left); } .sq-post[data-b="center"] { --c: var(--center); } .sq-post[data-b="right"] { --c: var(--right); }
.sq-post.focus { cursor: default; padding: 16px 16px 10px; }
.sq-post.focus .sq-text { font-size: 19px; }
.sq-post.compact { padding: 10px 12px; box-shadow: none; background: var(--surface-2); grid-template-columns: 34px minmax(0, 1fr); }
.sq-post.compact .sq-av { width: 34px; height: 34px; font-size: 12px; }
.sq-post.deleted { grid-template-columns: 1fr; cursor: default; border-left-color: var(--line); padding: 12px 14px; }
.sq-post.deleted p { margin: 0; }
.sq-post.fresh { animation: sqfresh .5s ease-out; }
@keyframes sqfresh { from { transform: translateY(-6px); opacity: 0; } }
.sq-av { width: 44px; height: 44px; font-size: 15px; text-decoration: none; }
.avatar.xs { width: 22px; height: 22px; font-size: 10px; }
.avatar.xl { width: 84px; height: 84px; font-size: 30px; }
.sq-body { min-width: 0; }
.sq-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; line-height: 1.3; }
.sq-name { font-weight: 800; text-decoration: none; }
.sq-name:hover { text-decoration: underline; }
.sq-handle { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; max-width: 160px; white-space: nowrap; }
.sq-time { color: var(--ink-2); font-size: 14px; text-decoration: none; white-space: nowrap; }
.sq-dot { color: var(--ink-2); }
.sq-time:hover { text-decoration: underline; }
.sq-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 2px; }
.sq-replyto { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.sq-replyto a { color: var(--center); text-decoration: none; font-weight: 600; }
.sq-text { margin: 6px 0 8px; font-size: 16.5px; line-height: 1.5; overflow-wrap: anywhere; }
.sq-text a { color: var(--center); font-weight: 600; text-decoration: none; }
.sq-text a:hover { text-decoration: underline; }
.sq-post .tags { margin-bottom: 8px; }

.sq-story {
  display: grid; gap: 4px; margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  border-left: 4px solid var(--c, var(--line)); text-decoration: none; background: var(--bg);
}
.sq-story[data-b="left"] { --c: var(--left); } .sq-story[data-b="center"] { --c: var(--center); } .sq-story[data-b="right"] { --c: var(--right); }
.sq-story-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.sq-story-title { font: 700 16px/1.3 var(--display); }
.sq-story:hover .sq-story-title { text-decoration: underline; }

.sq-quote { display: grid; gap: 4px; margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; background: var(--bg); }
.sq-quote.missing { color: var(--ink-2); font-style: italic; }
.sq-quote-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.sq-quote-text { font-size: 15px; overflow-wrap: anywhere; }

.sq-actions { display: flex; align-items: center; gap: 2px; margin: 0 -6px; flex-wrap: wrap; }
.sq-act {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font: 600 14px var(--body); cursor: pointer; justify-content: center;
}
@media (hover: hover) { .sq-act:hover { background: var(--surface-2); color: var(--ink); } }
.sq-act span:empty { display: none; }
.sq-actions .tagbar { margin: 0 4px; }
.sq-actions .tagbar button { min-height: 36px; min-width: 42px; padding: 0 9px; }
/* Phones: smaller avatar column, and the action row uses the full card width */
@media (max-width: 520px) {
  .sq-post { grid-template-columns: 36px minmax(0, 1fr); padding: 12px 12px 6px; }
  .sq-post.focus { padding: 14px 14px 8px; }
  .sq-av { width: 36px; height: 36px; font-size: 13px; }
  .sq-actions { margin-left: -46px; margin-right: -4px; justify-content: space-between; }
  .sq-act { padding: 0 6px; min-width: 42px; }
  .sq-actions .tagbar { margin: 0; }
  .sq-actions .tagbar button { min-width: 40px; padding: 0 7px; }
  .sq-preview { margin-left: 12px; }
  .sq-viewmore { margin-left: 12px; }
  .sq-thread .sq-post.anc::after { left: 29px; top: 54px; }
}

/* ---------- thread ---------- */
.sq-thread { display: grid; gap: 0; margin: 6px 0 4px; }
.sq-thread .sq-post.anc { border-radius: 16px 16px 0 0; box-shadow: none; position: relative; margin-bottom: 0; padding-bottom: 12px; }
.sq-thread .sq-post.anc + .sq-post { border-radius: 0 0 16px 16px; }
.sq-thread .sq-post.anc + .sq-post.anc { border-radius: 0; }
.sq-thread .sq-post.anc::after { content: ''; position: absolute; left: 35px; top: 62px; bottom: 0; width: 2px; background: var(--line); }
.sq-thread-story { margin: 6px 0; }
.sq-section { margin-top: 20px; }
.sq-section > h3 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 6px; font-weight: 700; }
.sq-section > p { margin: 0 0 10px; }
.sq-reply-block { margin-bottom: 12px; }
.sq-best-label { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px 8px 0 0; color: #fff; background: var(--c); }
.sq-best-label[data-b="left"] { --c: var(--left); } .sq-best-label[data-b="center"] { --c: var(--center); } .sq-best-label[data-b="right"] { --c: var(--right); }
.sq-best-label + .sq-post { border-top-left-radius: 0; }
.sq-preview { display: grid; gap: 6px; margin: 6px 0 0 28px; padding-left: 12px; border-left: 2px solid var(--line); }
.sq-viewmore { display: inline-flex; align-items: center; min-height: 40px; margin-left: 40px; font-weight: 700; color: var(--center); text-decoration: none; font-size: 14px; }
.sq-noreplies { padding: 16px 4px; }

/* ---------- profile ---------- */
.sq-profile { display: flex; align-items: center; gap: 16px; margin: 8px 0 10px; }
.sq-profile h1 { font-size: clamp(26px, 6vw, 36px); font-weight: 800; overflow-wrap: anywhere; }
.sq-profile p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sq-profile-id { min-width: 0; }
.sq-verified-line { margin: 0 0 8px; font-weight: 700; }
.sq-verified-line a { color: var(--center); text-decoration: none; }
.sq-verified-line a:hover { text-decoration: underline; }
.sq-bio { margin: 0 0 8px; font-size: 16px; overflow-wrap: anywhere; }
.sq-bio a { color: var(--center); font-weight: 600; }
.sq-counts { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.sq-counts b { color: var(--ink); }
.sq-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sq-profile-actions .btn { min-height: 44px; }
.sq-main > .tag-block { margin-bottom: 8px; }
.sq-blogrow { display: grid; gap: 4px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; text-decoration: none; justify-items: start; }
.sq-blogrow b { font: 700 18px/1.25 var(--display); }

/* ---------- activity ---------- */
.sq-activity { display: grid; gap: 10px; }
.sq-act-item { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; display: grid; gap: 8px; }
.sq-act-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.sq-act-line a { text-decoration: none; }
.sq-act-ico { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-2); font-size: 14px; flex: none; }
.sq-act-item[data-type="joined"] .sq-act-ico { background: var(--glow); color: #2a2000; }
.sq-act-item .sq-post.compact { cursor: pointer; }
.sq-mod { background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.sq-mod-item { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; display: grid; gap: 8px; }

/* ---------- empty / prompts ---------- */
.sq-empty { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 18px; }
.sq-empty h3 { font-size: 22px; }
.sq-empty > p { margin: 6px 0 14px; }
.sq-prompts { display: grid; gap: 10px; }
.sq-prompt { display: grid; gap: 6px; }
.sq-prompt .sq-story { margin: 0; }
.sq-prompt .btn { justify-self: start; }

/* ---------- rail ---------- */
.sq-who { display: grid; gap: 10px; }
.sq-who-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sq-who-row .avatar { text-decoration: none; }
.sq-who-name { text-decoration: none; min-width: 0; display: grid; }
.sq-who-name b, .sq-who-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-who-name span { font-size: 12px; }
.sq-who-row .btn { min-height: 36px; padding: 6px 12px; }
.sq-trend { display: grid; gap: 2px; }
.sq-trend a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 6px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.sq-trend a:hover { background: var(--surface-2); }
.sq-bring { background-image: linear-gradient(135deg, color-mix(in srgb, var(--center) 14%, transparent), transparent 70%); }
.sq-bring .btn { margin-top: 4px; }

/* ---------- floating compose button (phones) ---------- */
.sq-fab {
  position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 25;
  width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
  font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgb(0 0 0 / .28);
}
@media (min-width: 1024px) { .sq-fab { display: none; } }

/* ---------- menus (share / more / report) ---------- */
.sq-menu-scrim { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .35); }
.sq-menu {
  position: fixed; z-index: 61; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border-radius: 18px; box-shadow: 0 20px 50px rgb(0 0 0 / .3); padding: 8px; display: grid; gap: 2px;
  max-height: 80vh; overflow-y: auto;
}
.sq-menu-title { font-weight: 800; padding: 10px 12px 6px; }
.sq-menu-note { margin: 0 12px 6px; font-size: 13px; color: var(--ink-2); }
.sq-menu button, .sq-menu a {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  text-align: left; font: 600 15px var(--body); color: var(--ink); text-decoration: none; cursor: pointer; width: 100%;
}
.sq-menu button:hover, .sq-menu a:hover, .sq-menu button:focus-visible, .sq-menu a:focus-visible { background: var(--surface-2); }
.sq-menu .danger { color: var(--right); }
.sq-menu .sq-menu-cancel { justify-content: center; color: var(--ink-2); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
@media (min-width: 600px) {
  .sq-menu-scrim { background: transparent; }
  .sq-menu { right: auto; bottom: auto; width: 260px; border-radius: 14px; }
  .sq-menu .sq-menu-cancel { display: none; }
}

.sq-toast {
  position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow);
  animation: sqfresh .25s ease-out;
}
@media (min-width: 1024px) { .sq-toast { bottom: 28px; } }

/* ---------- import ---------- */
.sq-steps { display: grid; gap: 10px; padding: 0; margin: 14px 0; list-style: none; counter-reset: s; }
.sq-steps li { counter-increment: s; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px 12px 52px; position: relative; }
.sq-steps li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 14px/28px var(--display); text-align: center; }
.sq-upload { display: grid; gap: 10px; margin-bottom: 10px; }
.sq-drop {
  display: grid; place-items: center; text-align: center; min-height: 120px; padding: 16px; border: 2px dashed var(--line); border-radius: 16px;
  background: var(--surface); cursor: pointer; position: relative;
}
.sq-drop.over { border-color: var(--center); background: var(--center-soft); }
.sq-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sq-drop span { display: grid; gap: 4px; }
.sq-drop b { font-size: 17px; overflow-wrap: anywhere; }
.sq-drop:focus-within { outline: 3px solid var(--center); outline-offset: 2px; }
.sq-import-result { margin: 0; font-size: 15px; }
.sq-import-result.ok { color: #1a9a4b; }
.sq-import-result.ok a { color: inherit; font-weight: 700; }
.sq-import-result:empty { display: none; }
.sq-moved { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); font-size: 16px; resize: vertical; }
.sq-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }

/* ---------- account additions (blog.js account view) ---------- */
.handle-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding-left: 12px; }
.handle-input span { color: var(--ink-2); font-weight: 700; }
.handle-input input { border: 0 !important; background: transparent !important; min-height: 44px; flex: 1; min-width: 0; padding-left: 4px !important; }
.handle-input:focus-within { outline: 3px solid var(--center); outline-offset: 1px; }
.check-field { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check-field input { width: 22px; height: 22px; accent-color: var(--center); }
.invite-link-row { display: flex; gap: 8px; }
.invite-link-row input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--bg); font: 500 14px var(--mono); }

@media (prefers-reduced-motion: reduce) {
  .sq-post.fresh, .sq-toast { animation: none; }
}


/* ======================================================================
   v2: media-first Forum
   ====================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sq-img, .sq-linkcard img, .sq-yt img, .sq-tile img, .sq-story-img, .sq-quote-thumb, .sq-minigrid img, .sq-compact-thumb { opacity: 0; transition: opacity .35s ease; }
img.in { opacity: 1 !important; }

/* Post header lean chip: symbol + word + color, never color alone */
.sq-leanchip { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; font: 700 11px/18px var(--mono); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.sq-leanchip b { font-size: 13px; }
.sq-leanchip[data-b="left"] { background: var(--left-soft); color: var(--left); }
.sq-leanchip[data-b="center"] { background: var(--center-soft); color: var(--center); }
.sq-leanchip[data-b="right"] { background: var(--right-soft); color: var(--right); }
.sq-badges.empty:has(.rchip-slot:empty) { display: none; }
.sq-post { transition: background .15s, box-shadow .15s; }
@media (hover: hover) { .sq-post:not(.focus):not(.compact):hover { box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 10px 28px rgb(0 0 0 / .09); } }
.sq-post.pending { opacity: .7; pointer-events: none; }
.sq-post .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sq-act[data-sq-more] .ico { fill: currentColor; stroke: none; }
.sq-text { font-size: 17px; }

/* ---------- photo grids ---------- */
.sq-media { display: grid; gap: 3px; margin: 8px 0 10px; border-radius: 16px; overflow: hidden; width: 100%; max-height: 560px; background: var(--surface-2); border: 1px solid var(--line); }
.sq-media.n2 { grid-template-columns: 1fr 1fr; }
.sq-media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sq-media.n3 .sq-mcell:first-child { grid-row: span 2; }
.sq-media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sq-mcell { position: relative; padding: 0; border: 0; margin: 0; cursor: zoom-in; overflow: hidden; background: var(--surface-2); min-height: 0; }
.sq-mcell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s ease, transform .4s ease; }
@media (hover: hover) { .sq-mcell:hover img.in { transform: scale(1.02); } }
.sq-gif, .sq-alt-badge { position: absolute; left: 8px; bottom: 8px; font: 800 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: rgb(0 0 0 / .7); color: #fff; letter-spacing: .05em; }
.sq-alt-badge { left: auto; right: 8px; }

/* ---------- video ---------- */
.sq-video { position: relative; margin: 8px 0 10px; border-radius: 16px; overflow: hidden; background: #000; max-height: 620px; width: 100%; cursor: pointer; }
.sq-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.sq-vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .55); color: #fff; font-size: 26px; cursor: pointer; padding-left: 5px; backdrop-filter: blur(4px); transition: opacity .2s; }
.sq-video.playing .sq-vplay { opacity: 0; pointer-events: none; }
.sq-vmute { position: absolute; right: 10px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .6); color: #fff; font-size: 17px; cursor: pointer; }
.sq-vprog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(255 255 255 / .2); }
.sq-vprog i { display: block; height: 100%; width: 0; background: #fff; }

/* ---------- YouTube + link cards ---------- */
.sq-yt { margin: 8px 0 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.sq-yt-btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: #000; }
.sq-yt-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sq-yt-play { position: absolute; left: 50%; top: 50%; width: 68px; transform: translate(-50%, -50%); transition: transform .15s; }
.sq-yt-btn:hover .sq-yt-play { transform: translate(-50%, -50%) scale(1.08); }
.sq-yt-frame { aspect-ratio: 16 / 9; background: #000; }
.sq-yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.sq-yt-cap { display: block; padding: 8px 12px; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-linkcard { display: block; margin: 8px 0 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; background: var(--surface); }
.sq-link-imgwrap { display: block; aspect-ratio: 1.91 / 1; background: var(--surface-2); overflow: hidden; }
.sq-link-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sq-link-txt { display: grid; gap: 2px; padding: 10px 14px 12px; }
.sq-link-site { font-size: 13px; color: var(--ink-2); }
.sq-link-txt b { font: 700 16px/1.3 var(--display); }
.sq-link-desc { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sq-linkcard:hover b { text-decoration: underline; }

/* News story embed with picture */
.sq-story { grid-template-columns: minmax(0, 1fr); }
.sq-story:has(.sq-story-img) { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; }
.sq-story-img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.sq-story-txt { display: grid; gap: 4px; min-width: 0; }

/* Quote with thumbnail */
.sq-quote.has-thumb { grid-template-columns: minmax(0, 1fr) 72px; align-items: start; position: relative; }
.sq-quote-main { display: grid; gap: 4px; min-width: 0; }
.sq-quote-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.sq-quote-play { position: absolute; right: 36px; top: 34px; transform: translate(50%, 0); color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / .6); font-size: 18px; }
.sq-compact-thumb { width: 100%; max-width: 220px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin: 4px 0; background: var(--surface-2); }

/* ---------- polls ---------- */
.sq-poll { display: grid; gap: 8px; margin: 8px 0 10px; }
.sq-poll-opt {
  min-height: 46px; border: 2px solid var(--center); border-radius: 999px; background: transparent; color: var(--center);
  font: 700 16px var(--body); cursor: pointer; padding: 0 16px; transition: background .15s, color .15s, transform .1s;
}
.sq-poll-opt:hover { background: var(--center-soft); }
.sq-poll-opt:active { transform: scale(.98); }
.sq-poll-opt.picked { background: var(--center); color: #fff; }
.sq-poll-row { display: grid; gap: 4px; }
.sq-poll-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 12px;
  border-radius: 10px; overflow: hidden; background: var(--surface-2); font-weight: 600;
}
.sq-poll-bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--pct); background: color-mix(in srgb, var(--center) 22%, transparent); border-radius: 10px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.sq-poll-row.lead .sq-poll-bar::before { background: color-mix(in srgb, var(--center) 40%, transparent); }
.sq-poll-row.lead .sq-poll-bar { font-weight: 800; }
.sq-poll-bar > * { position: relative; }
.sq-poll-check { color: var(--center); font-weight: 800; }
.sq-poll-sides { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.sq-poll-lcr { flex: 1; display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.sq-poll-lcr i { display: block; height: 100%; }
.sq-poll-lcr .l, .sq-poll-key .l { background: var(--left); }
.sq-poll-lcr .c, .sq-poll-key .c { background: var(--center); }
.sq-poll-lcr .r, .sq-poll-key .r { background: var(--right); }
.sq-poll-sides small { font: 600 11px var(--mono); color: var(--ink-2); white-space: nowrap; }
.sq-poll-key { margin: 0; display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.sq-poll-key .kk { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sq-poll-key .k { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sq-poll-foot { margin: 0; font-size: 13px; }

/* ---------- composer tools + attachments ---------- */
.sq-composer.drop { box-shadow: 0 0 0 3px var(--center), var(--shadow); background: var(--center-soft); }
.sq-tools { display: flex; gap: 2px; margin-left: 46px; flex-wrap: wrap; }
.sq-tool {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  color: var(--center); font: 700 14px var(--body); cursor: pointer;
}
.sq-tool .ico { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sq-tool:hover { background: var(--center-soft); }
.sq-tool.on { background: var(--center); color: #fff; }
.sq-tool.off { opacity: .35; pointer-events: none; }
.sq-tool:focus-within { outline: 3px solid var(--center); outline-offset: 1px; }
@media (max-width: 480px) { .sq-tools { margin-left: 0; justify-content: space-between; } .sq-tool span { display: none; } .sq-tool { min-width: 48px; justify-content: center; } }
.sq-comp-media { display: grid; gap: 6px; margin-left: 50px; }
.sq-comp-media:empty { display: none; }
.sq-comp-media.n1 { grid-template-columns: 1fr; }
.sq-comp-media.n2, .sq-comp-media.n4 { grid-template-columns: 1fr 1fr; }
.sq-comp-media.n3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 480px) { .sq-comp-media { margin-left: 0; } }
.sq-thumb { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.sq-comp-media.n1 .sq-thumb { aspect-ratio: auto; max-height: 360px; }
.sq-thumb img, .sq-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; }
.sq-comp-media.n1 .sq-thumb img, .sq-comp-media.n1 .sq-thumb video { max-height: 360px; object-fit: contain; background: #000; }
.sq-thumb .sq-x { top: 6px; right: 6px; background: rgb(0 0 0 / .7); color: #fff; }
.sq-thumb-tag { position: absolute; left: 8px; top: 8px; font: 800 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: rgb(0 0 0 / .7); color: #fff; }
.sq-alt-btn { position: absolute; left: 8px; bottom: 8px; min-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: rgb(0 0 0 / .7); color: #fff; font: 800 12px var(--mono); cursor: pointer; }
.sq-alt-btn.set { background: var(--verified, #0f9d76); }
.sq-prog { position: absolute; left: 10px; right: 10px; bottom: 44px; height: 6px; border-radius: 99px; background: rgb(255 255 255 / .35); overflow: hidden; }
.sq-prog i { display: block; height: 100%; background: #fff; transition: width .2s; }
.sq-thumb.err { outline: 2px solid var(--right); }
.sq-thumb-err { position: absolute; inset: auto 8px 44px 8px; background: var(--right); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.sq-comp-link .sq-attach, .sq-comp-poll { margin-left: 50px; }
.sq-comp-link .sq-linkcard, .sq-comp-link .sq-yt { margin: 0; }
@media (max-width: 480px) { .sq-comp-link .sq-attach, .sq-comp-poll { margin-left: 0; } }
.sq-comp-poll:empty, .sq-comp-link:empty { display: none; }
.sq-x.inline { position: static; flex: none; width: 36px; height: 36px; }
.sq-x.static { position: static; }
.sq-pollb { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.sq-pollb-head { display: flex; justify-content: space-between; align-items: center; }
.sq-pollb-opt { display: flex; gap: 6px; align-items: center; }
.sq-pollb-opt input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg); font-size: 16px; }
.sq-pollb-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sq-pollb-foot label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.sq-pollb-foot select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 8px; font-size: 15px; }
.sq-pollb p { margin: 0; }

/* Character ring */
.sq-count { display: inline-flex; align-items: center; gap: 4px; }
.sq-ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.sq-ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.sq-ring .fill { stroke: var(--center); stroke-linecap: round; transition: stroke-dasharray .15s; }
.sq-count.warn .fill { stroke: var(--right); }
.sq-count:not(.typing) .sq-ring { opacity: .5; }

/* ---------- Media tab grid (Instagram-style) ---------- */
.sq-feed.is-grid { display: block; }
.sq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 14px; overflow: hidden; }
@media (min-width: 700px) { .sq-grid { grid-template-columns: repeat(4, 1fr); } }
.sq-tile { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; display: block; }
.sq-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s, transform .3s; }
@media (hover: hover) { .sq-tile:hover img.in { transform: scale(1.05); } }
.sq-tile-ico { position: absolute; top: 6px; right: 6px; font: 800 12px/1 var(--mono); color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / .7); background: rgb(0 0 0 / .35); padding: 4px 5px; border-radius: 6px; }
.sq-tile-lean { position: absolute; left: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 800 13px/1 var(--mono); color: #fff; }
.sq-tile-lean[data-b="left"] { background: var(--left); } .sq-tile-lean[data-b="center"] { background: var(--center); } .sq-tile-lean[data-b="right"] { background: var(--right); }
.sq-tile.sk { animation: skel 1.2s ease-in-out infinite; }
.sq-minigrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 10px; overflow: hidden; }
.sq-minigrid a { aspect-ratio: 1; background: var(--surface-2); display: block; }
.sq-minigrid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- skeletons ---------- */
.sq-skel { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; }
.sk-av { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); animation: skel 1.2s ease-in-out infinite; }
.sk-lines { display: grid; gap: 8px; }
.sk-lines i { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); animation: skel 1.2s ease-in-out infinite; }
.sk-lines .sk-media { height: 180px; width: 100%; border-radius: 14px; }
@keyframes skel { 50% { opacity: .45; } }

/* ---------- profile cover ---------- */
.sq-cover { height: 110px; border-radius: 18px; margin-top: 4px; background: linear-gradient(120deg, var(--left), var(--center) 50%, var(--right)); opacity: .9; }
.sq-cover[data-b="left"] { background: linear-gradient(120deg, var(--left), color-mix(in srgb, var(--left) 40%, var(--center))); }
.sq-cover[data-b="right"] { background: linear-gradient(120deg, color-mix(in srgb, var(--right) 40%, var(--center)), var(--right)); }
.sq-cover + .sq-profile { margin-top: -42px; padding-left: 14px; align-items: flex-end; }
.sq-cover + .sq-profile .avatar.xl { border: 4px solid var(--bg); box-shadow: var(--shadow); }
.sq-cover + .sq-profile .sq-profile-id { padding-bottom: 4px; }

/* ---------- hero art ---------- */
.sq-hero-art { display: flex; gap: 8px; margin-bottom: 12px; }
.sq-hero-art .b { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 22px/1 var(--mono); color: #fff; transform: rotate(-4deg); }
.sq-hero-art .l { background: var(--left); } .sq-hero-art .c { background: var(--center); transform: rotate(3deg) translateY(-4px); } .sq-hero-art .r { background: var(--right); transform: rotate(6deg); }
.sq-act-word { margin-right: 2px; }
@media (max-width: 420px) { .sq-act-word { display: none; } }
.sq-loadmore { display: block; margin: 14px auto; }

/* ---------- lightbox ---------- */
.sq-lightbox { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .94); display: grid; place-items: center; touch-action: pinch-zoom; animation: sqfade .2s ease-out; }
@keyframes sqfade { from { opacity: 0; } }
.sq-lb-fig { margin: 0; max-width: 100vw; max-height: 100vh; display: grid; place-items: center; gap: 10px; padding: 56px 12px 40px; }
.sq-lb-img { max-width: calc(100vw - 24px); max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.sq-lb-cap { color: #ddd; font-size: 14px; text-align: center; max-width: 640px; }
.sq-lb-cap:empty { display: none; }
.sq-lb-close, .sq-lb-nav { position: fixed; z-index: 81; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.sq-lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.sq-lb-nav { top: 50%; transform: translateY(-50%); }
.sq-lb-nav.prev { left: 12px; } .sq-lb-nav.next { right: 12px; }
.sq-lb-close:hover, .sq-lb-nav:hover { background: rgb(255 255 255 / .26); }
.sq-lb-dots { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.sq-lb-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / .35); }
.sq-lb-dots i.on { background: #fff; }

/* ---------- meme maker ---------- */
.sq-meme { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .6); display: grid; place-items: center; padding: 12px; animation: sqfade .2s ease-out; }
.sq-meme-card { width: min(640px, 100%); max-height: calc(100vh - 24px); overflow-y: auto; background: var(--bg); border-radius: 20px; padding: 14px; display: grid; gap: 12px; box-shadow: 0 20px 60px rgb(0 0 0 / .4); }
.sq-meme-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.sq-meme-head .sq-x { background: var(--surface-2); color: var(--ink); width: 40px; height: 40px; }
.sq-meme-stage { position: relative; border-radius: 14px; overflow: hidden; background: #111; display: grid; place-items: center; }
.sq-meme-stage canvas { display: block; width: 100%; height: auto; max-height: 56vh; object-fit: contain; }
.sq-meme-pick { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; color: #fff; text-align: center; background: repeating-linear-gradient(45deg, #1a1a1f, #1a1a1f 12px, #222228 12px, #222228 24px); }
.sq-meme-pick span { display: grid; gap: 4px; font-size: 30px; }
.sq-meme-pick b { font-size: 18px; } .sq-meme-pick small { font-size: 13px; opacity: .7; }
.sq-meme-pick.hidden { display: none; }
.sq-meme-fields { display: grid; gap: 8px; }
.sq-meme-fields input[type="text"] { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--surface); font: 400 20px "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.sq-meme-size { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.sq-meme-size input { flex: 1; accent-color: var(--center); min-height: 32px; }
.sq-meme-actions { display: flex; justify-content: space-between; gap: 8px; }
.sq-meme-actions .btn { min-height: 46px; }

@media (prefers-reduced-motion: reduce) {
  .sq-lightbox, .sq-meme, .sq-skel *, .sq-tile.sk { animation: none !important; }
  .sq-img, .sq-mcell img, .sq-tile img, .sq-poll-bar::before { transition: none !important; }
}

/* Narrow phones: lean chip shows just the symbol (the word stays for screen readers via title) */
@media (max-width: 420px) {
  .sq-leanchip { padding: 2px 7px; }
  .sq-leanchip .lc-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sq-head { flex-wrap: nowrap; }
  .sq-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .sq-handle { max-width: 90px; }
}

/* ======================================================================
   Discussions: every story, politician, post and outlet is a thread
   ====================================================================== */
/* "On:" context row above a post's text */
.sq-on {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; padding: 6px 10px; max-width: 100%;
  border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.3; min-height: 40px;
}
.sq-on:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.sq-on-k { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); flex: none; }
.sq-on b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sq-on .muted { font-size: 12px; flex: none; }
.sq-on.story { border-left: 4px solid var(--c, var(--line)); }
.sq-on.story[data-b="left"] { --c: var(--left); } .sq-on.story[data-b="center"] { --c: var(--center); } .sq-on.story[data-b="right"] { --c: var(--right); }
.sq-on.story img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface); }
.sq-on-txt { display: grid; gap: 2px; min-width: 0; }
.sq-on-src { font-size: 12px; color: var(--ink-2); font-weight: 600; }

/* Discussion card in the Forum feed */
.sq-disc-card {
  display: grid; gap: 8px; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  border: 2px dashed color-mix(in srgb, var(--c, var(--line)) 55%, transparent); transition: transform .15s, border-color .15s;
}
.sq-disc-card[data-b="left"] { --c: var(--left); } .sq-disc-card[data-b="center"] { --c: var(--center); } .sq-disc-card[data-b="right"] { --c: var(--right); }
.sq-disc-card:hover { border-color: var(--c); transform: translateY(-1px); }
.sq-disc-kicker { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--c, var(--ink-2)); }
.sq-disc-main { display: flex; gap: 12px; align-items: flex-start; }
.sq-disc-txt { display: grid; gap: 4px; min-width: 0; flex: 1; }
.sq-disc-src { font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sq-disc-title { font: 800 18px/1.25 var(--display); }
.sq-disc-img { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.sq-disc-foot { font-size: 14px; color: var(--ink-2); }
.sq-disc-foot b { color: var(--ink); }
.sq-startup { padding: 6px 2px 12px; }
.sq-startup h3 { font-size: 20px; margin-bottom: 4px; }
.sq-startup p { margin: 0; }
@media (max-width: 480px) { .sq-disc-img { width: 72px; height: 56px; } .sq-disc-title { font-size: 16px; } }

/* Hot threads in the rail */
.sq-hot { display: grid; gap: 4px; }
.sq-hot-row { display: grid; gap: 2px; padding: 8px 0 8px 10px; border-left: 3px solid var(--c, var(--line)); text-decoration: none; color: var(--ink); }
.sq-hot-row[data-b="left"] { --c: var(--left); } .sq-hot-row[data-b="center"] { --c: var(--center); } .sq-hot-row[data-b="right"] { --c: var(--right); }
.sq-hot-row b { font-size: 14px; line-height: 1.3; }
.sq-hot-row span { font-size: 12px; }

/* Discussion block (inline, in drawers, on story pages) */
.disc { margin-top: 20px; }
.disc-h { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 10px; font-weight: 700; }
.disc .sq-composer { margin-bottom: 14px; }
.disc-sub { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 16px 0 8px; }
.disc-best .sq-reply-block { margin-bottom: 14px; }
.disc-empty { margin: 8px 0; }
.drawer .disc .sq-post { box-shadow: var(--shadow); }
.drawer .disc .sq-comp-row { flex-wrap: wrap; }
.sq-post.fresh { animation: sqfresh 1.6s ease-out; }
@keyframes sqfresh { from { box-shadow: 0 0 0 3px var(--center); } }

/* Story page */
.sq-story-page .card { margin: 8px 0 4px; }
.story-sides { display: grid; gap: 10px; }
.story-side { background: var(--surface); border-radius: var(--radius); padding: 10px 12px; border-top: 3px solid var(--c); box-shadow: var(--shadow); }
.story-side[data-b="left"] { --c: var(--left); } .story-side[data-b="center"] { --c: var(--center); } .story-side[data-b="right"] { --c: var(--right); }
.story-side .disc-sub { margin: 4px 0 6px; color: var(--c); }
.story-side.none { opacity: .75; }
.story-side.none p.small { margin: 0; }
.story-side-row { display: grid; gap: 2px; padding: 8px 0; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); min-height: 44px; }
.story-side-row:first-of-type { border-top: 0; }
.story-side-row b { font-size: 15px; line-height: 1.3; }
.story-side-row span { font-size: 12px; }
@media (min-width: 760px) { .story-sides { grid-template-columns: repeat(3, minmax(0, 1fr)); } .story-sides > h3 { grid-column: 1 / -1; } }

/* News card: Discuss button */
.disc-btn b { font-family: var(--mono); }
@media (prefers-reduced-motion: reduce) { .sq-post.fresh { animation: none; } .sq-disc-card:hover { transform: none; } }
.sq-disc-src .sq-leanchip, .sq-on .sq-leanchip { margin-left: 0; }
