/* panel-extract.css: the extraction table (D58, D67; panel-extract.js).

   A ledger, not a spreadsheet: hairline rules, the page column set in the
   panel's serif-free meta face, values in tabular figures. Each cell's state
   is D49's shape (panel-verify.css .px-qv-g-*), never colour alone; NOT FOUND
   alone takes the danger spine and strikes its value, so an unverified value
   never reads as fact. Theme tokens only. */

.px-xt-bubble.chat-bubble.assistant { max-width: 100%; }
.px-xt { font-size: var(--fs-sm); color: var(--t-primary); }
.px-xt-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.px-xt-title { font-weight: 600; letter-spacing: .02em; }
.px-xt-meta { color: var(--t-meta); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.px-xt-progress { height: 2px; background: var(--hair); border-radius: 2px; overflow: hidden; margin: 2px 0 4px; }
.px-xt-progress > span { display: block; height: 100%; background: var(--rim); transition: width var(--dur-2) ease; }
.px-xt-sum { margin: 6px 0 2px; color: var(--t-secondary); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.px-xt-error, .px-xt-note { margin: 6px 0; color: var(--t-meta); font-size: var(--fs-xs); }
.px-xt-error { box-shadow: inset 2px 0 0 rgba(var(--danger-rgb), .7); padding-left: 8px; color: var(--t-primary); }

.px-xt-scroll { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--r-ctl); }
.px-xt-table { border-collapse: collapse; width: max-content; min-width: 100%; }
.px-xt-table th, .px-xt-table td { border-bottom: 1px solid var(--hair); padding: 6px 8px; text-align: left; vertical-align: top; }
.px-xt-table thead th {
  position: sticky; top: 0; color: var(--t-faint); font-weight: 500; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; background: var(--s-inter);
}
.px-xt-table tbody tr:last-child > * { border-bottom: 0; }
.px-xt-rowhead { min-width: 140px; max-width: 200px; font-weight: 400; }
.px-xt-rowname { display: block; line-height: 1.35; }
.px-xt-open { all: unset; cursor: pointer; color: var(--t-primary); line-height: 1.35; }
.px-xt-open:hover { text-decoration: underline; }
.px-xt-open:focus-visible { outline: 1px solid var(--rim); outline-offset: 1px; }
.px-xt-host, .px-xt-rowstate { display: block; color: var(--t-faint); font-size: var(--fs-xs); margin-top: 2px; }
.px-xt-rowstate.is-failed { color: var(--t-meta); }
.px-xt-rowstate.is-busy { animation: px-qv-blink 1.2s ease-in-out infinite; }

.px-xt-cell { min-width: 110px; max-width: 220px; cursor: pointer; line-height: 1.4; font-variant-numeric: tabular-nums; }
.px-xt-cell:hover, .px-xt-cell.is-open { background: var(--hair); }
.px-xt-cell:focus-visible { outline: 1px solid var(--rim); outline-offset: -1px; }
.px-xt-g { display: inline-block; vertical-align: 1px; margin-right: 5px; }
.px-xt-word { display: block; color: var(--t-faint); font-size: var(--fs-xs); }
.px-xt-val.is-blank { color: var(--t-faint); }
.px-xt-cell[data-state="wording_differs"] .px-xt-val { text-decoration: underline dashed var(--t-faint); text-underline-offset: 3px; }
.px-xt-cell[data-state="not_found"] { box-shadow: inset 2px 0 0 rgba(var(--danger-rgb), .7); }
.px-xt-cell[data-state="not_found"] .px-xt-val { text-decoration: line-through; color: var(--t-meta); }
.px-xt-cell[data-state="not_found"] .px-xt-word { color: var(--t-primary); }
.px-xt-cell[data-state="couldnt_open"] .px-xt-val,
.px-xt-cell[data-state="unchecked"] .px-xt-val { color: var(--t-meta); }
.px-xt-cell[data-state="not_reported"] .px-xt-val { color: var(--t-meta); font-style: italic; }
.px-qv-g-notreported { border: 0; height: 1.5px; margin-top: 4px; background: var(--t-faint); border-radius: 1px; }
.px-xt-cell.is-pending { cursor: default; }
.px-xt-bar { display: block; height: 8px; margin-top: 4px; width: 70%; border-radius: var(--r-xs); background: var(--hair); animation: px-qv-blink 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .px-xt-bar, .px-xt-rowstate.is-busy { animation: none; } }

.px-xt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.px-xt-detail {
  margin-top: 8px; padding: 8px 10px; border-radius: var(--r-ctl);
  border: 1px solid var(--hair); background: rgba(var(--bone-rgb), .03);
}
.px-xt-detail[data-state="not_found"] { box-shadow: inset 2px 0 0 rgba(var(--danger-rgb), .7); }

/* The setup: a column view (panel-column-view.js), on the panel's ground with
   the shared head; this styles only its body and its foot. Section labels are
   .find-note's register, as every column view's are. */
.px-xt-setup { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--t-primary); }
.px-xt-lede { margin: 0 0 4px; color: var(--t-meta); font-size: var(--fs-xs); line-height: 1.45; }
.px-xt-k {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font: 400 var(--fs-2xs)/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--t-faint);
}
.px-xt-count { color: var(--t-meta); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* The pages and the columns each sit in the grey glass well the bibliography
   editor's lists sit in (glass-surface.js TARGETS, "bubble"): the ground is on
   the well, the scrolling and its fade inside it. */
.px-xt-well {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-card);
  background: var(--s-quiet); box-shadow: var(--lit-card);
}
.px-xt-well--cols { padding: 10px; gap: 6px; }
/* The setup's body scrolls as a whole: no section shrinks and clips its own contents. */
.px-xt-setup > * { flex-shrink: 0; }
.px-xt-tview .px-colview-head { flex-wrap: wrap; row-gap: 6px; }
.px-xt-well .px-xt-tabs { padding: 6px; }
.px-xt-tabs { max-height: 40vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.px-xt-tab { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 4px 6px; border-radius: var(--r-ctl); }
.px-xt-tab-pick { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.px-xt-pilot { border: 1px solid var(--hair); border-radius: var(--r-xs); background: transparent; color: var(--t-faint); font: inherit; font-size: var(--fs-2xs); padding: 1px 6px; cursor: pointer; }
.px-xt-pilot[aria-pressed="true"] { color: var(--t-primary); border-color: var(--rim); }
.px-xt-tab:hover { background: var(--hair); }
.px-xt-tab input { accent-color: var(--rim); margin: 0; }
.px-xt-tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-xt-tab-host { color: var(--t-faint); font-size: var(--fs-xs); }
.px-xt-empty { color: var(--t-meta); padding: 6px; }
.px-xt-cols { display: flex; flex-direction: column; gap: 6px; }
.px-xt-col { display: flex; flex-direction: column; gap: 6px; }
.px-xt-col-line { display: flex; align-items: center; gap: 4px; }
.px-xt-col input, .px-xt-col textarea, .px-xt-q, .px-xtv-form input, .px-xtv-form textarea, .px-xtv-text {
  height: var(--ctl-h); padding: 0 8px; border: 1px solid var(--hair); border-radius: var(--r-ctl);
  background: transparent; color: var(--t-primary); font: inherit; min-width: 0;
}
.px-xt-col-line input { flex: 1; }
.px-xt-col textarea, .px-xt-q, .px-xtv-form textarea { height: auto; padding: 6px 8px; resize: vertical; line-height: 1.4; }
.px-xt-col input:focus, .px-xt-col textarea:focus, .px-xt-q:focus, .px-xtv-form input:focus, .px-xtv-form textarea:focus, .px-xtv-text:focus { outline: 1px solid var(--rim); outline-offset: -1px; }
.px-xt-col-more { display: none; flex-direction: column; gap: 6px; padding: 2px 0 6px 10px; border-left: 1px solid var(--hair); margin-left: 4px; }
.px-xt-col.is-open .px-xt-col-more { display: flex; }
.px-xt-f { display: flex; flex-direction: column; gap: 3px; }
.px-xt-f > span { color: var(--t-faint); font-size: var(--fs-xs); }
.px-xt-more { border: 0; background: transparent; color: var(--t-meta); cursor: pointer; font: inherit; font-size: var(--fs-xs); padding: 0 6px; height: var(--ctl-h); }
.px-xt-more:hover { color: var(--t-primary); }
.px-xt-stale { color: var(--t-meta); font-size: var(--fs-xs); white-space: nowrap; }
.px-xt-col-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.px-xt-rm { border: 0; background: transparent; color: var(--t-faint); cursor: pointer; width: var(--ctl-h); height: var(--ctl-h); }
.px-xt-colbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.px-xt-suggest-note, .px-xt-pilotnote { color: var(--t-meta); font-size: var(--fs-xs); line-height: 1.45; }
.px-xt-fine { margin: 2px 0 0; color: var(--t-faint); font-size: var(--fs-xs); line-height: 1.45; }
.px-xt-worst { display: block; margin-top: 4px; color: var(--t-meta); font-size: var(--fs-xs); }
.px-xt-add { align-self: flex-start; border: 0; background: transparent; color: var(--rim); cursor: pointer; padding: 2px 0; font: inherit; font-size: var(--fs-xs); }
.px-xt-est { margin-top: 4px; padding: 8px 10px; border: 1px solid var(--hair); border-radius: var(--r-ctl); color: var(--t-secondary); line-height: 1.45; }
.px-xt-est-k { font: 400 var(--fs-2xs)/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--t-faint); margin-right: 4px; }
/* Run, under the scrolling body: always in reach, however many pages. */
.px-xt-foot {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  padding: 12px 16px 16px; border-top: 1px solid var(--hair);
}
.px-xt-model { flex: 1; color: var(--t-faint); font-size: var(--fs-xs); }

/* An answer's own table rules (panel.html: .chat-bubble.assistant th / td,
   mono caps and no wrapping) are for Markdown tables; the ledger's cells wrap,
   and its row heads are page titles in the body face. */
.chat-bubble.assistant .px-xt-table td,
.chat-bubble.assistant .px-xt-table th { white-space: normal; font-size: var(--fs-sm); }
.chat-bubble.assistant .px-xt-table th.px-xt-rowhead {
  background: transparent; color: var(--t-primary);
  font: 400 var(--fs-sm)/1.35 inherit; font-family: inherit; letter-spacing: normal; text-transform: none;
}
.chat-bubble.assistant .px-xt-table thead th { white-space: nowrap; }

/* The chat keeps a pointer (D67): a title, the counts, Open table. */
.px-xt-pointer .px-xt-actions { margin-top: 6px; }

/* The table view (D67): a column view of its own. The body scrolls; the grid
   scrolls sideways inside it and fades at the edge it can scroll past. */
.px-xtv { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); color: var(--t-primary); }
.px-xtv-status .px-xt-meta { display: block; }
.px-xtv-colsbox { border: 1px solid var(--hair); border-radius: var(--r-ctl); padding: 6px 10px; }
.px-xtv-colsbox > summary { cursor: pointer; color: var(--t-secondary); font: 400 var(--fs-2xs)/1.8 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.px-xtv-colsbox[open] > summary { margin-bottom: 6px; }
.px-xtv-colbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.px-xtv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.px-xtv-text { flex: 1 1 120px; }
.px-xtv-scroll.px-xt-scroll { max-height: none; }
.px-xtv-colhead { all: unset; cursor: pointer; }
.px-xtv-colhead:hover { color: var(--t-primary); }
.px-xtv-colhead:focus-visible { outline: 1px solid var(--rim); outline-offset: 2px; }
.px-xtv .px-xt-table td, .px-xtv .px-xt-table th { white-space: normal; font-size: var(--fs-sm); }
.px-xtv .px-xt-table thead th { white-space: nowrap; }
.px-xt-cell.is-notrun, .px-xt-cell.is-dim { cursor: default; }
.px-xt-cell.is-dim { background: transparent; }
.px-xt-cell.is-notrun .px-xt-val { color: var(--t-faint); font-size: var(--fs-xs); }
.px-xt-cell:focus { outline: 1px solid var(--rim); outline-offset: -1px; }
.px-xt-edited { display: block; color: var(--t-meta); font-size: var(--fs-xs); }
.px-xt-edited button { all: unset; cursor: pointer; color: var(--rim); margin-left: 6px; }
.px-xt-cell[data-edited] { box-shadow: inset 0 -2px 0 rgba(var(--rim-rgb), .45); }
.px-xt-cell[data-state="not_found"][data-edited] { box-shadow: inset 2px 0 0 rgba(var(--danger-rgb), .7), inset 0 -2px 0 rgba(var(--rim-rgb), .45); }
.px-xt-empty { color: var(--t-meta); }

.px-xtv-detail { padding: 10px 12px; border-radius: var(--r-ctl); border: 1px solid var(--hair); background: rgba(var(--bone-rgb), .03); }
.px-xtv-detail[data-state="not_found"] { box-shadow: inset 2px 0 0 rgba(var(--danger-rgb), .7); }
.px-xtv-dhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.px-xtv-dhead .px-qv-k { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-xtv-dnav { display: flex; gap: 6px; }
/* Side by side when the column is wide enough, stacked when it isn't. */
.px-xtv-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.px-xtv-left, .px-xtv-right { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.px-xtv-value { font-size: var(--fs-md, var(--fs-sm)); }
.px-xtv-passage mark { background: rgba(var(--rim-rgb), .22); color: var(--t-primary); border-radius: 2px; padding: 0 1px; }
.px-xtv-orig-box { padding: 6px 8px; border: 1px dashed var(--hair); border-radius: var(--r-ctl); }
.px-xtv-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); }
.px-xtv-nr { display: flex; align-items: center; gap: 6px; color: var(--t-secondary); font-size: var(--fs-xs); }
.px-xtv-nr input { accent-color: var(--rim); }
.px-xtv-confirm { display: flex; flex-direction: column; gap: 6px; }

/* ---- Intuitive at side-panel width (2026-11-28) -------------------------------
   One line of head; the states as chips that are the legend and the filter; a
   sticky, narrow paper column; one drawer pinned to the view's bottom for the
   cell, the column or a run's estimate. Theme tokens only. */
.px-xt-tview .px-colview-head { flex-wrap: nowrap; }
.px-xt-tview .px-colview-head .pxpop-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-xt-tview .px-colview-head .px-btn { flex-shrink: 0; }

.px-xtv-where { color: var(--t-secondary); font-size: var(--fs-sm); line-height: 1.45; margin-top: 2px; }
.px-xtv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.px-xtv-chip {
  display: inline-flex; align-items: center; gap: 5px; height: calc(var(--ctl-h) - 6px); padding: 0 10px;
  border: 1px solid var(--hair); border-radius: var(--r-ctl); background: transparent; color: var(--t-secondary);
  font: inherit; font-size: var(--fs-xs); cursor: pointer; white-space: nowrap;
}
.px-xtv-chip:hover { color: var(--t-primary); border-color: var(--rim); }
.px-xtv-chip[aria-pressed="true"] { color: var(--t-primary); border-color: var(--rim); background: rgba(var(--rim-rgb), .14); }
.px-xtv-chip.is-check { color: var(--t-primary); }
.px-xtv-chip:focus-visible { outline: 1px solid var(--rim); outline-offset: 1px; }
.px-xtv-chip .px-xt-g { margin-right: 0; }
.px-xtv-n { color: var(--t-meta); font-variant-numeric: tabular-nums; }
.px-xtv-tools { display: flex; gap: 6px; align-items: center; }
.px-xtv-tools px-select { flex: 0 1 auto; }
.px-xtv-text { flex: 1 1 100px; min-width: 0; }

/* The grid: the paper column narrow and sticky, titles cut to three lines. */
.px-xtv .px-xt-table th.px-xt-rowhead, .px-xtv .px-xt-table thead th.px-xtv-papercol {
  position: sticky; left: 0; z-index: 2; width: 120px; min-width: 120px; max-width: 120px;
  background: linear-gradient(var(--s-inter), var(--s-inter)), var(--ink);   /* opaque: cells scroll under it */
}
.px-xtv .px-xt-table thead th.px-xtv-papercol { z-index: 3; }
.px-xtv .px-xt-rowname .px-xt-open, .px-xtv .px-xt-rowname {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-xs);
}
.px-xtv .px-xt-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-xtv .px-xt-cell { min-width: 150px; max-width: 240px; }
.px-xtv-colhead.is-open { color: var(--t-primary); text-decoration: underline; text-underline-offset: 3px; }
.px-xtv-colhead .px-xt-stale { text-transform: none; letter-spacing: 0; }
.px-xtv-addcol { min-width: 90px; }
.px-xtv .px-xtv-newcol { color: var(--rim); }
.px-xtv-keys { margin: 0; }

/* The drawer: pinned to the bottom of the view's scroll, so what was clicked is
   on screen beside the table. */
.px-xtv-drawer {
  position: sticky; bottom: 0; z-index: 5; margin-top: 4px;
  max-height: min(58vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 12px 12px; border-radius: var(--r-card) var(--r-card) 0 0;
  border: 1px solid var(--hair); border-bottom: 0;
  background: linear-gradient(var(--s-inter), var(--s-inter)), var(--ink); box-shadow: 0 -10px 28px rgba(0, 0, 0, .35);
}
.px-xtv-drawer[data-state="not_found"] { box-shadow: inset 2px 0 0 rgba(var(--danger-rgb), .7), 0 -10px 28px rgba(0, 0, 0, .35); }
.px-xtv-drawer .px-xt-col-line input[data-f="name"] { font-weight: 600; }
.px-xtv-dnav { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.px-xtv-dnav .px-btn { min-width: var(--ctl-h); padding: 0 8px; }
.px-xtv-pos { color: var(--t-meta); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }

/* The setup's steps. */
.px-xt-step {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 2px;
  border-radius: 50%; border: 1px solid var(--rim); color: var(--t-primary); font-size: var(--fs-2xs); letter-spacing: 0;
}

/* Expanded into a tab: wide enough for the table and side-by-side detail. */
.px-xt-expanded .px-xt-tview .px-colview-col { max-width: none; }
.px-xt-expanded .px-xtv .px-xt-cell { max-width: 320px; }
.px-xt-expanded .px-xtv .px-xt-table th.px-xt-rowhead, .px-xt-expanded .px-xtv .px-xt-table thead th.px-xtv-papercol { width: 220px; min-width: 220px; max-width: 220px; }
.px-xt-expanded .px-xtv-drawer { max-height: 46vh; }
/* In the drawer one column is open by definition, and the drawer has its own ×:
   no Details/Less toggle and no second × beside the name. */
.px-xtv-drawer .px-xt-more, .px-xtv-drawer .px-xt-rm { display: none; }
.px-xtv-drawer .px-xt-col-more { border-left: 0; padding-left: 0; margin-left: 0; }
