/* Paper-inspired trajectory reader: white canvas, mint evidence, blue computation. */
.case-explorer {
  --ce-border: #d8e3ea;
  --ce-muted: #56717f;
  --ce-mono: 'IBM Plex Mono', ui-monospace, monospace;
  border: 1px solid var(--ce-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 32px #19374608;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: clamp(940px, calc(100dvh - 32px), 1060px);
  min-height: 940px;
  overflow: hidden;
  isolation: isolate;
}
.case-explorer > * { min-width: 0; max-width: 100%; }
.case-explorer button { cursor: pointer; font: inherit; }
.case-explorer button:disabled { opacity: .3; cursor: default; }
.case-explorer button:focus-visible,
.case-explorer summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.ce-tabs {
  display: grid;
  grid-template-columns: repeat(17, minmax(0, 1fr));
  grid-auto-flow: row dense;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 8px;
  background: #f7fafb;
  border-bottom: 1px solid var(--ce-border);
  overflow: hidden;
}
.ce-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 7px 6px;
  text-align: left;
  border: 1px solid #d8e3e7;
  border-radius: 8px;
  background: #ffffff;
  color: #526e7d;
  transition: height .25s ease, background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.ce-tab::after {
  content: '';
  position: absolute;
  inset: auto 10px 3px;
  height: 2px;
  border-radius: 99px;
  background: transparent;
  transition: background .2s;
}
.ce-tab:hover { border-color: #a9cfc9; background: #fbfefd; color: #193746; transform: translateY(-1px); }
.ce-tab[aria-selected="true"] { grid-column: span 3; min-width: 0; height: 58px; padding-inline: 11px; gap: 10px; border-color: #78bdb3; background: #eaf6f2; color: #193746; box-shadow: 0 2px 9px #007d7612; }
.ce-tab[aria-selected="true"]::after { background: var(--cyan); }
.ce-tab-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid #ccdbe3;
  border-radius: 50%;
  color: #56717f;
  font: 10px/1 var(--ce-mono);
  transition: background .2s, border-color .2s;
}
.ce-tab[aria-selected="true"] .ce-tab-number { color: #ffffff; background: #007d76; border-color: #007d76; }
.ce-tab div { min-width: 0; }
.ce-tab strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #007d76; font: 10px/1.35 var(--ce-mono); font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.ce-tab div > span { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.35; font-weight: 600; color: #294956; margin-top: 3px; }
.ce-tab[aria-selected="true"] div > span { display: block; }
.ce-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 26px;
  background: #f5f9fa;
  border-bottom: 1px solid var(--ce-border);
}
.ce-play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  min-width: 106px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #008f87;
  border-radius: 7px;
  background: #007d76;
  color: #ffffff;
  font-size: 14px !important;
  font-weight: 650 !important;
  transition: box-shadow .2s, background .2s;
}
.ce-play:hover { background: #007d76; box-shadow: 0 3px 9px #008f8715; }
.ce-play-icon { display: inline-flex; align-items: center; }
.ce-play-icon svg { width: 15px; height: 15px; }
.ce-progress-wrap { flex: 1; min-width: 0; padding: 0 15px; }
.ce-case-title { margin: 0 0 5px; color: var(--ink); font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: normal; }
.ce-progress-labels { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; font-size: 14px; color: #294956; }
#ceCount { flex-shrink: 0; font: 12px/1.5 var(--ce-mono); color: #56717f; }
#ceProgressTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-progress { position: relative; height: 28px; display: flex; align-items: center; }
.ce-track { width: 100%; height: 5px; border-radius: 6px; background: #d8e4e8; overflow: hidden; }
.ce-fill { width: 0; height: 100%; background: var(--cyan); border-radius: inherit; transition: width .1s linear; }
#ceScrubber { position: absolute; inset: 0; margin: 0; width: 100%; height: 28px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; accent-color: var(--cyan); }
#ceScrubber::-webkit-slider-runnable-track { background: transparent; height: 5px; }
#ceScrubber::-moz-range-track { background: transparent; height: 5px; }
#ceScrubber::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; border: 0; opacity: 0; }
#ceScrubber::-moz-range-thumb { width: 0; height: 0; border: 0; opacity: 0; }
#ceScrubber:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; border-radius: 3px; }
.ce-progress-nodes { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ce-progress-node {
  position: absolute;
  left: var(--step-position);
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}
.ce-progress-dot {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #b9cdd7;
  border-radius: 50%;
  background: #f5f9fa;
  color: #56717f;
  font: 9px/1 var(--ce-mono);
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.ce-progress-node.is-complete .ce-progress-dot { border-color: #86bdb5; background: #e6f4f0; color: #007b74; }
.ce-progress-node.is-active .ce-progress-dot { border-color: #007d76; background: #007d76; color: #ffffff; box-shadow: 0 0 0 4px #008f8715; }
.ce-progress-node:hover .ce-progress-dot,
.ce-progress-node:focus-visible .ce-progress-dot { border-color: #008f87; color: #007b74; background: #e6f4f0; box-shadow: 0 0 0 4px #008f8715; transform: scale(1.08); }
.ce-progress-node.is-active:hover .ce-progress-dot,
.ce-progress-node.is-active:focus-visible .ce-progress-dot { color: #ffffff; background: #007d76; }
.ce-progress-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translate(-50%, 4px);
  padding: 7px 10px;
  border: 1px solid #cbdfe2;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 3px 12px #1937460a;
  color: #244c57;
  font: 11px/1.5 var(--ce-mono);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s, transform .15s, visibility .15s;
}
.ce-progress-node:hover .ce-progress-tooltip,
.ce-progress-node:focus-visible .ce-progress-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ce-progress-node:first-child .ce-progress-tooltip { transform: translate(0, 4px); }
.ce-progress-node:first-child:hover .ce-progress-tooltip,
.ce-progress-node:first-child:focus-visible .ce-progress-tooltip { transform: translate(0, 0); }
.ce-control, .ce-speed {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #cbdbe4;
  border-radius: 6px;
  background: transparent;
  color: #526e7d;
  transition: color .2s, border-color .2s, background .2s;
}
.ce-control svg { width: 16px; height: 16px; }
.ce-speed { font-size: 14px !important; width: 44px; }
.ce-control:hover:not(:disabled), .ce-speed:hover { color: var(--cyan); border-color: #8dbdb8; background: #e6f4f0; }
.ce-workbench {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  min-height: 0;
  overflow: hidden;
}
.ce-panel {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* Let wheel scrolling chain back to the page at the panel's top/bottom. */
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #b8cdd3 #f3f7f8;
  scrollbar-width: thin;
  background: #ffffff;
}
.ce-panel::-webkit-scrollbar { width: 8px; }
.ce-panel::-webkit-scrollbar-track { background: #f3f7f8; }
.ce-panel::-webkit-scrollbar-thumb { border: 2px solid #f3f7f8; border-radius: 99px; background: #a8c2ca; }
.ce-panel + .ce-panel { border-left: 1px solid var(--ce-border); }
.ce-panel:nth-child(2) { background: #fcfdfd; }
.ce-panel-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  margin: 0 23px;
  border-bottom: 1px solid #dce6ec;
  background: inherit;
}
.ce-panel-header h3 { margin: 0; font-size: 16px; letter-spacing: .015em; font-weight: 650; color: #193746; }
.ce-panel-header > span { color: #56717f; font: 12px/1.4 var(--ce-mono); text-align: right; }
.ce-panel-body { padding: 23px; }
.ce-input-panel { overflow-y: hidden; }
.ce-input-panel .ce-panel-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  height: calc(100% - 62px);
  overflow: hidden;
}
.ce-input-panel .ce-panel-body > * { min-width: 0; max-width: 100%; }
#ceInputMedia { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ce-input-gallery {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 9px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-color: #a9c7cc #edf3f4;
  scrollbar-width: thin;
}
.ce-input-gallery::-webkit-scrollbar { height: 8px; }
.ce-input-gallery::-webkit-scrollbar-track { background: #edf3f4; border-radius: 99px; }
.ce-input-gallery::-webkit-scrollbar-thumb { background: #a9c7cc; border-radius: 99px; }
.ce-input-gallery.one { overflow-x: hidden; padding-bottom: 0; }
.ce-input-gallery.multi { cursor: grab; }
.ce-input-gallery.multi.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ce-media-button { display: block; width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; text-align: left; cursor: zoom-in !important; border-radius: 7px; }
.ce-input-gallery .ce-media-button { display: flex; flex-direction: column; flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.ce-input-gallery.multi .ce-media-button { flex-basis: calc((100% - 10px) / 2); cursor: grab !important; }
.ce-input-gallery.multi.is-dragging .ce-media-button { cursor: grabbing !important; }
.ce-media-button img { display: block; width: 100%; height: 250px; object-fit: contain; background: #f3f6f8; border-radius: 7px; border: 1px solid #dce6ec; transition: border-color .2s, filter .2s; }
.ce-input-gallery .ce-media-button img { flex: 1 1 auto; height: 0; min-height: 0; }
.ce-input-gallery .ce-media-button > span {
  position: relative;
  flex: 0 0 30px;
  height: 30px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 10px 24px 0 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ce-input-gallery .ce-media-button > span b { position: absolute; top: 8px; right: 0; float: none; }
.ce-media-button:hover img { border-color: #008f87; filter: brightness(1.02); }
.ce-media-button > span { display: block; font: 12px/1.6 var(--ce-mono); color: #526e7d; padding: 10px 0 0; }
.ce-media-caption { font-size: 12px; line-height: 1.6; margin: 12px 0 0; color: #56717f; }
.ce-gif-toggle { margin-top: 12px; padding: 7px 12px; border: 1px solid #b8d8d3; border-radius: 5px; background: #f2faf7; color: #007d76; font-size: 14px !important; }
.ce-gif-toggle:hover, .ce-gif-toggle[aria-pressed="true"] { border-color: #008f87; color: #00746e; }
.ce-query { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; margin-top: 0; padding: 17px 18px; background: #edf7f3; border-radius: 7px; border-left: 2px solid var(--cyan); }
.ce-query label { display: block; font: 12px/1.5 var(--ce-mono); letter-spacing: .07em; color: #00877f; text-transform: uppercase; }
.ce-query p, #ceChoices { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.ce-query p { margin: 9px 0 0; font-size: 16px; line-height: 1.65; color: #203746; }
.ce-details { margin-top: 18px; color: #56717f; font-size: 13px; line-height: 1.6; }
.ce-details summary { width: fit-content; cursor: pointer; color: #4a6d80; font-size: 14px; list-style-position: outside; margin-left: 15px; padding-left: 3px; transition: color .2s; }
.ce-details summary:hover { color: var(--cyan); }
.ce-details-body { margin-top: 12px; padding: 15px 16px; border: 1px solid #dce6eb; border-radius: 7px; background: #f6f9fa; }
.ce-details-body p { margin: 0 0 10px; }
.ce-details-body p:last-of-type { margin-bottom: 12px; }
.ce-details-body strong { display: block; margin-bottom: 3px; color: #294956; font-weight: 650; }
#ceInputMeta { color: #6e8692; font: 11px/1.5 var(--ce-mono); }
.ce-text-button { border: 0; border-bottom: 1px solid #a9d2cb; background: transparent; padding: 3px 0; color: #00877f; font-size: 14px !important; }
.ce-intent { padding: 0 0 20px; }
.ce-eyebrow { font: 12px/1.5 var(--ce-mono); letter-spacing: .05em; color: #00877f; }
.ce-intent p { font-size: 17px; line-height: 1.6; margin: 10px 0 0; color: #203746; }
.ce-code-card { border: 1px solid #d7e2e9; border-radius: 8px; overflow: hidden; background: #f8fafc; }
.ce-code-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; min-height: 43px; border-bottom: 1px solid #dce6ec; color: #56717f; font: 12px/1.4 var(--ce-mono); }
.ce-copy { border: 0; background: transparent; color: #56717f; font-size: 14px !important; padding: 2px; }
.ce-copy:hover { color: var(--cyan); }
.ce-copy { display: inline-flex; align-items: center; gap: 7px; }
.ce-copy svg { width: 15px; height: 15px; }
.ce-media-button > span b { float: right; font-size: 16px; font-weight: 400; color: #008f87; }
.ce-state-label > span { display: block; }
.ce-state-label > span + span { margin-top: 6px; font: 12px/1.5 var(--font-sans, 'Source Sans 3', system-ui, sans-serif); text-transform: none; letter-spacing: 0; color: #6c8390; }
.ce-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ce-dialog-head button { display: grid; place-items: center; }
.ce-dialog-head svg { width: 18px; height: 18px; }
#ceWhy { white-space: pre-line; }
.ce-illustration > header { font-size: 13px; color: #56717f; margin-bottom: 10px; }
#ceChoices:empty { display: none; }
#ceChoices { margin-top: 15px; padding-top: 12px; border-top: 1px solid #d8e3ea; }
#ceChoices p { font-size: 12px; line-height: 1.6; color: #526e7d; margin-top: 7px; }
.ce-code-card pre { margin: 0; padding: 21px 12px 23px 8px; min-height: 225px; overflow-x: auto; }
.ce-code-card code { color: #203746; font: 14px/1.85 var(--ce-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.ce-code-line { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; }
.ce-line-number { user-select: none; color: #8a9ca7; text-align: right; font-size: 12px; padding-top: 2px; }
.ce-line-text { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ce-variable-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.ce-variable-list > span { border: 1px solid #d8e3ea; color: #4f6c7a; border-radius: 4px; padding: 4px 8px; background: #edf3f6; font: 12px/1.5 var(--ce-mono); }
.ce-variable-list code { font: inherit; }
.ce-output-list { display: flex; flex-direction: column; gap: 14px; }
.ce-output-card { border: 1px solid #d8e3ea; background: #f6f9fb; border-radius: 8px; overflow: hidden; animation: ce-output-arrive .26s ease-out; }
.ce-output-card header { display: flex; align-items: center; gap: 9px; padding: 13px 15px 0; color: #4d6a7b; font-size: 13px; line-height: 1.5; }
.ce-output-icon { display: grid; place-items: center; flex-shrink: 0; font: 12px/1 var(--ce-mono); color: #008f87; }
.ce-output-icon svg { width: 15px; height: 15px; }
.ce-output-card pre { margin: 0; padding: 13px 15px 16px; color: #203746; font: 14px/1.75 var(--ce-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.ce-output-card.kind-error { background: #fdf0ed; border-color: #edc6bf; }
.ce-output-card.kind-error header, .ce-output-card.kind-error .ce-output-icon { color: #ad4944; }
.ce-output-card.kind-error pre { color: #8d3e3c; }
.ce-output-card.kind-answer { background: #eaf6ef; border-color: #bbdccc; }
.ce-output-card.kind-answer header, .ce-output-card.kind-answer .ce-output-icon { color: #2a7d58; }
.ce-output-card.kind-answer pre { color: #215c45; font-size: 17px; }
.ce-reference-gt { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 15px 15px; padding-top: 11px; border-top: 1px solid #c8e2d4; }
.ce-reference-gt span { flex-shrink: 0; color: #567668; font: 700 11px/1.4 var(--ce-mono); letter-spacing: .08em; text-transform: uppercase; }
.ce-reference-gt strong { color: #173f32; font: 650 14px/1.5 var(--ce-sans); text-align: right; }
.ce-output-card.kind-image { background: transparent; border-color: #d8e3ea; }
.ce-output-card.kind-image header { padding-bottom: 12px; }
.ce-output-card.kind-image .ce-media-button { padding: 0 10px 12px; }
.ce-output-card.kind-image img { height: 250px; border-radius: 5px; background: #f3f6f8; }
.ce-output-card.kind-image .ce-media-button > span { padding: 10px 4px 0; }
.ce-output-card.kind-image .ce-output-gallery { height: 272px; padding: 0 10px 12px; gap: 10px; }
.ce-output-card.kind-image .ce-output-gallery .ce-media-button { flex: 0 0 calc(100% - 18px); height: 100%; padding: 0; }
.ce-output-card.kind-image .ce-output-gallery .ce-media-button img { flex: 1 1 auto; width: 100%; height: 0; min-height: 0; object-fit: contain; }
.ce-output-card.kind-image .ce-output-gallery .ce-media-button > span { flex: 0 0 30px; height: 30px; padding: 10px 24px 0 4px; }
.ce-illustration { padding: 14px; border: 1px dashed #c5d6e0; border-radius: 8px; background: #f8fafc; }
.ce-illustration .ce-media-button img { height: 190px; }
.ce-illustration small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.65; color: #56717f; }
.ce-return-label { display: flex; align-items: center; gap: 8px; margin-top: 19px; color: #56717f; font-size: 12px; line-height: 1.6; }
.ce-return-label svg { width: 15px; height: 15px; flex-shrink: 0; color: #008f87; }
.ce-statebar { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 26px; padding: 18px 28px 17px; background: #f8fafb; border-top: 1px solid var(--ce-border); }
.ce-state-label { color: #56717f; font: 12px/1.7 var(--ce-mono); text-transform: uppercase; letter-spacing: .055em; }
.ce-timeline { display: flex; overflow-x: auto; padding: 8px 5px 7px; scrollbar-color: #c3d5de transparent; scrollbar-width: thin; }
.ce-node { position: relative; min-width: 130px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 29px 13px 2px 0; color: #56717f; border: 0; background: transparent; text-align: left; }
.ce-node::after { content: ''; position: absolute; height: 2px; top: 6px; left: 15px; width: calc(100% - 18px); background: #d6e2e8; z-index: 0; }
.ce-node:last-child::after { display: none; }
.ce-node.is-complete::after { background: linear-gradient(90deg, var(--node-color, #008f87), #badbd4); opacity: .65; }
.ce-node-dot { position: absolute; top: 0; left: 0; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #adc4d0; background: #ffffff; transition: background .2s, box-shadow .2s, border-color .2s; }
.ce-node.is-complete .ce-node-dot { background: var(--node-color, #008f87); border-color: var(--node-color, #008f87); }
.ce-node.is-active .ce-node-dot { border-color: var(--node-color, #008f87); background: var(--node-color, #008f87); box-shadow: 0 0 0 5px #e2f1ec; }
.ce-node strong { font-size: 14px; line-height: 1.4; font-weight: 600; transition: color .2s; }
.ce-node small { font: 12px/1.5 var(--ce-mono); color: #56717f; }
.ce-node.is-active strong { color: #193746; }
.ce-node.is-active small { color: #4d6e7c; }
.ce-node:hover strong { color: var(--cyan); }
.ce-node:hover .ce-node-dot { border-color: #008f87; box-shadow: 0 0 0 4px #e4f1ed; }
.ce-node-progress { display:block; width:100%; height:3px; margin-top:3px; overflow:hidden; border-radius:99px; background:#dfe8ec; }
.ce-node-progress i { display:block; width:0; height:100%; border-radius:inherit; background:var(--node-color, #008f87); transition:width .1s linear; }
.ce-footnote { padding: 15px 27px; border-top: 1px solid #dce6ec; background: #ffffff; }
.ce-footnote p { margin: 0; color: #56717f; font-size: 12px; line-height: 1.6; }
#ceImageDialog { padding: 0; width: 1200px; max-width: calc(100vw - 40px); max-height: 92vh; overflow: auto; border: 1px solid #cfdee6; border-radius: 10px; background: #ffffff; color: var(--ink); }
#ceImageDialog::backdrop { background: #19374666; backdrop-filter: blur(3px); }
.ce-dialog-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; background: #ffffff; font-size: 15px; }
.ce-dialog-head button { cursor: pointer; padding: 8px 15px; border-radius: 5px; border: 1px solid #cbdbe4; background: #f2f7fa; color: var(--ink); font: 14px var(--font-sans, 'Source Sans 3', system-ui, sans-serif); }
#ceDialogImage { display: block; max-width: 100%; max-height: 73vh; margin: auto; object-fit: contain; }
#ceImageDialog > p { padding: 10px 22px; font-size: 12px; color: #56717f; }
@keyframes ce-output-arrive { from { transform: translateY(5px); opacity: .35; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 1200px) {
  .ce-panel-body { padding: 18px; }
  .ce-panel-header { margin-inline: 18px; }
  .ce-statebar { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 1000px) {
  .ce-tabs { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .ce-tab[aria-selected="true"] { grid-column: span 2; }
  .ce-workbench { grid-template-columns: 1fr 1.15fr; min-height: 0; overflow: auto; overscroll-behavior-x: contain; overscroll-behavior-y: auto; scrollbar-color: #b8cdd3 #f3f7f8; scrollbar-width: thin; }
  .ce-panel { min-height: auto; overflow: visible; scrollbar-gutter: auto; }
  .ce-input-panel { overflow: visible; }
  .ce-input-panel .ce-panel-body { height: auto; grid-template-rows: 340px auto; overflow: visible; }
  .ce-panel:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ce-border); }
  .ce-panel:last-child .ce-output-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ce-panel:last-child .ce-output-list > :only-child { grid-column: 1 / -1; }
  .ce-output-card.kind-image img { height: 230px; }
  .ce-statebar { display: block; }
  .ce-state-label { margin-bottom: 15px; }
  .ce-timeline { padding-bottom: 8px; }
}
@media (max-width: 650px) {
  .case-explorer {
    height: auto;
    min-height: 0;
    grid-template-rows: auto;
    border-radius: 10px;
  }
  .ce-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 8px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #b8cdd3 #f3f7f8;
  }
  .ce-tab {
    flex: 0 0 112px;
    width: 112px;
    min-width: 112px;
    height: 48px;
    padding: 7px 8px;
    gap: 7px;
    scroll-snap-align: start;
  }
  .ce-tab[aria-selected="true"] {
    flex-basis: min(228px, calc(100vw - 66px));
    width: min(228px, calc(100vw - 66px));
    min-width: min(228px, calc(100vw - 66px));
    height: 54px;
    padding-inline: 9px;
  }
  .ce-toolbar { display: grid; grid-template-columns: 1fr 40px 40px 44px; gap: 10px; padding: 16px; }
  .ce-play { min-width: 105px; width: fit-content; grid-row: 1; }
  .ce-control, .ce-speed { grid-row: 1; }
  .ce-progress-wrap { grid-row: 2; grid-column: 1 / -1; padding: 5px 0 0; }
  .ce-progress-labels { font-size: 14px; }
  .ce-workbench {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
  .ce-panel + .ce-panel { border-left: 0; border-top: 1px solid var(--ce-border); }
  .ce-panel-header { min-height: 56px; margin-inline: 19px; }
  .ce-panel-body { padding: 20px 19px 24px; }
  .ce-input-panel .ce-panel-body { grid-template-rows: 300px auto; }
  .ce-input-gallery.multi .ce-media-button { flex-basis: 82%; }
  .ce-code-card pre { min-height: 180px; }
  .ce-panel:last-child .ce-output-list { display: flex; }
  .ce-output-card.kind-image img { height: 265px; }
  .ce-statebar { padding: 23px 19px 19px; }
  .ce-node { min-width: 128px; }
  .ce-footnote { padding: 15px 19px; }
  .ce-dialog-head { padding: 14px; font-size: 14px; }
  #ceImageDialog { max-width: calc(100vw - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .case-explorer *, .case-explorer *::before, .case-explorer *::after { animation: none !important; transition: none !important; }
}
