/* Triangulation console. A record-keeper's desk: paper ground, ink text, one colour per voice. */
:root {
  --bg: #f4f1ea; --panel: #fbfaf6; --ink: #1d1b16; --muted: #6d675b; --rule: #ddd6c8;
  --ben: #2f5d8a; --shalom: #2e7d5b; --pinchas: #8a5a2b; --eli: #8b2f5e;
  --ok: #2e7d5b; --warn: #a8741a; --bad: #b3372f; --accent: #2f5d8a; --held: #9a9283;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
/* Light by default (Eli, 2026-10-27: "make the color scheme light ... user can choose dark or light"); dark when chosen */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  --bg: #14130f; --panel: #1c1a15; --ink: #ece6d8; --muted: #a39b8a; --rule: #2f2b23;
  --ben: #7fb0e0; --shalom: #74c79f; --pinchas: #d9a46b; --eli: #e07fae; --ok: #74c79f; --warn: #e0b25a; --bad: #ef7b70; --accent: #7fb0e0; --held: #7d7668; color-scheme: dark; }
.themebtn { font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); }
.dim { color: var(--muted); }
.hidden { display: none !important; }
b { font-weight: 600; }

header#top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--panel); border-bottom: 1px solid var(--rule); }
.brand { font-weight: 600; letter-spacing: .02em; }
.pill { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--rule); }
.pill.RUNNING { color: var(--ok); border-color: var(--ok); }
.pill.PAUSED { color: var(--warn); border-color: var(--warn); }
.pill.ENDED, .pill.UNKNOWN { color: var(--muted); }
.voicing { display: inline-flex; align-items: center; gap: 6px; }
.voicing .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.right { margin-left: auto; font-size: 12px; }
.alarm { background: var(--bad); color: #fff; padding: 8px 16px; font-weight: 600; }

main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; padding: 14px max(16px, env(safe-area-inset-left, 0px)) 150px; }
@media (max-width: 980px) { main { grid-template-columns: minmax(0, 1fr); } }
.sec-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font: 600 11px/1.4 var(--sans); letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.sec-head label { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; }

#convo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.turn { background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--who, var(--rule)); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.turn .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.turn .who { font-weight: 600; color: var(--who); font-size: 13px; }
.turn .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.turn.live { box-shadow: 0 0 0 2px var(--who) inset; }
.turn.eli { --who: var(--eli); }
.heard { margin-top: 8px; padding: 6px 8px; border-radius: 4px; background: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.heard .tag { font-weight: 600; }
.badge { font: 600 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 3px; border: 1px solid currentColor; }
.badge.ok { color: var(--ok); } .badge.bad { color: var(--bad); } .badge.warn { color: var(--warn); }
.ev { font-size: 12px; color: var(--muted); padding: 2px 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.ev .t { font-family: var(--mono); }
.ev.rowmark { color: var(--ink); font-weight: 600; border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 8px; }
.held { font-size: 12px; color: var(--held); padding: 2px 6px; overflow-wrap: anywhere; }
.ben { --who: var(--ben); } .shalom { --who: var(--shalom); } .pinchas { --who: var(--pinchas); } .eli { --who: var(--eli); }
.name-ben { color: var(--ben); } .name-shalom { color: var(--shalom); } .name-pinchas { color: var(--pinchas); } .name-eli { color: var(--eli); }

aside#side { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 190px); overflow-y: auto; }
@media (max-width: 980px) { aside#side { position: static; max-height: none; } }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; min-width: 0; }
#macs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mac { border-left: 3px solid var(--who); padding-left: 8px; font-size: 12px; }
.mac .n { font-weight: 600; color: var(--who); font-size: 13px; }
.mac.eli { grid-column: 1 / -1; }
.mac.hasfloor { background: var(--panel); box-shadow: 0 0 0 2px var(--who) inset; border-radius: 4px; padding: 4px 8px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 10px; font-size: 12.5px; }
.kv .k { color: var(--muted); }
.kv .v { overflow-wrap: anywhere; }
.list { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; max-height: 280px; overflow-y: auto; }
.list .item { border-bottom: 1px dashed var(--rule); padding-bottom: 4px; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); font-size: 11.5px; }

footer#eli { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--panel); border-top: 1px solid var(--rule);
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; }
.eli-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.eli-label { font-weight: 600; color: var(--eli); }
#typed { flex: 1 1 320px; min-width: 0; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; }
button, select { font: inherit; padding: 7px 12px; border-radius: 5px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); cursor: pointer; }
button.primary { background: var(--eli); border-color: var(--eli); color: #fff; }
button.talk.on { background: var(--bad); border-color: var(--bad); color: #fff; }
button.danger { color: var(--bad); border-color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
.err { color: var(--bad); }
.modal { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .box { background: var(--panel); border-radius: 8px; padding: 20px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; }
.modal input { padding: 8px; font: inherit; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--ink); }

.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tab { border-radius: 999px; padding: 5px 14px; }
.tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.logent { background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--who, var(--rule)); border-radius: 6px; padding: 8px 12px; margin-bottom: 6px; min-width: 0; }
.logent .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.logent .main { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }
.logent.new { box-shadow: 0 0 0 2px var(--warn) inset; }
.logent details { font-size: 12px; color: var(--muted); margin-top: 4px; }
.logent details .kv { margin-top: 4px; }

.gt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.gt-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; }
.gt th { text-align: left; font: 600 11px/1.3 var(--sans); letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.gt td { padding: 7px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.gt tr.cur td { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.gt tr.t-major td.title { font-weight: 600; }
.gt .st { font: 600 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 3px; border: 1px solid var(--rule); white-space: nowrap; }
.gt .st.completed, .gt .st.done { color: var(--ok); border-color: var(--ok); }
.gt .st.blocked, .gt .st.awaiting_eli { color: var(--bad); border-color: var(--bad); }
.gt .st.in_process, .gt .st.dispatched, .gt .st.active { color: var(--accent); border-color: var(--accent); }
.notice { background: color-mix(in srgb, var(--warn) 12%, var(--panel)); border: 1px solid var(--warn); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; }

.listen { border-radius: 999px; padding: 5px 12px; }
.listen.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.play { font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-left: auto; }
.play.playing { background: var(--accent); border-color: var(--accent); color: #fff; }

.thinkpill { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--accent); color: var(--accent); }
.turn.thinking { border-style: dashed; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .6; } }

.turn.lostreply { border-style: dashed; border-color: var(--bad); }

.give { font-size: 11px; padding: 2px 8px; border-radius: 999px; margin: 2px 0; }

#start-row { width: 4.5em; padding: 6px; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; }

tr.pick, .item.pick { cursor: pointer; }
tr.pick:hover td, .item.pick:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
tr.picked td { box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--accent) 16%, transparent); }
#btn-talk { touch-action: none; -webkit-user-select: none; user-select: none; }

.skip { margin-left: auto; font-size: 12px; padding: 3px 12px; border-radius: 999px; background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Goal tracker: an index of every goal beside readable goal cards; each card opens to what was done on it (Eli, 07:40) */
button.mini { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
#goals-gh { font-weight: 600; font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.goals-layout { display: grid; grid-template-columns: var(--gi-w, 300px) 10px minmax(0, 1fr); gap: 4px; align-items: start; }
#goals-index { position: sticky; top: 64px; max-height: calc(100vh - 200px); overflow-y: auto; background: var(--panel); border: 1px solid var(--rule);
  border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; -webkit-overflow-scrolling: touch; }
#goals-filter { width: 100%; padding: 7px 9px; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; }
#goals-index-list { display: flex; flex-direction: column; }
.gi { display: block; padding: 5px 6px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi:hover, .gi:focus { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.gi.cur { background: color-mix(in srgb, var(--warn) 16%, transparent); font-weight: 600; }
.gi.d0 { font-weight: 600; margin-top: 6px; } .gi.d1 { padding-left: 16px; } .gi.d2 { padding-left: 28px; color: var(--muted); }
.gi.d3, .gi.d4 { padding-left: 40px; color: var(--muted); font-size: 12.5px; }
#goals { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.goal { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px; scroll-margin-top: 72px; min-width: 0; font-size: 15px; line-height: 1.5; }
.goal.d1 { margin-left: 14px; } .goal.d2 { margin-left: 28px; } .goal.d3, .goal.d4 { margin-left: 40px; }
.goal.t-major { border-left: 4px solid var(--ink); }
.goal.cur { box-shadow: 0 0 0 2px var(--warn) inset; }
.goal.open { border-color: var(--accent); }
.ghead { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; }
.ghead .gid { color: var(--muted); flex: none; }
.ghead .gt-title { flex: 1 1 auto; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ghead .st { flex: none; font: 600 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 3px; border: 1px solid var(--rule); }
.ghead .st.done, .ghead .st.completed { color: var(--ok); border-color: var(--ok); }
.ghead .st.active { color: var(--accent); border-color: var(--accent); }
.ghead .st.blocked, .ghead .st.awaiting_eli { color: var(--bad); border-color: var(--bad); }
.gmeta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.glast { font-size: 13.5px; color: var(--muted); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gbody { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.gbody p { margin: 0; }
.gfield .k { display: block; font: 600 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.gfield > div { white-space: pre-wrap; overflow-wrap: anywhere; }
.acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acts li { border-left: 3px solid var(--rule); padding: 2px 0 2px 10px; }
.acts .sum { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.tlink { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.badge.k-record { color: var(--ok); } .badge.k-held, .badge.k-routed { color: var(--bad); } .badge.k-tracker, .badge.k-expanded, .badge.k-opened, .badge.k-closed { color: var(--accent); }
.gbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.gchanges { margin-top: 14px; } .gchanges summary { cursor: pointer; }
.modal .box.disc { width: min(860px, 100%); max-height: calc(100vh - 32px); padding: 0; gap: 0; }
.disc-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
#disc-body { overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; font-size: 15px; line-height: 1.5; }
#disc-body .hit { box-shadow: 0 0 0 3px var(--warn) inset; }
@media (max-width: 900px) {
  .goals-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gsplit { display: none; }
  #goals-index { position: static; max-height: 38vh; }
  .goal.d1, .goal.d2, .goal.d3, .goal.d4 { margin-left: 0; }
}
@media (max-width: 600px) { .modal .box.disc { width: 100%; max-height: 100vh; border-radius: 0; } }

/* goal numbers only, for orienting (Eli, 08:00) */
.gchips { display: flex; flex-wrap: wrap; gap: 4px; }
.gchip { font: 500 12px/1 var(--mono); padding: 6px 7px; border-radius: 4px; border: 1px solid var(--rule); background: var(--bg); color: var(--muted);
  text-decoration: none; cursor: pointer; }
.gchip.said { color: var(--ink); font-weight: 700; border-color: color-mix(in srgb, var(--ink) 35%, var(--rule)); }
.gchip.cur { background: color-mix(in srgb, var(--warn) 22%, var(--bg)); border-color: var(--warn); }
.gchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#tracker .gchips { max-height: 220px; overflow-y: auto; }
.focusbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 6px; background: color-mix(in srgb, var(--warn) 12%, var(--panel)); border: 1px solid var(--warn); font-size: 13.5px; }
.ghead { cursor: default; }
.gdetails { font-size: 14px; } .gdetails summary { cursor: pointer; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.goal .acts { margin-top: 8px; }

/* agents per goal: Eli's measure of the Triangulator */
.agentspill { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ok); color: var(--ink); }
.agentsline { margin-top: 8px; font-size: 13.5px; }
.agentlist { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.agent { font-size: 12px; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); }
.agent.active { border-color: var(--ok); color: var(--ink); }
.agent.dead { border-color: var(--bad); color: var(--bad); }
.aitems { margin-top: 8px; font-size: 13.5px; } .aitems ol { margin: 4px 0 0; padding-left: 18px; }
.aitem { margin: 3px 0; } .aitem.done, .aitem.dropped { opacity: .6; } .aitem.overdue { color: var(--bad); }
.noagent { margin-top: 8px; font-size: 13px; color: var(--bad); }

/* the goal list in the small box and the tracker tab's index: G number and brief title, one line each (Eli, 08:10) */
.growlist { display: flex; flex-direction: column; }
#tracker .growlist { max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.grow { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 4px; padding: 6px 6px; color: var(--muted);
  font: 13px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; cursor: pointer; }
.grow .mono { color: var(--ink); margin-right: 4px; }
.grow.said { color: var(--ink); }
.grow.d0 { font-weight: 600; color: var(--ink); margin-top: 4px; } .grow.d1 { padding-left: 16px; } .grow.d2, .grow.d3 { padding-left: 28px; }
.grow:hover, .grow:focus { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.grow.cur { background: color-mix(in srgb, var(--warn) 18%, transparent); font-weight: 600; }
.grow.on { background: var(--ink); color: var(--bg); } .grow.on .mono { color: var(--bg); }
#tracker .grow { line-height: 1.35; min-height: 1.9em; }

.agentspill { cursor: pointer; } .agent[role=button] { cursor: pointer; }
#agents-body { overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; -webkit-overflow-scrolling: touch; }
.agentcard { border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: 6px; padding: 8px 12px; }
.agentcard.active { border-left-color: var(--ok); } .agentcard.dead { border-left-color: var(--bad); }
.agentcard .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.agentcard .aname { font: 600 14px/1.3 var(--mono); color: var(--ink); }
.apurpose { margin: 4px 0; }

/* editing a goal (Eli, 08:25) */
.editform { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; overflow-y: auto; }
.editform label { display: flex; flex-direction: column; gap: 4px; font: 600 12px/1.3 var(--sans); color: var(--muted); }
.editform textarea, .editform input, .editform select { font: 16px/1.4 var(--sans); padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--ink); }
.efrow { display: flex; flex-wrap: wrap; gap: 10px; } .efrow label { flex: 1 1 140px; }
.elinotes { margin-top: 8px; padding: 8px 12px; border-radius: 6px; background: color-mix(in srgb, var(--eli) 9%, var(--panel)); border-left: 3px solid var(--eli); font-size: 14.5px; }
.elinotes .k { display: block; font: 600 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--eli); margin-bottom: 3px; }
.elinotes div + div { margin-top: 4px; }
.badge.k-eli { color: var(--eli); }

/* Eli's comments on the agents' lines (08:45) */
.cmt-open { font-size: 11.5px; padding: 2px 9px; }
.cmts { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.cmt { font-size: 14px; padding: 6px 10px; border-radius: 6px; border-left: 3px solid var(--eli); background: color-mix(in srgb, var(--eli) 8%, var(--panel)); }
.cmt.accounted { border-left-color: var(--ok); }
.cmtquote { font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--rule); padding: 4px 10px; max-height: 8em; overflow: auto; }
#cmt-talk { touch-action: none; -webkit-user-select: none; user-select: none; }

/* the goal cycle (Eli, 09:05) */
.cyclebar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 12px; margin-bottom: 10px; border: 1px solid var(--rule);
  border-radius: 6px; background: var(--panel); font-size: 13.5px; }
.cbox { display: inline-block; width: 1.3em; color: var(--accent); }
.grow.picked { background: color-mix(in srgb, var(--accent) 14%, transparent); }
#cycle-pill { cursor: pointer; }

/* the agenda (Eli, 10:35) */
.aggoals { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.agrow { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 5px; font-size: 14px; }
.agrow .agt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.agk { display: block; font: 600 12px/1.3 var(--sans); color: var(--muted); }
.aghead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#ag-add { flex: 1 1 220px; }
label.inline { flex-direction: row !important; align-items: center; gap: 6px; font-weight: 400 !important; }

/* what they have been talking about (Eli, 10:40) */
.eliq { background: var(--panel); border: 2px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.eliq-text { white-space: pre-wrap; font-size: 16px; line-height: 1.5; }
.eliq textarea { width: 100%; box-sizing: border-box; }
.summarybox { background: var(--panel); border: 1px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
.summarybox .sumtext { white-space: pre-wrap; font-size: 15px; line-height: 1.5; }
.deccard { padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--eli) 25%, transparent); display: flex; flex-direction: column; gap: 6px; }
.deccard:first-of-type { border-top: 0; }
.deccard.done { opacity: .7; }
.decq { font-weight: 600; }
.decopts { display: flex; flex-wrap: wrap; gap: 6px; }
.decopt { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--eli); background: var(--panel); color: inherit; font-size: 14px; cursor: pointer; }
.decopt.on { background: var(--eli); color: #fff; }
.decnote { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; }
.decact { display: flex; align-items: center; gap: 10px; }
.sumtopic { font-size: 17px; line-height: 1.45; font-weight: 600; margin: 4px 0 10px; }
.sumgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-bottom: 4px; }
.sumsec { font-size: 15px; line-height: 1.5; margin: 6px 0; }
.sumsec .k { font: 600 11px/1.4 var(--sans); letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.sumgrid .sumsec { margin: 0; padding: 8px 12px; border-radius: 6px; border-left: 3px solid var(--rule); }
.sumsec.agreed { border-left-color: #2e9d5b; background: color-mix(in srgb, #2e9d5b 8%, var(--panel)); }
.sumsec.agreed .k { color: #2e9d5b; }
.sumsec.open { border-left-color: #c98a1a; background: color-mix(in srgb, #c98a1a 8%, var(--panel)); }
.sumsec.open .k { color: #c98a1a; }
.sumsec.watch .k { color: #c0443a; }
.decisions { margin: 4px 0 8px; padding: 8px 12px; border-radius: 6px; background: color-mix(in srgb, var(--eli) 10%, var(--panel)); border-left: 3px solid var(--eli); font-size: 15px; }
.decisions .k { font: 600 11px/1.4 var(--sans); letter-spacing: .08em; color: var(--eli); margin-bottom: 3px; }
.agentry { align-items: flex-start; cursor: pointer; } .agmain { flex: 1 1 auto; min-width: 0; } .agnote { font-size: 13.5px; margin-top: 2px; white-space: pre-wrap; }
.agnew { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--rule); border-radius: 6px; }
.agcompose { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed var(--rule); border-radius: 6px; }

.rowagents { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.gedit { margin-left: auto; padding: 0 6px; color: var(--accent); cursor: pointer; font-size: 12px; white-space: nowrap; } .gedit:hover { text-decoration: underline; }
#edit-modal { z-index: 12; }
.grow { display: flex; align-items: baseline; gap: 4px; }
.brand { display: flex; align-items: center; gap: 8px; } .brand-logo { height: 32px; width: auto; display: block; }
.aswho { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.aswho select { font: inherit; color: var(--ink, inherit); padding: 2px 4px; border-radius: 6px; }
.aswho select.sitter { outline: 2px solid var(--warn); font-weight: 600; }
/* Decisions tab (2026-10-27) */
.dec-count:empty { display: none; }
.dec-count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.dec-count.hot { background: var(--eli); color: #fff; }
#dec-wrap { display: flex; flex-direction: column; gap: 10px; }
.dcard { border: 1px solid var(--rule); border-left: 4px solid var(--eli); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--panel); }
.dcard.dnot { border-left-color: var(--rule); opacity: .8; }
.dhead { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 12px; }
.dtitle { font-weight: 600; }
.dq { font-size: 16px; font-weight: 600; line-height: 1.35; }
.dctx { color: var(--muted); }
.dnote { width: 100%; box-sizing: border-box; font: inherit; }
.dact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.draw summary, .dother summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.draw div { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dans { border-top: 1px solid var(--rule); padding: 8px 0; display: flex; flex-direction: column; gap: 2px; }
.dlive, .dsit { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--warn); }
.dempty { padding: 16px 0; }

/* Goal tracker, 2026-10-27: a widenable goal list, sorting, and goal cards with boxes that open */
.gsplit { align-self: stretch; min-height: 120px; cursor: col-resize; border-radius: 4px; position: sticky; top: 64px; height: calc(100vh - 200px);
  background: linear-gradient(var(--rule), var(--rule)) center / 2px 48px no-repeat; touch-action: none; }
.gsplit:hover, .gsplit.drag, .gsplit:focus-visible { background: linear-gradient(var(--accent), var(--accent)) center / 3px 100% no-repeat; outline: none; }
#goals-index .grow { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
#goals-index .grow .mono { flex: none; }
#goals-index .grow .gtt { flex: 1 1 auto; min-width: 0; }
#goals-index .grow .gedit { visibility: hidden; } #goals-index .grow:hover .gedit, #goals-index .grow:focus .gedit { visibility: visible; }
.gago { flex: none; font-size: 11px; font-family: var(--mono); }
.gsort { display: inline-flex; gap: 4px; align-items: center; letter-spacing: 0; }
.gsort button { text-transform: none; letter-spacing: 0; }
.gsort button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.goal { display: flex; flex-direction: column; gap: 6px; }
.goal .ghead { flex-wrap: wrap; }
.goal .ghead .gt-title { font-size: 16px; }
.goal .st { font: 600 10.5px/1 var(--mono); padding: 4px 6px; border-radius: 999px; border: 1px solid var(--rule); text-transform: uppercase; letter-spacing: .04em; }
.goal .st.done { color: var(--ok); border-color: var(--ok); } .goal .st.blocked { color: var(--bad); border-color: var(--bad); } .goal .st.paused { color: var(--warn); border-color: var(--warn); }
.gcrumb { font-size: 12px; } .gcrumb a { color: inherit; }
.gprog { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.gbar { flex: 0 0 140px; height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--rule) 80%, transparent); overflow: hidden; }
.gbar span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.gmeta { font-size: 12.5px; color: var(--muted); }
.glatest { font-size: 14px; padding: 6px 10px; border-left: 3px solid var(--pinchas); background: color-mix(in srgb, var(--bg) 60%, transparent); border-radius: 0 4px 4px 0; overflow-wrap: anywhere; }
.glatest .k, .gk { font: 600 10.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.gk { display: block; margin-top: 10px; }
.gsecs { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.gsec { border-top: 1px solid var(--rule); } .gsecs .gsec:first-child { border-top: 0; }
.gsec > summary { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; cursor: pointer; list-style: none; font-size: 13.5px; }
.gsec > summary::-webkit-details-marker { display: none; }
.gsec > summary::before { content: '▸'; color: var(--muted); flex: none; width: 10px; transition: transform .12s; }
.gsec[open] > summary::before { transform: rotate(90deg); }
.gsec > summary:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.gsl { font-weight: 600; flex: 0 0 auto; min-width: 150px; }
.gsn { color: var(--muted); font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
.gsec.hot > summary .gsl::after { content: ' ●'; color: var(--bad); }
.gsb { padding: 4px 12px 12px 30px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gkidsec { border: 1px solid var(--rule); border-radius: 6px; }
.gkids { display: flex; flex-direction: column; gap: 2px; }
.gkid { color: var(--ink); text-decoration: none; padding: 3px 6px; border-radius: 4px; font-size: 13.5px; border-left: 3px solid var(--rule); }
.gkid:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.gkid.st-done { border-left-color: var(--ok); color: var(--muted); } .gkid.st-blocked { border-left-color: var(--bad); } .gkid.st-active { border-left-color: var(--accent); }
.gfoot { margin-top: 2px; }
.brief { font-size: 14.5px; } .bmeta { font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.md { overflow-wrap: anywhere; } .md p { margin: 0 0 8px; } .md ul, .md ol { margin: 0 0 8px; padding-left: 20px; } .md li { margin: 2px 0; }
.md h3, .md h4, .md h5, .md h6 { margin: 14px 0 6px; font-size: 15px; } .md h3 { font-size: 17px; } .md h3:first-child, .md h4:first-child { margin-top: 0; }
.md code { font-family: var(--mono); font-size: 12.5px; background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 0 3px; border-radius: 3px; }
.md pre, pre.orig { font: 12px/1.45 var(--mono); background: var(--bg); border: 1px solid var(--rule); border-radius: 5px; padding: 8px 10px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.md hr { border: 0; border-top: 1px solid var(--rule); }
.mdt, .itbl { overflow-x: auto; }
.mdt table, .itbl table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.mdt th, .mdt td, .itbl th, .itbl td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.mdt th, .itbl th { font: 600 11px/1.3 var(--sans); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.itbl td .dim { font-size: 12.5px; } .itbl .iwhy { font-size: 13px; }
.itbl tr.idone td { color: var(--muted); } .itbl tr.idone b { font-weight: 500; text-decoration: line-through; text-decoration-color: var(--muted); }
.itbl tr.ilate td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.nowrap { white-space: nowrap; }
.gsub > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.agcard { border: 1px solid var(--rule); border-left: 3px solid var(--rule); border-radius: 5px; padding: 6px 10px; display: flex; flex-direction: column; gap: 3px; }
.agcard.active { border-left-color: var(--ok); } .agcard.dead { border-left-color: var(--bad); }
.aghead { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; }
.agwhy { font-size: 14px; }
.gdec { padding: 8px 10px; border: 1px solid var(--bad); border-radius: 5px; font-size: 14px; }
.gdirect { display: flex; flex-direction: column; gap: 6px; }
.gdirect textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; resize: vertical; }
.gclist { display: flex; flex-direction: column; gap: 6px; }
.gc { padding: 5px 0 5px 10px; border-left: 3px solid var(--eli); font-size: 13.5px; overflow-wrap: anywhere; }
.artlist { display: flex; flex-direction: column; gap: 4px; }
.art { display: flex; gap: 10px; align-items: baseline; text-align: left; width: 100%; padding: 7px 10px; border-radius: 5px; }
.art:hover { border-color: var(--accent); }
.artn { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.artk { flex: none; font: 600 10px/1 var(--mono); text-transform: uppercase; padding: 3px 5px; border-radius: 3px; border: 1px solid var(--rule); color: var(--muted); }
.artk.k-doc { color: var(--accent); border-color: var(--accent); }
.gnote { font-size: 12px; }
.docbox { width: min(920px, 100%) !important; }
.dochead { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; } .dochead .mono { overflow-wrap: anywhere; }
.docviews { display: inline-flex; gap: 4px; } .dview.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#doc-body { overflow-y: auto; padding: 14px 20px 20px; font-size: 15px; line-height: 1.55; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
#doc-modal .disc-head { flex-wrap: wrap; }
@media (max-width: 600px) { .gsl { min-width: 0; } .gsec > summary { flex-wrap: wrap; } .gsb { padding-left: 12px; } .gbar { flex-basis: 90px; } }
.grow.flat { color: var(--ink); padding: 5px 6px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); border-radius: 0; }
@media (max-width: 700px) {
  .itbl table, .itbl tbody, .itbl tr { display: block; }
  .itbl tr:first-child { display: none; }
  .itbl tr { padding: 6px 0; border-bottom: 1px solid var(--rule); }
  .itbl td { display: inline-block; border: 0; padding: 2px 8px 2px 0; font-size: 12.5px; color: var(--muted); }
  .itbl td:first-child { display: block; font-size: 13.5px; color: var(--ink); padding-left: 6px; }
}

/* Priorities (2026-10-27): each major goal's ranked list, under the summary and in each goal card */
.priobox { background: var(--panel); border: 1px solid var(--pinchas); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
.priobox .ptitle { letter-spacing: 0; text-transform: none; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.priolist { display: flex; flex-direction: column; gap: 6px; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.prio { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); }
.prio:first-child { border-color: var(--pinchas); }
.prio.pnew { border-style: dashed; }
.prank { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px/1 var(--mono); background: color-mix(in srgb, var(--pinchas) 18%, transparent); color: var(--ink); }
.prio:first-child .prank { background: var(--pinchas); color: #fff; }
.ptext { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 14.5px; }
.pwhy, .pby { font-size: 12px; }
.pbtns { flex: none; display: inline-flex; gap: 3px; }
.pbtns .mini { padding: 3px 8px; font-size: 11px; }
.padd { display: flex; gap: 6px; flex-wrap: wrap; }
.padd input { flex: 1 1 220px; min-width: 0; padding: 6px 9px; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13.5px; }
.padd select { padding: 5px 6px; font-size: 12.5px; }
.pfoot, .pnone { font-size: 12px; }
.pold { font-size: 13px; padding: 3px 0; overflow-wrap: anywhere; }
.pclosed > summary { cursor: pointer; font-size: 12px; }
.clock { font: 600 11.5px/1 var(--mono); letter-spacing: 0; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); text-transform: none; }
.clock.wrap { border-color: var(--warn); color: var(--warn); }
.clock.over { border-color: var(--bad); color: var(--bad); }
.agmin { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.agmin input { width: 70px; padding: 3px 6px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); font: inherit; }
@media (max-width: 600px) { .prio { flex-wrap: wrap; } .pbtns { margin-left: 34px; } }
.itbl .iprio { font-size: 12.5px; color: var(--pinchas); }

/* Completion (2026-10-27): the room's estimate toward 100%, as a bar that fills */
.progbox { background: var(--panel); border: 1px solid var(--ok); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; }
.progbox .sec-head { margin-bottom: 0; }
.pbar-wrap { display: flex; flex-direction: column; gap: 4px; }
.pbar-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; min-width: 0; }
.pbar-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.pbar-pct { font: 700 15px/1 var(--sans); }
.pbar-wrap.big .pbar-pct { font-size: 24px; }
.pbar { position: relative; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--rule) 85%, transparent); overflow: hidden; }
.pbar-wrap.big .pbar { height: 16px; }
.pbar span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 70%, var(--accent)), var(--ok)); transition: width .8s ease; }
.pbar i { position: absolute; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.pbar-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; min-width: 0; }
.plast { min-width: 0; overflow-wrap: anywhere; }
.pgain { font: 600 11.5px/1 var(--mono); padding: 3px 6px; border-radius: 999px; border: 1px solid var(--rule); }
.pgain.up { color: var(--ok); border-color: var(--ok); } .pgain.down { color: var(--bad); border-color: var(--bad); } .pgain.flat { color: var(--warn); border-color: var(--warn); }
.spark { color: var(--ok); flex: none; }
.gprog.est b { font-size: 14px; }
.gprog.est .spark { margin-left: auto; }
.gpct { flex: none; font: 600 10.5px/1 var(--mono); color: var(--ok); padding: 2px 4px; border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); border-radius: 3px; }
.agafter { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; } .agafter select { max-width: 360px; }

/* Action items page (2026-10-27) */
.actbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.actbar input { flex: 1 1 220px; min-width: 0; padding: 6px 9px; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; }
.actbar select { padding: 4px 6px; }
.actgroup { margin-bottom: 14px; }
.actcard { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--rule);
  border-left: 4px solid var(--accent); border-radius: 6px; padding: 10px 12px; margin-bottom: 6px; }
.actcard.alate { border-left-color: var(--bad); }
.actcard.adone { border-left-color: var(--ok); opacity: .75; }
.amain { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ahead { font-size: 15px; overflow-wrap: anywhere; } .atitle { font-weight: 600; }
.ameta { font-size: 12.5px; overflow-wrap: anywhere; } .ameta a { color: inherit; font-family: var(--mono); }
.awhy { font-size: 13.5px; }
.anext { font-size: 14px; padding: 6px 9px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); overflow-wrap: anywhere; }
.anext.none { background: color-mix(in srgb, var(--warn) 9%, transparent); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--muted); }
.anext .k, .ablocked .k, .awho .k { font: 600 10.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.ablocked { font-size: 13.5px; padding: 5px 9px; border-radius: 5px; border: 1px solid var(--warn); overflow-wrap: anywhere; }
.adw { font-size: 12.5px; overflow-wrap: anywhere; }
.apush { font-size: 12.5px; padding: 4px 8px; border-left: 3px solid var(--ok); overflow-wrap: anywhere; }
.apush.working { border-left-color: var(--warn); }
.awho { font-size: 13px; display: flex; flex-direction: column; gap: 1px; } .awho .k { margin-top: 4px; } .awho .k:first-child { margin-top: 0; }
.aact { align-self: center; } .aact button { white-space: nowrap; }
@media (max-width: 760px) { .actcard { grid-template-columns: minmax(0, 1fr); } .aact button { width: 100%; } }
.aact { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.adismiss { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.adismiss input { flex: 1 1 220px; min-width: 0; padding: 5px 8px; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; }
.ahead .act-sel { width: 18px; height: 18px; accent-color: var(--accent); margin: 0 8px 0 0; vertical-align: -2px; cursor: pointer; }
.actbulk { position: sticky; top: 64px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--accent); border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
#act-bulk-confirm { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; } #act-bulk-confirm.hidden { display: none; }
#act-bulk-why { width: 260px; max-width: 100%; padding: 5px 8px; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; }
.actcard:has(.act-sel:checked) { box-shadow: 0 0 0 2px var(--accent) inset; }
.limitbanner { background: var(--warn); color: #fff; padding: 9px 16px; font-weight: 600; }
.limtxt { font-weight: 600; color: var(--ink); }
.aglimit { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.aglimit input { width: 80px; padding: 3px 6px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); font: inherit; }
.tmore { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; } .tmore:hover { text-decoration: underline; }
