/* Studio styles: play-review pages. Owned by that page group; shared styles live in ../studio.css. */

/* ================================================================ play modal (dom/80-play-modal.dom.txt, 81, 82) */
.pm-frame {
  position: fixed; z-index: 45; display: flex; flex-direction: column; max-width: calc(100vw - 30px);
  background: var(--background); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg);
}
.pm-frame.dock-bottom { flex-direction: column-reverse; }
.pm-frame.fs { max-width: none; width: 100vw; height: 100vh; border-radius: 0; border: 0; }
.pm-frame.mobile { left: 0 !important; top: 0 !important; right: 0; bottom: 0; max-width: none; border-radius: 0; border: 0; overflow-y: auto; }
.pm-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; padding: 0 8px; flex: none; }
.pm-bar-left { display: flex; align-items: center; min-width: 0; padding-right: clamp(8px, calc(100vw - 900px), 120px); }
.pm-bar-right { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; flex: none; background: var(--background); }
.pm-menubar { display: flex; align-items: center; gap: 3px; height: 52px; padding: 8px 0; background: var(--background); border-radius: 6px; }
.pm-grip { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted-foreground); cursor: grab; flex: none; margin-right: 1px; border-radius: 4px; touch-action: none; }
.pm-grip:hover { color: var(--foreground); }
.pm-grip:active { cursor: grabbing; }
.pm-menu-wrap { position: relative; }
.pm-trigger { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 6px 12px; border-radius: 4px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--foreground); white-space: nowrap; }
.pm-trigger:hover, .pm-trigger.open, .pm-trigger:focus-visible { background: var(--accent); }
.pm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.pm-win { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 6px; background: var(--background); border: 1px solid var(--border); color: var(--foreground); }
.pm-win:hover { background: var(--accent); }
.pm-win.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

/* menus */
.pm-panel {
  position: absolute; left: -4px; top: calc(100% + 8px); z-index: 5; min-width: 192px; padding: 4px; background: var(--background); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: var(--shadow-lg); animation: popover-in .12s var(--ease-brand-out);
}
.pm-panel.up { top: auto; bottom: calc(100% + 8px); }
.pm-sub-wrap { position: relative; }
.pm-subpanel { left: calc(100% + 4px); top: -4px; max-height: min(420px, 70vh); overflow-y: auto; min-width: 200px; }
.pm-subpanel.wide { min-width: 280px; }
.pm-panel.up .pm-subpanel { top: auto; bottom: -4px; }
.pm-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 6px 8px 6px 12px; border-radius: 4px; font-size: 14px; line-height: 20px; color: var(--foreground); text-align: left; white-space: nowrap; }
.pm-item:hover:not(:disabled), .pm-item.hl, .pm-item:focus-visible { background: var(--accent); outline: none; }
.pm-item:disabled { opacity: .5; cursor: not-allowed; }
.pm-item .icon { color: var(--muted-foreground); }
.pm-item.selected { font-weight: 600; }
.pm-check { width: 16px; display: inline-flex; color: var(--primary); }
.pm-hint { color: var(--muted-foreground); font-size: 12px; font-weight: 400; margin-left: 8px; }
.pm-box { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--control-border); display: inline-flex; align-items: center; justify-content: center; }
.pm-box.on { background: var(--primary); border-color: var(--primary); }
.pm-box.on .icon { color: var(--foreground); width: 12px; height: 12px; }
.pm-sep { height: 1px; background: var(--accent); margin: 4px 0; }
.pm-label { padding: 6px 12px; font-size: 12px; color: var(--muted-foreground); }
.pm-redirect { display: flex; flex-direction: column; gap: 6px; padding: 8px; width: 340px; max-width: calc(100vw - 48px); }
.pm-redirect .input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.pm-hint-line { font-size: 13px; color: var(--muted-foreground); }
.pm-redirect .link-btn { align-self: flex-start; font-size: 12px; }

/* Replay panel (audit 61-replay-out-of-range.png: dark panel ≈ 360px, blue Play Event, red Close Replay) */
.pm-form-panel { width: 360px; max-width: calc(100vw - 32px); padding: 0; }
.pm-replay { display: flex; flex-direction: column; }
.pm-rf { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.pm-rf > span:first-child { color: var(--muted-foreground); font-size: 13px; }
.pm-rf .input { height: 38px; background: var(--background); border-color: var(--border); border-radius: 6px; font-size: 14px; }
.pm-play-event { margin: 12px; height: 32px; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); font-size: 14px; font-weight: 500; }
.pm-play-event:hover { background: var(--primary-press); }
.pm-close-replay { margin: 0 12px 12px; height: 28px; text-align: left; color: var(--danger); font-size: 14px; }
.pm-close-replay:hover { text-decoration: underline; }

/* stage + sidebar row (stage bg --muted, padding 8px, iframe r=8px; sidebar 384px, bg --background, 1px --border, r=8px) */
.pm-row { display: flex; gap: 8px; background: var(--muted); border-radius: 0 0 8px 8px; min-height: 0; }
.pm-frame.dock-bottom .pm-row { border-radius: 8px 8px 0 0; }
.pm-frame.minimized .pm-row { height: 0 !important; overflow: hidden; }
.pm-frame.fs .pm-row { flex: 1; }
.pm-stage { position: relative; flex: none; overflow: hidden; border-radius: 8px; background: var(--muted); }
.pm-stage-inner { position: relative; transform-origin: 0 0; padding: 8px; }
.pm-iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 8px; background: #000; }
.pm-stage-msg { width: 100%; height: 100%; border-radius: 8px; background: var(--background); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.pm-err-title { font-size: 16px; font-weight: 600; }
.pm-err-msg { max-width: 560px; overflow-wrap: anywhere; }
.pm-stage-loading { position: absolute; right: 16px; top: 16px; padding: 6px; border-radius: 999px; background: var(--scrim); }
.pm-sidebar { flex: 1 0 384px; width: 384px; min-width: 384px; display: flex; flex-direction: column; background: var(--background); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pm-frame.mobile .pm-row { flex-direction: column; }
.pm-frame.mobile .pm-sidebar { min-width: 0; width: auto; height: 320px; flex: none; }
.pm-tabs { display: flex; border-bottom: 1px solid var(--border); flex: none; }
.pm-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 8px 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted-foreground); border-bottom: 2px solid transparent; }
.pm-tab.active { color: var(--foreground); border-bottom-color: var(--primary); }
.pm-tab:hover { color: var(--foreground); }
.pm-count { font-weight: 400; color: var(--muted-foreground); }
.pm-side-body { flex: 1; min-height: 0; overflow-y: auto; }
.pm-empty { padding: 12px; font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.pm-bets-scroll { overflow-x: auto; }
.pm-bets { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 16px; }
.pm-sub { font-size: 11px; color: var(--muted-foreground); }
.pm-bets .mode { max-width: 84px; overflow: hidden; text-overflow: ellipsis; }
.pm-bets th { position: sticky; top: 0; background: var(--muted); text-align: left; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .02em; color: var(--muted-foreground); padding: 8px 4px; white-space: nowrap; }
.pm-bets td { padding: 8px 4px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pm-bets th:first-child, .pm-bets td:first-child { padding-left: 8px; }
.pm-bets .num { text-align: right; }
.pm-copy { font: inherit; color: var(--foreground); text-decoration: underline dotted; text-underline-offset: 3px; }
.pm-copy:hover { color: var(--primary-300); }
.pm-status { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); }
.pm-status.active { background: var(--warning); }
.pm-row-btn { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted-foreground); }
.pm-row-btn:hover { color: var(--foreground); background: var(--accent); }
.pm-gl { display: flex; flex-direction: column; min-height: 100%; }
.pm-gl-head { padding: 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border); font-size: 13px; }
.pm-gl-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.pm-gl-body { padding: 4px 12px 16px; }

/* share dialog */
.sh-form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.sh-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 140px; min-width: 0; }
.sh-created, .sh-list { display: flex; flex-direction: column; gap: 8px; }
.sh-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--hairline); }

/* ================================================================ guideline tree (screens/17-stb-approval-guidelines.png) */
.gl-tree { display: flex; flex-direction: column; }
.gl-group { display: flex; flex-direction: column; }
.gl-heading { font-size: 14px; line-height: 20px; font-weight: 600; padding: 12px 0 8px; border-bottom: 1px solid var(--hairline); margin-bottom: 8px; }
.gl-children { display: flex; flex-direction: column; }
.gl-item { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; font-size: 14px; line-height: 20px; }
.gl-text { flex: 1; min-width: 0; cursor: default; overflow-wrap: anywhere; }
.gl-item .gl-check:not(:disabled) + .gl-text { cursor: pointer; }
.gl-item.done .gl-text { color: var(--muted-foreground); }
.gl-suggested { margin-left: 8px; vertical-align: 2px; }
.gl-actions { display: inline-flex; gap: 4px; flex: none; }
.gl-check {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 4px 0 0; flex: none; border-radius: 999px;
  border: 1px solid var(--control-border); background: transparent; display: inline-grid; place-content: center; cursor: pointer;
}
.gl-check.square { border-radius: 4px; margin: 0; }
.gl-check:disabled { cursor: default; opacity: .7; }
.gl-check:checked { background: var(--success); border-color: var(--success); }
.gl-check:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--foreground); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.gl-check.square:checked { background: var(--primary); border-color: var(--primary); }
.gl-check.square:checked::after { border-color: var(--primary-foreground); }
.gl-tree.compact .gl-heading { font-size: 14px; padding: 10px 0 6px; margin-bottom: 4px; border-bottom: 0; }
.gl-tree.compact .gl-item { font-size: 13px; line-height: 18px; padding: 6px 0; }
.gl-tree.compact .gl-check { margin-top: 2px; }
.gl-empty { padding: 12px 0; font-size: 13px; }
.gl-progress-label { font-size: 14px; font-weight: 600; }
.gl-progress { height: 8px; border-radius: 999px; background: var(--secondary); overflow: hidden; margin-top: 16px; }
.gl-progress > div { height: 100%; background: var(--success); border-radius: 999px; transition: width .3s; }

/* ================================================================ reviewer pages (/review, /review/:team/:game) */
.rv-badge { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 2px 8px; border-radius: 999px; font-size: 13px; line-height: 18px; font-weight: 600; }
.rv-badge.amber { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); height: 24px; }
.rv-badge.green { background: var(--success-tint-12); color: var(--success); height: 24px; }
.rv-badge.red { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.rv-badge.neutral { background: var(--secondary); color: var(--muted-foreground); height: 24px; }
.rv-badge .icon { width: 12px; height: 12px; }
.rv-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rv-queue td { white-space: nowrap; }
.rv-game { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.rv-game .game-thumb { width: 45px; height: 60px; }
.rv-game-name { font-size: 14px; font-weight: 600; }
.rv-sub { font-size: 13px; color: var(--muted-foreground); }
.rv-state { text-transform: capitalize; }
.rv-forbidden { border: 1px solid var(--border); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* thread layout: tabs on the left, reviewer tools on the right */
.rv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.rv-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--hairline); overflow-x: auto; }
.rv-tab { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 12px 4px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted-foreground); border-bottom: 2px solid transparent; white-space: nowrap; }
.rv-tab:hover { color: var(--foreground); }
.rv-tab.active { color: var(--foreground); border-bottom-color: var(--primary); }
.rv-tabpanel { padding-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.rv-banner { display: flex; gap: 12px; padding: 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--muted-30); }
.rv-banner .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--muted-foreground); }
.rv-banner-title { font-weight: 500; }
.rv-banner-text { color: var(--muted-foreground); }
.rv-activity-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-activity-head h3 { font-size: 16px; line-height: 24px; font-weight: 500; margin-right: 8px; }
.rv-filter { height: 30px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted-foreground); }
.rv-filter.active { color: var(--foreground); background: color-mix(in srgb, var(--primary) 10%, transparent); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.rv-sort { margin-left: auto; font-size: 13px; color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; }
.rv-sort:hover { color: var(--foreground); }
.rv-events { display: flex; flex-direction: column; gap: 16px; }
.rv-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rv-card.private { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 50%, transparent); }
.rv-card-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--muted-30); }
.rv-card-head .who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rv-card-head .name { font-weight: 600; }
.rv-card-body { padding: 12px 16px; font-size: 13px; line-height: 20px; }
.rv-avatar { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border); overflow: hidden; flex: none; display: inline-flex; }
.rv-event { display: flex; align-items: flex-start; gap: 12px; padding: 4px 16px; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.rv-event .icon { margin-top: 3px; }
.rv-event b { color: var(--foreground); font-weight: 600; }
.rv-event .when { margin-left: 4px; white-space: nowrap; }
.rv-composer { display: flex; flex-direction: column; gap: 8px; }
.rv-composer-foot { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.rv-seg { display: inline-flex; border: 1px solid var(--control-border); border-radius: 8px; padding: 4px; background: var(--background); }
.rv-seg button { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.rv-seg button[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); }
.rv-box { background: var(--muted-30); border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rv-box-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.rv-box-head h3 { font-size: 14px; line-height: 20px; font-weight: 600; }
.rv-pill { display: inline-flex; align-items: center; height: 24px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.rv-pill.green { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.rv-pill.amber { background: var(--warning-tint-12); color: var(--warning); }
.rv-pill.red { background: var(--danger-tint-12); color: var(--danger); }
.rv-pill.neutral { background: var(--secondary); color: var(--muted-foreground); }
.rv-copy { color: var(--muted-foreground); }
.rv-copy b { color: var(--foreground); font-weight: 500; }
.rv-threshold { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rv-threshold-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.rv-bar { position: relative; height: 16px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.rv-bar > div { height: 100%; }
.rv-bar .tick { position: absolute; top: 0; bottom: 0; width: 1.6px; background: var(--muted-foreground); }
.rv-bar-labels { position: relative; height: 20px; font-size: 13px; color: var(--muted-foreground); }
.rv-bar-labels span { position: absolute; top: 0; }
.rv-final { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 8px; background: var(--muted-50); }
.rv-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.rv-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--muted-50); font-size: 13px; color: var(--muted-foreground); }
.rv-tag button { display: inline-flex; color: var(--muted-foreground); }
.rv-tag button:hover { color: var(--foreground); }
.rv-starbtns { display: inline-flex; align-items: center; gap: 0; }
.rv-starbtn { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--grey-500); position: relative; }
.rv-starbtn .icon { width: 22px; height: 22px; }
.rv-starbtn.on { color: var(--star); }
.rv-starbtn.on svg { fill: currentColor; }
.rv-starbtn.part svg { fill: url(#rv-half); }
.rv-starbtn:hover:not(:disabled) { background: var(--secondary); }
.rv-starbtn:disabled { cursor: default; }
.rv-score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-score-val { font-size: 20px; font-weight: 700; min-width: 72px; }
.rv-step { display: inline-flex; gap: 4px; }
.rv-subs { display: flex; flex-direction: column; gap: 8px; }
.rv-sub-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--muted-30); flex-wrap: wrap; font-size: 13px; }
.rv-issue { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rv-issue-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-issue-head .grow { font-weight: 600; }
.rv-issue-meta { font-size: 12px; color: var(--muted-foreground); }
.rv-issue-resp { border-left: 2px solid var(--hairline); padding-left: 12px; font-size: 13px; }
.rv-issue-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-issue-imgs img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--hairline); }
.rv-empty-box { border: 1px solid var(--border); border-radius: 8px; background: var(--muted-30); padding: 40px 16px; text-align: center; color: var(--muted-foreground); }
.rv-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--topbar-h) + 16px); }
.rv-side .card-tight { display: flex; flex-direction: column; gap: 12px; }
.rv-side h3 { font-size: 14px; font-weight: 600; }
.rv-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; font-size: 13px; }
.rv-kv dt { color: var(--muted-foreground); }
.rv-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rv-actions { display: flex; flex-direction: column; gap: 8px; }
.rv-actions .btn { justify-content: flex-start; }
.rv-hint { font-size: 12px; color: var(--muted-foreground); }
.rv-jur { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rv-jur label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.rv-approver { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rv-head-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted-foreground); margin-top: 8px; }

@media (max-width: 1000px) {
  .pm-trigger { padding: 6px 8px; }
  .pm-bar-right { gap: 6px; }
}
@media (max-width: 1100px) {
  .rv-layout { grid-template-columns: 1fr; }
  .rv-side { position: static; }
}
@media (max-width: 767px) {
  .pm-bar-left { flex: 1 1 auto; padding-right: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .pm-panel { position: fixed; left: 8px !important; right: 8px; top: 56px; bottom: auto; max-height: calc(100vh - 72px); overflow-y: auto; }
  .pm-subpanel { position: static; box-shadow: none; border: 0; padding-left: 12px; max-height: none; }
  .rv-tabs { gap: 16px; }
  .rv-sort { margin-left: 0; }
}

/* Version files (components/version-files.js): beside a version's Approve button on the review thread */
.rv-version-actions { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vf { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vf-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; font-size: 13px; }
.vf-meta dt { color: var(--muted-foreground); }
.vf-meta dd { margin: 0; min-width: 0; }
.vf-hash { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.vf-hint { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.vf-scroll { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.vf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vf-table th { position: sticky; top: 0; background: var(--card); text-align: left; font-weight: 500; color: var(--muted-foreground); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.vf-table td { padding: 6px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.vf-table tr:last-child td { border-bottom: 0; }
.vf-table tr.active td { background: var(--muted-30); }
.vf-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vf-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vf-name span { overflow-wrap: anywhere; }
.vf-sha { margin-left: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); }
.vf-actions { white-space: nowrap; text-align: right; }
.vf-preview { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.vf-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; background: var(--muted-30); font-size: 13px; }
.vf-preview-head b { overflow-wrap: anywhere; font-weight: 500; }
.vf-preview pre { margin: 0; padding: 12px; max-height: 280px; overflow: auto; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; white-space: pre; }
.vf-preview img { display: block; max-width: 100%; max-height: 320px; margin: 12px auto; }
@media (max-width: 640px) {
  .vf-sha { display: none; }
  /* names stay readable: the table scrolls sideways inside its box instead of squeezing the name column */
  .vf-table { min-width: 460px; }
  .vf-table td:first-child { min-width: 180px; }
}
