/* MY WORK › DELIVERABLES — the current glass on the window's chrome (self-driving lane 5, 2026-10-05).
   The audit (10-04) found the old look here: a CRT 4px key pair (REFRESH / CLEAN OLD RECORDS), a pitch-dark search field and
   select, a 12px lead. MATERIAL: the Workflow-window glass restated on this window's root, exactly as
   css/workflows-window.css does — 8px glass keys (36px, 16px VT323), the Build Library field (8px,
   recessed), nothing a Commander reads under 14px, matte (no glow). The deliverable cards keep their own styles here. */
.term.dlv-win {
  --refit-glass: linear-gradient(125deg, rgba(var(--ph-bright-rgb),.09), rgba(var(--ph-rgb),.045) 48%, rgba(var(--ph-rgb),.015));
  --dlv-edge: rgba(var(--ph-rgb),.2);
  --dlv-light: inset 0 1px 0 rgba(var(--ph-bright-rgb),.07);
}
.term.dlv-win .dlv-lead { margin: 2px 0 10px; font-size: 16px; line-height: 1.4; color: var(--ph-dim); text-shadow: none; }

/* keys: the panel's glass key */
.term.dlv-win .cfg.dlv .bb {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box;
  min-height: 36px; padding: 7px 14px; font: 16px/1.15 'VT323', monospace; letter-spacing: .6px; white-space: nowrap;
  color: var(--ph); border: 1px solid var(--dlv-edge); border-radius: 8px;
  background: var(--refit-glass); box-shadow: var(--dlv-light); text-shadow: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft);
}
.term.dlv-win .cfg.dlv .bb.sm, .term.dlv-win .cfg.dlv .bb.xs { min-height: 34px; padding: 6px 13px; font-size: 16px; }
.term.dlv-win .cfg.dlv .bb:hover::before, .term.dlv-win .cfg.dlv .bb:hover::after { content: none; }
.term.dlv-win .cfg.dlv .bb:hover:not(:disabled) { color: var(--ph-bright); border-color: rgba(var(--ph-rgb),.45); background: rgba(var(--ph-rgb),.1); box-shadow: var(--dlv-light); }
.term.dlv-win .cfg.dlv .bb:active:not(:disabled) { box-shadow: inset 0 2px 4px rgba(0,0,0,.35); }
.term.dlv-win .cfg.dlv .bb:disabled { opacity: .4; cursor: default; }

/* the search field and the status filter: the Build Library field */
.term.dlv-win .deliverables-toolbar :is(input, select) {
  box-sizing: border-box; min-height: 36px; padding: 7px 12px;
  font: 17px/1.3 'VT323', monospace; color: var(--ph-bright); text-shadow: none; outline: none;
  border: 1px solid var(--dlv-edge); border-radius: 8px; background: rgba(0,0,0,.18); box-shadow: inset 0 1px 3px rgba(0,0,0,.15);
  transition: border-color var(--t-fast) var(--ease-soft), box-shadow var(--t-fast) var(--ease-soft);
}
.term.dlv-win .deliverables-toolbar :is(input, select):hover { border-color: rgba(var(--ph-rgb),.38); }
.term.dlv-win .deliverables-toolbar :is(input, select):focus { border-color: var(--ph); box-shadow: 0 0 0 2px rgba(var(--ph-rgb),.1); }
.term.dlv-win .deliverables-toolbar input::placeholder { color: var(--text); opacity: .55; }
.term.dlv-win .deliverables-toolbar select option { background: var(--panel); color: var(--text); }

/* ---- THE LIBRARY ITSELF (self-driving lane 5 finish, 2026-10-08) — the cards, the summary strip, the kind chips, the project
   rail and the drawer still wore the 2026-08 type (9.5-12px, 2px pills, a glow on the open card). Same Workflow-panel material
   as the keys above: the 10px glass card (165deg phosphor lift over the panel), 8px chips at 34px, a recessed strip, nothing a
   Commander reads under 14px, matte — an open card is a brighter EDGE, never a glow. Scoped under .cfg.dlv so it outranks
   pipglass.css's older body.glass-demo .term .dlv-* pass. Shape and order are untouched: only the material changes. */
.term.dlv-win .cfg.dlv {
  --dlv-plate: rgba(var(--ph-rgb),.035);
  --dlv-hover: rgba(var(--ph-rgb),.1);
  --dlv-on: rgba(var(--ph-rgb),.13);
  --dlv-well: rgba(0,0,0,.18);
}
/* the summary strip: a recessed plate, one readable line, the decision count as the gold glass key */
.term.dlv-win .cfg.dlv .dlv-head-strip { padding: 8px 12px; margin-bottom: 10px; border: 1px solid var(--dlv-edge); border-radius: 10px;
  background: var(--dlv-well); box-shadow: inset 0 1px 3px rgba(0,0,0,.15); }
.term.dlv-win .cfg.dlv .dlv-sumline { font-size: 16px; opacity: 1; color: var(--text); letter-spacing: .3px; }
.term.dlv-win .cfg.dlv .dlv-sumline b { color: var(--ph-bright); font-weight: 400; }
.term.dlv-win .cfg.dlv .dlv-needs { min-height: 34px; padding: 6px 13px; font: 16px/1.15 'VT323', monospace; letter-spacing: .5px;
  color: var(--gold); border: 1px solid rgba(var(--gold-rgb),.55); border-radius: 8px; background: rgba(var(--gold-rgb),.1);
  box-shadow: var(--dlv-light); cursor: pointer; }
.term.dlv-win .cfg.dlv .dlv-needs:hover { background: rgba(var(--gold-rgb),.18); border-color: var(--gold); }
/* KIND chips = the panel's chip */
.term.dlv-win .cfg.dlv .dlv-kinds { gap: 7px; margin: 10px 0 6px; }
.term.dlv-win .cfg.dlv .dlv-chip { min-height: 34px; box-sizing: border-box; padding: 5px 12px; font-size: 16px; line-height: 1.15;
  letter-spacing: .5px; color: var(--ph); border: 1px solid var(--dlv-edge); border-radius: 8px; background: var(--refit-glass);
  box-shadow: var(--dlv-light); align-items: center; }
.term.dlv-win .cfg.dlv .dlv-chip span { font-size: 14px; opacity: .75; }
.term.dlv-win .cfg.dlv .dlv-chip:hover { border-color: rgba(var(--ph-rgb),.45); color: var(--ph-bright); background: var(--dlv-hover); }
.term.dlv-win .cfg.dlv .dlv-chip.on { background: var(--dlv-on); border-color: var(--ph); color: var(--ph-bright);
  box-shadow: var(--dlv-light), inset 0 -2px 0 rgba(var(--ph-rgb),.65); }
/* the PROJECT rail: list rows, the Build Library's hover/active fills */
.term.dlv-win .cfg.dlv .dlv-split { grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 14px; }
.term.dlv-win .cfg.dlv .dlv-rail { gap: 4px; }
.term.dlv-win .cfg.dlv .dlv-proj { min-height: 36px; box-sizing: border-box; align-items: center; padding: 7px 10px; font-size: 16px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; }
.term.dlv-win .cfg.dlv .dlv-proj:hover { border-color: rgba(var(--ph-rgb),.3); background: var(--dlv-hover); }
.term.dlv-win .cfg.dlv .dlv-proj.on { border-color: rgba(var(--ph-rgb),.45); background: var(--dlv-on); color: var(--ph-bright); box-shadow: var(--dlv-light); }
.term.dlv-win .cfg.dlv .dlv-proj-c { font-size: 14px; }
.term.dlv-win .cfg.dlv .dlv-proj-rev { font-size: 14px; letter-spacing: .3px; }
/* time buckets: a quiet label over a hairline */
.term.dlv-win .cfg.dlv .dlv-main { gap: 16px; }
.term.dlv-win .cfg.dlv .dlv-bucket { gap: 8px; }
.term.dlv-win .cfg.dlv .dlv-bucket h4 { font-size: 14px; letter-spacing: 2px; color: var(--ph-dim); }
.term.dlv-win .cfg.dlv .dlv-bucket h4::after { background: var(--dlv-edge); }
/* THE CARD: the 10px glass card */
.term.dlv-win .cfg.dlv .dlv-card { border: 1px solid var(--dlv-edge); border-radius: 10px;
  background: linear-gradient(165deg, rgba(var(--ph-rgb),.075), transparent 46%), color-mix(in srgb, var(--panel2) 88%, transparent);
  box-shadow: var(--dlv-light); transition: border-color var(--t-fast) var(--ease-soft); }
.term.dlv-win .cfg.dlv .dlv-card:hover { border-color: rgba(var(--ph-rgb),.38); }
.term.dlv-win .cfg.dlv .dlv-card:has(.dlv-head.on) { border-color: rgba(var(--ph-rgb),.55); box-shadow: var(--dlv-light); }
.term.dlv-win .cfg.dlv .dlv-head { gap: 10px; padding: 12px 14px; }
.term.dlv-win .cfg.dlv .dlv-head:hover, .term.dlv-win .cfg.dlv .dlv-head:focus-visible { background: rgba(var(--ph-rgb),.04); }
.term.dlv-win .cfg.dlv .dlv-head:focus-visible { box-shadow: inset 0 0 0 1px var(--ph); border-radius: 10px; }
.term.dlv-win .cfg.dlv .dlv-caret { font-size: 15px; line-height: 1.3; }
.term.dlv-win .cfg.dlv .dlv-headmain { gap: 7px; }
.term.dlv-win .cfg.dlv .dlv-title { font-size: 18px; font-weight: 400; letter-spacing: .5px; color: var(--ph-bright); }
.term.dlv-win .cfg.dlv .dlv-title.plain { font-size: 16px; color: var(--text); }
.term.dlv-win .cfg.dlv .dlv-sum { font-size: 16px; line-height: 1.35; opacity: .88; }
.term.dlv-win .cfg.dlv .dlv-facts { gap: 6px 10px; }
/* status + crew chips: small plates, readable */
.term.dlv-win .cfg.dlv .dlv-pill { font-size: 14px; letter-spacing: 1px; padding: 2px 8px; border-radius: 6px; border-color: currentColor; }
.term.dlv-win .cfg.dlv .dlv-who { font-size: 14px; letter-spacing: .5px; padding: 1px 8px; border-radius: 6px; border-color: var(--dlv-edge); }
.term.dlv-win .cfg.dlv .dlv-who.lead { background: var(--dlv-on); color: var(--ph-bright); border-color: rgba(var(--ph-rgb),.55); font-weight: 400; }
.term.dlv-win .cfg.dlv .dlv-meta { font-size: 14px; letter-spacing: .4px; }
/* THE DRAWER */
.term.dlv-win .cfg.dlv .dlv-more { border-top: 1px solid var(--dlv-edge); padding: 12px 14px 14px; gap: 12px; }
.term.dlv-win .cfg.dlv .dlv-sec h5 { font-size: 14px; letter-spacing: 1.6px; }
.term.dlv-win .cfg.dlv .dlv-quote { font-size: 16px; line-height: 1.4; border-left: 2px solid rgba(var(--ph-rgb),.35); padding-left: 10px; }
.term.dlv-win .cfg.dlv .dlv-said { font-size: 16px; line-height: 1.4; padding: 8px 10px; border: 1px solid var(--dlv-edge); border-radius: 8px;
  background: var(--dlv-well); box-shadow: inset 0 1px 3px rgba(0,0,0,.15); }
.term.dlv-win .cfg.dlv .dlv-files { gap: 6px; }
.term.dlv-win .cfg.dlv .dlv-fname { font-size: 16px; }
.term.dlv-win .cfg.dlv .dlv-fsize, .term.dlv-win .cfg.dlv .dlv-fmain { font-size: 14px; }
.term.dlv-win .cfg.dlv .dlv-none { font-size: 15px; }
.term.dlv-win .cfg.dlv .dlv-hero { border-color: rgba(var(--gold-rgb),.6); color: var(--gold); }
/* the empty library */
.term.dlv-win .cfg.dlv .dlv-empty { padding: 22px 16px; font-size: 16px; letter-spacing: 1.2px; border: 1px dashed rgba(var(--ph-rgb),.28);
  border-radius: 10px; background: var(--dlv-well); }
.term.dlv-win .cfg.dlv .dlv-empty span { font-size: 16px; line-height: 1.4; opacity: .7; }

/* ---- CLEAR + FOLD (2026-10-10, Andrew: "users can wipe them out if done") — the library's own glass, nothing new:
   a time heading's CLEAR is a quiet key riding its hairline; TO REVIEW's heading is the fold toggle and carries CLEAR ALL. */
.term.dlv-win .cfg.dlv .dlv-bucket h4 .dlv-bclear { order: 2; flex: 0 0 auto; min-height: 28px; padding: 3px 10px; box-sizing: border-box;
  font: 14px/1.1 'VT323', monospace; letter-spacing: 1px; color: var(--ph-dim); border: 1px solid var(--dlv-edge); border-radius: 8px;
  background: transparent; box-shadow: none; text-shadow: none; cursor: pointer; }
.term.dlv-win .cfg.dlv .dlv-bucket h4 .dlv-bclear:hover:not(:disabled) { color: var(--ph-bright); border-color: rgba(var(--ph-rgb),.45); background: var(--dlv-hover); }
.term.dlv-win .cfg.dlv :is(.dlv-bclear, #dl-clear-shown, .ob-clearall).armed { color: var(--gold); border-color: var(--gold); background: rgba(var(--gold-rgb),.1); }
.term.dlv-win .cfg.dlv .dlv-review .dlv-review-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* the toggle is ONE line — '▾ TO REVIEW 3' — that never breaks (org pass 10-14, P12 polish): what the list holds is the dim
   .dlv-review-note under the heading, not a paragraph hanging beside a 'TO' / 'REVIEW' label column */
.term.dlv-win .cfg.dlv .dlv-review-tog { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; margin: 0; padding: 4px 2px;
  font: inherit; letter-spacing: inherit; text-align: left; color: inherit; border: 0; border-radius: 6px; background: none; box-shadow: none; cursor: pointer; }
.term.dlv-win .cfg.dlv .dlv-review-tog:hover { color: var(--ph-bright); }
.term.dlv-win .cfg.dlv .dlv-review-tog .dlv-review-n { font-variant-numeric: tabular-nums; opacity: .75; }
.term.dlv-win .cfg.dlv .dlv-review .dlv-review-note { margin: -2px 0 12px; font-size: 15px; line-height: 1.45; letter-spacing: .2px; }
.term.dlv-win .cfg.dlv .dlv-review .dlv-review-note[hidden] { display: none; }
.term.dlv-win .cfg.dlv .dlv-review-tog:focus-visible { outline: 1px solid var(--ph); outline-offset: 2px; }
.term.dlv-win .cfg.dlv .dlv-review .ob-showall { margin-top: 10px; }
.term.dlv-win .cfg.dlv .dlv-clean-list summary { cursor: pointer; font-size: 15px; letter-spacing: 1px; color: var(--ph); margin: 6px 0; }
.term.dlv-win .cfg.dlv .dlv-clean-list ul { max-height: 220px; overflow: auto; }
/* the glass keys above set display:inline-flex, which beats the [hidden] attribute — a hidden key/list must stay hidden */
.term.dlv-win .cfg.dlv :is(.bb, .ob-list, .ob-row, .ob-doors, .dlv-bclear)[hidden] { display: none; }

/* ---- MORE (org pass 10-14, P13): REFRESH + DELETE FAILED & DISCARDED RECORDS fold behind one quiet glass key at the end of the
   toolbar. It opens INLINE in the toolbar row (never a popover); the keys inside are the window's glass keys above. */
/* MORE never moves out from under the cursor (P13 polish). It sits right after CLEAR ALL/THESE — no longer pushed to the far
   right, from where the opened (wider) fold wrapped back to the row's start. The fold fills the rest of that row, so REFRESH and
   DELETE… open to MORE's right, or on a line under it inside the fold; the row's other keys top-align so they stay put while the
   fold grows. MORE wears the window's normal key ink: the dimmer summary read as disabled. */
.term.dlv-win .cfg.dlv .deliverables-toolbar { align-items: flex-start; }
.term.dlv-win .cfg.dlv .dlv-tools { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 0; min-width: fit-content; }
.term.dlv-win .cfg.dlv .dlv-tools > summary { list-style: none; }
.term.dlv-win .cfg.dlv .dlv-tools > summary::-webkit-details-marker { display: none; }
.term.dlv-win .cfg.dlv .dlv-tools[open] > summary { color: var(--ph-bright); border-color: rgba(var(--ph-rgb),.45); }
.term.dlv-win .cfg.dlv .dlv-tools-keys { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.term.dlv-win .cfg.dlv .dlv-tools-car { font-size: 14px; }
/* FILES rows (org pass 10-14, P24): the shared folder / copy-path keys are glyph-only glass keys at the row's END, so the file
   NAME keeps the row's width (labelled keys beside OPEN squeezed every name to nothing and pushed the size off the card). The
   name holds the row's free width. */
/* (P24 polish 2) every row is ONE grid line — OPEN · name · size · keys — so no key ever drops onto a line of its own: 'the main
   one' rides UNDER its file name (the name's own second line), the size sits in a right-hand column ending right before the
   keys on every row, and a name too long for its column wraps inside that column instead of pushing
   the size or the keys off the row. */
.term.dlv-win .cfg.dlv .dlv-files li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 8px; row-gap: 0;
  align-items: center; }
.term.dlv-win .cfg.dlv .dlv-files li > .bb { grid-column: 1; grid-row: 1; }
.term.dlv-win .cfg.dlv .dlv-files .dlv-fname { grid-column: 2; grid-row: 1; white-space: normal; overflow-wrap: anywhere; }
.term.dlv-win .cfg.dlv .dlv-files .dlv-fname.off { grid-column: 1 / 3; }
.term.dlv-win .cfg.dlv .dlv-files .dlv-fsize { grid-column: 3; grid-row: 1; white-space: nowrap; text-align: right; }
.term.dlv-win .cfg.dlv .dlv-files .dlv-fmain { grid-column: 2 / 4; grid-row: 2; white-space: nowrap; line-height: 1.1; }
.term.dlv-win .cfg.dlv .dlv-floc { display: inline-flex; gap: 6px; grid-column: 4; grid-row: 1; }
.term.dlv-win .cfg.dlv .dlv-floc:empty { display: none; }
.term.dlv-win .cfg.dlv .dlv-floc .dlv-loc-key { margin: 0; min-width: 34px; padding: 6px 8px; color: var(--ph-dim); opacity: 1; }
.term.dlv-win .cfg.dlv .dlv-floc .dlv-loc-key .fb-label { display: none; }
.term.dlv-win .cfg.dlv .dlv-floc .dlv-loc-key.fb-live .fb-label { display: inline; margin-left: 0; color: var(--ph-bright); }
