/* ── Admin Organism ownership page, in the poster face ──
 * @file admin-organism-ownership.css
 * @author Jouni Miikki
 * SPDX-License-Identifier: MIT
 * @description The operator's break-glass page (design canvas "AIMEAT Admin Organism Ownership"):
 *   the organisms as poster rows with the state of every owner as a chip, the find field and its
 *   four filter chips, the opened organism with its roster and the picker that names the new owner,
 *   and the body of the question the cross-account write asks first. The frame, the sections, the
 *   metric rows, the numeral strip, the dashed box and the doors come from admin.css and
 *   organism.css; only what this page adds lives here. Every value is a theme.css token, so the page
 *   flips with the theme.
 * @version-history
 *   2026-09-13 -- Compose shared numeral cuts; normalize extra sizes under brief 10.7.
 *   2026-09-13 -- Compose shared aside cuts; normalize one-off geometry under brief 10.7.
 *   v1.2.0 — 2026-09-13 — Own the existing people-column heading alignment.
 *   v1.1.0 — 2026-09-13 — The page's own copy of the poster dialog leaves; /css/dialog.css draws it for
 *     every dialog now.
 *   v1.0.0 — 2026-09-12 — Initial. Replaces the .adm-oo-row / .adm-oo-card rules that lived in
 *     admin.css for the one-field lookup this page no longer is.
 */

/* A strip cell's second line wraps rather than truncates. */
.adm-oo .og-strip small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
.adm-oo .adm-mrow--last { border-bottom: 0; }
/* The door that sits in a metric row's value column reads at the value's size. */
.adm-oo .adm-mval .adm-oo-act { font-size: .76rem; }
.adm-oo-warn { margin: 0 0 14px; }

/* ── 02: the organisms ────────────────────────────────────────────────────────────────────── */
.adm-oo-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) 15rem 4.5rem 6.5rem 10rem;
  gap: 0 18px;
  align-items: center;
  padding: 8px 7px;
  margin: 0 -7px;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  box-sizing: border-box;
}
.adm-oo-row--head { border-bottom: 0; padding-bottom: 5px; min-height: 0; }
.adm-oo-row--head div { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.adm-oo-row--head .adm-oo-n { font-family: inherit; font-size: .66rem; color: var(--accent); }
.adm-oo-people-head { text-align: right; }

.adm-oo-n { text-align: right; margin-right: 0; }
.adm-oo-nm { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.adm-oo-name {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: .97rem; font-weight: 800; color: var(--text); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-oo-name:hover { color: var(--accent); }
.adm-oo-nm em { font-style: normal; font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); flex: none; }
.adm-oo-held { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.adm-oo-chip {
  font-family: var(--font-mono); font-weight: 500; font-size: .66rem; line-height: 1.6;
  padding: 1px 6px; border: 2px solid var(--border); color: var(--text-dim); white-space: nowrap;
}
/* An owner who cannot act is the thing this page is about, so it is the one thing drawn in coral. */
.adm-oo-chip--bad { border-color: var(--accent); color: var(--accent); }
.adm-oo-num { font-family: var(--font-mono); font-size: .82rem; font-weight: 500; color: var(--text); text-align: right; }
.adm-oo-day { font-family: var(--font-mono); font-size: .75rem; color: var(--text-dim); white-space: nowrap; }
.adm-oo-acts-cell { display: flex; gap: 14px; justify-content: flex-end; }
.adm-oo-act {
  background: none; border: 0; border-bottom: 2px solid var(--text); padding: 2px 0 1px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
}
.adm-oo-act:hover { color: var(--accent); border-bottom-color: var(--accent); }
.adm-oo-act--hot { color: var(--accent); border-bottom-color: var(--accent); }
.adm-oo-act--hot:hover { color: var(--text); border-bottom-color: var(--text); }
/* Every row carries a door here, so nothing is revealed on hover; hover is only the reading aid. */
.adm-oo-row:hover, .adm-oo-row.is-open { background: var(--card-bg); box-shadow: inset 3px 0 0 var(--sun); }
.adm-oo-row.is-stuck .adm-oo-name { color: var(--accent); }

.adm-oo-find { display: flex; align-items: flex-end; gap: 32px; margin-bottom: 16px; flex-wrap: wrap; }
.adm-oo-fld { flex: 0 1 460px; min-width: 220px; }
.adm-oo-lbl { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.adm-oo-input {
  width: 100%; box-sizing: border-box; background: transparent; border: 0; border-bottom: 3px solid var(--text);
  padding: 6px 0; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--text); outline: none;
}
.adm-oo-input::placeholder { color: var(--text-dim); font-weight: 600; }
.adm-oo-input:focus { border-bottom-color: var(--accent); }
.adm-oo-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
.adm-oo-fchip {
  background: none; border: 2px solid var(--border); padding: 2px 8px; cursor: pointer;
  font-family: var(--font-mono); font-weight: 500; font-size: .68rem; line-height: 1.6; color: var(--text-dim);
}
.adm-oo-fchip:hover { border-color: var(--text); color: var(--text); }
.adm-oo-fchip.on { background: var(--sun); border-color: var(--on-sun); color: var(--on-sun); }
.adm-oo-more { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-top: 14px; }
.adm-oo-more span { font-family: var(--font-mono); font-size: .75rem; color: var(--text-dim); }

/* ── 03: the organism that is open ────────────────────────────────────────────────────────── */
.adm-oo-id { margin: -4px 0 16px; font-family: var(--font-mono); font-size: .75rem; color: var(--text-dim); }
.adm-oo-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px 44px; }
.adm-oo-sub { font-family: var(--font-poster); font-weight: var(--font-poster-weight, 400); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.adm-oo-kv { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0 18px; margin: 0; align-items: baseline; }
.adm-oo-kv dt { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: 7px 0; }
.adm-oo-kv dd { margin: 0; padding: 7px 0; font-size: .92rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-oo-kv dd em { font-style: normal; font-family: var(--font-mono); font-size: .72rem; font-weight: 400; color: var(--text-dim); }

.adm-oo-tr { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem 5rem 6rem; gap: 0 14px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.adm-oo-tr--head { border-bottom: 0; padding-bottom: 4px; }
.adm-oo-tr--head div { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.adm-oo-tr b { font-size: .9rem; font-weight: 800; color: var(--text); }
.adm-oo-tr.is-off b { color: var(--text-dim); }
.adm-oo-role { font-family: var(--font-mono); font-size: .74rem; color: var(--text); }
.adm-oo-can { font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); }
.adm-oo-can.no { color: var(--accent); }
.adm-oo-note { margin: 10px 0 0; font-size: .8rem; line-height: 1.5; color: var(--text-dim); max-width: 62ch; }
.adm-oo-note--bad { color: var(--accent); }

.adm-oo-put { margin-top: 26px; padding-top: 18px; border-top: 2px solid var(--text); max-width: 560px; }
.adm-oo-pick { border: 2px solid var(--text); margin-top: 12px; }
/* A candidate is a button so the keyboard reaches it; the ones that cannot take it are disabled
   rather than hidden, because the reason is what the operator came to read. */
.adm-oo-pick-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%;
  padding: 7px 11px; border: 0; border-bottom: 1px solid var(--border); background: none; cursor: pointer;
  font-family: inherit; font-size: .88rem; text-align: left; color: var(--text);
}
.adm-oo-pick-row:last-child { border-bottom: 0; }
.adm-oo-pick-row b { font-weight: 800; }
.adm-oo-pick-row em { font-style: normal; font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); }
.adm-oo-pick-row:hover:not(:disabled) { background: var(--bg-surface); }
.adm-oo-pick-row.is-on { background: var(--sun); color: var(--on-sun); }
.adm-oo-pick-row.is-on em { color: var(--on-sun); }
.adm-oo-pick-row.is-no { cursor: default; }
.adm-oo-pick-row.is-no b { color: var(--text-dim); font-weight: 600; }
.adm-oo-pick-row.is-no em { color: var(--accent); }
.adm-oo-acts { display: flex; align-items: center; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.adm-oo-acts p { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--text-dim); }
.adm-oo-rule { font-weight: 700; color: var(--text); }
.adm-oo-two .og-box p { margin: 0 0 8px; }
.adm-oo-two .og-box p:last-child { margin-bottom: 0; }

/* ── The question the cross-account write asks first ──────────────────────────────────────── */
/* The dialog around it (frame, title, X, the two actions) is the site's one dialog, /css/dialog.css. */
.adm-oo-ask { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.adm-oo-ask-note { font-size: .85rem; color: var(--text-dim); }
.adm-oo-ask-rows { display: flex; flex-direction: column; border: 2px solid var(--text); padding: 8px 12px; }
.adm-oo-ask-row { display: flex; justify-content: space-between; gap: 18px; font-family: var(--font-mono); font-size: .75rem; line-height: 1.9; color: var(--text); }
.adm-oo-ask-row em { font-style: normal; color: var(--text-dim); }

@media (max-width: 1100px) {
  .adm-oo-row { grid-template-columns: 2.4rem minmax(0, 1fr) 4rem 10rem; gap: 0 14px; }
  .adm-oo-held { grid-column: 2 / -1; padding-top: 4px; }
  .adm-oo-row--head div:nth-child(3), .adm-oo-row--head div:nth-child(5) { display: none; }
  .adm-oo-day { display: none; }
}

@media (max-width: 700px) {
  /* A stuck organism's sentence gets the whole width; its door follows on its own line instead of
     being squeezed into the 10rem column admin.css reserves for a metric row's value. */
  .adm-oo .adm-mrow { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .adm-oo .adm-mrow .adm-mval { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .adm-oo-row { grid-template-columns: 2rem minmax(0, 1fr); }
  .adm-oo-num { display: none; }
  .adm-oo-row--head div:nth-child(4) { display: none; }
  .adm-oo-acts-cell { grid-column: 2 / -1; justify-content: flex-start; padding-top: 6px; }
  .adm-oo-fld { flex-basis: 100%; }
  .adm-oo-tr { grid-template-columns: minmax(0, 1fr) 4.5rem 3.5rem; }
  .adm-oo-tr > :nth-child(4) { display: none; }
  .adm-oo-kv { grid-template-columns: 1fr; gap: 0; }
  .adm-oo-kv dt { padding-bottom: 0; }
  .adm-oo-kv dd { padding-top: 2px; }
}
