.comparison-gallery { padding-top:52px; border-top:2px solid var(--line-strong); }
#comparison-rows { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; align-items:start; }
.comparison-gallery .vg-row { background:var(--surface-muted); }
.comparison-gallery .vg-row-head :is(h2,h3) { margin:0; font-family:inherit; font-size:14px; font-weight:600; line-height:1.45; letter-spacing:normal; overflow-wrap:anywhere; }
.cg-toolbar { display:flex; align-items:center; gap:20px; flex-wrap:wrap; padding-bottom:23px; border-bottom:1px solid var(--line); margin-bottom:28px; }
.cg-toolbar .vg-search { flex:1; min-width:200px; }
.cg-comparison { padding:12px 12px 0; }
.cg-input { min-width:0; padding:0 12px 14px; }
.cg-prompt { margin:0; max-height:84px; overflow:auto; font:400 13px/1.5 var(--font-sans); color:var(--muted); overflow-wrap:anywhere; }
.cg-prompt:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.cg-input-image { width:88px; height:88px; object-fit:contain; border-radius:2px; }
.cg-labels { display:grid; grid-template-columns:1fr 1fr; gap:0; margin-bottom:9px; color:var(--muted); font-size:9px; line-height:1.4; text-align:center; letter-spacing:.02em; }
.cg-labels span+span { border-left:1px solid var(--line); }
.cg-video { display:block; width:100%; height:auto; aspect-ratio:2; object-fit:contain; background:var(--paper); border-radius:2px; cursor:pointer; }
.cg-video:fullscreen { height:100%; background:#111; border-radius:0; }
.cg-video:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.cg-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:9px; color:var(--muted); font-size:10px; line-height:1.45; }
.cg-enlarge { border:1px solid var(--line); background:transparent; border-radius:2px; color:var(--ink); padding:4px 9px; font-size:10px; cursor:pointer; }
.cg-enlarge:hover { border-color:var(--accent); color:var(--accent); }
.cg-graph { margin-top:14px; font-size:11px; color:var(--muted); }
.cg-graph summary { cursor:pointer; }
.cg-graph summary:hover { color:var(--accent); }
.cg-graph summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.cg-graph .vg-graph-link { margin-top:10px; }
.cg-graph .vg-media { aspect-ratio:2; }
.cg-graph .vg-graph-hint { font-size:9px; padding:3px 5px; bottom:5px; right:5px; }
.cg-graph .vg-download { margin-top:9px; font-size:10px; }
@media(max-width:1100px) {
  #comparison-rows { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .site-header nav { flex-wrap:wrap; justify-content:flex-end; gap:10px 15px; }
}
@media(max-width:560px) {
  #comparison-rows { grid-template-columns:minmax(0,1fr); }
  .cg-toolbar { gap:12px; }
  .comparison-gallery { padding-top:34px; }
}
