/* Component styles only. The article inherits the existing PaperMod blog theme. */
.omni-gallery { margin: 1.5rem 0 2rem; scroll-margin-top: 1rem; }
.omni-gallery-filters,.omni-gallery-playback { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: .8rem 0; }
.omni-gallery label { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; }
.omni-gallery select,.omni-gallery button,.omni-chart-controls select {
  font: inherit; font-size: .8rem; color: var(--primary); background: var(--entry);
  border: 1px solid var(--border); border-radius: 7px; padding: .45rem .65rem; min-height: 40px; max-width: 100%;
}
.omni-gallery button { cursor: pointer; font-weight: 600; }
.omni-gallery-fixed,.omni-gallery-status,.omni-profile-meta,.omni-gallery-note { font-size: .75rem; color: var(--secondary); line-height: 1.6; }
.omni-gallery-fixed { margin-inline-start: auto; }
.omni-gallery-status { min-height: 1.5em; }
.omni-gallery-panel[hidden],.omni-output[hidden],.omni-chart[hidden],.omni-gallery [data-omni-copy][hidden] { display: none; }
.omni-gallery-panel h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.omni-profile-meta { margin: 0 0 .8rem; }
.omni-output-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.omni-output { min-width: 0; margin: 0 !important; }
.omni-output figcaption { font-size: .8rem; line-height: 1.5; text-align: center; margin: 0 0 .5rem; min-height: 3em; }
.omni-output figcaption :is(strong,span) { display: block; }
.omni-output figcaption span { color: var(--secondary); font-size: .7rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.omni-output video { display: block; width: 100%; height: auto; aspect-ratio: 1344/768; background: #111; border-radius: 8px; }
.omni-video-download { display: block; font-size: .7rem; text-align: center; padding: .5rem 0; }
.omni-example-timing { font-size: .8rem; margin: .7rem 0 1rem; font-variant-numeric: tabular-nums; }
.omni-input-details,.omni-prompt-details,.omni-disclosure { padding: .65rem .8rem; margin: .65rem 0; border: 1px solid var(--border); border-radius: 8px; }
.omniref-article summary { font-size: .85rem; font-weight: 600; cursor: pointer; line-height: 1.5; min-height: 26px; }
.omni-disclosure-body { padding-top: .7rem; }
.omni-disclosure-body > :last-child { margin-bottom: 0; }
.omni-disclosure-body { font-size: .9rem; overflow-wrap: anywhere; }
.omni-disclosure-body pre { font-size: .75rem; }
.omni-input-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: .8rem; margin-top: .8rem; }
.omni-input-grid figure { min-width: 0; margin: 0 !important; }
.omni-input-grid img,.omni-input-grid video { display: block; width: 100%; max-height: 190px; object-fit: contain; border-radius: 6px; }
.omni-input-grid audio { display: block; width: 100%; min-width: 0; }
.omni-input-grid figcaption { font-size: .7rem; line-height: 1.5; margin-top: .35rem; text-align: center; font-weight: 400; }
.omni-prompt-details pre { font-size: .75rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; margin: .7rem 0 0; padding: .75rem; }
.omni-copy { margin-top: .7rem; }
.omni-results { margin: 1.6rem 0 2rem; }
.omni-chart-controls { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .8rem; }
.omni-chart-controls label { font-weight: 600; font-size: .8rem; }
.omni-chart { margin: 1rem 0 1.5rem; }
.omni-chart-scroll { overflow-x: auto; background: #fff; border-radius: 10px; border: 1px solid var(--border); }
.omni-chart img { display: block; width: 100%; min-width: 650px; height: auto; margin: 0; }
.omni-chart figcaption,.omni-data-links { font-size: .75rem; line-height: 1.55; color: var(--secondary); font-weight: 400; }
.omni-chart figcaption { margin: .65rem 0; }
.omni-latency-details summary { cursor: pointer; font-weight: 600; }
.omni-table-scroll { overflow: auto; margin: .8rem 0; }
.omni-table-scroll table { font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.omni-table-scroll caption { text-align: start; font-size: .75rem; color: var(--secondary); margin: .5rem 0; white-space: normal; }
.omni-table-scroll th,.omni-table-scroll td { padding: .55rem .65rem; }
.omni-table-scroll th[scope=row] { font-weight: 500; }
.omni-speedup { color: #168a70; font-weight: 700; }
.omni-results a.omni-timing-link,.omni-results a.omni-example-link { display: inline-block; padding: .3rem .15rem; text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }
.omniref-article :is(a,button,select,input,summary,h3):focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
#omniref-timings,.omniref-article :is(h2,h3,.omni-disclosure) { scroll-margin-top: 1rem; }
@media(max-width:650px) {
  .omni-output-grid { grid-template-columns: 1fr; }
  .omni-output figcaption { min-height: 0; margin: .6rem 0; }
  .omni-gallery label { flex-wrap: wrap; }
  .omni-gallery-fixed { width: 100%; margin-inline-start: 0; }
  .omni-gallery select,.omni-chart-controls select { font-size: 16px; }
  body:has(.omniref-article) .footer span:last-child { white-space: normal; }
}
/* The original benchmark colors, with selectable bars instead of a static SVG. */
.omni-chart-hint { font-size: .8rem; margin: .8rem 0; }
.omni-chart-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .7rem; }
.omni-chart-legend span { display: inline-flex; gap: .4rem; align-items: center; }
.omni-chart-legend i { display: inline-block; width: 14px; height: 10px; }
.omni-bar-base { background: #718096; }
.omni-bar-fast { background: #168a70; }
.omni-bar-chart { margin: 1rem 0; }
.omni-results a.omni-bar-link { display: grid; grid-template-columns: minmax(90px,1.2fr) minmax(0,3fr) minmax(65px,.6fr); gap: .8rem; align-items: center; padding: .65rem .2rem; text-decoration: none; color: var(--primary); box-shadow: none; border-radius: 4px; }
.omni-results a.omni-bar-link:hover { background: var(--code-bg); outline: 1px solid var(--border); opacity: 1; }
.omni-bar-label { font-size: .75rem; line-height: 1.4; }
.omni-bar-pair { display: grid; gap: 5px; }
.omni-bar-row { display: grid; grid-template-columns: minmax(0,1fr) 4rem; align-items: center; gap: .6rem; font-size: .65rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.omni-bar { display: block; height: 10px; min-width: 2px; border-radius: 1px; }
.omni-bar-link .omni-speedup { text-align: end; font-size: .75rem; }
@media(max-width:420px) {
  .omni-results a.omni-bar-link { grid-template-columns: 82px minmax(0,1fr); gap: .6rem; }
  .omni-bar-link .omni-speedup { grid-column: 2; text-align: start; }
}

/* Keep request details subordinate to the videos. */
.omni-input-details,.omni-prompt-details { padding: 0; border: 0; border-radius: 0; margin: .2rem 0; }
.omni-gallery :is(.omni-input-details,.omni-prompt-details) > summary {
  display: flex; align-items: center; gap: .4rem; width: fit-content;
  min-height: 32px; padding: .2rem 0; list-style: none;
  font-size: .75rem; font-weight: 400; color: var(--secondary);
}
.omni-gallery :is(.omni-input-details,.omni-prompt-details) > summary::-webkit-details-marker { display: none; }
.omni-gallery :is(.omni-input-details,.omni-prompt-details) > summary:hover { color: var(--primary); }
.omni-gallery :is(.omni-input-details,.omni-prompt-details) > summary:hover .omni-detail-label { text-decoration: underline; text-underline-offset: 3px; }
.omni-disclosure-chevron { width: 12px; height: 12px; flex-shrink: 0; order: -1; }
.omni-gallery details[open] > summary .omni-disclosure-chevron { transform: rotate(90deg); }
.omni-prompt-details pre { margin: .5rem 0 .8rem; }
.omni-gallery .omni-copy { margin: .4rem 0 0; }

/* Reserve space while expanded references load. */
.omni-gallery .omni-input-grid img,.omni-gallery .omni-input-grid video { height: 190px; margin: 0; }
.omni-gallery .omni-input-grid figcaption { font-size: .7rem; font-weight: 400; }
