/* The To-C gallery shares the page's editorial palette and stays locally scoped. */
#toc-showcase { margin-top: 50px; }
#toc-showcase [hidden] { display: none !important; }
#toc-showcase .toc-showcase-heading { margin-top: 0; }
#toc-showcase .toc-showcase-heading h3 { font-size: 25px; }
#toc-showcase .toc-filterbar { margin-bottom: 17px; }
#toc-showcase .segments button { min-height: 42px; }
#toc-showcase .toc-empty { padding: 20px 0; border-top: 1px solid var(--line); }
#toc-showcase .case-strip { margin-bottom: 22px; padding-top: 5px; }
#toc-showcase .case-choice { display: flex; flex-direction: column; flex-basis: 163px; }
#toc-showcase .case-choice img { height: auto; object-fit: contain; background: #171613; }
#toc-showcase .case-choice > span { line-height: 1.4; padding: 9px 10px 11px; }
#toc-showcase .case-choice small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; }
#toc-showcase .toc-input { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; padding: 23px 0 26px; margin-bottom: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: start; }
#toc-showcase .toc-input[data-kind="text"] { grid-template-columns: 1fr; }
#toc-showcase .toc-input-copy { min-width: 0; }
#toc-showcase .toc-input-label { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
#toc-showcase .toc-input h4 { margin: 0 0 11px; font-size: 23px; font-weight: 750; line-height: 1.3; letter-spacing: -.025em; }
#toc-showcase .toc-brief { max-width: none; font-size: 16px; text-wrap: pretty; }
#toc-showcase .toc-categories { display: flex; flex-wrap: wrap; gap: 6px 17px; margin-top: 16px; color: var(--muted); font-size: 13px; }
#toc-showcase .toc-categories span + span { position: relative; }
#toc-showcase .toc-categories span + span::before { content: "·"; position: absolute; left: -10px; }
#toc-showcase .toc-input-caption { margin-top: 13px; font-size: 12px; }
#toc-showcase .toc-reference { min-width: 0; }
#toc-showcase .toc-reference-title { color: var(--muted); font-size: 13px; font-weight: 650; margin-bottom: 9px; }
#toc-showcase .toc-reference-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
#toc-showcase .toc-reference-images a { display: block; }
#toc-showcase .toc-reference-images img { width: 100%; height: 280px; object-fit: contain; border-radius: 5px; background: #171613; }
#toc-showcase .toc-reference-images figcaption { color: var(--muted); font-size: 12px; margin-top: 7px; }
#toc-showcase .toc-levelbar { margin-bottom: 12px; }
#toc-showcase .toc-levelbar > p { font-size: 15px; font-weight: 650; color: var(--ink); }
#toc-showcase .toc-specs { border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 14px; }
#toc-showcase .toc-specs summary { min-height: 44px; font-size: 14px; }
#toc-showcase .toc-specs > p { font-size: 13px; margin: 4px 0 14px; }
#toc-showcase .toc-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0 0 18px; }
#toc-showcase .toc-spec-grid h5 { margin: 0 0 7px; font-size: 14px; }
#toc-showcase .toc-spec-grid p { margin: 0; font-size: 14px; line-height: 1.6; }
/* Match the existing four-agent comparison: shared card styles, vertical levels. */
#toc-showcase .toc-playback { margin-bottom: 18px; }
#toc-showcase #toc-showcase-playback-help { font-size: 12px; margin-top: 3px; }
#toc-showcase .toc-status { font-size: 13px; margin-top: 6px; color: #a13f38; }
#toc-showcase .toc-status:empty { display: none; }
#toc-showcase .toc-agent-levels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#toc-showcase .toc-clip { min-width: 0; margin: 0; }
#toc-showcase .toc-clip > figcaption { display: block; margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }
#toc-showcase .toc-clip video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #171613; border-radius: 5px; }
#toc-showcase .toc-clip-error { color: #a13f38; font-size: 12px; line-height: 1.5; margin-top: 6px; }
#toc-showcase .toc-clip-error:empty { display: none; }
#toc-showcase .toc-unavailable { display: grid; min-height: 120px; place-items: center; background: #e7e0d4; border-radius: 4px; font-size: 13px; color: var(--muted); padding: 15px; text-align: center; }
#toc-showcase .toc-gallery-note { margin-top: 20px; font-size: 12px; }
@media (max-width: 760px) {
  #toc-showcase { margin-top: 38px; }
  #toc-showcase .toc-showcase-heading h3 { font-size: 23px; }
  #toc-showcase .toc-filterbar { gap: 10px; }
  #toc-showcase .toc-filterbar .config { font-size: 12px; }
  #toc-showcase .case-choice { flex-basis: 149px; }
  #toc-showcase .toc-input { grid-template-columns: 1fr; gap: 21px; }
  #toc-showcase .toc-input h4 { font-size: 21px; }
  #toc-showcase .toc-reference-images img { height: auto; max-height: 320px; }
  #toc-showcase .toc-levelbar { gap: 12px; }
  #toc-showcase .toc-spec-grid { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 480px) {
  #toc-showcase .toc-categories { font-size: 12px; }
  #toc-showcase .toc-reference-images { grid-template-columns: 1fr; }
}

/* Query, references and independent scene plans form one task workspace. */
#toc-showcase .toc-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; align-items: start; }
#toc-showcase .toc-main-stage { min-width: 0; }
#toc-showcase .toc-case-sidebar { position: sticky; top: 90px; min-width: 0; border-left: 1px solid var(--line); padding-left: 22px; }
#toc-showcase .toc-sidebar-heading { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 14px; }
#toc-showcase .toc-sidebar-heading h4 { margin: 0; font-size: 20px; }
#toc-showcase .toc-sidebar-heading .config { font-size: 14px; }
#toc-showcase .toc-case-sidebar > .segments { display: flex; width: 100%; gap: 2px; }
#toc-showcase .toc-case-sidebar > .segments button { flex: 1; padding: 7px 5px; font-size: 14px; }
#toc-showcase .toc-sidebar-label { margin: 22px 0 8px; font-size: 14px; font-weight: 650; color: var(--muted); }
#toc-showcase #toc-showcase-levels { flex-wrap: wrap; }
#toc-showcase #toc-showcase-levels button:first-child { flex-basis: 100%; }
#toc-showcase .toc-case-list { max-height: min(620px, calc(100svh - 350px)); min-height: 180px; overflow-y: auto; overscroll-behavior: contain; margin-top: 22px; padding-right: 5px; scrollbar-width: thin; scrollbar-color: #c3b8a6 transparent; }
#toc-showcase .toc-case-group + .toc-case-group { margin-top: 20px; }
#toc-showcase .toc-case-group h5 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 650; }
#toc-showcase .toc-case-group h5 svg { width: 18px; height: 18px; flex: 0 0 18px; }
#toc-showcase .toc-case-group h5 small { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }
#toc-showcase .toc-case-choice { display: flex; align-items: center; width: 100%; gap: 10px; min-height: 76px; margin-bottom: 5px; padding: 8px; border: 1px solid transparent; border-radius: 6px; text-align: left; }
#toc-showcase .toc-case-choice img, #toc-showcase .toc-case-placeholder { width: 72px; height: 48px; flex: 0 0 72px; object-fit: cover; border-radius: 3px; background: #dcd5c8; }
#toc-showcase .toc-case-placeholder { display: grid; place-items: center; }
#toc-showcase .toc-case-placeholder svg { width: 25px; height: 25px; }
#toc-showcase .toc-case-choice strong { display: block; font-size: 14px; line-height: 1.35; font-weight: 650; }
#toc-showcase .toc-case-choice small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.3; }
#toc-showcase .toc-case-choice:hover { background: #eae3d7; }
#toc-showcase .toc-case-choice[aria-pressed="true"] { border-color: var(--action); background: #e9dfd0; box-shadow: inset 2px 0 var(--action); }
#toc-showcase .toc-case-choice:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
#toc-showcase .toc-input { --input-accent: #b94b22; --input-tint: #f3dfd0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; padding: 24px; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 10px; background: #faf7f0; align-items: center; }
#toc-showcase .toc-input[data-modality="I2C"] { --input-accent: #3b6075; --input-tint: #dde8ed; }
#toc-showcase .toc-input[data-modality="V2C"] { --input-accent: #705272; --input-tint: #e9dfeb; }
#toc-showcase .toc-input[data-kind="text"] { grid-template-columns: minmax(0, 1fr); }
#toc-showcase .toc-query-heading { display: flex; align-items: flex-start; gap: 13px; }
#toc-showcase .toc-modality-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; color: var(--input-accent); background: var(--input-tint); }
#toc-showcase .toc-modality-icon svg { width: 26px; height: 26px; }
#toc-showcase .toc-input-label { margin: 0 0 5px; color: var(--input-accent); font-size: 14px; font-weight: 650; letter-spacing: .025em; }
#toc-showcase .toc-input h4 { margin: 0; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.25; }
#toc-showcase .toc-query-body { margin-top: 22px; padding: 0 0 0 15px; border-left: 3px solid var(--input-tint); }
#toc-showcase .toc-query-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: var(--ink); }
#toc-showcase .toc-query-label small { padding: 2px 6px; border-radius: 3px; background: #eee8de; font-size: 12px; color: var(--muted); font-weight: 500; }
#toc-showcase .toc-brief { margin-top: 7px; font-size: 16px; line-height: 1.65; color: var(--muted); }
#toc-showcase .toc-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
#toc-showcase .toc-categories > div { display: flex; gap: 8px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--line); }
#toc-showcase .toc-categories svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--input-accent); margin-top: 2px; }
#toc-showcase .toc-categories small { display: block; font-size: 12px; color: var(--muted); }
#toc-showcase .toc-categories strong { display: block; font-size: 14px; color: var(--ink); font-weight: 550; line-height: 1.4; margin-top: 4px; }
#toc-showcase .toc-reference { overflow: hidden; padding: 12px; background: #f0ebe1; border-radius: 7px; }
#toc-showcase .toc-reference-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; font-size: 14px; }
#toc-showcase .toc-reference-heading svg { width: 18px; height: 18px; }
#toc-showcase .toc-reference-heading strong { font-size: 14px; font-weight: 650; }
#toc-showcase .toc-reference-heading > span { margin-left: auto; font-size: 12px; color: var(--input-accent); background: var(--input-tint); padding: 3px 6px; border-radius: 3px; }
#toc-showcase .toc-reference-images { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 8px; }
#toc-showcase .toc-reference-images img { height: 190px; object-fit: contain; background: #242320; border-radius: 4px; }
#toc-showcase .toc-reference .toc-clip > figcaption { font-size: 12px; }
#toc-showcase .toc-reference-note { font-size: 12px; line-height: 1.45; margin-top: 10px; color: var(--muted); }
#toc-showcase .toc-stage-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 15px; }
#toc-showcase .toc-stage-heading h4 { margin: 0; font-size: 18px; }
#toc-showcase #toc-level-help { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
#toc-showcase .toc-tier-legend { display: flex; flex-wrap: wrap; gap: 7px; }
#toc-showcase .toc-tier-legend > span { padding: 5px 8px; border-radius: 4px; background: #e9e1d4; font-size: 14px; color: var(--muted); }
#toc-showcase .toc-tier-legend b { margin-right: 4px; color: var(--ink); }
#toc-showcase .toc-specs { margin-bottom: 5px; }
#toc-showcase .toc-playback { margin-bottom: 20px; }
#toc-showcase #toc-showcase-playback-help { font-size: 13px; }
#toc-showcase .toc-agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; overflow: visible; }
#toc-showcase .toc-agent-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8f4ec; }
#toc-showcase .toc-agent-card h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; font-size: 16px; font-weight: 650; line-height: 1.4; }
#toc-showcase .toc-agent-card h4 img { width: 22px; height: 22px; object-fit: contain; }
#toc-showcase .toc-tier-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #171613; }
#toc-showcase .toc-level-slice { position: absolute; inset: 0; width: 100%; height: 100%; }
#toc-showcase .toc-tier-stage .toc-clip { width: 100%; height: 100%; }
#toc-showcase .toc-tier-stage .toc-clip > figcaption { display: none; }
#toc-showcase .toc-tier-stage .toc-clip video { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
#toc-showcase .toc-tier-stage .toc-clip-error { position: absolute; bottom: 0; background: #fff; }
#toc-showcase .toc-tier-stage[data-tiers="1"] .toc-level-slice::after { content: attr(data-level); position: absolute; left: 10px; top: 10px; padding: 5px 8px; text-transform: uppercase; background: #111c; border-radius: 3px; color: white; font-size: 14px; }
#toc-showcase .toc-tier-stage .diagonal-knob { width: 29px; height: 29px; font-size: 17px; }
@media (max-width: 1100px) {
  #toc-showcase .toc-workspace { grid-template-columns: minmax(0, 1fr) 235px; gap: 20px; }
  #toc-showcase .toc-case-sidebar { padding-left: 16px; }
  #toc-showcase .toc-input { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  #toc-showcase .toc-reference-images img { height: 200px; }
  #toc-showcase .toc-reference .toc-clip video { max-height: 230px; }
}
@media (max-width: 800px) {
  #toc-showcase .toc-workspace { display: flex; flex-direction: column; gap: 24px; }
  #toc-showcase .toc-case-sidebar { position: static; order: -1; width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 16px; }
  #toc-showcase .toc-case-list { max-height: 240px; min-height: 0; margin-top: 16px; }
  #toc-showcase .toc-case-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  #toc-showcase .toc-case-group h5 { grid-column: 1 / -1; }
  #toc-showcase #toc-showcase-levels button:first-child { flex-basis: auto; }
  #toc-showcase .toc-sidebar-label { margin-top: 14px; }
  #toc-showcase .toc-main-stage { width: 100%; }
  #toc-showcase .toc-reference-images img { height: 230px; }
}
@media (max-width: 550px) {
  #toc-showcase .toc-agent-grid { grid-template-columns: minmax(0, 1fr); }
  #toc-showcase .toc-case-group { grid-template-columns: minmax(0, 1fr); }
  #toc-showcase .toc-input { padding: 17px; }
  #toc-showcase .toc-categories { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  #toc-showcase .toc-categories > div { padding-top: 9px; align-items: center; }
  #toc-showcase .toc-categories > div > span { display: flex; gap: 10px; align-items: baseline; }
  #toc-showcase .toc-categories strong { margin: 0; }
  #toc-showcase .toc-transport .restart { display: block; }
}
