.pr-window { --ui: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, Ubuntu, 'Droid Sans', sans-serif; --mono: Menlo, Monaco, Consolas, 'Droid Sans Mono', 'Courier New', monospace; --blue: #007acc; --green: #22863a; --red: #c72e29; --amber: #8a6500; --purple: #7957a5; --pr-tint: color-mix(in srgb, var(--blue) 12%, var(--paper)); font: 13px/1.4 var(--ui); letter-spacing: 0; }
.pr-window[data-theme='dark'] { --blue: #70b7ea; --green: #8cbc7b; --red: #f48771; --amber: #e2c47b; --purple: #c586c0; }
.pr-window .rv-drag, .pr-window .rv-step-label { font: 12px/1.4 var(--ui); }
.pr-window *, .pr-window *::before, .pr-window *::after { box-sizing: border-box; letter-spacing: 0; }
.switzerland-memo .pr-body { display: flex; flex-direction: column; min-width: 0; padding: 0 !important; overflow: auto; background: var(--paper); color: var(--ink); }
.pr-body :is(p, pre, ol, ul, form) { margin: 0; }
.pr-body button, .pr-body input, .pr-body select { font: inherit; }
.pr-body button { color: inherit; cursor: pointer; }
.pr-body :is(button, input, pre, a):focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.pr-body :is(button, a) { touch-action: manipulation; }
.pr-body img { display: block; width: 16px; height: 16px; margin: 0; }
.pr-window[data-theme='dark'] .pr-body img { filter: invert(.85); }
.pr-context { display: flex; flex: 0 0 auto; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: 11px/1.4 var(--ui); background: var(--chrome); }
.pr-context a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pr-workbench { display: grid; grid-template-columns: 145px minmax(0, 1fr); flex: 1 0 390px; min-width: 0; }
.pr-choices { display: flex; flex-direction: column; min-width: 0; padding: 8px 0; border-right: 1px solid var(--line); background: var(--chrome); }
.pr-choice { display: block; min-height: 64px; padding: 12px 15px; border: 0; border-left: 2px solid transparent; border-radius: 0; background: transparent; text-align: left; }
.pr-choice > span { display: flex; flex-direction: column; gap: 4px; }
.pr-choice strong { font: 500 13px/1.4 var(--ui); }
.pr-choice small { color: var(--muted); font: 11px/1.4 var(--ui); }
.pr-choice:hover { background: var(--pr-tint); }
.pr-choice[aria-pressed='true'] { border-left-color: var(--blue); background: var(--pr-tint); }
.pr-editor { display: grid; grid-template-rows: auto minmax(240px, 1fr) auto; min-width: 0; min-height: 0; }
.pr-file-tabs { display: none; }
.pr-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); min-width: 0; min-height: 0; }
.pr-editor > .pr-files { grid-row: 2; }
.pr-editor > .pr-output { grid-row: 3; }
.pr-editor > .pr-checks { grid-row: 4; }
.pr-file-tabs .rv-tabs, .pr-toolbar .rv-tabs { flex: 1; flex-wrap: nowrap; min-width: 0; margin: 0; gap: 0; }
.pr-file { display: grid; grid-template-rows: 36px minmax(0, 1fr); min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: var(--paper); }
.pr-file:last-child { border-right: 0; }
.pr-file-heading { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 11px; border-top: 2px solid transparent; border-bottom: 1px solid var(--line); background: var(--chrome); color: var(--muted); font: 12px/1.4 var(--ui); }
.pr-file-heading span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-file-heading img { flex: 0 0 14px; width: 14px; height: 14px; opacity: .6; }
.pr-file.is-active > .pr-file-heading { border-top-color: var(--blue); background: var(--paper); color: var(--ink); }
.pr-code { min-width: 0; min-height: 0; max-height: 330px; margin: 0; padding: 13px 0; overflow: auto; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); scrollbar-width: thin; }
.pr-body :is(pre, code) { font: 12px/18px var(--mono); font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.pr-body code { padding: 0; border: 0; background: transparent; color: inherit; }
.pr-code > code { display: block; }
.pr-code-line { display: grid; grid-template-columns: 29px minmax(0, 1fr); min-height: 18px; padding-right: 12px; }
.pr-code-line.is-active { background: var(--pr-tint); box-shadow: inset 2px 0 var(--blue); }
.pr-line-number { padding-right: 9px; color: var(--muted); text-align: right; user-select: none; opacity: .7; }
.pr-line-text { min-width: 0; }
.pr-section-heading { display: flex; align-items: center; min-height: 34px; padding: 8px 14px; color: var(--muted); font: 12px/1.4 var(--ui); }
.pr-output { min-width: 0; min-height: 115px; border-top: 1px solid var(--line); background: var(--paper); }
.pr-output.is-active { box-shadow: inset 2px 0 var(--blue); }
.pr-output-value { min-width: 0; min-height: 56px; max-height: 170px; padding: 8px 15px 15px; overflow: auto; color: var(--ink); }
.pr-output.is-active .pr-output-value { animation: pr-arrive 320ms ease-out; }
.pr-note { padding: 12px 15px; border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.5 var(--ui); }
.pr-role-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex: 1 0 410px; min-width: 0; }
.pr-role-layout > .pr-file .pr-code { max-height: 430px; }
.pr-conversation { display: flex; flex-direction: column; min-width: 0; }
.pr-messages { display: flex; flex-direction: column; flex: 1; gap: 0; padding: 0; list-style: none; }
.pr-message { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 10px; padding: 12px 14px; border-left: 2px solid transparent; border-bottom: 1px solid var(--line); transition: background 350ms ease; }
.pr-message p { font: 13px/1.5 var(--ui); }
.pr-message small { grid-column: 2; color: var(--muted); font: 11px/1.4 var(--ui); }
.pr-message.is-active { border-left-color: var(--blue); background: var(--pr-tint); }
.pr-message.is-read { color: var(--muted); }
.pr-role { color: var(--purple); font: 12px/1.5 var(--ui); }
.pr-role-user { color: var(--blue); }
.pr-role-assistant { color: var(--green); }
.pr-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; min-height: 42px; padding: 12px 15px; list-style: none; border-top: 1px solid var(--line); font: 12px/1.5 var(--ui); }
.pr-checks li { display: flex; align-items: center; gap: 7px; }
.pr-checks li.is-pass { color: var(--green); }
.pr-checks li.is-fail { color: var(--red); }
.pr-checks li.is-warning { color: var(--amber); }
.pr-checks li.is-pending { color: var(--muted); }
.pr-checks img { width: 13px; height: 13px; }
.pr-toolbar { display: flex; flex-wrap: wrap; gap: 0; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--chrome); }
.pr-toolbar button, .pr-file-tabs button { min-height: 40px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font: 12px/1.4 var(--ui); }
.pr-toolbar button[aria-selected='true'], .pr-toolbar button[aria-pressed='true'], .pr-file-tabs button[aria-selected='true'], .pr-file-tabs button[aria-pressed='true'] { border-bottom-color: var(--blue); background: var(--paper); }
.pr-validation { display: flex; flex: 1 0 370px; flex-direction: column; }
.pr-validation > .pr-files { flex: 1; min-height: 200px; }
.pr-validation-checks { display: grid; grid-template-columns: 1fr 1fr; }
.pr-check-mark { min-width: 32px; font: 10px/1.4 var(--ui); }
.pr-reason-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); flex: 1 0 350px; min-width: 0; }
.pr-reason-input { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; border-right: 1px solid var(--line); }
.pr-reason-input .pr-files { grid-template-columns: minmax(0, 1fr); }
.pr-reason-input .pr-file { display: none; }
.pr-reason-input .pr-file.is-selected { display: grid; }
.pr-reason-input .pr-file-tabs { display: flex; background: var(--chrome); }
.pr-reason-output { display: flex; flex-direction: column; min-width: 0; }
.pr-working { display: flex; flex: 1; flex-direction: column; gap: 0; padding: 10px 15px; list-style: none; }
.pr-working li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 70px; padding: 10px 0; border-bottom: 1px solid var(--line); opacity: .2; transform: translateY(5px); transition: opacity 400ms ease, transform 400ms cubic-bezier(.2,.7,.3,1); }
.pr-working li.is-revealed { opacity: 1; transform: none; }
.pr-working li.is-active { color: var(--blue); }
.pr-working-index { color: var(--muted); font: 11px/1.4 var(--ui); }
.pr-reason-least .pr-working li { border-left: 1px solid var(--line); padding-left: 10px; }
.pr-body > .pr-file { flex: 0 0 auto; border-right: 0; }
.pr-body > .pr-file .pr-code { max-height: 126px; }
.pr-consensus-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(190px, 1fr); flex: 1 0 290px; }
.pr-sample-region { min-width: 0; border-right: 1px solid var(--line); }
.pr-samples { padding: 0; list-style: none; }
.pr-samples li { display: grid; grid-template-columns: 53px minmax(0, 1fr) 26px; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-bottom: 1px solid var(--line); transition: background 300ms ease; }
.pr-sample-id { color: var(--muted); font: 11px/1.4 var(--ui); }
.pr-sample-answer { color: var(--blue); font: 600 14px/1.4 var(--mono); transition: opacity 300ms ease, transform 450ms cubic-bezier(.2,.7,.3,1); }
.pr-samples[data-step='0'] .pr-sample-work, .pr-samples[data-step='0'] .pr-sample-answer, .pr-samples[data-step='1'] .pr-sample-answer { opacity: .08; transform: translateX(-8px); }
.pr-samples[data-step='1'] .pr-sample-work { animation: pr-arrive 400ms ease both; animation-delay: var(--pr-delay); }
.pr-samples li.is-counted { background: var(--pr-tint); }
.pr-vote-region { display: flex; flex-direction: column; min-width: 0; }
.pr-vote-tally { display: grid; gap: 20px; flex: 1; align-content: center; padding: 16px; }
.pr-vote { display: grid; grid-template-columns: 22px minmax(0, 1fr) 35px; align-items: center; gap: 9px; font: 12px/1.4 var(--ui); }
.pr-vote-track, .pr-probability-track { height: 8px; overflow: hidden; background: var(--line); }
.pr-vote-track > span, .pr-probability-track > span { display: block; height: 100%; background: var(--blue); transition: width 600ms cubic-bezier(.2,.7,.3,1); }
.pr-tree-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); flex: 1 0 390px; }
.pr-tree { min-width: 0; padding: 20px 16px; border-right: 1px solid var(--line); }
.pr-tree-root { display: flex; position: relative; flex-direction: column; align-items: center; gap: 10px; padding: 8px; }
.pr-tree-root small { color: var(--muted); font: 12px/1.4 var(--ui); }
.pr-tree-root code { font-size: 20px; line-height: 26px; }
.pr-tree-branches { display: grid; position: relative; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pr-tree-branches::before { content: ''; position: absolute; top: -20px; left: 25%; right: 25%; height: 20px; border: 1px solid var(--line); border-bottom: 0; }
.pr-tree-root::after { content: ''; position: absolute; bottom: -11px; left: 50%; width: 1px; height: 12px; background: var(--line); }
.pr-tree-node { min-width: 0; padding: 12px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); text-align: center; }
.pr-tree-node > span { display: flex; flex-direction: column; gap: 8px; }
.pr-tree-node small { color: var(--muted); font: 11px/1.4 var(--ui); }
.pr-tree-node.is-active { border-color: var(--blue); background: var(--pr-tint); }
.pr-tree-node.is-pruned { opacity: .4; text-decoration: line-through; }
.pr-tree-verdict { min-height: 67px; padding: 16px 0; color: var(--muted); font: 12px/1.5 var(--ui); }
.pr-tree-continuation { display: grid; gap: 16px; width: 50%; margin-left: auto; padding-left: 7px; opacity: .12; transform: translateY(-6px); transition: opacity 400ms ease, transform 400ms ease; }
.pr-tree-continuation code { padding: 10px; border-left: 2px solid var(--green); background: color-mix(in srgb, var(--green) 8%, var(--paper)); }
.pr-tree[data-step='3'] .pr-tree-continuation, .pr-tree[data-step='4'] .pr-tree-continuation { opacity: 1; transform: none; }
.pr-tree[data-step='3'] .pr-tree-continuation code:last-child { opacity: .15; }
.pr-tree-code { display: flex; flex-direction: column; min-width: 0; }
.pr-tree-code > .pr-file { flex: 1; }
.pr-sampling-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(190px, 1fr); flex: 1 0 390px; }
.pr-token-region { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.pr-token-prompt { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; }
.pr-token-prompt small { color: var(--muted); font: 12px/1.4 var(--ui); }
.pr-token-prompt code { font-size: 16px; line-height: 24px; }
.pr-probabilities { display: grid; flex: 1; align-content: center; gap: 22px; padding: 10px 18px 25px; }
.pr-probability { display: grid; grid-template-columns: 44px minmax(0, 1fr) 46px; align-items: center; gap: 12px; font: 12px/1.4 var(--ui); }
.pr-probability.is-excluded { opacity: .3; }
.pr-sampling-controls { min-width: 0; }
.pr-parameters { display: grid; gap: 25px; padding: 20px 17px; }
.pr-range-label { display: grid; gap: 12px; color: var(--ink); font: 13px/1.4 var(--ui); }
.pr-range-label > span { display: flex; justify-content: space-between; gap: 10px; }
.pr-range-label output { color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-range-label input { width: 100%; min-width: 0; min-height: 24px; accent-color: var(--blue); }
.pr-command { min-height: 36px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--chrome); }
.pr-command > span { display: flex; justify-content: center; align-items: center; gap: 8px; }
.pr-react-flow { --pr-position: 0%; display: flex; position: relative; flex: 0 0 145px; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 9%; }
.pr-signal-track { position: absolute; top: 42px; left: 15%; right: 15%; height: 2px; background: var(--line); }
.pr-signal { display: block; position: absolute; top: -3px; left: var(--pr-position); width: 14px; height: 8px; border-radius: 2px; background: var(--blue); transform: translateX(-50%); transition: left 900ms cubic-bezier(.36,0,.2,1); }
.pr-react-node { display: flex; position: relative; flex: 0 1 110px; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding-top: 8px; background: var(--paper); color: var(--muted); text-align: center; }
.pr-react-node img { width: 25px; height: 25px; padding: 3px; opacity: .55; }
.pr-react-node strong { font: 500 14px/1.4 var(--ui); }
.pr-react-node small { font: 11px/1.4 var(--ui); }
.pr-react-node.is-active { color: var(--blue); }
.pr-react-node.is-active img { opacity: 1; }
.pr-react-status { min-height: 44px; padding: 3px 18px 14px; color: var(--muted); font: 13px/1.5 var(--ui); text-align: center; }
.pr-react-payload { display: flex; flex: 1 0 240px; flex-direction: column; min-width: 0; border-top: 1px solid var(--line); }
.pr-react-payload .pr-file { flex: 1; }
.pr-react-payload .pr-code { max-height: 265px; }
.pr-terminal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; flex: 1 0 435px; min-width: 0; }
.pr-terminal-screen { min-width: 0; min-height: 0; max-height: 480px; padding: 18px 20px; overflow: auto; background: #1e1e1e; color: #d4d4d4; scrollbar-width: thin; }
.pr-terminal-line, .pr-terminal-gap { display: block; min-height: 18px; }
.pr-terminal-gap { min-height: 8px; height: 8px; }
.pr-terminal-line.is-current { animation: pr-arrive 320ms ease-out; }
.pr-terminal-prompt { color: #d4d4d4; }
.pr-terminal-brand { color: #dcdcaa; font-weight: 600; }
.pr-terminal-muted { color: #969696; }
.pr-terminal-success, .pr-terminal-added { color: #6a9955; }
.pr-terminal-tool { color: #9cdcfe; }
.pr-terminal-removed { color: #f48771; }
.pr-terminal-stages { border-left: 1px solid var(--line); border-right: 0; padding: 0; }
.pr-terminal-stages .pr-choice { min-height: 60px; }
@keyframes pr-arrive { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@container specimen (max-width: 680px) {
    .pr-context { padding: 8px 11px; }
    .pr-workbench { grid-template-columns: minmax(0, 1fr); }
    .pr-choices { flex-direction: row; padding: 0; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .pr-choice { flex: 1 0 auto; min-height: 58px; padding: 9px 12px; border-left: 0; border-bottom: 2px solid transparent; }
    .pr-choice[aria-pressed='true'] { border-bottom-color: var(--blue); }
    .pr-choice strong { font-size: 12px; }
    .pr-choice small { font-size: 10px; }
    .pr-editor { grid-template-rows: 44px minmax(250px, 1fr) auto; }
    .pr-file-tabs { display: flex; min-width: 0; overflow: auto; background: var(--chrome); }
    .pr-file-tabs button { flex: 1 0 auto; min-height: 44px; }
    .pr-editor .pr-files { grid-template-columns: minmax(0, 1fr); }
    .pr-editor .pr-file { display: none; }
    .pr-editor .pr-file.is-selected { display: grid; }
    .pr-code { max-height: 320px; }
    .pr-body :is(pre, code) { font-size: 13px; line-height: 19.5px; }
    .pr-code-line { min-height: 19.5px; }
    .pr-role-layout, .pr-reason-layout, .pr-consensus-layout, .pr-tree-layout, .pr-sampling-layout { grid-template-columns: minmax(0, 1fr); }
    .pr-role-layout > .pr-file { max-height: 220px; }
    .pr-role-layout > .pr-file .pr-code { max-height: 180px; }
    .pr-message { grid-template-columns: 65px minmax(0, 1fr); padding: 11px; }
    .pr-validation .pr-files { grid-template-columns: minmax(0, 1fr); }
    .pr-validation-checks { grid-template-columns: minmax(0, 1fr); }
    .pr-toolbar { padding: 0; }
    .pr-toolbar button { flex: 1; min-height: 44px; padding: 8px; font-size: 11px; }
    .pr-reason-input { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
    .pr-working li { min-height: 58px; }
    .pr-sample-region { border-right: 0; }
    .pr-samples li { grid-template-columns: 43px minmax(0, 1fr) 25px; gap: 8px; padding: 10px 11px; }
    .pr-vote-tally { min-height: 110px; }
    .pr-tree { border-right: 0; }
    .pr-tree-code { border-top: 1px solid var(--line); }
    .pr-tree-code .pr-code { max-height: 175px; }
    .pr-token-region { border-right: 0; }
    .pr-probabilities { min-height: 210px; }
    .pr-parameters { grid-template-columns: 1fr 1fr; gap: 15px; }
    .pr-command { grid-column: 1 / -1; min-height: 44px; }
    .pr-range-label { font-size: 12px; }
    .pr-range-label input { min-height: 44px; }
    .pr-react-flow { gap: 4px; padding-inline: 5%; }
    .pr-react-node { flex-basis: 85px; }
    .pr-react-node small { font-size: 10px; }
    .pr-react-node strong { font-size: 13px; }
    .pr-signal-track { left: 17%; right: 17%; }
    .pr-terminal-layout { grid-template-columns: minmax(0, 1fr); }
    .pr-terminal-screen { height: 350px; padding: 15px 12px; }
    .pr-terminal-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; }
    .pr-terminal-stages .pr-choice { min-width: 0; min-height: 48px; padding: 7px 5px; }
    .pr-terminal-stages small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pr-window *, .pr-window *::before, .pr-window *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
