/* SMAU FILE
 * Path: css/smau-studio2-gfo.css
 * Owns: Creator Studio 2.0 — the Lived-in World (GFO) panel (gf2- classes,
 *       js/creator/creator.gfoPanel.js) and the Resident State Monitor
 *       (mn2- classes, js/creator/creator.monitor.js). Both build on the
 *       shared .s2-* primitives in css/smau-studio2.css; only their own
 *       screen-specific pieces live here. Class selectors only.
 */

/* ── GFO panel ─────────────────────────────────────────────────── */

.gf2-screen { display: flex; flex-direction: column; gap: 12px; }
.gf2-subtitle { margin-bottom: 2px; }
.gf2-card { display: flex; flex-direction: column; gap: 10px; }
.gf2-hint { line-height: 1.45; }

.gf2-density-seg { align-self: flex-start; }

.gf2-count-scroll { overflow-x: auto; }
.gf2-count-table,
.gf2-rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--s2-ink);
}
.gf2-count-table th,
.gf2-count-table td,
.gf2-rules-table th,
.gf2-rules-table td {
  padding: 5px 8px;
  text-align: left;
  border-bottom: 1px solid var(--s2-card-border);
  white-space: nowrap;
}
.gf2-count-table th,
.gf2-rules-table th {
  font-weight: 700;
  color: var(--s2-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gf2-count-what { color: var(--s2-muted); }
.gf2-count-col { text-align: center; min-width: 52px; }
.gf2-count-col--on { color: var(--s2-accent); font-weight: 700; background: var(--s2-accent-soft); }

.gf2-domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.gf2-domain {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--s2-ink);
  cursor: pointer;
}
.gf2-domain--locked { cursor: default; }
.gf2-domain-why { font-style: normal; font-size: 11px; color: var(--s2-muted); }

.gf2-seed-row { display: flex; gap: 8px; align-items: center; }
.gf2-seed-input { max-width: 180px; }
.gf2-seed-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.gf2-result {
  border: 1px solid var(--s2-card-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gf2-result--err { color: var(--s2-danger); }
.gf2-result-head { font-size: 12px; font-weight: 700; color: var(--s2-muted); }
.gf2-result-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--s2-ink); }
.gf2-result-n { font-weight: 700; }

.gf2-clear-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gf2-confirm { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--s2-ink); }
.gf2-confirm-actions { display: flex; gap: 8px; }
.gf2-cleared-note { font-size: 12px; color: var(--s2-muted); }

.gf2-beats-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.gf2-beats-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--s2-muted); }
.gf2-beats-field input { max-width: 120px; }

.gf2-rule--builtin .gf2-rule-id { color: var(--s2-muted); }
.gf2-rule--user .gf2-rule-id { color: var(--s2-ink); font-weight: 600; }
.gf2-rule-id { font-family: ui-monospace, monospace; font-size: 11px; }
.gf2-rule-weight { min-width: 64px; }
.gf2-rule-chain { text-align: center; }
.gf2-weight-select { padding: 2px 6px; min-height: 0; width: auto; }
.gf2-weight-locked { display: inline-flex; align-items: center; gap: 4px; color: var(--s2-muted); }
.gf2-rules-foot { display: flex; justify-content: flex-end; }

/* ── Resident State Monitor ────────────────────────────────────── */

.mn2-screen { display: flex; flex-direction: column; gap: 12px; }
.mn2-subtitle { margin-bottom: 2px; }
.mn2-card { display: flex; flex-direction: column; gap: 8px; }
.mn2-slim { gap: 4px; }

.mn2-picker-card { display: flex; flex-direction: column; gap: 6px; }
.mn2-picker-label { display: block; }
.mn2-picker { width: 100%; }

.mn2-line { font-size: 14px; color: var(--s2-ink); line-height: 1.4; }
.mn2-sub { font-size: 12px; color: var(--s2-muted); line-height: 1.4; }
.mn2-sub-inline { font-size: 12px; color: var(--s2-muted); font-weight: 400; }

/* Meter rows (persona meters and every other continuous variable —
   js/smau.vars.js; the persona meter of spec/WARDROBE-SETS-AND-WORLD-GRAPH.md
   §2 is one of them now). Read-only here like everything else on this
   screen; this monitor is the one place the raw numbers are allowed. */
.mn2-persona-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mn2-persona-meter {
  position: relative;
  display: inline-block;
  width: 100%;
  flex: 1 1 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--s2-card-border);
}
.mn2-persona-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 3px;
  background: var(--s2-accent);
}
.mn2-persona-meter-mark {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--s2-muted);
}
/* the last journaled reason under a variable row — "why is it there?" */
.mn2-vars-why { padding-left: 14px; font-style: italic; }

.mn2-src {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 6px;
  border: 1px solid var(--s2-card-border);
  color: var(--s2-muted);
}
.mn2-src--evidence { color: #4dc47f; border-color: rgba(77, 196, 127, 0.4); background: rgba(77, 196, 127, 0.1); }
.mn2-src--authored { color: var(--s2-accent); border-color: var(--s2-accent); background: var(--s2-accent-soft); }
.mn2-src--resolver { color: #d9a13c; border-color: rgba(217, 161, 60, 0.4); background: rgba(217, 161, 60, 0.1); }
.mn2-src--day-shape { color: var(--s2-muted); }
.mn2-src--default { color: var(--s2-muted); opacity: 0.7; }
.mn2-src--connected { color: #4dc47f; border-color: rgba(77, 196, 127, 0.4); background: rgba(77, 196, 127, 0.1); }

.mn2-fields { display: flex; flex-direction: column; gap: 3px; }
.mn2-field { display: flex; gap: 10px; font-size: 13px; }
.mn2-field-k { flex: 0 0 92px; color: var(--s2-muted); }
.mn2-field-v { color: var(--s2-ink); }

.mn2-ok {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
}
.mn2-ok--yes { color: #4dc47f; background: rgba(77, 196, 127, 0.12); }
.mn2-ok--no { color: var(--s2-danger); background: rgba(255, 92, 92, 0.1); }

.mn2-day-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.mn2-day-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--s2-card-border);
  min-width: 76px;
}
.mn2-day-block--now { border-color: var(--s2-accent); background: var(--s2-accent-soft); }
.mn2-day-when { font-size: 11px; font-weight: 700; color: var(--s2-muted); }
.mn2-day-what { font-size: 12px; color: var(--s2-ink); }
.mn2-day-mood { font-size: 11px; color: var(--s2-muted); }

.mn2-hist { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.mn2-hist-row { display: flex; gap: 10px; font-size: 12px; align-items: baseline; }
.mn2-hist-when { flex: 0 0 72px; color: var(--s2-muted); }
.mn2-hist-what { color: var(--s2-ink); }

.mn2-window-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
