/* Review screen, channel previews, carousel, feedback thread, dialog. Precomputed colors only (no color-mix). */
.small { font-size: 13px; }
.review { padding-bottom: 96px; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rv-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 6px; margin-left: -6px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: 14px; }
.rv-back:hover { background: var(--sf); color: var(--ink); }
.rv-back svg { width: 18px; height: 18px; }
.rv-pn { display: flex; gap: 6px; }
.nav-btn.off { opacity: .45; cursor: default; }
.rv-hd { margin-bottom: 18px; }
.rv-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.rv-hd h1 { font-size: 28px; max-width: 44ch; text-wrap: balance; }
.rv-meta { color: var(--ink-3); margin-top: 6px; font-weight: 600; font-size: 14.5px; }
.tag.sign { background: var(--fam-soft); color: var(--fam-ink); box-shadow: none; }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.rv-main, .rv-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.rv-main > *, .rv-side > * { min-width: 0; }
.rv-side { position: sticky; top: calc(var(--hdr) + var(--stripe-h) + 16px); }
.panel > h2, .panel .ch-hd h2 { font-size: 17px; }
/* artwork viewer */
.rv-art { padding: 14px; }
.viewer { background: var(--viewer-bg); border-radius: var(--r-card); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; container-type: inline-size; }
/* wide viewer: arrows sit beside the artwork instead of covering it */
@container (min-width: 640px) {
  .car-main .car-prev { left: -58px; }
  .car-main .car-next { right: -58px; }
  .car-main .car-btn { background: var(--sf); color: var(--ink); box-shadow: var(--e2); }
  .car-main .car-count { top: 0; right: -60px; min-width: 46px; text-align: center; background: var(--sf); color: var(--ink-2); box-shadow: var(--e1); }
}
.car { position: relative; width: 100%; }
.car-main { width: min(100%, calc((100vh - 290px) * var(--arn)), calc(100cqi - 132px)); max-width: 620px; margin: 0 auto; }
@container (max-width: 639.98px) { .car-main { width: min(100%, calc((100vh - 290px) * var(--arn))); } }
.car-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: var(--r-tile); aspect-ratio: var(--ar); background: var(--bg); touch-action: pan-x pan-y; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 2px solid var(--acc-ring); outline-offset: 3px; }
.car-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; }
.car-slide img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: #1F2328; box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer; transition: opacity .15s, transform .15s; }
.car-btn svg { width: 20px; height: 20px; stroke-width: 2.4; }
.car-btn:hover { transform: translateY(-50%) scale(1.06); }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-count { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(31,35,40,.72); color: #FFFFFF; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; pointer-events: none; }
.car-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 4px; }
.car-dots i { width: 7px; height: 7px; border-radius: 50%; background: #C9CED4; cursor: pointer; transition: background .15s, transform .15s; }
.car-dots i.on { background: #3B94F0; transform: scale(1.15); }
.car-empty { aspect-ratio: 4/5; width: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink-3); background: var(--bg); border-radius: var(--r-tile); font-weight: 600; font-size: 14px; }
.car-empty svg { width: 28px; height: 28px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; width: max-content; max-width: 100%; margin: 0 auto; }
.thumb { position: relative; flex: none; width: 66px; aspect-ratio: 4/5; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: var(--bg); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); opacity: .78; transition: opacity .15s, box-shadow .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2.5px var(--ink); }
html[data-mode="dark"] .thumb[aria-current="true"] { box-shadow: 0 0 0 2.5px #F4F5F7; }
.thumb-n { position: absolute; left: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: rgba(31,35,40,.75); color: #FFFFFF; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.thumb-cm { position: absolute; right: 3px; top: 3px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px; border-radius: 5px; background: #E5F6F8; color: #1D616C; font-size: 10.5px; font-weight: 800; }
.thumb-cm svg { width: 10px; height: 10px; }
.alt-line { display: flex; gap: 10px; margin-top: 10px; padding: 0 4px; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.alt-line:has(#altLine:empty) { display: none; }
.alt-k { flex: none; font-weight: 750; color: var(--ink-2); }
.no-art .art-ph { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 42px 20px; }
.no-art .art-ph p { color: var(--ink-3); max-width: 50ch; }
.no-art .em-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); }
.no-art .em-ico svg { width: 26px; height: 26px; }
.art-topic { display: grid; gap: 2px; margin-top: 6px; padding: 12px 16px; border-radius: var(--r-tile); background: var(--bg); color: var(--ink) !important; text-align: left; }
.art-topic b { font-size: 12.5px; color: var(--ink-3); }
/* channels */
.rv-ch { padding: 18px 18px 20px; }
.ch-hd p { font-size: 13.5px; margin-top: 2px; }
.tabs { display: flex; gap: 6px; margin: 14px 0 16px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 0; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-weight: 650; font-size: 13.5px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button svg { width: 16px; height: 16px; }
.tabs button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs button[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-ink); box-shadow: none; }
html[data-mode="dark"] .tabs button[aria-selected="true"] { background: #F4F5F7; color: #1F2328; }
.tabs button.off span:first-of-type { text-decoration: line-through; }
.tab-x { font-size: 11px; font-weight: 750; padding: 1px 6px; border-radius: 5px; background: var(--line); color: var(--ink-2); }
.chp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.chp-pv { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; background: var(--viewer-bg); border-radius: var(--r-card); padding: 18px 14px; min-width: 0; }
.chp-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.chp-when { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-tile); background: var(--bg); }
.chp-when svg { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); flex: none; }
.chp-when b { display: block; font-weight: 750; font-size: 14.5px; }
.chp-when span { display: block; font-size: 13px; color: var(--ink-3); }
.cap-box { display: grid; gap: 8px; }
.cap-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.cap-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; padding: 12px 14px; border-radius: var(--r-tile); background: var(--bg); }
.cap-title { font-weight: 750; font-size: 15.5px; }
.cap-link { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.cap-link svg { width: 14px; height: 14px; flex: none; }
.cap-count { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-top: 0; }
.cap-count.over { color: var(--teach-ink); font-weight: 750; }
.cap-edit .cap-ta { min-height: 220px; font-size: 14.5px; }
.cap-btns { display: flex; justify-content: flex-end; gap: 8px; }
.edited { display: inline-flex; align-items: center; gap: 5px; }
.edited svg { width: 13px; height: 13px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-tile); background: var(--bg); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.note > svg { width: 17px; height: 17px; margin-top: 1px; flex: none; color: var(--ink-3); }
.note p { flex: 1; overflow-wrap: anywhere; }
.note.warn { background: var(--disc-soft); color: var(--disc-ink); }
.note.warn > svg { color: var(--disc-ink); }
.note.talk { background: var(--vol-soft); color: var(--vol-ink); }
.note.talk > svg { color: var(--vol-ink); }
.note .btn { flex: none; }
.chp-dl { margin: 0; display: grid; gap: 0; border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--line); }
.chp-dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 9px 12px; font-size: 13.5px; }
.chp-dl div + div { box-shadow: inset 0 1px 0 var(--line); }
.chp-dl dt { color: var(--ink-3); font-weight: 650; }
.chp-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.skip-btn { justify-self: start; color: var(--ink-3); margin-left: -10px; }
.hist { border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--line); }
.hist > summary, .more-d > summary, .resolved > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; cursor: pointer; list-style: none; font-weight: 700; font-size: 14px; }
.hist > summary::-webkit-details-marker, .more-d > summary::-webkit-details-marker, .resolved > summary::-webkit-details-marker { display: none; }
.hist > summary svg { width: 16px; height: 16px; color: var(--ink-3); }
.hist > summary::after, .more-d > summary::after, .resolved > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.hist[open] > summary::after, .more-d[open] > summary::after, .resolved[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.cnt.plain { background: var(--bg); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.hist-list { list-style: none; margin: 0; padding: 0 12px 10px; display: grid; gap: 10px; }
.hist-list li { padding-top: 10px; box-shadow: inset 0 1px 0 var(--line); font-size: 13.5px; display: grid; gap: 6px; }
.hist-list time { color: var(--ink-3); }
.hist-list details summary { cursor: pointer; color: var(--ink-3); font-weight: 650; font-size: 13px; }
.diff { display: grid; gap: 6px; margin-top: 6px; }
.diff p { white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 8px; font-size: 13px; max-height: 200px; overflow-y: auto; }
.diff span { display: block; font-weight: 750; font-size: 11.5px; margin-bottom: 2px; }
.diff .was { background: var(--teach-soft); color: var(--ink-2); }
.diff .now { background: var(--acc-soft); color: var(--ink); }
.hist-list .btn { justify-self: start; }
/* previews */
.pv { width: 100%; max-width: 360px; background: #FFFFFF; color: #1F2328; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 8px 24px -10px rgba(0,0,0,.25); overflow: hidden; font-size: 13.5px; text-align: left; }
html[data-mode="dark"] .pv { background: #000000; color: #F4F5F7; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
html[data-mode="dark"] .pv-fb { background: #242526; }
.pv-hd { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.pv-hd b { font-weight: 700; font-size: 13.5px; }
.pv-hd small { display: block; font-size: 12px; color: #65676B; }
html[data-mode="dark"] .pv-hd small { color: #B0B3B8; }
.pv-hd > span:not(.pv-av):not(.pv-dots) { min-width: 0; }
.pv-dots { margin-left: auto; color: #8E8E8E; letter-spacing: 1px; font-size: 11px; }
.pv-av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #FFFFFF; box-shadow: 0 0 0 1.5px #E1306C, 0 0 0 3px #FFFFFF; overflow: hidden; }
.pv-fb .pv-av, .pv-pin .pv-av { box-shadow: 0 0 0 1px #DADDE1; }
html[data-mode="dark"] .pv-av { box-shadow: 0 0 0 1.5px #E1306C, 0 0 0 3px #000000; }
html[data-mode="dark"] .pv-fb .pv-av, html[data-mode="dark"] .pv-pin .pv-av { box-shadow: 0 0 0 1px #3E4042; }
.pv-av img { width: 74%; height: auto; }
.pv-media .car-track { border-radius: 0; background: #EFEFEF; }
html[data-mode="dark"] .pv-media .car-track { background: #121212; }
.pv-media .car-btn { width: 28px; height: 28px; background: rgba(255,255,255,.88); }
.pv-media .car-btn svg { width: 15px; height: 15px; }
.pv-media .car-dots { padding: 8px 0 0; }
.pv-acts { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px 4px; }
.pv-acts span { display: flex; gap: 14px; }
.pv-acts svg, .pv-fbacts svg { width: 22px; height: 22px; stroke-width: 1.8; }
.pv-cap { padding: 2px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.pv-cap.clamp:not(.open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-cap.clamp:not(.open) + .pv-more { margin-top: -1.45em; margin-left: auto; position: relative; padding-left: 28px; background: linear-gradient(90deg, rgba(255,255,255,0), #FFFFFF 26px); }
html[data-mode="dark"] .pv-cap.clamp:not(.open) + .pv-more { background: linear-gradient(90deg, rgba(0,0,0,0), #000000 26px); }
html[data-mode="dark"] .pv-fb .pv-cap.clamp:not(.open) + .pv-more { background: linear-gradient(90deg, rgba(36,37,38,0), #242526 26px); }
.pv-cap.clamp.open + .pv-more { margin-top: 2px; }
.pv-cap b { font-weight: 700; }
.pv-tag { color: #00376B; }
html[data-mode="dark"] .pv-tag { color: #E0F1FF; }
.pv-more { display: block; width: max-content; border: 0; background: none; padding: 0 12px; color: #737373; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.pv-time { padding: 6px 12px 12px; font-size: 11.5px; color: #737373; }
html[data-mode="dark"] .pv-time, html[data-mode="dark"] .pv-more { color: #A8A8A8; }
html[data-mode="dark"] .pv { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 8px 24px -10px rgba(0,0,0,.6); }
.pv-fb .pv-cap { padding: 0 12px 10px; font-size: 14px; }
.pv-fb .pv-cap.clamp:not(.open) { padding-bottom: 0; margin-bottom: 10px; }
.pv-fb .pv-more { padding: 0 12px; margin-bottom: 10px; }
.pv-fb .pv-cap.clamp:not(.open) + .pv-more { margin-top: calc(-1.45em - 10px); }
.pv-fbacts { display: flex; justify-content: space-around; padding: 6px 4px; margin: 0 12px; border-top: 1px solid #CED0D4; color: #65676B; font-weight: 650; font-size: 13.5px; }
html[data-mode="dark"] .pv-fbacts { border-color: #3E4042; color: #B0B3B8; }
.pv-fbacts span { display: inline-flex; align-items: center; gap: 6px; padding: 6px; }
.pv-fbacts svg { width: 18px; height: 18px; }
.pv-story { background: none !important; box-shadow: none !important; max-width: 290px; display: grid; gap: 10px; }
.pv-frame { position: relative; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: #111111; box-shadow: 0 8px 24px -10px rgba(0,0,0,.4); }
.pv-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-bars { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; gap: 3px; }
.pv-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.95); }
.pv-shd { position: absolute; left: 10px; right: 10px; top: 18px; display: flex; align-items: center; gap: 8px; color: #FFFFFF; font-size: 12.5px; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.pv-shd .pv-av { width: 28px; height: 28px; box-shadow: none; }
.pv-shd b { font-weight: 700; }
.pv-shd span:last-child { opacity: .85; }
.pv-ytt { position: absolute; left: 12px; right: 48px; bottom: 16px; color: #FFFFFF; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pv-stk { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; background: var(--vol-soft); color: var(--vol-ink); font-size: 13px; line-height: 1.4; }
.pv-stk svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.pv-pin { max-width: 270px; border-radius: 18px; }
.pv-pinimg { position: relative; aspect-ratio: 2/3; background: #EFEFEF; }
.pv-pinimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-pinimg .car-empty { aspect-ratio: 2/3; border-radius: 0; }
.pv-pinlink { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #111111; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-pinlink svg { width: 13px; height: 13px; flex: none; }
.pv-pinbody { padding: 10px 12px 14px; display: grid; gap: 6px; }
.pv-pint { font-size: 15px; font-weight: 750; line-height: 1.3; }
.pv-pinbody .pv-cap { padding: 0; font-size: 13px; color: #5F5F5F; }
html[data-mode="dark"] .pv-pinbody .pv-cap { color: #C7C7C7; }
.pv-pinbody .pv-more { padding: 0; justify-self: end; }
.pv-pinbody .pv-cap.clamp:not(.open) + .pv-more { margin-top: calc(-1.45em - 6px); padding-left: 28px; }
.pv-board { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; }
.pv-board .pv-av { width: 28px; height: 28px; }
.pv-board small { display: block; color: #767676; font-size: 12px; }
.pv-planned { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 30px 12px; color: var(--ink-2); }
.pv-planned svg { width: 28px; height: 28px; color: var(--ink-3); }
.pv-planned small { color: var(--ink-3); }
/* decision */
.rv-dec { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dec-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dec-count { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); font-weight: 650; }
.dec-count i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); }
.dec-count i.on { background: #8DB43A; box-shadow: none; }
html[data-mode="dark"] .dec-count i.on { background: #BFE478; }
.dec-count b { color: var(--ink); margin-left: 4px; font-variant-numeric: tabular-nums; }
.dec-count.met b { color: var(--acc-ink); }
.dec-line { font-size: 14.5px; color: var(--ink-2); }
.dec-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dec-btns .btn-acc { grid-column: 1 / -1; min-height: 48px; font-size: 15.5px; }
.dec-btns .sm { display: none; }
.dec-mine { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-tile); background: var(--bg); }
.mine { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; font-size: 14.5px; }
.mine svg { width: 18px; height: 18px; }
.mine-approve { color: var(--acc-ink); }
.mine-changes { color: var(--disc-ink); }
.mine-reject { color: var(--teach-ink); }
.dec-note { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.dec-note svg { width: 16px; height: 16px; }
.btn-stopfill { background: var(--teach-ink); color: #FFFFFF; }
html[data-mode="dark"] .btn-stopfill { background: #C83535; }
.btn-stopfill:hover { background: #9E1515; }
.actbar { display: none; }
/* steps */
.rv-steps { padding: 16px 18px; background: var(--env-soft); box-shadow: inset 0 0 0 1px rgba(99,89,16,.16); }
html[data-mode="dark"] .rv-steps { box-shadow: inset 0 0 0 1px rgba(228,211,83,.18); }
.rv-steps h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--env-ink); }
.rv-steps h2 svg { width: 18px; height: 18px; }
.rv-steps ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink); line-height: 1.45; }
/* feedback */
.rv-fb { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fb-hd { display: flex; align-items: center; gap: 8px; }
.fb-open { margin-left: auto; font-size: 13px; font-weight: 650; }
.cmp { display: grid; gap: 8px; }
.cmp .ta { min-height: 76px; }
.cmp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-row .btn { margin-left: auto; }
.cmp-row .sel { width: auto; max-width: 150px; }
.cmp-slide { font-size: 13.5px; }
.fb-empty { color: var(--ink-3); font-size: 14px; padding: 6px 2px; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cm { position: relative; padding: 12px; border-radius: var(--r-card); background: var(--thread); display: grid; gap: 6px; }
.cm.unread { box-shadow: inset 3px 0 0 var(--unread); }
.cm.k-warn { background: var(--disc-soft); }
.cm.k-ok { background: var(--acc-soft); }
.cm.k-no { background: var(--teach-soft); }
.cm.is-resolved { opacity: .8; }
.cm-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.cm-hd b { font-weight: 750; }
.cm-hd time { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.cm-kind { font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 5px; background: var(--sf); }
.cm-kind.ok { color: var(--acc-ink); }
.cm-kind.warn { color: var(--disc-ink); }
.cm-kind.no { color: var(--teach-ink); }
.cm-kind.talk { color: var(--vol-ink); }
.cm-new { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: var(--unread-soft); color: var(--unread-ink); }
.cm-anch { display: flex; gap: 6px; flex-wrap: wrap; }
.anch { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 8px; border: 0; border-radius: 7px; background: var(--sf); color: var(--ink-2); font-weight: 700; font-size: 12px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.anch svg { width: 13px; height: 13px; }
.anch:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.anch.plain { cursor: default; background: none; }
.cm-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; }
.cm-res { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); font-weight: 650; }
.cm-res svg { width: 14px; height: 14px; }
.cm-acts { display: flex; gap: 2px; margin: 0 -6px -4px; }
.cm-acts button { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); font-weight: 650; font-size: 13px; cursor: pointer; }
.cm-acts button svg { width: 15px; height: 15px; }
.cm-acts button:hover { background: var(--sf); color: var(--ink); }
.cm-acts .del { margin-left: auto; }
.cm-reps { list-style: none; margin: 4px 0 0; padding: 0 0 0 14px; display: grid; gap: 8px; box-shadow: inset 2px 0 0 var(--line-2); }
.cm.rep { background: var(--sf); padding: 10px; }
.cm-rf { display: grid; gap: 8px; margin-top: 4px; }
.cm-rf .ta { min-height: 60px; background: var(--sf); }
.resolved > summary { padding: 0 4px; color: var(--ink-3); font-size: 13.5px; }
.resolved .thread { margin-top: 6px; }
/* more */
.rv-more { padding: 4px 6px; }
.more-d + .more-d { box-shadow: inset 0 1px 0 var(--hair); }
.more-d > summary { min-height: 50px; }
.sum-t { font-size: 15px; font-weight: 750; }
.more-d .act-list { padding: 0 0 6px; }
.more-d .act { padding: 10px 12px; grid-template-columns: 30px minmax(0, 1fr); row-gap: 0; }
.more-d .act-t { grid-column: 2; margin-top: -2px; }
.notes-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; color: var(--ink-2); padding: 0 12px 6px; line-height: 1.5; }
.more-d > .muted { padding: 0 12px 12px; }
.adm { display: grid; gap: 8px; padding: 0 12px 14px; justify-items: start; }
.pad { padding: 12px; }
/* dialog */
dialog.dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--sf); color: var(--ink); box-shadow: var(--e3); overflow: hidden; }
dialog.dlg[open] { display: flex; flex-direction: column; animation: dlgIn .24s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
dialog.dlg::backdrop { background: var(--scrim); }
.dlg-form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.dlg-top { position: relative; padding: 22px 60px 4px 24px; }
.dlg-top h2 { font-size: 20px; }
.dlg-top p { color: var(--ink-3); margin-top: 6px; font-size: 14.5px; }
.dlg-x { position: absolute; right: 14px; top: 14px; }
.dlg-body { padding: 14px 24px 6px; display: grid; gap: 10px; overflow-y: auto; min-height: 0; }
.dlg-body .lbl { margin: 4px 0 0; }
.dlg-err { margin: 6px 24px 0; padding: 9px 12px; border-radius: 10px; background: var(--teach-soft); color: var(--teach-ink); font-weight: 650; font-size: 14px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px calc(18px + env(safe-area-inset-bottom)); }
.dlg-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.ch-pick { padding: 10px 12px; border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--line); }
.ch-pick svg { width: 17px; height: 17px; color: var(--ink-3); }
.ch-pick small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.ch-pick:has(input:not(:checked)) { opacity: .6; }
.dlg-row { margin-top: 2px; }
@media (max-width: 1180px) { .rv-grid { grid-template-columns: minmax(0, 1fr) 360px; } .chp { grid-template-columns: minmax(0, 1fr); } .chp-pv { padding: 16px 10px; } }
@media (max-width: 960px) {
  .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-side { position: static; }
  .car-main { width: min(100%, calc((100vh - 220px) * var(--arn))); }
  .actbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--sf); box-shadow: 0 -1px 0 var(--hair), 0 -10px 24px -16px var(--shd); }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .actbar { background: var(--hdr-bg); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); }
  }
  .actbar .dec-btns { grid-template-columns: 1.4fr 1fr auto; max-width: 640px; margin: 0 auto; }
  .actbar .dec-btns .btn-acc { grid-column: auto; min-height: 46px; font-size: 15px; }
  .actbar .dec-btns .btn { min-height: 46px; padding: 10px 12px; }
  .actbar .dec-mine { max-width: 640px; margin: 0 auto; background: var(--sf); box-shadow: inset 0 0 0 1px var(--line); }
  .rv-dec .dec-btns, .rv-dec .dec-mine { display: none; }
  .rv-dec { gap: 8px; }
}
@media (max-width: 600px) {
  .review { padding-left: 12px; padding-right: 12px; }
  .rv-hd h1 { font-size: 22px; }
  .rv-meta { font-size: 13.5px; }
  .rv-art { padding: 0; background: none; box-shadow: none; }
  .viewer { padding: 0; background: none; }
  .car-main .car-track { border-radius: var(--r-card); box-shadow: var(--e1); }
  .car-main .car-btn { display: none; }
  .car-main .car-count { top: auto; bottom: 8px; right: 8px; left: auto; }
  .car-main { width: 100%; }
  .pv-media .car-btn { display: none; }
  .thumbs { padding: 10px 0 2px; gap: 6px; margin: 0; width: auto; }
  .thumb { width: 54px; }
  .alt-line { padding: 0 2px; }
  .rv-ch, .rv-dec, .rv-fb { padding: 14px; }
  .chp-pv { padding: 12px 8px; margin: 0; }
  .actbar .dec-btns .lg { display: none; }
  .actbar .dec-btns .sm { display: inline; }
  .actbar .dec-btns .btn-stop span { display: none; }
  .actbar .dec-btns .btn-stop { padding: 10px; width: 46px; }
  .actbar .dec-btns { grid-template-columns: 1fr 1fr 46px; }
  dialog.dlg { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .dlg-top { padding: 20px 56px 2px 18px; }
  .dlg-body { padding: 12px 18px 4px; }
  .dlg-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .dlg-foot .btn { flex: 1; }
  .dlg-err { margin: 6px 18px 0; }
}
