.rx-explorer { min-width: 0; font-family: var(--body); color: var(--ink); }
.rx-explorer [hidden] { display: none !important; }
.rx-explorer button { font-family: inherit; }
.rx-task-tabs { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: #121217; }
.rx-task { flex: 1; min-width: 0; min-height: 48px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; font-size: 15px; color: var(--muted); }
.rx-task[aria-pressed="true"] { color: var(--ink); background: #d9d9030d; box-shadow: inset 0 -2px #d9d903; }
.rx-task:hover { color: var(--ink); background: #6360bf14; }
.rx-task[aria-pressed="true"]:hover { color: #f8f6ff; background: #d9d90317; }
.rx-case-bar { display: flex; align-items: center; gap: 16px; margin: 20px 0; min-width: 0; }
.rx-case-label { font-size: 14px; color: var(--muted); }
.rx-case-picker { display: flex; flex: 1; min-width: 0; gap: 10px; padding: 4px 2px 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #51485f transparent; }
.rx-case { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; min-height: 64px; width: 210px; padding: 7px 12px 7px 7px; border: 1px solid var(--border); border-radius: 6px; text-align: left; color: var(--muted); background: #111116; }
.rx-case > img { width: 48px; height: 48px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; }
.rx-case > span { font-size: 14px; line-height: 1.45; }
.rx-case:hover { color: var(--ink); background: #6360bf14; }
.rx-case[aria-pressed="true"] { color: var(--ink); background: #d9d9030d; box-shadow: inset 0 -2px #d9d903; }
.rx-case[aria-pressed="true"]:hover { color: #f8f6ff; background: #d9d90317; }
.rx-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 48px; margin-bottom: 15px; }
.rx-instruction { margin: 0; max-width: 610px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.rx-actions { display: flex; align-items: center; flex-shrink: 0; max-width: 100%; gap: 8px; flex-wrap: wrap; }
.rx-action { min-height: 40px; padding: 8px 12px; border: 1px solid #494251; border-radius: 5px; color: #d0c8dc; background: #16141c; font-size: 14px; line-height: 1.4; white-space: nowrap; }
.rx-action:hover, .rx-action[aria-pressed="true"] { border-color: var(--purple); background: #2b2439; color: var(--ink); }
.rx-action[data-rx-attribute][aria-pressed="true"] { border-color: #494251; background: #d9d9030d; color: var(--ink); box-shadow: inset 0 -2px #d9d903; }
.rx-action[data-rx-attribute][aria-pressed="true"]:hover { color: #f8f6ff; background: #d9d90317; }
.rx-action:disabled { cursor: default; opacity: .5; }
.rx-baseline { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; width: 320px; max-width: 100%; min-width: 0; font-size: 14px; color: var(--muted); }
.rx-baseline > span { white-space: nowrap; }
.rx-baseline-select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 29px 8px 10px; border: 1px solid #494251; border-radius: 5px; appearance: none; color-scheme: dark; color: #d0c8dc; background-color: #16141c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23b9adca' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; font: 400 14px/1.4 var(--body); cursor: pointer; }
.rx-baseline-select:hover { border-color: var(--purple); }
.rx-baseline-select:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.rx-method-track { display: grid; grid-auto-flow: column; grid-auto-columns: max(250px, calc((100% - 42px) / 4)); gap: 14px; align-items: start; padding: 5px 2px 15px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #62546f #17141c; }
.rx-method-card { min-width: 0; border: 1px solid #39333f; border-radius: 7px; background: #131117; scroll-snap-align: start; overflow: hidden; }
.rx-method-card.rx-ours { border-color: var(--purple); box-shadow: inset 0 2px var(--purple); }
.rx-method-card.rx-ground-truth { border-color: #596576; }
.rx-method-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 72px; min-height: 72px; padding: 13px 12px; border-bottom: 1px solid #332d3c; }
.rx-method-heading h3 { min-width: 0; font: 500 15px/1.4 var(--body); letter-spacing: 0; overflow-wrap: anywhere; }
.rx-method-badge { flex-shrink: 0; padding: 3px 6px; border-radius: 3px; font-size: 12px; color: var(--pale); background: #34303e; }
.rx-ground-truth .rx-method-badge { color: #b9c8de; background: #242a32; }
.rx-media { display: block; position: relative; width: 100%; aspect-ratio: var(--rx-aspect, 1); max-height: 400px; border: 0; padding: 0; overflow: hidden; background: #fff; isolation: isolate; }
.rx-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }
.rx-target-outline { position: absolute; z-index: 1; box-sizing: border-box; border: 2px solid var(--purple); border-radius: 2px; box-shadow: inset 0 0 0 1px #ffffffc9, 0 0 0 1px #13111c55; pointer-events: none; }
.rx-removal { touch-action: pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; cursor: col-resize; }
.rx-removal:not(.is-ready) { cursor: progress; }
.rx-removal:not(.is-ready) .rx-output { opacity: 0; }
.rx-comparison-label { position: absolute; z-index: 2; padding: 4px 7px; border: 1px solid #e6e0f347; border-radius: 3px; background: #15131fd9; color: #f1edf7; font-size: 14px; line-height: 1.4; pointer-events: none; }
.rx-removed-label { color: var(--pale); }
.rx-comparison-divider { position: absolute; z-index: 3; width: 2px; transform: translateX(-50%); background: #f1edf7; box-shadow: 0 0 0 1px #211a3873, 0 0 9px #0005; pointer-events: none; }
.rx-comparison-grip { position: absolute; left: 50%; top: 50%; width: 34px; height: 42px; box-sizing: border-box; transform: translate(-50%, -50%); border: 1.5px solid #f1edf7; border-radius: 8px; background: #252036eb; box-shadow: 0 2px 12px #0006; }
.rx-comparison-grip::before, .rx-comparison-grip::after { content: ''; position: absolute; top: 16px; width: 6px; height: 6px; border-top: 1.5px solid #f1edf7; border-right: 1.5px solid #f1edf7; }
.rx-comparison-grip::before { left: 7px; transform: rotate(-135deg); }
.rx-comparison-grip::after { right: 7px; transform: rotate(45deg); }
.rx-comparison-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.rx-removal:focus-within .rx-comparison-grip { outline: 3px solid var(--purple); outline-offset: 3px; }
.rx-removal.is-dragging .rx-comparison-grip { background: #423357; }
.rx-layer-foreground { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; display: block; width: 0; height: 0; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.rx-layer-foreground > img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; filter: var(--rx-sticker-filter, url(#rx-sticker-decoration)); }
.rx-layer-foreground.is-dragging { cursor: grabbing; }
.rx-layer-foreground:focus-visible { outline: none; }
.rx-layer-foreground:focus-visible > img { filter: var(--rx-sticker-filter, url(#rx-sticker-decoration)); }
.rx-layer-foreground.rx-full-canvas { overflow: visible; }
.rx-layer-foreground.rx-full-canvas > img { position: absolute; max-width: none; max-height: none; filter: var(--rx-sticker-filter, url(#rx-sticker-decoration)); }
.rx-normal-view { cursor: crosshair; touch-action: pan-x pan-y; }
.rx-normal-image { will-change: transform; }
.rx-zoom-marker { position: absolute; width: 20px; height: 20px; transform: translate(-50%,-50%); pointer-events: none; z-index: 2; filter: drop-shadow(0 1px 1px #000); }
.rx-zoom-marker::before, .rx-zoom-marker::after { content: ''; position: absolute; background: var(--pale); }
.rx-zoom-marker::before { width: 20px; height: 1px; left: 0; top: 9px; }
.rx-zoom-marker::after { width: 1px; height: 20px; left: 9px; top: 0; }
.rx-empty { margin: 0; padding: 35px 20px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); text-align: center; font-size: 14px; background: #111116; }
.rx-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; }
@media (max-width: 1050px) {
  .rx-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rx-instruction { max-width: none; }
}
@media (max-width: 760px) {
  .rx-task-tabs { flex-wrap: wrap; gap: 4px; padding: 4px; }
  .rx-task { flex-basis: calc(50% - 4px); min-height: 44px; padding: 9px 8px; font-size: 14px; }
  .rx-case-bar { display: block; margin: 16px 0; }
  .rx-case-label { display: block; margin-bottom: 7px; }
  .rx-case { width: 185px; gap: 10px; }
  .rx-case-picker { padding-bottom: 8px; }
  .rx-method-track { grid-auto-columns: max(235px, calc(100% - 40px)); gap: 12px; }
  .rx-method-heading { height: 72px; min-height: 72px; }
  .rx-actions { gap: 6px; flex-shrink: 1; }
  .rx-action { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .rx-explorer * { scroll-behavior: auto; } }

.rx-sticker-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
