@charset "UTF-8";
:root {
  --paper:#f7f8f4;
  --white:#fff;
  --ink:#202c26;
  --sub:#737b72;
  --green:#28533f;
  --mint:#eaf2e8;
  --line:#e0e5db;
  --serif:Georgia,'Times New Roman',serif;
  --sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:14px;
  -webkit-font-smoothing:antialiased;
}
button,input,select {
  font:inherit;
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:default;
  opacity:.45;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #8ead82;
  outline-offset:3px;
}
button {
  transition:background .15s,color .15s;
}
button:hover:not(:disabled) {
  filter:brightness(.96);
}
[hidden] {
  display:none!important;
}
.header {
  height:95px;
  padding:0 max(36px,calc((100vw - 1464px)/2));
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fbfcf8;
  gap:20px;
}
.brand {
  display:flex;
  align-items:center;
  gap:13px;
  color:var(--ink);
  text-decoration:none;
  font-size:21px;
  letter-spacing:-.5px;
}
.brand strong {
  font-weight:500;
}
.brand-mark {
  height:43px;
  width:43px;
  display:grid;
  place-items:center;
  background:var(--green);
  color:#f2f5e9;
  border-radius:11px;
  font:38px var(--serif);
  padding-bottom:4px;
}
.brand-sub {
  display:block;
  font-size:8px;
  letter-spacing:2.3px;
  margin-top:5px;
  color:var(--sub);
  font-weight:600;
}
.header-right {
  display:flex;
  align-items:center;
  gap:31px;
}
.connection {
  font-size:11px;
  color:var(--sub);
  display:flex;
  align-items:center;
  gap:8px;
}
.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#93988f;
}
.connected .status-dot {
  background:#6c9c67;
  box-shadow:0 0 0 4px #6c9c6714;
}
.text-button {
  background:none;
  border:0;
  color:var(--green);
  font-size:12px;
  padding:7px 0;
}
.header .text-button {
  color:var(--ink);
  font-size:12px;
}
.header .text-button span {
  margin-left:12px;
}
main {
  max-width:1536px;
  padding:38px 36px 0;
  margin:0 auto;
}
.intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:29px;
  gap:20px;
}
.eyebrow {
  font-size:9px;
  font-weight:650;
  letter-spacing:2.1px;
  color:#688062;
  margin:0 0 12px;
}
h1 {
  font:normal clamp(28px,3vw,41px)/1.15 var(--serif);
  letter-spacing:-1.2px;
  margin:0;
}
h2 {
  font-size:14px;
  font-weight:550;
  margin:0;
}
.intro-note {
  color:var(--sub);
  line-height:1.7;
  font-size:12px;
  margin:0 2px 0 0;
}
.composer {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 4px 16px #2a372602;
  padding:22px 24px 17px;
  margin-bottom:24px;
}
form {
  display:flex;
  align-items:stretch;
  gap:24px;
}
form label {
  font-size:8px;
  letter-spacing:1.65px;
  font-weight:650;
  color:var(--sub);
  display:block;
  margin-bottom:9px;
}
.grammar-field {
  width:215px;
  flex-shrink:0;
  padding-right:22px;
  border-right:1px solid var(--line);
}
select {
  border:none;
  background:transparent;
  color:var(--ink);
  width:100%;
  padding:3px 22px 3px 0;
  font-size:12px;
}
input[type=text],#sentence {
  width:100%;
  border:0;
  background:transparent;
  color:var(--ink);
  font:23px/1.25 var(--serif);
  padding:0;
}
input::placeholder {
  color:#9aa196;
}
.sentence-field {
  flex:1;
  min-width:0;
}
.primary {
  border:0;
  border-radius:7px;
  background:var(--green);
  color:white;
  padding:0 20px;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:25px;
  font-size:12px;
  font-weight:550;
}
.primary span:last-child {
  font-size:21px;
  font-weight:400;
}
.examples {
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:20px;
  border-top:1px solid #eef0e9;
  padding-top:13px;
  font-size:10px;
  color:var(--sub);
}
#examples {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
#examples button {
  font-size:10px;
  border:1px solid #e9ece4;
  background:#f8faf6;
  color:#64705f;
  padding:5px 9px;
  border-radius:4px;
}
.message {
  border:1px solid #ddceb2;
  border-radius:7px;
  background:#fbf6ea;
  color:#7f632b;
  padding:13px 17px;
  margin-bottom:18px;
  font-size:12px;
  line-height:1.6;
}
.message.error {
  border-color:#e0c0b5;
  background:#fbf0eb;
  color:#9b4936;
}
.workbench {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}
.bench-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:17px 23px;
  border-bottom:1px solid var(--line);
  gap:10px;
}
.section-title {
  display:flex;
  align-items:center;
  gap:11px;
}
.section-number {
  font:10px var(--mono);
  color:#9ba293;
  letter-spacing:-.5px;
}
.badge {
  font-size:9px;
  font-weight:500;
  border-radius:4px;
  background:var(--mint);
  color:#5e7b50;
  padding:4px 7px;
  white-space:nowrap;
}
.badge.muted {
  background:#f2f3ed;
  color:#7c8572;
}
.badge.warn {
  background:#f8eedb;
  color:#967039;
}
.bench-actions {
  display:flex;
  align-items:center;
  gap:22px;
}
.bench-actions>span {
  font:9px var(--mono);
  color:#9aa290;
}
.bench-actions button {
  font-size:10px;
}
.explorer {
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
}
.tree-column {
  min-width:0;
}
.tree-toolbar {
  display:flex;
  align-items:center;
  gap:16px;
  height:58px;
  padding:0 20px;
  border-bottom:1px solid #f0f2eb;
}
.segmented {
  display:flex;
  background:#f4f5ef;
  padding:3px;
  border-radius:6px;
  flex-shrink:0;
}
.segmented button {
  font-size:10px;
  background:none;
  border:none;
  border-radius:4px;
  color:#92998b;
  padding:6px 11px;
}
.segmented .active {
  color:var(--green);
  background:#fff;
  box-shadow:0 1px 4px #25351d13;
}
#frame-label {
  font-size:10px;
  color:var(--sub);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex:1;
}
.zoom-controls {
  display:flex;
  align-items:center;
  gap:3px;
}
.zoom-controls button {
  border:0;
  background:transparent;
  color:#8a9581;
  padding:6px;
  font-size:13px;
}
.zoom-controls #fit {
  font-size:10px;
}
.tree-stage {
  height:434px;
  position:relative;
  overflow:hidden;
  background-color:#fcfdf9;
  background-image:radial-gradient(#d4dcca 1px,transparent 1px);
  background-size:18px 18px;
}
#tree {
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
  cursor:grab;
}
#tree:active {
  cursor:grabbing;
}
.tree-edge {
  fill:none;
  stroke:#b0beaa;
  stroke-width:1.4;
}
.tree-edge.link {
  stroke-dasharray:6 5;
}
.tree-edge.unfixed {
  stroke-dasharray:2 5;
}
.edge-label {
  font:10px var(--mono);
  fill:#8a987e;
}
.tree-node {
  cursor:pointer;
}
.node-box {
  fill:#fff;
  stroke:#d5dfcd;
  stroke-width:1.2;
  filter:drop-shadow(0 3px 3px #253b2310);
}
.tree-node.changed .node-box {
  fill:#f0f6eb;
  stroke:#b7cdab;
}
.tree-node.selected .node-box {
  stroke:#426f48;
  stroke-width:2;
}
.tree-node.pointed .pointer-mark {
  fill:var(--green);
}
.node-address {
  font:9px var(--mono);
  fill:#8c9a82;
  letter-spacing:.5px;
}
.node-type {
  font:17px var(--serif);
  fill:#344832;
  white-space:pre;
}
.node-formula {
  font:9px var(--mono);
  fill:#78836f;
  white-space:pre;
}
.node-formula.expanded { font-size:12px; fill:#344832; }
.formula-toggle { cursor:pointer; }
.formula-toggle rect { fill:#f0f5ed; stroke:#c8d7c1; stroke-width:1; }
.formula-toggle text { font:11px var(--sans); fill:#28533f; pointer-events:none; }
.formula-toggle:hover rect { fill:#e3eddf; }
.formula-toggle:focus-visible { outline:none; }
.formula-toggle:focus-visible rect { stroke:#28533f; stroke-width:2; }
.node-meta {
  font:8px var(--sans);
  fill:#799068;
}
.pointer-mark {
  fill:transparent;
}
.pointer-label {
  font:8px var(--sans);
  fill:var(--green);
  letter-spacing:1px;
}
.tree-legend {
  position:absolute;
  bottom:17px;
  left:22px;
  display:flex;
  gap:18px;
  font-size:8px;
  color:#8b9582;
  pointer-events:none;
  background:#fcfdf9de;
  padding:4px 0;
}
.tree-legend span {
  display:flex;
  align-items:center;
  gap:6px;
}
.tree-legend i {
  display:block;
  width:6px;
  height:6px;
  border-radius:50%;
}
.legend-pointer {
  background:#477243;
}
.legend-new {
  background:#d4e7c8;
  border:1px solid #a8c699;
}
.tree-legend i.legend-unfixed {
  height:0;
  width:12px;
  border-top:2px dotted #8fa27e;
  border-radius:0;
}
.empty-state,.loading-state {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  color:var(--sub);
  gap:10px;
}
.empty-symbol {
  padding:23px 45px;
  font:27px var(--serif);
  color:#8e9e80;
  border:1px dashed #cad7bd;
  border-radius:8px;
  background:#ffffff90;
}
.empty-state p,.loading-state p {
  font:17px var(--serif);
  margin:10px 0 0;
}
.empty-state>span:last-child,.loading-state>span:last-child {
  font-size:11px;
}
.loading-state {
  background:#fcfdf9ed;
  z-index:4;
}
.spinner {
  height:25px;
  width:25px;
  border:2px solid #d6e0cd;
  border-top-color:var(--green);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}
.playback {
  padding:15px 21px 14px;
  border-top:1px solid var(--line);
  min-height:101px;
}
.transport {
  display:flex;
  align-items:center;
  gap:6px;
}
.transport button {
  border:0;
  background:transparent;
  color:#728366;
  width:25px;
  height:26px;
  font-size:20px;
  border-radius:5px;
}
.transport #play {
  background:var(--green);
  color:#fff;
  width:28px;
  margin:0 4px;
  font-size:10px;
}
#step-count {
  font:9px var(--mono);
  color:#8a967f;
  margin:0 9px;
  min-width:35px;
}
#timeline {
  flex:1;
  min-width:30px;
  height:3px;
  accent-color:#547c44;
  cursor:pointer;
}
.word-tokens {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:12px;
  padding-left:2px;
}
.word-tokens button {
  font-size:11px;
  color:#9aa28f;
  border:1px solid transparent;
  background:transparent;
  padding:5px 9px;
  border-radius:4px;
}
.word-tokens button.visited {
  color:#697c5c;
  background:#f6f8f1;
}
.word-tokens button.current {
  background:#e5eedc;
  color:#416333;
  border-color:#d4e2c7;
}
.word-tokens button.failed {
  color:#a3624c;
  background:#f8eae3;
  text-decoration:underline wavy;
}
.word-tokens .axiom-token {
  font:11px var(--serif);
}
.inspector {
  background:#fdfefb;
  border-left:1px solid var(--line);
  min-width:0;
  overflow:hidden;
}
.inspector-tabs {
  display:flex;
  border-bottom:1px solid var(--line);
  height:58px;
  padding:0 20px;
  gap:23px;
}
.inspector-tabs button {
  font-size:10px;
  border:0;
  border-bottom:2px solid transparent;
  padding:0;
  background:transparent;
  color:#959d8c;
  white-space:nowrap;
}
.inspector-tabs button[aria-selected=true] {
  border-bottom-color:#648052;
  color:#354d2e;
}
.inspector-empty {
  color:#8d9782;
  font-size:12px;
  line-height:1.8;
  padding:27px 23px;
}
#node-panel {
  padding:22px 23px;
  max-height:535px;
  overflow:auto;
}
#node-panel .inspector-empty {
  padding:0;
}
.node-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}
.node-heading h3 {
  font:26px var(--serif);
  margin:0;
}
.node-heading h3 span {
  font:11px var(--mono);
  color:#9ba28e;
  display:block;
  margin-top:5px;
}
.node-kind {
  font-size:8px;
  color:#789262;
  background:#f0f5e9;
  padding:5px 8px;
  border-radius:4px;
}
.inspector-field {
  margin-top:21px;
}
.field-heading {
  font-size:8px;
  letter-spacing:1.5px;
  color:#8a977e;
  margin:0 0 9px;
  font-weight:600;
}
.inspector-value {
  font:12px/1.8 var(--mono);
  overflow-wrap:anywhere;
  margin:0;
  white-space:pre-wrap;
  color:#526047;
}
.inspector-value.type-value {
  font:21px var(--serif);
  color:#34482c;
}
.muted-copy {
  color:#929c86;
  font-size:11px;
  line-height:1.7;
}
.decoration {
  display:block;
  margin:4px 0;
  padding:6px 8px;
  border:1px solid #e7ecdf;
  background:#f8faf4;
  border-radius:4px;
  font:10px/1.6 var(--mono);
  overflow-wrap:anywhere;
}
.decoration.requirement {
  background:#fbf7e9;
  border-color:#eee6c8;
  color:#998344;
}
.selection-hint {
  font-size:9px;
  color:#a1aa95;
  border-top:1px solid #e9edde;
  margin-top:23px;
  padding-top:15px;
  line-height:1.7;
}
#trace-panel {
  padding:15px 15px 15px 20px;
  max-height:535px;
  overflow:auto;
}
.trace-note {
  font-size:10px;
  line-height:1.6;
  color:#919c85;
  margin:0 0 17px;
}
#action-list {
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:actions;
}
#action-list li {
  margin:0 0 5px;
}
#action-list button {
  width:100%;
  text-align:left;
  border:1px solid transparent;
  border-radius:5px;
  background:none;
  color:#75826a;
  padding:8px 9px;
  font:10px/1.5 var(--mono);
  overflow-wrap:anywhere;
}
#action-list button.current {
  background:var(--mint);
  color:var(--green);
  border-color:#dbe7d2;
}
.action-word {
  display:block;
  font:8px var(--sans);
  color:#9ba68c;
  margin-bottom:3px;
}
.semantics-panel {
  border-top:1px solid var(--line);
  padding:19px 23px 23px;
}
.semantics-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.semantics-heading .text-button {
  font-size:10px;
}
.semantics-body {
  display:grid;
  grid-template-columns:minmax(0,1fr) 244px;
  gap:32px;
  margin-top:18px;
}
#semantics {
  font:11px/1.8 var(--mono);
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#526446;
  padding:16px 19px;
  background:#f7f9f3;
  border:1px solid #eaf0e1;
  border-radius:6px;
  min-height:78px;
  max-height:250px;
  overflow:auto;
}
.semantics-note {
  padding:9px 0 0 19px;
  border-left:1px solid #e6ebdc;
}
.semantics-note>span {
  font-size:8px;
  letter-spacing:1.4px;
  color:#92a17e;
}
.semantics-note p {
  font-size:11px;
  line-height:1.8;
  color:#8a967a;
  margin:9px 0;
}
.semantics-note strong {
  color:#667958;
  font-weight:500;
}
footer {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  color:#98a18e;
  font-size:9px;
  padding:21px 1px 26px;
}
.footer-dedication {
  flex-basis:100%;
  margin:0 0 4px;
  color:var(--sub);
  font:italic 16px/1.5 var(--serif);
  text-align:center;
}
footer span span {
  padding:0 10px;
  color:#bac3b0;
}
dialog {
  border:1px solid #d8dfcf;
  border-radius:14px;
  padding:32px 37px;
  max-width:800px;
  max-height:85vh;
  overflow-y:auto;
  width:calc(100% - 32px);
  color:var(--ink);
  box-shadow:0 15px 90px #18302130;
  background:#fcfdf9;
}
dialog::backdrop {
  background:#18271555;
  backdrop-filter:blur(3px);
}
dialog h2 {
  font:30px var(--serif);
}
dialog p,dialog dd {
  font-size:14px;
  line-height:1.8;
  color:#52604d;
}
dialog dt {
  font:13px var(--mono);
  color:#476038;
  margin:18px 0 5px;
}
dialog dd {
  margin:0;
}
.dialog-close {
  position:absolute;
  right:17px;
  top:13px;
  background:none;
  border:0;
  font-size:23px;
  color:#7d8d70;
}
.scope-note {
  border-top:1px solid var(--line);
  padding-top:14px;
}
.keyboard-note {
  margin-top:25px;
}
kbd {
  font:10px var(--mono);
  padding:4px 5px;
  border:1px solid #d9e1d0;
  border-radius:3px;
  background:#f2f6ec;
}
.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(min-width:1600px) {
  main {
    padding-top:45px;
  }
  .tree-stage {
    height:480px;
  }
}
@media(max-width:1050px) {
  .explorer {
    grid-template-columns:minmax(0,1fr) 255px;
  }
  .inspector-tabs {
    gap:16px;
    padding:0 16px;
  }
  #node-panel {
    padding:20px 17px;
  }
  .grammar-field {
    width:180px;
  }
  form {
    gap:18px;
  }
  .primary {
    padding:0 14px;
    gap:13px;
  }
  .intro-note {
    font-size:11px;
  }
  .tree-legend {
    gap:12px;
  }
  .tree-toolbar {
    gap:10px;
    padding:0 15px;
  }
}
@media(max-width:780px) {
  .header {
    height:76px;
    padding:0 20px;
  }
  .header-right {
    gap:17px;
  }
  .connection {
    font-size:0;
    gap:0;
  }
  .status-dot {
    width:7px;
    height:7px;
  }
  .brand {
    font-size:18px;
  }
  .brand-mark {
    width:37px;
    height:37px;
    font-size:32px;
  }
  main {
    padding:25px 17px 0;
  }
  .intro {
    margin-bottom:24px;
  }
  .intro-note {
    display:none;
  }
  h1 {
    font-size:33px;
  }
  .composer {
    padding:18px;
  }
  form {
    flex-wrap:wrap;
    gap:17px;
  }
  .grammar-field {
    width:100%;
    border-right:0;
    padding:0 0 12px;
    border-bottom:1px solid #edf0e7;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .grammar-field label {
    margin:0;
  }
  .grammar-field select {
    width:200px;
  }
  .sentence-field {
    flex-basis:calc(100% - 170px);
  }
  #sentence {
    font-size:21px;
  }
  .primary {
    font-size:11px;
  }
  .examples {
    align-items:flex-start;
    gap:11px;
  }
  .examples>span {
    min-width:58px;
    line-height:1.7;
  }
  .explorer {
    grid-template-columns:1fr;
  }
  .inspector {
    border-left:0;
    border-top:1px solid var(--line);
  }
  .inspector-tabs {
    height:45px;
    padding:0 20px;
  }
  #node-panel {
    max-height:280px;
    padding:20px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 24px;
  }
  .node-heading {
    grid-column:1/-1;
    margin-bottom:0;
  }
  .inspector-field {
    margin-top:15px;
  }
  .selection-hint {
    display:none;
  }
  #trace-panel {
    max-height:260px;
  }
  .tree-stage {
    height:390px;
  }
  .semantics-body {
    grid-template-columns:1fr;
    gap:12px;
  }
  .semantics-note {
    border-left:0;
    padding:0;
  }
  .semantics-note p {
    margin:5px 0 0;
  }
  .semantics-panel {
    padding:18px;
  }
  .bench-header {
    padding:15px 18px;
  }
  .bench-actions {
    gap:10px;
  }
  #elapsed {
    display:none;
  }
  footer {
    font-size:8px;
  }
  footer>span:first-of-type {
    max-width:55%;
    line-height:1.7;
  }
  .tree-toolbar {
    gap:10px;
  }
  #frame-label {
    font-size:9px;
  }
  .section-title {
    gap:8px;
  }
  h2 {
    font-size:13px;
  }
  .badge {
    font-size:8px;
  }
  .bench-actions button {
    font-size:9px;
  }
}
@media(max-width:420px) {
  .header .text-button {
    font-size:10px;
  }
  .brand-sub {
    font-size:7px;
    letter-spacing:1.6px;
  }
  .sentence-field {
    flex-basis:100%;
  }
  .primary {
    width:100%;
    justify-content:space-between;
    min-height:41px;
  }
  .tree-stage {
    height:340px;
  }
  .tree-toolbar {
    padding:0 12px;
  }
  .tree-legend {
    left:14px;
    font-size:7px;
  }
  .zoom-controls button {
    padding:4px;
  }
  .section-number {
    display:none;
  }
  .word-tokens {
    gap:2px;
  }
  .word-tokens button {
    font-size:10px;
    padding:5px 7px;
  }
  .bench-header {
    padding:14px;
  }
  #node-panel {
    column-gap:15px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation-duration:.01ms!important;
    transition:none!important;
  }
}

/* Native semantic modes and progressive tree playback. */
.system-field { display:flex; flex-direction:column; padding:0 20px 0 0; border-right:1px solid var(--line); min-width:215px; }
.system-field label { font-size:10px; letter-spacing:.1em; font-weight:700; margin-bottom:8px; }
.system-field select { background:transparent; border:0; font:inherit; max-width:250px; }
.scope-control { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:18px; font-size:12px; color:#637568; }
.scope-control select, #speed { width:auto; flex-shrink:0; background:#f7f8f4; border:1px solid #dce3dc; border-radius:5px; padding:5px; color:#294536; }
#coverage { margin-left:auto; }
#normalized { font-family:Georgia,serif; font-size:16px; color:#243f32; overflow-wrap:anywhere; }
.tree-node.entering .node-box, .tree-node.entering text { animation:node-arrival .35s ease-out; }
.tree-node.changed .node-box { animation:node-change .6s ease-out; }
@keyframes node-arrival { from { opacity:0; } to { opacity:1; } }
@keyframes node-change { from { fill:#b9dfb7; } to { fill:#eaf3e5; } }
@media (max-width:1100px) { .system-field { min-width:185px; padding-right:12px; } .system-field select { max-width:190px; font-size:13px; } .grammar-field { min-width:130px; } }
@media (max-width:760px) { .system-field { width:100%; border:0; padding:0 0 12px; } .system-field select { max-width:100%; } #coverage { margin-left:0; } .scope-control { align-items:flex-start; } #speed { max-width:55px; } }
@media (prefers-reduced-motion:reduce) { .tree-node.entering .node-box, .tree-node.entering text, .tree-node.changed .node-box { animation:none; } }

.operation-detail { padding:10px 20px; background:#f0f5ed; border-bottom:1px solid var(--line); font-size:12px; }
.playback-explanation { padding:10px 20px; border-bottom:1px solid var(--line); font-size:12px; color:#52674f; }
.playback-explanation p { margin:4px 0 0; font-size:11px; line-height:1.5; }
.rule-kind { display:inline-block; padding:3px 7px; margin:2px 5px 3px 0; border-radius:4px; font:600 10px/1.4 var(--font-sans, sans-serif); background:#e8e9ed; color:#34405b; }
.rule-kind.computational { background:#dcebd4; color:#254d31; }
.rule-kind.lexical { background:#f2e4cf; color:#754a16; }
.operation-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; }
#operation-rule { color:#637568; font-size:10px; }
#operation-code { font-weight:600; overflow-wrap:anywhere; }
#pointer-transition { margin-left:auto; color:#275a43; }
#operation-change { margin:7px 0 0; overflow-wrap:anywhere; color:#52674f; }
#operation-program { padding:14px 16px; border-bottom:1px solid var(--line); background:#f8faf5; }
.program-heading { margin:0 0 10px; font-weight:600; font-size:12px; }
.program-keyword { font:600 10px monospace; margin:9px 0 4px; color:#587047; }
.program-check { font:10px/1.8 monospace; overflow-wrap:anywhere; }
.program-line { display:block; text-align:left; width:100%; padding:5px 8px; border:0; background:transparent; border-radius:4px; font:11px/1.5 monospace; overflow-wrap:anywhere; color:#52674f; }
.program-line.executing { color:#153b2a; background:#dcebd4; border-left:3px solid #467148; }
.action-rule { display:block; color:#7c8b73; font-size:9px; margin-bottom:3px; }
.pointer-travel { fill:none; stroke:#275a43; stroke-width:2; stroke-dasharray:5 4; pointer-events:none; animation:pointer-flow .6s linear; }
@keyframes pointer-flow { from { stroke-dashoffset:18; } to { stroke-dashoffset:0; } }
@media(max-width:760px) { .tree-toolbar { flex-wrap:wrap; height:auto; min-height:55px; padding:10px 12px; } #frame-label { order:3; flex-basis:100%; } .operation-detail { padding:10px 12px; } #pointer-transition { margin-left:0; } }
@media(prefers-reduced-motion:reduce) { .pointer-travel { animation:none; } }

/* Greek comparison and independent parse/coverage/evidence reports. */
.input-mode { margin-bottom:20px; width:max-content; }
#dialogue-editor[hidden], #dialogue-playback[hidden], #dialogue-history[hidden], .sentence-field[hidden], .examples[hidden] { display:none; }
.dialogue-intro { font-size:12px; line-height:1.7; color:#637568; margin:20px 0 14px; }
.dialogue-row { display:grid; grid-template-columns:80px minmax(150px,1fr) 145px 30px; align-items:center; gap:10px; margin-bottom:10px; }
.dialogue-row input, .dialogue-row select { font-family:inherit; width:100%; min-width:0; border:1px solid #dce3dc; border-radius:5px; background:#fbfcf9; color:#294536; padding:10px; font-size:14px; }
.dialogue-row .turn-text { font-size:17px; }
.remove-turn { background:transparent; color:#637568; border:0; font-size:22px; padding:5px; }
.dialogue-editor-tools { display:flex; align-items:center; gap:20px; }
#dialogue-limits { font-size:11px; color:#637568; }
.dialogue-examples { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.dialogue-examples button { font-size:12px; padding:8px 11px; background:#f7f8f4; color:#275a43; border:1px solid #dce3dc; border-radius:5px; }
.dialogue-coverage { font-size:12px; color:#637568; line-height:1.7; margin-top:16px; }
.dialogue-playback { border-top:1px solid #dce3dc; border-bottom:1px solid #dce3dc; padding:16px 24px; background:#fbfcf9; }
.dialogue-playback-heading { display:flex; gap:15px; align-items:center; flex-wrap:wrap; font-size:12px; margin-bottom:12px; }
.dialogue-playback-heading strong { color:#294536; }
.dialogue-playback-heading span { color:#637568; }
.transcript-turn { display:flex; align-items:center; flex-wrap:wrap; gap:4px; padding:7px; border-radius:6px; margin-top:4px; }
.transcript-turn.active-turn { background:#edf3ec; }
.speaker-tag { display:inline-block; min-width:26px; padding:4px 8px; border-radius:4px; font-size:12px; font-weight:600; margin-right:6px; overflow-wrap:anywhere; max-width:130px; }
.speaker-a { color:#275a43; background:#dfecdf; }
.speaker-b { color:#355b85; background:#e4edf6; }
.transcript-word { border:0; background:transparent; padding:4px 5px; color:#294536; font-family:Georgia,serif; font-size:17px; border-radius:3px; overflow-wrap:anywhere; }
.transcript-word.future { opacity:.45; }
.transcript-word.superseded { text-decoration:line-through; color:#9a6050; }
.transcript-word.current-word { box-shadow:inset 0 -2px #275a43; }
.boundary-tag { font-size:10px; letter-spacing:.5px; color:#637568; text-transform:uppercase; }
.dialogue-history { padding:22px 24px; border-top:1px solid #dce3dc; display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.dialogue-history h3 { font-size:14px; margin:0 0 12px; color:#294536; font-weight:500; }
.context-empty { font-size:12px; color:#637568; line-height:1.7; margin:0; }
.repair-record, .context-record { border:1px solid #dce3dc; background:#fbfcf9; padding:12px; border-radius:6px; margin:8px 0; }
.repair-record p, .context-record p { font-size:13px; color:#294536; margin:0 0 8px; }
.context-record code { display:block; font-size:12px; overflow-wrap:anywhere; margin-bottom:10px; }
.repair-record button { margin-right:14px; font-size:12px; }
@media(max-width:780px) {
  .dialogue-row { grid-template-columns:70px 1fr 30px; gap:8px; padding-bottom:12px; border-bottom:1px solid #e4e9e2; }
  .dialogue-row .turn-speaker { grid-column:1; grid-row:1; }
  .dialogue-row .turn-boundary { grid-column:2; grid-row:1; }
  .dialogue-row .remove-turn { grid-column:3; grid-row:1; }
  .dialogue-row .turn-text { grid-column:1/4; grid-row:2; }
  .dialogue-history { grid-template-columns:1fr; padding:18px; }
  .dialogue-playback { padding:14px; }
}
.lab-link { color:#275a43; font-size:12px; margin-left:auto; white-space:normal; }
.fragment-context { margin:12px 0 0; font-size:12px; color:#637568; line-height:1.6; }
.diagnostics { display:grid; grid-template-columns:1fr 1fr 1.3fr; gap:20px; padding:20px 24px; border:1px solid #dce3dc; border-radius:10px; margin:16px 0; background:#fbfcf9; }
.diagnostics[hidden] { display:none; }
.evidence-label { display:block; font-size:10px; font-weight:600; letter-spacing:1px; color:#637568; margin-bottom:9px; text-transform:uppercase; }
.diagnostics strong { display:block; font-size:13px; color:#294536; }
.diagnostics p, .diagnostics details { font-size:12px; line-height:1.6; color:#637568; margin:8px 0 0; }
summary { cursor:pointer; }
#vocabulary-report { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
#vocabulary-report span { border-radius:4px; padding:2px 6px; background:#eaf1e9; overflow-wrap:anywhere; }
#vocabulary-report .vocab-missing { background:#f9e8df; color:#924c2d; }
.greek-lab { margin-top:34px; padding:28px; border:1px solid #dce3dc; border-radius:12px; background:#fff; scroll-margin-top:20px; }
.lab-heading, .history-heading { display:flex; align-items:center; gap:16px; justify-content:space-between; flex-wrap:wrap; }
.lab-intro { color:#637568; font-size:13px; line-height:1.7; max-width:900px; margin:16px 0; }
.lab-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.lab-tabs button { background:#f7f8f4; border:1px solid #dce3dc; color:#48604e; border-radius:6px; padding:9px 13px; font-size:12px; }
.lab-tabs button[aria-pressed=true] { color:#fff; background:#275a43; border-color:#275a43; }
.dialect-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.dialect-card { display:flex; flex-direction:column; border:1px solid #dce3dc; border-radius:8px; padding:20px; min-width:0; background:#fbfcf9; }
.dialect-card h3, .history-heading h3 { margin:0; color:#294536; font-size:17px; font-weight:500; }
.clitic-gate { font-size:11px; line-height:1.6; display:block; color:#637568; margin-top:12px; min-height:36px; overflow-wrap:anywhere; }
.greek-sentence { font-family:Georgia,serif; font-size:25px; color:#294536; margin:22px 0 7px; }
.gloss { color:#637568; font-size:12px; margin:0 0 12px; }
.dialect-explanation { font-size:12px; line-height:1.7; color:#48604e; flex:1; }
.case-actions { display:flex; flex-direction:column; align-items:stretch; gap:8px; margin-top:14px; }
.case-actions button { font-size:12px; padding:10px; border:1px solid #cdd9cd; border-radius:5px; white-space:normal; }
.case-build { background:#275a43; color:#fff; }
.case-reverse { background:transparent; color:#48604e; }
.lab-details { font-size:12px; color:#637568; line-height:1.8; margin:22px 0 30px; }
.history-heading { padding-top:26px; border-top:1px solid #dce3dc; }
.history-detail { padding:22px; border-radius:8px; background:#f7f8f4; }
.history-detail h4 { margin:0 0 20px; font-size:19px; color:#294536; font-weight:500; }
.history-columns { display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.history-columns p { font-size:13px; line-height:1.8; color:#48604e; margin:0 0 18px; }
.history-trigger { display:block; font-size:12px; color:#275a43; line-height:1.8; overflow-wrap:anywhere; }
.corpus-counts { font-size:12px; color:#48604e; margin-top:20px; overflow-x:auto; }
.corpus-counts table { border-collapse:collapse; margin-top:16px; width:100%; text-align:left; }
.corpus-counts th, .corpus-counts td { padding:8px; border-bottom:1px solid #dce3dc; }
.corpus-counts caption { text-align:left; margin-bottom:8px; font-size:11px; }
.source-note { color:#637568; font-size:11px; line-height:1.8; margin:20px 0 0; }
@media(max-width:780px) {
  .diagnostics, .dialect-cards, .history-columns { grid-template-columns:1fr; }
  .greek-lab { padding:18px; }
  .diagnostics { padding:18px; gap:18px; }
  .lab-link { flex-basis:100%; margin-top:6px; }
  .history-detail { padding:16px; }
  .history-tabs { flex-direction:column; align-items:stretch; }
  .lab-heading .badge, .history-heading .badge { white-space:normal; }
}
/* Inspectable lexical expansion alongside the existing grammar controls. */
.lexical-settings { margin-top: 18px; border-top: 1px solid var(--line, #d9ded6); padding-top: 16px; font-size: 13px; }
.lexical-settings summary { cursor: pointer; }
.lexical-settings .badge { margin-left: 10px; }
.lexical-settings p { line-height: 1.65; max-width: 100ch; }
.lexical-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.lexical-controls select { max-width: 100%; padding: 8px; }
.lexical-controls span { color: var(--muted, #667068); font-size: 12px; }
.lexical-report { margin: 0 0 20px; padding: 18px 24px; background: #f5f7ef; border: 1px solid #dbe2d0; border-radius: 12px; font-size: 13px; }
.lexical-report-heading { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.lexical-entry { padding: 10px 0; border-top: 1px solid #dbe2d0; }
.lexical-entry summary { cursor: pointer; overflow-wrap: anywhere; }
.lexical-entry pre { overflow: auto; background: #fff; padding: 12px; border-radius: 6px; }
.method-overview { margin-top: 20px; padding: 16px 18px; border-radius: 8px; background: var(--mint); font-size: 13px; line-height: 1.65; }
.method-overview p { margin: 6px 0 10px; }
.assistance-heading, .assistance-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.assistance-heading > strong { font-size: 17px; }
.assistance-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.assistance-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.assistance-card.enabled { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.assistance-card:has(input:disabled) { cursor: default; }
.assistance-card input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 22px; margin: 2px 0 0; accent-color: var(--green); cursor: inherit; }
.assistance-card:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.assistance-card-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; width: 100%; }
.assistance-card-heading strong { font-size: 15px; }
.assistance-state { font-size: 11px; font-weight: 700; letter-spacing: .035em; padding: 2px 7px; border-radius: 4px; background: var(--paper); color: var(--sub); }
.enabled .assistance-state { color: var(--green); background: var(--mint); }
.assistance-model { color: var(--sub); font-size: 11px; overflow-wrap: anywhere; }
.advanced-settings { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.method-usage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.usage-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; margin-right: 4px; }
@media (max-width: 640px) { .assistance-switches { grid-template-columns: 1fr; } .assistance-card { padding: 13px; } }
.method-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.method-actions .text-button { font-size: 12px; text-align: left; }
.method-result { margin-bottom: 18px; padding: 16px 22px; border-left: 3px solid var(--green); background: #f0f4eb; font-size: 13px; line-height: 1.65; }
.method-result p { margin: 5px 0 0; max-width: 110ch; }
.guide-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 12px 0; }
.guide-roles h3 { font-size: 15px; color: var(--green); margin: 0; }
.guide-roles p { margin: 8px 0 0; font-size: 13px; }
.guide-section { border-top: 1px solid var(--line); padding: 16px 0; }
.guide-section summary { cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.6; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.7; text-align: left; }
.guide-table th, .guide-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table th { font-weight: 500; }
.guide-table th:first-child { width: 32%; }
.guide-table .text-button { font-size: 12px; text-align: left; margin-top: 8px; }
.guide-table code, .guide-section code { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  dialog { padding: 26px 18px; }
  .guide-roles { grid-template-columns: 1fr; gap: 16px; }
  .guide-table th, .guide-table td { padding: 10px 5px; }
  .method-overview { padding: 14px; }
}
.clause-node .node-box { stroke-dasharray: 5 2; }
.clause-mark { font-family: var(--font-sans, sans-serif); font-size: 7px; letter-spacing: .8px; fill: #536b81; }
.analysis-settings, .readings-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #48604e; }
.analysis-settings { margin-top: 14px; }
.analysis-settings select { width: auto; padding: 7px; }
.readings-panel { padding: 14px 24px; border-bottom: 1px solid #dce3dc; background: #fbfcf9; }
.readings-panel[hidden] { display: none; }
.readings-panel select { width: auto; max-width: 100%; min-width: 0; padding: 8px; flex: 1 1 280px; }
.readings-panel p { flex-basis: 100%; margin: 0; line-height: 1.6; }

/* Source-backed exploration, with the same paper/ink palette as the tree. */
.research { margin:32px 0; padding:26px; background:var(--white); border:1px solid var(--line); border-radius:12px; scroll-margin-top:20px; }
.research-columns { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:28px; margin-top:24px; }
.research-corpus, .research-dictionary { min-width:0; }
.research-dictionary { border-left:1px solid var(--line); padding-left:26px; }
.research h3 { margin:0 0 12px; font:normal 22px var(--serif); }
.research-form { display:block; }
.openrouter-panel { margin:18px 0; padding:18px; border:1px solid var(--line); border-radius:8px; background:var(--white); }
.openrouter-heading { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
.openrouter-heading h3 { margin:0; font:normal 21px var(--serif); }
.openrouter-panel p { font-size:12px; line-height:1.65; color:var(--sub); overflow-wrap:anywhere; }
.openrouter-form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:15px 0; }
.openrouter-panel label { display:flex; flex-direction:column; gap:7px; min-width:0; font-size:12px; color:var(--green); }
.openrouter-form label { flex:1 1 260px; }
.openrouter-panel input, .openrouter-panel select { width:100%; min-width:0; padding:10px; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--ink); font:14px var(--sans); }
.openrouter-form .primary { height:40px; padding:10px 18px; }
.openrouter-models { display:grid; grid-template-columns:minmax(130px,1fr) minmax(0,2fr); gap:14px; }
@media(max-width:540px) { .openrouter-models { grid-template-columns:1fr; } .openrouter-panel { padding:12px; } }
.research-language { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:20px; }
.research-language select { width:auto; max-width:100%; }
.research-language span { font-size:12px; color:var(--sub); }
.wordnet-frames { font:12px/1.7 var(--mono); padding-left:20px; }
.research-form label, .research-selection label { display:flex; flex-direction:column; gap:7px; font-size:11px; color:var(--green); min-width:0; }
.research input, .research select, .research textarea { width:100%; min-width:0; padding:10px 11px; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--ink); font:14px var(--sans); }
.research input:focus, .research textarea:focus { background:white; }
.research textarea { resize:vertical; margin-top:8px; line-height:1.7; }
.research textarea:focus-visible { outline:3px solid #8ead82; outline-offset:3px; }
.research-filters { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.research-query { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-top:14px; }
.research-query label { flex:1 1 130px; }
.research-query .primary, .research-selection-controls .primary { height:40px; padding:10px 16px; white-space:nowrap; }
.research .source-note { margin:10px 0; overflow-wrap:anywhere; }
.research-results-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:12px 0; }
.research-results-heading p, #dictionary-status { font-size:12px; line-height:1.7; color:var(--green); }
.corpus-results { max-height:600px; overflow:auto; padding-right:8px; }
#dictionary-results { max-height:720px; overflow:auto; padding-right:8px; }
.corpus-result { border-top:1px solid var(--line); padding:13px 0; }
.corpus-result .source-note { margin:0 0 7px; }
.corpus-text { margin:0; font:18px/1.7 var(--serif); white-space:pre-wrap; overflow-wrap:anywhere; }
.corpus-text mark { color:var(--green); background:#eaf1c8; border-radius:2px; }
.corpus-result-actions { display:flex; flex-wrap:wrap; gap:20px; margin-top:6px; }
.research-pagination { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:12px; margin-top:12px; }
.dictionary-entry { border-top:1px solid var(--line); padding:14px 0; }
.dictionary-entry summary { cursor:pointer; font:21px var(--serif); overflow-wrap:anywhere; }
.dictionary-text { font:16px/1.8 var(--serif); white-space:pre-wrap; overflow-wrap:anywhere; max-height:440px; overflow:auto; padding-right:8px; }
.dictionary-entry .text-button { display:block; }
.research-selection { margin-top:26px; padding:22px; border:1px solid var(--line); border-radius:8px; background:#f5f8ef; }
.research-selection details { margin:14px 0 18px; }
.research-selection summary { cursor:pointer; font-size:12px; }
.research-selection blockquote { margin:16px 0; white-space:pre-wrap; overflow-wrap:anywhere; font:18px/1.7 var(--serif); }
.research-selection pre { max-height:200px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font:11px/1.6 var(--mono); }
.research-selection-controls { display:flex; flex-wrap:wrap; align-items:end; gap:14px; margin-top:16px; }
.research-selection-controls label { flex:1 1 180px; }
@media(max-width:900px) { .research-columns { grid-template-columns:1fr; } .research-dictionary { border-left:0; border-top:1px solid var(--line); padding:24px 0 0; } }
@media(max-width:540px) { .research { padding:18px; } .research-selection { padding:15px; } .research-query { align-items:stretch; } .research-query .primary { width:100%; } .research-selection-controls .primary { width:100%; } }
/* Paragraph input and per-sentence inspection. */
#paragraph-editor { margin-top: 1rem; }
#paragraph-editor label { display: block; font-size: .7rem; letter-spacing: .09em; margin-bottom: .65rem; }
#paragraph { width: 100%; box-sizing: border-box; padding: 1rem; resize: vertical; font: inherit; line-height: 1.65; color: inherit; background: transparent; border: 1px solid #c8c5bc; border-radius: .35rem; }
.paragraph-note { font-size: .8rem; line-height: 1.65; color: #626058; }
.paragraph-results { margin: 2rem 0; padding: 1.5rem; border: 1px solid #c8c5bc; border-radius: .35rem; }
.paragraph-results h2 { font-size: 1.1rem; margin-top: 0; }
#paragraph-sentences { padding-left: 1.4rem; }
#paragraph-sentences li { padding: .65rem 0; }
.paragraph-sentence { display: block; background: transparent; border: 0; color: inherit; font: inherit; text-align: left; padding: .2rem 0; cursor: pointer; line-height: 1.6; }
.paragraph-sentence[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .25em; }
.paragraph-status { display: block; font-size: .75rem; line-height: 1.6; color: #875b34; }
.paragraph-complete .paragraph-status { color: #376f54; }
.greek-source-controls { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line, #d8d5cd); border-radius: 8px; }
.greek-source-controls .source-toggle { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .8rem; }
.greek-source-controls input[type="checkbox"] { width: auto; flex: none; }
.greek-source-controls select { max-width: 100%; margin-top: .4rem; }
.source-observation { margin: .8rem 0; padding: .7rem; border-left: 2px solid var(--line, #d8d5cd); }
.source-observation blockquote { margin: .5rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-word p, .source-observation a { overflow-wrap: anywhere; }
.jev-demo, .jev-impact { margin: 1rem 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: #f5f8ef; }
.playback-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .8rem 1rem; margin: 1rem 0; background: #f5f8ef; border: 1px solid var(--line); border-radius: 6px; }
.playback-status p { margin: 0; font-size: .85rem; line-height: 1.6; }
.jev-demo summary { cursor: pointer; color: var(--green); font-weight: 600; }
.jev-demo p, .jev-impact p { line-height: 1.65; overflow-wrap: anywhere; }
.jev-demo .source-toggle { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0; font-size: .85rem; }
.jev-demo input[type="checkbox"] { width: auto; flex: none; }
.jev-demo .primary { padding: 10px 18px; height: auto; }
#jev-demo-status { font-size: .8rem; line-height: 1.6; }
.jev-examples { display: flex; gap: .6rem; flex-wrap: wrap; margin: .8rem 0; }
.jev-examples button { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font: inherit; font-size: .8rem; color: var(--green); cursor: pointer; text-align: left; }
.jev-comparison-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; margin: 1rem 0; }
.jev-comparison-grid > section { min-width: 0; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.jev-comparison-grid h3 { margin: 0 0 .9rem; font-size: .9rem; }
.jev-comparison-grid p { font-size: .85rem; }
.jev-meaning { white-space: pre-wrap; overflow-wrap: anywhere; font: .8rem/1.65 var(--mono); }
.jev-probabilities { display: grid; gap: .8rem; margin: 1rem 0; }
.jev-probability { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .4rem .8rem; font-size: .8rem; }
.jev-probability span { overflow-wrap: anywhere; }
.jev-probability progress { grid-column: 1 / -1; width: 100%; height: 7px; accent-color: var(--green); }
@media(max-width:680px) { .jev-comparison-grid { grid-template-columns: 1fr; } .jev-demo, .jev-impact { padding: 1rem; } }
