/* The episode timeline fits the available result pane, including wide and mobile modes. */
.ep-view {
  --ep-line: #dfe4e3; --ep-muted: #5b6670; --ep-green: #147958; --ep-amber: #af580e;
  container-type: inline-size; min-width: 0; border: 1px solid var(--ep-line);
  border-radius: 10px; background: var(--panel, #fff); overflow-wrap: anywhere;
}
.ep-mast, .ep-controls, .ep-heading, .ep-attribute-line, .ep-sources, .ep-dialog-head {
  display: flex; align-items: center; flex-wrap: wrap;
}
.ep-mast {
  justify-content: space-between; gap: 8px 16px; padding: 12px 15px;
  background: #f8f9f8; border-bottom: 1px solid var(--ep-line); border-radius: 10px 10px 0 0;
}
.ep-heading { gap: 4px 12px; min-width: 0; }
.ep-heading h3, .ep-block-title { font-size: 15px; margin: 0; letter-spacing: -.02em; }
.ep-meta, .ep-entry-source, .ep-table-key, .ep-empty-text, .ep-unassigned {
  font-size: 12px; color: var(--ep-muted, #5b6670);
}
.ep-controls { gap: 8px 14px; min-width: 0; max-width: 100%; }
.ep-field { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; max-width: 100%; color: #44515c; font-size: 12px; }
.ep-field select { min-width: 0; max-width: 100%; width: auto; font-size: 12px; padding: 4px 6px;
  border: 1px solid #cdd5d3; border-radius: 5px; background: white; color: #19262b; }
.ep-controls .ep-field select { width: min(23ch, 100%); }
.ep-body { padding: 14px; }
.ep-body-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.ep-timeline { list-style: none; margin: 0; padding: 0; }
.ep-row { position: relative; display: grid; grid-template-columns: 5.7em 14px minmax(0,1fr); gap: 8px; align-items: start; }
.ep-row::before { content: ''; position: absolute; top: 11px; bottom: -11px; width: 2px;
  left: calc(5.7em + 14px); background: #d6dedb; }
.ep-row:last-child::before { display: none; }
.ep-date { color: #49545c; text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 3px; }
.ep-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ep-green); background: var(--ep-green); display: inline-block; }
.ep-row > .ep-dot { margin: 6px auto 0; z-index: 1; box-shadow: 0 0 0 2px white; }
.ep-row-context > .ep-dot, .ep-dot-context { border-color: #929c98; background: white; }
.ep-row-explained > .ep-dot, .ep-dot-explained { border-color: #d17724; background: #d17724; }
.ep-entry { margin-bottom: 12px; min-width: 0; }
.ep-entry-lead { padding: 1px 0; line-height: 1.4; }
.ep-entry-lead strong { font-weight: 650; }
.ep-entry-source { margin-left: 6px; }
.ep-entry p { margin: 3px 0; }
.ep-row-context .ep-entry, .ep-row-interval .ep-entry, .ep-entry .ep-milestone-note {
  padding: 8px 10px; border: 1px solid #dce2df; border-radius: 7px; background: #f8faf9;
}
.ep-row-interval .ep-entry { background: #f8f9fb; border-color: #dce1e7; }
.ep-row-context .ep-entry-lead, .ep-row-interval .ep-entry-lead { display: flex; align-items: baseline; gap: 3px 8px; flex-wrap: wrap; }
.ep-entry-lead .ep-note-name { font-size: 12px; font-weight: 600; }
.ep-note-basis, .ep-note-fact { color: var(--ep-muted); font-size: 11px; }
.ep-note-fact::after { content: ' · '; }
.ep-note-basis { border: 1px solid #d1dad5; border-radius: 4px; padding: 0 5px; }
.ep-entry .ep-milestone-note { margin: 4px 0; }
.ep-row-context .ep-detail, .ep-row-interval .ep-detail { white-space: pre-line; line-height: 1.45; }
.ep-detail { color: #39454a; }
.ep-sources { gap: 1px 9px; }
.ep-link {
  padding: 1px 0; border: 0; background: transparent; color: #13614f; font: inherit;
  font-size: 12px; text-align: left; cursor: pointer; overflow-wrap: anywhere;
}
.ep-link:hover { text-decoration: underline; }
.ep-link:focus-visible, .ep-table-scroll:focus-visible, .ep-view :is(select,summary):focus-visible { outline: 2px solid var(--accent, #2d5ccc); outline-offset: 2px; }
.ep-annotation { display: inline-block; margin: 3px 0; padding: 3px 7px; background: #fcf0df; color: #924505; font-size: 12px; font-weight: 600; border-radius: 4px; }
.ep-side { display: grid; gap: 9px; min-width: 0; }
.ep-card { border: 1px solid var(--ep-line); border-radius: 8px; padding: 11px 13px; }
.ep-subtitle { margin: 0 0 7px; font-size: 10px; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: #526057; font-weight: 700; }
.ep-card > p { margin: 0; }
.ep-card > p + .ep-calendar-summary { margin-top: 6px; }
.ep-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.ep-stat strong { font-weight: 680; font-size: 34px; line-height: 1.06; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.ep-stat span { color: #42514a; }
.ep-bar { display: flex; align-items: stretch; gap: 2px; overflow: hidden; border-radius: 5px; margin: 10px 0; height: 12px; }
.ep-seg { background: #a4cebb; } .ep-seg-exp { background: #d77525; }
.ep-intervals, .ep-legend { list-style: none; margin: 0; padding: 0; }
.ep-intervals li { border-bottom: 1px solid #e9ece9; padding: 4px 0; font-size: 12px; }
.ep-intervals li:last-child { border: 0; }
.ep-interval { display: flex; justify-content: space-between; gap: 10px; }
.ep-interval strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ep-explained { color: #924505; font-weight: 600; }
.ep-interval-evidence summary { display: inline list-item; cursor: pointer; font-size: 11px; color: #56645c; }
.ep-interval-evidence summary::marker { font-size: .8em; }
.ep-notes-card { background: #fdf4e7; border-color: #f1d7b4; }
.ep-notes-card .ep-subtitle { color: #924505; }
.ep-explained-total { display: block; margin: 2px 0 5px; }
.ep-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: #53605b; }
.ep-legend li { display: inline-flex; align-items: center; gap: 5px; }
.ep-inspector { border-top: 1px solid var(--ep-line); padding: 13px 15px 16px; }
.ep-attribution-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 15px; margin: 9px 0; }
.ep-attribution-controls .ep-field { min-width: min(12em, 100%); align-items: start; flex-direction: column; }
.ep-attribution-controls .ep-field select { max-width: min(33ch, 100%); }
.ep-attribute { background: #f7faf9; border-left: 3px solid #9cc7b9; margin: 9px 0 13px; padding: 8px 11px; }
.ep-attribute-line { gap: 3px 8px; }
.ep-attribute .ep-meta { margin-top: 3px; }
.ep-status, .ep-decision { font-size: 11px; padding: 2px 6px; border-radius: 5px; line-height: 1.4; }
.ep-status, .ep-other { background: #edf0f2; color: #47535b; }
.ep-accepted { background: #e1f2e8; color: #0f6948; }
.ep-held { background: #fff0d9; color: #864909; }
.ep-quote { margin: 5px 0; color: #32464a; }
.ep-candidates { min-width: 0; max-width: 100%; }
.ep-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
table.ep-table { width: 100%; min-width: 635px; border-collapse: collapse; background: var(--panel, #fff); font-size: 12px; line-height: 1.4; }
.ep-table th, .ep-table td { padding: 7px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; border: 0; border-bottom: 1px solid #e0e5e2; }
.ep-table thead th { white-space: nowrap; font-size: 10px; text-transform: uppercase; letter-spacing: .045em; font-weight: 650; color: #54605a; }
.ep-table tbody th { font-weight: 600; min-width: 7em; }
.ep-table .ep-col-score, .ep-table .ep-col-meaning { font-variant-numeric: tabular-nums; }
.ep-table .ep-col-score { font-weight: 600; }
.ep-table small { display: block; color: #59646e; margin-top: 3px; font-weight: 400; }
.ep-table-key { margin: 6px 0 0; }
.ep-na { color: #78837e; }
.ep-unassigned, .ep-empty-text { margin: 0; padding: 5px 0; }
.ep-source-dialog { max-width: min(620px, calc(100% - 28px)); max-height: 80vh; border: 1px solid #cfd8d2; border-radius: 10px; color: var(--ink); padding: 15px 18px; background: white; overflow-y: auto; }
.ep-source-dialog::backdrop { background: rgba(18, 31, 26, .36); }
.ep-dialog-head { justify-content: space-between; gap: 12px; }
.ep-dialog-head h3 { font-size: 15px; }
.ep-source-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.ep-source-text mark { background: #ffe4a4; color: inherit; }
@container (min-width: 610px) {
  .ep-body-split { grid-template-columns: minmax(0,1.52fr) minmax(0,1fr); }
}
@container (max-width: 430px) {
  .ep-body, .ep-inspector, .ep-mast { padding: 10px; }
  .ep-row { grid-template-columns: 4.6em 12px minmax(0,1fr); gap: 6px; }
  .ep-row::before { left: calc(4.6em + 11px); }
  .ep-date { font-size: 11px; }
}

.ep-scope-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.ep-scope-switch select { color: var(--ink); font: inherit; }
.note-episode-choices { grid-column: 1 / -1; min-width: 0; }
.note-episode-choices summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.note-episode-choices .ep-candidates, #detail .ep-candidates { margin: 8px 0; }

.ep-navigation { padding: 8px 14px; border-bottom: 1px solid var(--ep-line); }
.ep-browser-title { width: max-content; max-width: 100%; cursor: pointer; color: var(--accent-ink,#274fbd); font-weight: 600; }
.ep-browser-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ep-browser-tools input, .ep-browser-tools select { min-width: 0; max-width: 100%; border: 1px solid var(--line-2,#cdd5d3); border-radius: 5px; color: var(--ink); background: white; padding: 5px 8px; font: inherit; }
.ep-browser-tools input { flex: 1 1 200px; }
.ep-match-count { margin: 7px 0 4px; color: var(--ep-muted); font-size: 12px; }
.ep-results { list-style: none; margin: 0; padding: 0; max-height: 19rem; overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--ep-line); }
.ep-results li { padding: 0; border-bottom: 1px solid var(--ep-line); }
.ep-option { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; border-left: 3px solid transparent; background: white; padding: 6px 8px; color: var(--ink); font: inherit; cursor: pointer; }
.ep-option strong { font-size: 13px; font-weight: 550; }
.ep-option[aria-current="true"] { border-left-color: var(--accent,#315bd7); background: #f4f7fd; }
.ep-option:hover { background: #f4f7fa; }
.ep-option:focus-visible, .ep-row:focus-visible, .ep-record-tag:focus-visible { outline: 2px solid var(--accent,#315bd7); outline-offset: -2px; }
.ep-results li > .ep-link { padding: 6px 8px; }
.ep-connection { display: inline-block; border: 1px solid #d9dfe5; color: #465365; border-radius: 5px; padding: 2px 6px; font-size: 11px; font-weight: 550; }
.ep-connection-documented { border-color: #b4daca; color: #165e48; background: #eff7f4; }
.ep-connection-possible, .ep-connection-unconfirmed { border-color: #e6d5b4; color: #735323; background: #fbf6ec; }
.ep-grouped-records { margin: 0 0 15px; }
.ep-record-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ep-record-tag { border: 1px solid #d7deda; border-radius: 4px; background: #f7f9f8; color: #384741; padding: 3px 6px; font: inherit; font-size: 11px; overflow-wrap: anywhere; }
button.ep-record-tag { cursor: pointer; }
.ep-group-reason { margin: 5px 0 0; font-size: 12px; color: var(--ep-muted); }
.ep-comparison { margin: 6px 0 12px; padding: 8px 10px; border: 1px dashed #b3bdc9; border-radius: 6px; }
.ep-comparison .ep-detail { margin: 3px 0; }
.ep-interval-toggle { display: flex; align-items: center; gap: 6px; margin: 5px 0 12px; color: var(--ep-muted); font-size: 12px; cursor: pointer; }
.ep-row[hidden] { display: none; }
.ep-dot-comparison, .ep-row-interval .ep-dot, .ep-row-comparison .ep-dot, .ep-row-comparison_context .ep-dot { border: 2px dashed #718096; background: white; }
.ep-row-comparison .ep-entry, .ep-row-comparison_context .ep-entry { border-left: 2px dashed #bcc5cf; padding-left: 8px; }

/* The timeline and association panel share the two figure layouts from the brief. */
.ep-view { --ep-line:#d9d9d3; --ep-muted:#565650; --ep-green:#167e59; color:#181916; line-height:1.45; font-family:Arial,Helvetica,sans-serif; }
.ep-mast, .ep-link-mast { background:#fafaf8; }
.ep-mast { padding:10px 14px; }
.ep-heading h3, .ep-block-title { font-size:16px; font-weight:700; }
.ep-heading .ep-meta, .ep-link-mast .ep-meta { font-size:14px; }
.ep-sample-badge { font-size:12px; font-weight:650; color:#565650; background:#f0f0ec; border-radius:20px; padding:2px 9px; white-space:nowrap; }
.ep-body { padding:14px; }
.ep-row { grid-template-columns:4.5em 16px minmax(0,1fr); gap:8px; font-size:14px; }
.ep-row::before { left:calc(4.5em + 15px); background:#e0e0da; top:7px; bottom:-7px; }
.ep-row > .ep-dot { margin-top:4px; }
.ep-entry { margin-bottom:9px; }
.ep-entry-source, .ep-date { color:#585953; font-size:13px; }
.ep-milestone-link { display:inline; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:700; cursor:pointer; text-align:left; }
.ep-milestone-link:is(:focus-visible,:hover), .ep-inline-note:is(:focus-visible,:hover) { text-decoration:underline; }
.ep-inline-note { font-size:inherit; color:#50544d; text-decoration:underline; text-underline-offset:2px; text-decoration-color:#aab3ab; }
.ep-row-context .ep-entry-lead, .ep-row-interval .ep-entry-lead { display:block; }
.ep-context-text { white-space:pre-line; }
.ep-note-name + .ep-context-text, .ep-inline-note + .ep-context-text, .ep-context-text + .ep-note-basis { margin-left:6px; }
.ep-evidence-foot { display:flex; flex-wrap:wrap; gap:0 10px; font-size:11px; }
.ep-passages { color:#59635a; }
.ep-passages summary { cursor:pointer; }
.ep-passages .ep-sources { padding:2px 0; }
.ep-row-context .ep-entry, .ep-row-interval .ep-entry, .ep-entry .ep-milestone-note { background:#fafaf8; border-color:#e4e4de; }
.ep-subtitle { color:#62635f; font-size:11px; }
.ep-card { border-radius:11px; }
.ep-stat strong { color:#151612; font-size:38px; }
.ep-bar { height:16px; }
.ep-seg { background:#91cfae; }
.ep-seg-exp { background:#df7b20; }
.ep-seg-neutral { background:#c9c9c2; }
.ep-explained { color:#995009; }
.ep-interval-evidence summary { display:flex; align-items:baseline; justify-content:space-between; gap:10px; font:inherit; color:inherit; }
.ep-interval-evidence summary::-webkit-details-marker { display:none; }
.ep-interval-evidence summary span { text-decoration:underline dotted #9aa198; text-underline-offset:3px; }
.ep-interval-evidence summary strong { text-wrap:nowrap; font-variant-numeric:tabular-nums; }
.ep-illustration .ep-explained-total { display:inline; }
.ep-side { gap:10px; }
.ep-legend li { font-size:12px; }
.ep-illustration .ep-evidence-foot { margin-top:1px; }
.ep-illustration .ep-annotation { display:table; padding:3px 8px; }
.ep-link-mast { display:flex; align-items:center; gap:4px 10px; flex-wrap:wrap; margin:-13px -15px 12px; padding:10px 14px; border-bottom:1px solid var(--ep-line); }
.ep-link-mast .ep-sample-badge { margin-left:auto; }
.ep-attribute,.ep-comparison-panel { border:1px solid var(--ep-line); border-radius:9px; padding:12px; margin:0 0 10px; }
.ep-attribute { background:#fafaf8; }
.ep-attribute-line { gap:4px 6px; font-size:14px; }
.ep-number { display:inline-grid; place-items:center; color:white; background:#111; font-size:11px; min-width:18px; height:18px; padding:0 3px; border-radius:20px; font-weight:700; }
.ep-source-quote { max-width:100%; white-space:pre-wrap; line-height:1.42; background:#e3e3ef; color:#202126; border-radius:4px; padding:1px 5px; font:13px/1.5 ui-monospace,Menlo,monospace; }
.ep-attribute-ref { color:#50524e; font-size:12px; }
.ep-attribution-controls { margin:.7rem 0 0; }
.ep-table .ep-col-score { font-weight:700; }
.ep-table .ep-fit { color:#176a4e; }
.ep-table .ep-mismatch { color:#963a22; }
.ep-decision { display:inline-block; border-radius:15px; white-space:normal; font-weight:650; }
.ep-table .ep-col-decision { min-width:6em; }
.ep-link:focus-visible, .ep-milestone-link:focus-visible, .ep-inline-note:focus-visible, .ep-view summary:focus-visible { outline:2px solid #215db3; outline-offset:2px; }
@container (min-width:610px) { .ep-body-split { grid-template-columns:minmax(0,1.62fr) minmax(0,1fr); gap:14px; } }
@container (max-width:430px) {
  .ep-row { grid-template-columns:3.85em 12px minmax(0,1fr); gap:5px; }
  .ep-row::before { left:calc(3.85em + 10px); }
  .ep-sample-badge { font-size:11px; }
  .ep-link-mast { margin:-10px -10px 10px; }
}
.ep-grouped-records > summary { color:#4a5751; font-size:12px; cursor:pointer; }
.ep-grouped-records > .ep-record-tags { margin-top:5px; }

/* Give the chronological narrative and the decision table the reading scale of the brief. */
.ep-view {
  --ep-line:var(--line,#dfddd6);
  --ep-muted:var(--muted,#63615a);
  color:var(--ink,#1e1e1c);
  font-family:var(--font,system-ui,sans-serif);
  border-radius:14px;
}
.ep-mast {
  align-items:flex-start;
  background:white;
  padding:15px 16px;
  border-radius:14px 14px 0 0;
}
.ep-heading { display:block; flex:1 1 19rem; }
.ep-heading h3 { font-weight:500; }
.ep-heading .ep-meta,.ep-heading .ep-connection { margin-top:4px; }
.ep-controls { align-items:baseline; }
.ep-sample-badge { background:#f3f2ed; color:#57554e; }
.ep-compact-totals { display:none; }
.ep-row-context .ep-entry,.ep-row-interval .ep-entry,.ep-entry .ep-milestone-note { background:#faf9f6; border-color:var(--ep-line); }
.ep-entry-lead strong { font-weight:600; }
.ep-evidence-foot { align-items:baseline; gap:2px 13px; }
.ep-source-action,.ep-attribute-link,.ep-controls > .ep-link {
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:2px 0;
  color:var(--ink,#1e1e1c);
  text-decoration:underline;
  text-decoration-color:#c3bfb5;
  text-underline-offset:3px;
  font-size:12px;
}
.ep-primary-claim {
  margin-top:6px;
  border-left:3px solid #e6bd3d;
  background:#fffaf0;
  padding:7px 10px;
}
.ep-primary-claim > strong { font-size:14px; font-weight:550; }
.ep-row-active > .ep-dot { outline:3px solid #f7cf47; outline-offset:2px; }
.ep-row-explained > .ep-dot,.ep-dot-explained { border-radius:3px; }
.ep-passages summary { font-size:12px; color:var(--ep-muted); }
.ep-calendar-summary { color:var(--ep-muted); font-size:13px; }
.ep-notes-card .ep-explained-total { display:block; }
.ep-legend { color:var(--ep-muted); }
.ep-option[aria-current="true"] { background:#fff9e8; border-left-color:#edc548; }
.ep-browser-title { color:var(--ink,#1e1e1c); }
@container (max-width:609px) {
  .ep-mast { gap:8px; }
  .ep-heading { flex:1 0 100%; }
  .ep-compact-totals {
    display:flex;
    align-items:baseline;
    gap:4px 10px;
    flex-wrap:wrap;
    width:100%;
    margin:3px 0 0;
    font-size:13px;
    color:var(--ep-muted);
  }
  .ep-compact-totals strong { color:var(--ink,#1e1e1c); }
}
@container (min-width: 880px) {
  .ep-heading h3, .ep-block-title { font-size:20px; }
  .ep-mast, .ep-link-mast { padding-block:13px; }
  .ep-heading .ep-meta, .ep-link-mast .ep-meta, .ep-attribute-line { font-size:17px; }
  .ep-row { font-size:17px; }
  .ep-entry-source, .ep-date, .ep-attribute-ref, .ep-source-quote { font-size:15px; }
  .ep-dot { width:14px; height:14px; }
  .ep-entry { margin-bottom:11px; }
  .ep-card, .ep-attribute, .ep-comparison-panel { padding:15px 17px; }
  .ep-card { font-size:17px; }
  .ep-side { gap:14px; }
  .ep-subtitle, .ep-table thead th { font-size:13px; }
  .ep-stat strong { font-size:47px; }
  .ep-bar { height:22px; margin:13px 0; }
  .ep-intervals li, .ep-annotation, table.ep-table { font-size:17px; }
  .ep-comparison-panel .ep-table th, .ep-comparison-panel .ep-table td { padding-block:9px; }
  .ep-table small, .ep-entry-lead .ep-note-name, .ep-legend li { font-size:14px; }
  .ep-attribute, .ep-comparison-panel { margin-bottom:13px; }
}

/* Fact inspector and original-note reader, shared by the timeline and extraction review. */
.ep-inspector,.ep-source-dialog { font-family:var(--font,system-ui,sans-serif); }
.ep-link-mast .ep-back-link { margin-inline-start:auto; }
.ep-link-mast:has(.ep-back-link) .ep-sample-badge { margin-inline-start:0; }
.ep-inspector .ep-attribution-controls { margin:0 0 14px; align-items:start; }
.ep-attribution-controls .ep-field { gap:4px; color:var(--muted,#63615a); }
.ep-attribution-controls .ep-field select {
  min-height:34px; padding:4px 8px; border-radius:6px; color:var(--ink,#1e1e1c);
  border-color:var(--line-2,#cbc9c4); background:var(--panel,#fff); font:inherit;
}
.ep-inspector .ep-attribute { background:var(--panel-2,#faf9f7); }
.ep-attribute-ref { color:var(--muted,#63615a); }
.ep-selected-passage { display:flex; align-items:baseline; gap:6px 12px; flex-wrap:wrap; margin:8px 0 4px; }
.ep-selected-passage .ep-source-quote {
  max-width:100%; white-space:pre-wrap; font:inherit; font-weight:500;
  color:var(--ink,#1e1e1c); background:var(--accent-soft,#fcf3d0); border-radius:4px; padding:2px 6px;
}
.ep-selected-passage .ep-link,.ep-back-link { color:var(--accent-ink,#52420b); text-decoration:underline; text-underline-offset:3px; font-size:13px; }
.ep-fact-details { display:flex; align-items:flex-start; flex-wrap:wrap; gap:7px 20px; margin:12px 0 8px; }
.ep-fact-details div { min-width:0; }
.ep-fact-details dt { color:var(--muted,#63615a); font-size:11px; font-weight:500; }
.ep-fact-details dd { margin:1px 0 0; color:var(--ink,#1e1e1c); font-size:13px; }
.ep-fact-details dt::first-letter { text-transform:uppercase; }
.ep-candidates { container:ep-candidates / inline-size; }
.ep-col-decision .ep-cell-value { display:grid; justify-items:start; gap:3px; }
.ep-candidate-accepted { background:var(--ok-soft,#e9f3ec); }
.ep-candidate-toggle,.ep-mobile-label { display:none; }
.ep-table .ep-na { color:var(--muted,#63615a); font-weight:400; }
.ep-source-dialog {
  width:min(650px,calc(100% - 32px)); max-height:85vh; max-height:85dvh; overflow:hidden;
  padding:0; border-radius:12px; border-color:var(--line,#dfddd8); background:var(--panel,#fff);
}
.ep-source-dialog[open] { display:flex; flex-direction:column; }
.ep-source-dialog::backdrop { background:rgba(29,29,27,.42); }
.ep-dialog-head { flex:none; padding:13px 18px; background:var(--panel-2,#faf9f7); border-bottom:1px solid var(--line,#dfddd8); }
.ep-dialog-head h3 { margin:0; color:var(--ink,#1e1e1c); }
.ep-reader-content { padding:0 18px; min-height:0; overflow:auto; overscroll-behavior:contain; }
.ep-reader-content .ep-source-text { color:var(--ink,#1e1e1c); font-size:15px; line-height:1.6; margin:12px 0 16px; }
.ep-reader-content mark { background:var(--accent-soft,#fcf3d0); color:inherit; border-bottom:2px solid var(--accent,#f7cf47); }
.ep-reader-status { padding:9px 18px; margin:0; flex:none; border-top:1px solid var(--line,#dfddd8); color:var(--muted,#63615a); font-size:12px; }
.ep-reader-warning { background:var(--warn-soft,#fff4e0); color:var(--warn-ink,#824600); }
@container ep-candidates (max-width: 720px) {
  .ep-table-scroll { overflow:visible; }
  table.ep-table { display:block; min-width:0; }
  .ep-table thead { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
  .ep-table tbody { display:grid; gap:8px; }
  .ep-table tbody tr { display:block; border:1px solid var(--line,#dfddd8); border-radius:7px; overflow:hidden; }
  .ep-table tbody th,.ep-table tbody td { border:0; }
  .ep-table tbody th { display:flex; align-items:center; justify-content:space-between; gap:9px; }
  .ep-table tbody td { display:grid; grid-template-columns:5.4em minmax(0,1fr); gap:8px; }
  .ep-table .ep-mobile-label { display:inline; font-size:12px; color:var(--muted,#63615a); }
  .ep-table .ep-candidate-toggle {
    display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:3px 8px;
    border:1px solid var(--line-2,#cbc9c4); border-radius:5px; background:var(--panel,#fff); color:var(--ink,#1e1e1c);
    font:inherit; font-size:12px; cursor:pointer;
  }
  .ep-candidate-toggle::after { content:'+'; }
  .ep-candidate-toggle[aria-expanded="true"]::after { content:'−'; }
  .ep-table tr:not(.ep-expanded) td:not(.ep-col-decision) { display:none; }
}
