/* ==========================================================================
   FEATURES — the owner's feature tracker (features.html, 2 Nov 2026).

   Additions only, on the Office's own system, as prospects.css is: every
   colour is office.css's token (--o-*), which the pro theme points to the
   light sheet and mode-switch.css points to the dark one, so this sheet has
   no light colour of its own and no dark side to write. Every status is the
   Workstation's dot and word (.st-st); every drawer .ofc-drawer.

   Scoped under #office.ft-page.
   ========================================================================== */

/* ---------- the whole picture --------------------------------------------------- */
#office .ft-top { display: flex; flex-direction: column; gap: 16px; width: 100%; min-width: 0; margin: 0 0 24px; }
#office .ft-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 24px; margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--o-line); }
#office .ft-stats .ofc-stat { min-width: 0; max-width: none; }
#office .ft-stats .ofc-stat__s { min-height: 0; }
#office .ft-stat--lead .ofc-stat__n { font-weight: 400; }
#office .ft-next h2 { margin: 0 0 12px; }
#office .ft-next__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; padding: 0; list-style: none; }
#office .ft-next__i { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px 0 0; border-top: 1px solid var(--o-line); }
#office .ft-next__t { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--o-text); font: 650 var(--o-t-md)/1.35 var(--body); overflow-wrap: anywhere; }
#office .ft-next__k { flex: none; padding: 0 4px; border-radius: var(--o-r-sm); background: var(--o-inset); color: var(--o-dim); font: 600 var(--o-t-xs)/1.6 var(--body); font-variant-numeric: tabular-nums; }
#office .ft-next__m, #office .ft-next__r { margin: 0; color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 500; line-height: 1.45; }
#office .ft-note { margin: 12px 0 0; color: var(--o-faint); font-size: var(--o-t-label); font-weight: 500; line-height: 1.45; max-width: 90ch; }
#office .ft-inline { font-weight: 600; }
#office .ft-loading { margin: 0 0 16px; }

/* ---------- the list --------------------------------------------------------------- */
#office .ft-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 16px; margin: 0 0 8px; }
#office .ft-filters .ofc-mode { margin: 0; }
#office .ft-field { display: grid; gap: 4px; color: var(--o-faint); font-size: var(--o-t-label); font-weight: 550; }
#office .ft-field select.ofc-input { min-width: 11rem; }
#office .ft-field--q { flex: 1 1 14rem; max-width: 22rem; }
#office .ft-field--q .ofc-input { width: 100%; }
#office .ft-count { margin: 0 0 8px; color: var(--o-faint); font-size: var(--o-t-label); font-weight: 500; }
#office .ft-table { table-layout: fixed; width: 100%; }
#office .ft-table th:nth-child(1) { width: 21%; }
#office .ft-table th:nth-child(2) { width: 14%; }
#office .ft-table th:nth-child(3) { width: 15%; }
#office .ft-table th:nth-child(4) { width: 8%; }
#office .ft-table th:nth-child(5) { width: 20%; }
#office .ft-table th:nth-child(6) { width: 9%; }
#office .ft-table th:nth-child(7) { width: 13%; }
#office .ft-table td { vertical-align: top; overflow-wrap: anywhere; }
#office .ft-table .st-st { white-space: normal; align-items: baseline; }
#office .ft-table .st-st::before { transform: translateY(-1px); }
#office .ft-sort { display: inline-flex; align-items: baseline; gap: 2px; min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#office .ft-sort:hover { color: var(--o-text); text-decoration: underline; }
#office .ft-sort:focus-visible { outline: 1px solid var(--focus-edge); outline-offset: 2px; border-radius: var(--tk-r-2xs); }  /* the lit edge (owner rule 6) */
#office .ft-grp th { padding: 16px 12px 8px; border-bottom: 1px solid var(--o-line-2); background: var(--o-bg); color: var(--o-text); font: 650 var(--o-t-md)/1.3 var(--body); text-align: left; }
#office .ft-grp__n { margin-left: 8px; color: var(--o-faint); font-size: var(--o-t-label); font-weight: 500; }
#office .ft-open { font-weight: 650; text-align: left; }
#office .ft-line, #office .ft-sub { display: block; margin-top: 2px; color: var(--o-faint); font-size: var(--o-t-label); font-weight: 500; line-height: 1.4; }
#office .ft-warn { color: var(--o-bad); }
#office .ft-next-t { display: block; color: var(--o-text); }
#office .ft-rivals { color: var(--o-dim); font-size: var(--o-t-label); }

/* ---------- the depth bar: the track, how far, and the bar's line at 84% ---------------- */
#office .ft-depth { display: grid; gap: 4px; min-width: 0; }
#office .ft-depth__bar { position: relative; display: block; width: 12rem; max-width: 100%; height: 12px; }
#office .ft-depth__bar::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 4px; border-radius: var(--tk-r-2xs); background: var(--o-line-2); }
#office .ft-depth__fill { position: absolute; left: 0; top: 4px; height: 4px; width: calc(var(--fill, 0) * 100%); border-radius: var(--tk-r-2xs); background: var(--o-text); }
#office .ft-depth__line { position: absolute; left: 84%; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--o-text); }
#office .ft-depth__bar[data-state="bar"] .ft-depth__fill { background: var(--o-ok-mark, var(--o-ok)); }
#office .ft-depth__bar[data-state="none"] .ft-depth__line { background: var(--o-line-3); }
#office .ft-depth__t { color: var(--o-text); font-size: var(--o-t-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
#office .ft-depth--big { margin: 0 0 16px; }
#office .ft-depth--big .ft-depth { grid-template-columns: minmax(0, 24rem) auto; align-items: center; gap: 12px; }
#office .ft-depth--big .ft-depth__bar { max-width: none; }

/* ---------- one feature ------------------------------------------------------------------ */
#office dialog.ofc-drawer.ft-one { width: min(46rem, 100vw); }
#office .ft-one__lede { margin: 0 0 8px; }
#office .ft-one__line { margin: 0 0 16px; color: var(--o-dim); font-size: var(--o-t-md); line-height: 1.5; }
#office .ft-h3 { margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid var(--o-line); color: var(--o-text); font: 650 var(--o-t-md)/1.3 var(--body); }
#office .ft-kv { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 8px 16px; margin: 0 0 12px; font-size: var(--o-t-sm); line-height: 1.5; }
#office .ft-kv dt { color: var(--o-faint); font-weight: 550; }
#office .ft-kv dd { margin: 0; min-width: 0; color: var(--o-text); overflow-wrap: anywhere; }
#office .ft-next1 { margin: 0 0 4px; color: var(--o-text); font: 650 var(--o-t-md)/1.4 var(--body); }
#office .ft-sub--k { margin-top: 12px; color: var(--o-dim); font-weight: 600; }
#office .ft-list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0 0 0 16px; color: var(--o-text); font-size: var(--o-t-sm); line-height: 1.5; }
#office .ft-list li { min-width: 0; overflow-wrap: anywhere; }
#office .ft-list--small { color: var(--o-dim); font-size: var(--o-t-label); }
#office .ft-list li::marker { color: var(--o-faint); }
#office .ft-list--plain { padding: 0; list-style: none; }
#office .ft-w { display: inline-block; padding: 0 4px; border-radius: var(--o-r-sm); background: var(--o-inset); color: var(--o-dim); font: 600 var(--o-t-xs)/1.6 var(--body); white-space: nowrap; }
#office .ft-w--hard { background: var(--o-warn-bg); color: var(--o-warn-ink); }
/* How a met was proven (4 Nov): outlined, so it reads as a fact about the proof, not a second weight; only what runs for
   real takes the ok tone. */
#office .ft-w--level { background: transparent; box-shadow: inset 0 0 0 1px var(--o-line-2); }
#office .ft-w--level:is([data-level="live"], [data-level="pilot"], [data-level="sandbox"]) { color: var(--o-ok); }
#office .ft-crit { display: grid; margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--o-line); }
#office .ft-crit__i { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--o-line); }
#office .ft-crit__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
#office .ft-crit__t { margin: 0; color: var(--o-text); font-size: var(--o-t-sm); font-weight: 550; line-height: 1.5; }
#office .ft-crit__m, #office .ft-crit__ev { margin: 0; color: var(--o-dim); font-size: var(--o-t-label); line-height: 1.5; }
#office .ft-crit__mk { color: var(--o-faint); font-weight: 600; }
#office .ft-code { padding: 0 4px; border-radius: var(--o-r-sm); background: var(--o-inset); color: var(--o-text); font: 500 0.92em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
#office .ft-parts { display: grid; margin: 8px 0 0; border-top: 1px solid var(--o-line); }
#office .ft-part { border-bottom: 1px solid var(--o-line); }
#office .ft-part > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; cursor: pointer; list-style-position: inside; }
#office .ft-part > summary:focus-visible { outline: 1px solid var(--focus-edge); outline-offset: 2px; }
#office .ft-part__t { flex: 1 1 12rem; min-width: 0; color: var(--o-text); font-size: var(--o-t-sm); font-weight: 600; }
#office .ft-part__id { color: var(--o-faint); font-size: var(--o-t-label); font-variant-numeric: tabular-nums; }
#office .ft-part > .ft-kv { margin: 0 0 12px; }
#office .ft-task__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
#office .ft-task__t { flex: 1 1 12rem; min-width: 0; }
#office .ft-history li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0 8px; }
#office .ft-history .ft-sub { grid-column: 2; }
#office .ft-history__d { color: var(--o-faint); font-variant-numeric: tabular-nums; }
#office .ft-sources a { color: var(--o-dim); }

/* ---------- a laptop: the figures in a row of three over two ---------------------------- */
@media (max-width: 75rem) {
  #office .ft-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ---------- a phone: each feature a card, the filters in a column --------------------------- */
@media (max-width: 40rem) {
  #office .ft-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  #office .ft-stats .ofc-stat:first-child { grid-column: 1 / -1; }
  #office .ft-next__list { grid-template-columns: minmax(0, 1fr); }
  #office .ft-filters { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  #office .ft-filters .ofc-mode { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  #office .ft-filters .ofc-mode::-webkit-scrollbar { display: none; }
  #office .ft-filters .ofc-mode__b { flex: none; }
  #office .ft-field select.ofc-input, #office .ft-field--q { min-width: 0; max-width: none; width: 100%; }
  #office .ft-table { table-layout: auto; }
  #office .ft-table th:nth-child(n) { width: auto; }
  #office .ft-grp th { display: block; padding: 16px 0 8px; background: none; }
  #office .ft-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  #office .ft-kv dd { margin-bottom: 8px; }
}

/* ---------- the plain (3 Nov 2026): every feature a small core on a wide plain, its distance from
   the one core at the centre how far it still is from its bar. Office tokens only, but the core's
   lime, which is tkati's mark of what is live. ------------------------------------------------- */
#office .ft-plain-card { margin: 0 0 24px; }
#office .ft-plain-card h2 { margin: 0 0 4px; }
#office .ft-plain-card .ft-note { margin: 0 0 8px; }
#office .ft-plain { width: 100%; min-width: 0; }
#office .ft-plain__svg { display: block; width: 100%; height: auto; overflow: visible; }
#office .ft-plain__ground circle { fill: var(--o-faint); }
#office .ft-plain__ring { fill: none; stroke: var(--o-line-2); stroke-width: 1; }
#office .ft-plain__ring--bar { stroke: var(--o-line-4, var(--o-line-2)); stroke-dasharray: 2 4; }
#office .ft-plain__rl { fill: var(--o-faint); font: 500 11px/1 var(--body); }
#office .ft-plain__lines line { stroke: var(--o-ok); stroke-width: 1; transition: opacity .8s ease .9s; }
#office .ft-plain:not(.is-in) .ft-plain__lines line { opacity: 0 !important; }
#office .ft-plain__glow { fill: color-mix(in srgb, var(--tk-lime) 12%, var(--o-bg)); }
#office .ft-plain__heart { fill: var(--tk-lime); }
#office .ft-plain__cl { fill: var(--o-text); font: 650 13px/1 var(--body); letter-spacing: .01em; }
#office .ft-plain__f { cursor: pointer; outline: none; transform: translate(var(--dx), var(--dy)); transition: transform var(--tk-dur-core) var(--tk-ease) calc(var(--i) * 18ms); }
#office .ft-plain.is-in .ft-plain__f { transform: none; }
#office .ft-plain__hit { fill: transparent; }
#office .ft-plain__dot { fill: var(--o-text); }
#office .ft-plain__f.is-nobar .ft-plain__dot { fill: none; stroke: var(--o-dim); stroke-width: 1.4; }
#office .ft-plain__f.is-moving .ft-plain__dot { fill: var(--o-ok); }
#office .ft-plain__fl { fill: var(--o-dim); font-family: var(--body); font-weight: 550; paint-order: stroke; stroke: var(--o-bg); stroke-width: 3px; stroke-linejoin: round; }
#office .ft-plain__f:hover .ft-plain__fl, #office .ft-plain__f:focus-visible .ft-plain__fl { fill: var(--o-text); }
#office .ft-plain__f:focus-visible .ft-plain__hit { stroke: var(--focus-edge, var(--o-text)); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) {
  #office .ft-plain__f { transform: none; transition: none; }
  #office .ft-plain__lines line { transition: none; }
  #office .ft-plain:not(.is-in) .ft-plain__lines line { opacity: inherit; }
}
#office .ft-plain__f.is-quiet:hover .ft-plain__dot, #office .ft-plain__f.is-quiet:focus-visible .ft-plain__dot { fill: var(--o-text); }
@media (max-width: 720px) {
  #office .ft-plain__fl { display: none; }
  #office .ft-plain__f.is-moving .ft-plain__fl { display: inline; }
}
