/* GUI v2 — Stream C (AI, Files, People, Intelligence Fleet, Network, Updates, Activity, Plain). Tokens only; no raw hex.
   Loads after v2.css. Every rule here is scoped to a screen class (.v2-*) or to
   a component these screens own, so nothing leaks into another stream's screen. */

/* ── shared: the disclosure that holds long honest prose (never deleted) ── */
.v2-disc {
  margin-top: var(--s-8);
  border-top: 1px solid var(--hairline);
}
.v2-disc > summary {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: var(--hit); padding: var(--s-2) 0;
  cursor: pointer; list-style: none;
  font-size: var(--t-lead); font-weight: var(--w-medium); color: var(--text);
}
.v2-disc > summary::-webkit-details-marker { display: none; }
.v2-disc > summary::after {
  content: ""; width: 8px; height: 8px; margin-left: auto; flex: none;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform var(--dur-2) var(--ease);
}
.v2-disc[open] > summary::after { transform: rotate(-135deg); }
.v2-disc > .setgroup, .v2-disc > .list { margin-top: var(--s-2); margin-bottom: var(--s-2); }
.v2-disc > .hint { margin: 0 0 var(--s-2); }
@media (prefers-reduced-motion: reduce) { .v2-disc > summary::after { transition: none; } }

.v2-foot { margin: var(--s-3) 0 0; max-width: var(--read-max); line-height: var(--lh-body); }
.ph + .foot { margin: calc(-1 * var(--s-6)) 0 var(--s-6); max-width: var(--read-max); }

/* The engineers' disclosure: one per page, quiet. */
.v2-tech { margin-top: var(--s-10); }
.v2-tech .tech-body h4 { margin: var(--s-4) 0 var(--s-2); font-size: var(--t-body); font-weight: var(--w-bold); color: var(--text); }
.v2-tech .tech-body h4:first-child { margin-top: var(--s-2); }

/* Stat values that could not be read keep the words, at a readable size. */
.v2-band .value.words { font-size: var(--t-title-3); font-weight: var(--w-medium); letter-spacing: 0; }
.v2-band .value.is-local { color: var(--ok); }
.v2-band .value.is-amber { color: var(--warn); font-size: var(--t-title-3); font-weight: var(--w-medium); letter-spacing: 0; }
.v2-band .stat .foot { overflow-wrap: anywhere; }

/* List-row trailing controls never squeeze the words to one per line. */
.v2-ai .lrow .trail, .v2-files .lrow .trail { flex-wrap: wrap; justify-content: flex-end; }

/* ── AI ───────────────────────────────────────────────────────────────── */
.v2-models { align-items: stretch; }
.v2-model { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.v2-model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.v2-model-head h3 { margin: 0; }
.v2-model .desc, .v2-model .meta { margin: 0; }
.v2-model-acts { margin-top: auto; padding-top: var(--s-4); }
/* The pane is narrower than a page: three cards become two, then one. */
.split .pane .v2-models { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 1280px) { .v2-models { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* ── Files ────────────────────────────────────────────────────────────── */
/* The search field is an INPUT, so it has the input's shape (audit D-49,
   RULEBOOK §4 Input): 44px+, --r-sm, --control-border, no pill, no shadow, no
   button inside it — Enter searches. */
.v2-search {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: var(--hit-lg); padding: 0 var(--s-4);
  background: var(--surface); border: 1px solid var(--control-border);
  border-radius: var(--r-sm); margin: 0;
}
.v2-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.v2-search-ico { color: var(--text-3); display: grid; place-items: center; flex: none; }
.v2-search-ico svg { width: 20px; height: 20px; }
.v2-search input[type="search"] {
  flex: 1; min-width: 0; border: 0 !important; background: transparent !important;
  font-size: var(--t-lead); padding: 0; outline: none; color: var(--text);
}
.v2-search .btn { flex: none; }
#search-out:not(:empty) { margin-top: var(--s-4); }
.v2-files .tablewrap { margin-top: var(--s-3); }
.v2-files .crumbs { min-height: var(--hit); display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-1); }
.v2-files .crumbs a { min-height: var(--hit); display: inline-flex; align-items: center; }
/* a short folder name ("global", in Clyde Canon › global › memory) was a 37 px
   target: touch-targets R-K2 on the long-name fixture. The link is never
   narrower than a finger; the word stays where it was. */
.v2-files .crumbs a { min-width: var(--hit); justify-content: center; }
/* ⛔ GUI sweep 2026-10-06: app.css draws the crumb's underline as a
   border-bottom, and on a 44 px flex link that border sits at the BOTTOM OF
   THE TARGET — three loose hairlines floating ~12 px under the folder names.
   The underline belongs to the word, so it is a text decoration here. */
.v2-files .crumbs a { border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--alu-soft); text-underline-offset: 3px; }
.v2-files .crumbs a:hover { text-decoration-color: currentColor; }
/* the one-line summary sits beside the section heading, not as three cards */
.v2-files .section > header h2 { flex: none; }
.v2-files .section > header .files-summary { margin-right: auto; margin-left: var(--s-4); font-size: var(--t-small); color: var(--text-2); font-variant-numeric: tabular-nums; }
.v2-files .files-canon-foot { margin-top: var(--s-3); }
.v2-files .files-canon-foot .foot { margin: 0; }
/* --s-4, not --s-1: the "Learn more" link above now has a --hit target (N-03), and the two must not overlap */
.v2-files .files-about { margin-top: var(--s-4); max-width: var(--read-max); }
.v2-files .files-about > summary { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--hit); cursor: pointer; list-style: none; font-size: var(--t-small); color: var(--text-2); }
.v2-files .files-about > summary::-webkit-details-marker { display: none; }
.v2-files .files-about > summary .chev { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease); }
.v2-files .files-about[open] > summary .chev { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .v2-files .files-about > summary .chev { transition: none; } }
.v2-files .files-about > p { margin: 0 0 var(--s-2); font-size: var(--t-small); color: var(--text-2); line-height: var(--lh-body); }
.v2-files .files-how { margin-top: var(--s-10); }
.v2-files .foot a, .v2-files .files-how a { color: var(--text-2); }
/* FOUNDER 2026-10-05 07:34 — "save a copy going off page" on a folder of long
   canon names. The name wraps (anywhere: the names have no spaces) and takes
   the slack; the actions are one unbroken group at the row's end. */
.v2-files .files-list td.files-name { white-space: normal; overflow-wrap: anywhere; width: 100%; }
.v2-files .files-hits td.files-name { white-space: normal; overflow-wrap: anywhere; min-width: 10ch; }
.v2-files .files-list td.files-acts { white-space: nowrap; text-align: right; }
.v2-files .files-acts-in { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--s-2); }
.v2-files .files-list .files-meta-m { display: none; }
@media (max-width: 760px) {
  .v2-files .files-list .files-col-meta { display: none; }
  .v2-files .files-list .files-meta-m:not(:empty) { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--text-2); }
  .v2-files .files-list td { padding: var(--s-3); }
  .v2-files .files-acts-in { flex-direction: column; align-items: flex-end; gap: 0; }
  .v2-files .section > header { flex-wrap: wrap; }
  .v2-files .section > header .files-summary { flex-basis: 100%; margin: var(--s-1) 0 0; }
}

/* ── People ───────────────────────────────────────────────────────────── */
.v2-people .peer-notice .banner { margin-top: var(--s-4); }
.v2-people .banner details > div { margin-top: var(--s-2); line-height: var(--lh-body); max-width: var(--read-max); }

/* ── Intelligence Fleet ───────────────────────────────────────────────── */
/* The picture is drawn inside the Settings pane, which is far narrower than
   the page it was designed for. It sizes to its CONTAINER, not the viewport:
   side by side with a slim link column when there is room, stacked (the same
   facts, no lines to mis-draw) when there is not. */
.v2-fleet .netmap { margin-top: 0; container-type: inline-size; container-name: fleet; }
.v2-fleet .netmap-count { margin-top: 0; font-size: var(--t-lead); }
.v2-fleet .node { max-width: none; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.v2-fleet .node.self { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.v2-fleet .node-caps span.k { color: var(--text-3); }
.v2-fleet .netmap-key { font-size: var(--t-caption); }

@container fleet (max-width: 979px) {
  .netmap-grid { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); }
  .node { padding: var(--s-4); }
  .node-head { flex-wrap: wrap; }
  .node-title { flex-basis: calc(100% - 46px); }
  .node-head > .tag { margin-left: 46px; margin-top: 0; }
  .node-caps { grid-template-columns: 1fr; row-gap: 2px; }
  .node-caps span.k { margin-top: var(--s-2); }
  .node-caps span.k:first-child { margin-top: 0; }
  .netmap-lines .link-label { font-size: var(--t-caption); }
}
@container fleet (max-width: 639px) {
  .netmap-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); }
  .netmap-self, .netmap-peers { grid-column: 1; }
  .netmap-lines { display: none; }
}
.v2-manage .setgroup { margin-top: var(--s-2); }

/* ── Network / Updates / Activity ─────────────────────────────────────── */
.v2-net .setrow > .state, .v2-updates .setrow > .state { flex: none; }
.v2-activity .chips { margin-bottom: var(--s-6); }

/* ── Plain (the one screen allowed to look like a tool) ───────────────── */
.plain-lede { margin: calc(-1 * var(--s-4)) 0 var(--s-6); max-width: var(--read-max); color: var(--text-2); line-height: var(--lh-body); }
