/* ─────────────────────────────────────────────────────────────
   Community, social edition. A timeline for people who wear selvedge:
   hang-tag post kinds, copper rivets for likes, conversations joined
   by a running stitch, and fit checks on kraft tags.
   ───────────────────────────────────────────────────────────── */

/* Where you type: a faint lift of the page's own cotton tone, not white. */
:root { --type-bg: rgba(245, 239, 226, 0.42); --type-line: rgba(29, 27, 24, 0.16); --type-focus: rgba(52, 80, 127, 0.55); }

/* ── Layout: rooms | feed | sidebar ── */
.feed-wrap { display: grid; grid-template-columns: 210px minmax(0, 640px) minmax(0, 300px); gap: 32px; justify-content: center; padding-top: 28px; padding-bottom: 80px; align-items: start; }
.feed-nav { position: sticky; top: calc(var(--header) + 20px); display: flex; flex-direction: column; gap: 22px; }
.fn-brand h1 { font-size: 2rem; line-height: 1.05; margin: 0 0 6px; }
.fn-brand h1 .jp { font-size: 1rem; color: var(--sumi-3); }
.fn-brand p { margin: 0; font-size: 0.88rem; color: var(--sumi-2); line-height: 1.5; }
.fn-rooms { display: flex; flex-direction: column; gap: 2px; }
.fn-rooms a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 999px; text-decoration: none; color: var(--sumi); font-family: var(--work); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; transition: background-color 0.15s, color 0.15s; }
.fn-rooms a i { font-style: normal; font-family: var(--serif); font-weight: 800; font-size: 0.95rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: var(--canvas-2); color: var(--sumi-2); transition: background-color 0.15s, color 0.15s; }
.fn-rooms a:hover { background: rgba(245, 239, 226, 0.75); }
.fn-rooms a.on { color: var(--ai-800); }
.fn-rooms a.on i { background: var(--ai-800); background-image: var(--twill); color: var(--ecru); }
.fn-links { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.fn-links a { font-size: 0.88rem; color: var(--sumi-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.fn-links a:hover { color: var(--aka); }
.feed-side { position: sticky; top: calc(var(--header) + 20px); display: flex; flex-direction: column; gap: 16px; }

/* ── Feed controls ── */
.feed-tabs { display: flex; align-items: stretch; gap: 0; margin: 18px 0 0; border-bottom: 1.5px solid var(--line-strong); }
.feed-tabs > a { position: relative; padding: 12px 16px 13px; font-family: var(--work); font-weight: 600; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sumi-3); text-decoration: none; white-space: nowrap; }
.feed-tabs > a:hover { color: var(--sumi); }
.feed-tabs > a.on { color: var(--sumi); }
.feed-tabs > a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1.5px; height: 3px; background: var(--aka); border-radius: 2px 2px 0 0; }
.feed-search { margin-left: auto; display: flex; align-items: center; padding: 4px 0; }
.feed-search input { width: 150px; font: inherit; font-size: 0.9rem; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--type-line); background: var(--type-bg); transition: width 0.25s ease, border-color 0.2s; }
.feed-search input:focus { width: 210px; outline: none; border-color: var(--type-focus); }
.feed-kinds { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 6px; }
.feed-kinds a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.86rem; text-decoration: none; color: var(--sumi-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color 0.15s, box-shadow 0.15s; }
.feed-kinds a i { font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 0.82rem; color: var(--sumi-3); }
.feed-kinds a:hover { box-shadow: inset 0 0 0 1.5px var(--sumi-2); }
.feed-kinds a.on { background: var(--sumi); color: var(--ecru); box-shadow: none; }
.feed-kinds a.on i { color: var(--kraft); }
.feed-note, .feed-join { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 6px; background: rgba(245, 239, 226, 0.85); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 0.92rem; }
.feed-join .btn { margin-left: auto; flex: none; }
.fj-k { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--aka); color: #fbefe9; font-family: var(--serif); font-weight: 800; }
.feed-empty { margin-top: 18px; }
.fe-k { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--kraft); color: var(--leather-2); font-family: var(--serif); font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }

/* ── Composer ── */
.composer { position: relative; background: var(--type-bg); border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--type-line); padding: 14px 16px 12px; transition: box-shadow 0.2s; }
.composer:focus-within { box-shadow: inset 0 0 0 1.5px var(--type-focus); }
.composer::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; bottom: 6px; border: 1.2px dashed rgba(201, 143, 54, 0); border-radius: 5px; pointer-events: none; transition: border-color 0.25s; }
.composer:focus-within::before { border-color: rgba(201, 143, 54, 0.35); }
.cz-top { display: flex; align-items: center; gap: 12px; }
.cz-kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.cz-kind input { position: absolute; opacity: 0; pointer-events: none; }
.cz-kind span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; font-family: var(--work); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sumi-2); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.cz-kind span i { font-style: normal; font-family: var(--serif); font-weight: 800; letter-spacing: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--canvas-2); font-size: 0.78rem; }
.cz-kind input:checked + span { color: var(--sumi); box-shadow: inset 0 0 0 1.5px var(--sumi); }
.cz-kind input:checked + span i { background: var(--sumi); color: var(--ecru); }
.cz-kind input[value=question]:checked + span i { background: var(--aka); }
.cz-kind input[value=fitcheck]:checked + span i { background: var(--kraft-2); color: var(--leather-2); }
.cz-kind input:focus-visible + span { outline: 2px solid var(--aka); outline-offset: 2px; }
.cz-body { padding: 8px 0 0 56px; }
.cz-title { width: 100%; border: 0; background: transparent; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; padding: 6px 0; color: var(--sumi); }
.cz-title:focus, .composer textarea:focus { outline: none; }
.composer textarea { width: 100%; border: 0; background: transparent; resize: none; font: inherit; font-size: 1.05rem; line-height: 1.55; color: var(--sumi); padding: 4px 0; min-height: 2.4em; }
.composer textarea::placeholder, .cz-title::placeholder { color: var(--sumi-3); }
.cz-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0 0 56px; margin-top: 6px; border-top: 1px dashed var(--line); }
.cz-bar .btn { margin-left: auto; }
.cz-tool { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ai-700); cursor: pointer; transition: background-color 0.15s; }
.cz-tool:hover { background: var(--ai-100); }
.cz-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.composer select, .reply-form select { font: inherit; font-size: 0.88rem; max-width: 220px; padding: 6px 28px 6px 12px; border-radius: 999px; border: 1.5px solid var(--type-line); background: var(--type-bg) linear-gradient(45deg, transparent 50%, var(--sumi-2) 50%) calc(100% - 15px) 52% / 5px 5px no-repeat, linear-gradient(135deg, var(--sumi-2) 50%, transparent 50%) calc(100% - 10px) 52% / 5px 5px no-repeat; appearance: none; -webkit-appearance: none; color: var(--sumi); }
.composer[data-kind=fitcheck] [data-cz-jean] { border-color: rgba(77, 44, 23, 0.35); }
.cz-count { font-family: var(--mono); font-size: 0.8rem; color: var(--sumi-3); }
/* Compact on the feed until you start */
.composer.compact:not(.open) [data-cz-more], .composer.compact:not(.open) .cz-room, .composer.compact:not(.open) .cz-tag, .composer.compact:not(.open) .cz-fit { display: none; }
.composer.compact:not(.open) .cz-bar { border-top-color: transparent; }
.cz-fit { border: 0; margin: 8px 0 4px; padding: 0; }
.cz-fit[hidden] { display: none; }
.cz-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cz-row .field { margin: 0; }
.cz-row .field label { color: var(--sumi-3); }
.cz-row .field label small { text-transform: none; letter-spacing: 0; font-family: var(--mono); }
.cz-row input { width: 100%; min-height: 40px !important; padding: 7px 10px !important; background: var(--type-bg) !important; border-color: var(--type-line) !important; }
.cz-row input:focus { outline: none !important; border-color: var(--type-focus) !important; }
.cz-photos ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.cz-photos li { position: relative; width: 92px; height: 92px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-strong); animation: cz-pop 0.25s ease both; }
.cz-photos img { width: 100%; height: 100%; object-fit: cover; }
.cz-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(18, 28, 54, 0.75); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
@keyframes cz-pop { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.create-wrap { max-width: 720px; padding-top: 28px; padding-bottom: 80px; }
.create-wrap h1 { margin: 12px 0 6px; }
.create-wrap .lede { margin: 0 0 20px; }

/* ── Post cards ── */
.feed-list { display: flex; flex-direction: column; }
.pc { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 14px 12px; border-bottom: 1px dashed var(--line-strong); transition: background-color 0.2s; }
.pc:hover { background: rgba(245, 239, 226, 0.6); }
.pc-hit { position: absolute; inset: 0; z-index: 0; }
.pc-hit:focus-visible { outline: 2px solid var(--aka); outline-offset: -2px; }
.pc a:not(.pc-hit), .pc button, .pc form, .pc .photo-grid, .pc .fit-card { position: relative; z-index: 1; }
.pc.pinned { background: linear-gradient(90deg, rgba(184, 50, 42, 0.06), transparent 60%); }
.pc-av { display: block; }
.pc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; line-height: 1.4; }
.pc-name { font-weight: 700; color: var(--sumi); text-decoration: none; }
a.pc-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pc-head .badge, .pc-head .rank { margin-left: 4px; }
.pc-meta { color: var(--sumi-3); font-size: 0.86rem; margin-left: 6px; }
.pc-meta a { color: inherit; text-decoration: none; }
.pc-meta a:hover { text-decoration: underline; }
/* Hang-tag kinds */
.pc-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 14px; position: relative; font-family: var(--work); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 2px 4px 4px 2px; clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); }
.pc-tag::before { content: ''; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--canvas); }
.pc-tag i { font-style: normal; font-family: var(--serif); font-weight: 800; letter-spacing: 0; }
.kt-post { background: var(--ai-100); color: var(--ai-700); }
.kt-question { background: rgba(184, 50, 42, 0.12); color: var(--aka); }
.kt-fitcheck { background: var(--kraft); color: var(--leather-2); }
.pc-pin, .pc-op { font-family: var(--work); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aka); margin-left: 6px; }
.pc-op { color: var(--ai-600); padding: 0 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--ai-300); }
.pc-title { font-family: var(--serif); font-size: 1.22rem; line-height: 1.3; margin: 6px 0 2px; }
.pc-body { font-size: 1rem; line-height: 1.6; color: var(--sumi); overflow-wrap: anywhere; }
.pc-body p, .ri-body p, .op-body p { margin: 4px 0 8px; }
.pc-body p:last-child, .ri-body p:last-child { margin-bottom: 4px; }
.mention { color: var(--ai-700); font-weight: 600; text-decoration: none; }
.mention:hover { text-decoration: underline; }
.pc-jean { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 6px 12px 6px 6px; border-radius: 6px; text-decoration: none; color: var(--sumi); background: var(--type-bg); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow 0.15s, transform 0.2s; }
.pc-jean:hover { box-shadow: inset 0 0 0 1.5px var(--ai-600); transform: translateY(-1px); }
.pc-jean-k { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: var(--ai-800); background-image: var(--twill); color: var(--ecru); font-family: var(--serif); font-weight: 800; font-size: 0.9rem; }
.pc-jean small { display: block; font-family: var(--work); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sumi-3); line-height: 1.2; }
.pc-jean b { font-family: var(--work); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.pc-jean-size { margin-left: 6px; font-family: var(--mono); font-size: 0.82rem; color: var(--sumi-2); padding-left: 10px; border-left: 1px dashed var(--line-strong); }

/* Actions */
.pc-actions { display: flex; align-items: center; gap: 4px; margin: 6px 0 0 -8px; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 0.88rem; color: var(--sumi-3); text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.act b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 1ch; }
.act:hover { background: var(--ai-100); color: var(--ai-700); }
.act:disabled { cursor: default; opacity: 0.6; }
.act:disabled:hover { background: none; color: var(--sumi-3); }
.rivet-form { margin: 0; display: inline-flex; }
.pc-room { margin-left: auto; font-family: var(--work); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sumi-3); text-decoration: none; }
.pc-room:hover { color: var(--aka); }

/* ── Rivet: an open copper ring that sets solid ── */
.rv { position: relative; width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px currentColor; transition: box-shadow 0.2s; }
.rv::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: currentColor; opacity: 0.35; transition: opacity 0.2s; }
.rivet-btn:hover { background: rgba(176, 106, 59, 0.12); color: var(--copper); }
.rivet-btn.on { color: var(--copper); }
.rivet-btn.on .rv { box-shadow: none; background: radial-gradient(circle at 35% 30%, #f6cf9e 0 16%, #c98048 34%, #8d4f27 72%, #5d3418 100%); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.rivet-btn.on .rv::after { opacity: 0; }
.rivet-btn.set .rv { animation: rivet-set 0.45s cubic-bezier(0.3, 0.7, 0.3, 1.4); }
.rivet-btn.set .rv::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--copper); opacity: 0; animation: rivet-ring 0.5s ease-out; }
@keyframes rivet-set { 0% { transform: scale(1); } 35% { transform: scale(0.7); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes rivet-ring { from { opacity: 0.8; transform: scale(0.6); } to { opacity: 0; transform: scale(1.3); } }

/* ── Photos ── */
.photo-grid { display: grid; gap: 4px; margin: 10px 0 4px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); max-width: 560px; }
.photo-grid.n1 { grid-template-columns: 1fr; }
.photo-grid.n1 .pg-item { aspect-ratio: 4 / 3; max-height: 460px; }
.photo-grid.n2 { grid-template-columns: 1fr 1fr; }
.photo-grid.n2 .pg-item { aspect-ratio: 4 / 5; }
.photo-grid.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.photo-grid.n3 .pg-item:first-child { grid-row: span 2; }
.photo-grid.n4 { grid-template-columns: 1fr 1fr; aspect-ratio: 3 / 2; }
.pg-item { display: block; overflow: hidden; background: var(--canvas-2); min-height: 0; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.pg-item:hover img { transform: scale(1.03); }

/* ── Fit check card ── */
.fit-card { margin: 10px 0 4px; padding: 14px 16px; border-radius: 6px; max-width: 560px; background: var(--kraft) var(--fibre); color: var(--leather-2); box-shadow: inset 0 0 0 1.5px rgba(77, 44, 23, 0.22); position: relative; }
.fit-card::after { content: ''; position: absolute; inset: 5px; border: 1.2px dashed rgba(77, 44, 23, 0.35); border-radius: 4px; pointer-events: none; }
.fc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fc-k { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--leather-2); color: #f6ead3; font-family: var(--serif); font-weight: 800; }
.fc-pair a { text-decoration: none; color: var(--sumi); display: block; }
.fc-pair small { display: block; font-family: var(--work); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leather); line-height: 1.2; }
.fc-pair b { font-family: var(--work); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.fc-pair a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.fc-facts { display: flex; gap: 16px; margin: 0 0 0 auto; }
.fc-facts div { text-align: center; }
.fc-facts dt { font-family: var(--work); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leather); }
.fc-facts dd { margin: 0; font-family: var(--work); font-weight: 700; font-size: 1.2rem; color: var(--sumi); line-height: 1.1; }
/* ── Sidebar blocks ── */
.fitcheck-cta { position: relative; background: var(--kraft) var(--fibre) !important; color: var(--leather-2); }
.fitcheck-cta h3 { margin-top: 2px; }
.fitcheck-cta p { font-size: 0.9rem; line-height: 1.5; }
.fcc-k { position: absolute; right: 14px; top: 10px; font-family: var(--serif); font-weight: 800; font-size: 2.6rem; line-height: 1; color: rgba(77, 44, 23, 0.16); }
.trending ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.trending li { counter-increment: t; }
.trending a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; padding: 8px 0; text-decoration: none; color: var(--sumi); border-bottom: 1px dashed var(--line); }
.trending a::before { content: counter(t); grid-row: span 2; font-family: var(--work); font-weight: 700; color: var(--sumi-3); font-size: 1.1rem; }
.trending small { grid-column: 2; font-family: var(--work); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sumi-3); }
.trending b { grid-column: 2; font-family: var(--work); font-size: 1.1rem; }
.trending span { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 0.8rem; color: var(--sumi-3); }
.trending a:hover b { color: var(--aka); }

/* ── Thread ── */
.thread-wrap { max-width: 720px; padding-top: 24px; padding-bottom: 90px; }
.thread-wrap .crumbs a { text-decoration: none; }
.op { margin-top: 16px; padding: 22px 22px 12px; border-radius: 10px; background-color: rgba(227, 216, 193, 0.55); background-image: var(--fibre); box-shadow: inset 0 0 0 1.5px var(--line); position: relative; }
.op::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 3px 3px 0; background: var(--ai-700); }
.op.kind-question::before { background: var(--aka); }
.op.kind-fitcheck::before { background: var(--kraft-2); }
.op-head { display: flex; align-items: center; gap: 12px; }
.op-head > div { display: flex; flex-direction: column; min-width: 0; }
.op-who { display: flex; align-items: center; flex-wrap: wrap; }
.op-head .pc-meta { margin-left: 0; }
.op-title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.15; margin: 16px 0 8px; }
.op-body { font-size: 1.08rem; line-height: 1.65; overflow-wrap: anywhere; }
.op-actions { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 12px; margin-left: 0; }
.ri-more { margin-left: auto; display: inline-flex; gap: 12px; align-items: center; }
.ri-more form { margin: 0; }
.ri-more .linkish { color: var(--sumi-3); text-decoration: none; font-size: 0.82rem; }
.ri-more .linkish:hover { color: var(--aka); text-decoration: underline; }
.edit-form { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.edit-form[hidden] { display: none; }
.edit-form label { font-family: var(--work); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sumi-3); }
.edit-form input, .edit-form textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 6px; border: 1.5px solid var(--type-line); background: var(--type-bg); color: var(--sumi); }
.edit-form input:focus, .edit-form textarea:focus { outline: none; border-color: var(--type-focus); }
.ef-bar { display: flex; align-items: center; gap: 14px; }

/* Reply form */
.reply-box { margin: 18px 0 8px; }
.reply-form { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--type-bg); box-shadow: inset 0 0 0 1.5px var(--type-line); }
.reply-form:focus-within { box-shadow: inset 0 0 0 1.5px var(--type-focus); }
.reply-form textarea { width: 100%; border: 0; background: transparent; resize: vertical; font: inherit; font-size: 1rem; line-height: 1.55; min-height: 2.6em; padding: 6px 0; }
.reply-form textarea:focus { outline: none; }
.reply-form.inline { margin: 8px 0 4px; box-shadow: inset 0 0 0 1.5px var(--type-focus); animation: cz-pop 0.2s ease both; }
.rf-to { margin: 0; font-size: 0.82rem; color: var(--ai-600); font-weight: 600; }
.rf-bar { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.rf-bar .cz-tool { margin-right: auto; }
.rf-guest { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Conversations: replies to a reply hang off a running stitch */
.convs { margin-top: 18px; }
.replies-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--line-strong); }
.replies-head h2 { font-size: 1.2rem; margin: 0; }
.conv { position: relative; padding: 6px 0; border-bottom: 1px dashed var(--line-strong); }
.ri { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 6px 6px; border-radius: 8px; transition: background-color 0.6s; }
.ri.nested { grid-template-columns: 32px minmax(0, 1fr); padding-top: 8px; }
.ri:target, .ri.flash { background: rgba(201, 143, 54, 0.14); }
.ri-side { position: relative; }
.ri-body { line-height: 1.6; overflow-wrap: anywhere; }
.conv-kids { position: relative; margin-left: 26px; padding-left: 22px; padding-bottom: 6px; }
/* The stitch: a dashed tobacco thread from the parent's avatar down, with a curved
   elbow into each reply underneath. Each nested reply draws its own run of thread. */
.conv.has-kids > .ri .ri-side::after { content: ''; position: absolute; left: 19px; top: 46px; bottom: -6px; width: 2px; background: repeating-linear-gradient(180deg, var(--thread) 0 6px, transparent 6px 10px); opacity: 0.85; }
.conv-kids > .ri { position: relative; }
.conv-kids > .ri::before { content: ''; position: absolute; left: -22px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--thread) 0 6px, transparent 6px 10px); opacity: 0.85; }
.conv-kids > .ri:last-child::before { bottom: auto; height: 12px; }
.conv-kids > .ri::after { content: ''; position: absolute; left: -22px; top: 10px; width: 18px; height: 14px; border-left: 2px dashed var(--thread); border-bottom: 2px dashed var(--thread); border-bottom-left-radius: 12px; opacity: 0.85; }
.convs-empty { text-align: center; padding: 40px 16px; color: var(--sumi-2); }
.convs-empty span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--canvas-2); font-family: var(--serif); font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; }

/* Live replies */
.live-pill { position: sticky; top: calc(var(--header) + 12px); z-index: 5; display: flex; align-items: center; gap: 8px; margin: 10px auto; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--ai-800); background-image: var(--twill); color: var(--ecru); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); animation: cz-pop 0.3s ease both; }
.live-pill[hidden] { display: none; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #f0c39b; animation: lp 1.6s ease-in-out infinite; }
@keyframes lp { 50% { opacity: 0.35; } }

/* Toast */
.c-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--sumi); color: var(--ecru); font-size: 0.9rem; box-shadow: var(--shadow); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.3, 0.7, 0.3, 1); }
.c-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Fit checks on jean pages ── */
.fit-summary { margin: 18px 0 8px; padding: 16px 18px; border-radius: 8px; background: var(--kraft) var(--fibre); color: var(--leather-2); box-shadow: inset 0 0 0 1.5px rgba(77, 44, 23, 0.22); }
.fit-summary h3 { margin: 0 0 4px; font-family: var(--serif); color: var(--sumi); }
.fit-summary > p { margin: 0 0 12px; font-size: 0.9rem; }
.fs-quotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fs-quotes a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--sumi); background: rgba(245, 239, 226, 0.45); transition: background-color 0.15s; }
.fs-quotes a:hover { background: rgba(245, 239, 226, 0.8); }
.fs-quotes small { display: block; font-size: 0.78rem; color: var(--leather); }
.fs-quotes q { font-size: 0.92rem; line-height: 1.5; quotes: '“' '”'; }

/* ── Responsive ── */
@media (max-width: 1180px) {
    .feed-wrap { grid-template-columns: minmax(0, 1fr) 280px; }
    .feed-nav { position: static; grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
    .fn-brand p, .fn-links { display: none; }
    .fn-rooms { flex-direction: row; flex-wrap: wrap; }
    .fn-rooms a { font-size: 0.92rem; padding: 6px 12px 6px 6px; }
    .fn-rooms a i { width: 26px; height: 26px; }
}
@media (max-width: 860px) {
    .feed-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .feed-side { position: static; }
    .feed-nav { flex-direction: column; align-items: flex-start; }
    .fn-rooms { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
    .fn-rooms a { white-space: nowrap; }
}
@media (max-width: 600px) {
    .cz-body, .cz-bar { padding-left: 0; }
    .cz-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .feed-search input { width: 110px; }
    .feed-search input:focus { width: 150px; }
    .feed-tabs > a { padding: 12px 10px; font-size: 0.9rem; }
    .pc { grid-template-columns: 38px minmax(0, 1fr); padding: 14px 4px 10px; }
    .pc-tag { margin-left: 0; }
    .fc-facts { margin-left: 0; width: 100%; justify-content: flex-start; }
    .op { padding: 18px 16px 10px; }
    .conv-kids { margin-left: 12px; padding-left: 16px; }
    .conv-kids > .ri::before, .conv-kids > .ri::after { left: -16px; }
    .conv-kids > .ri::after { width: 12px; }
    .conv.has-kids > .ri .ri-side::after { display: none; }
    .feed-join { flex-wrap: wrap; }
}
.talk-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
