/* ============================================================================
   ROUNDTABLE 2.0 — Collaborative AI Operations Workspace
   Slack × GitHub × Linear · Mission Control · dense · multi-agent · human-in-control
   Local-first · browser-first · self-contained (system fonts, no CDN, no framework)
   Maps to: src/web/public/workspace.css
   ============================================================================ */

:root {
  /* FEEDBACK-REMEDIATION-1: declare the UI color scheme so the browser renders NATIVE
     controls (the datetime-local picker popup + its calendar indicator, native scrollbars,
     form-control defaults) dark-aware against the dark shell, instead of the bright-white
     browser default. Substrate convergence via an existing primitive — no picker replacement. */
  color-scheme: dark;
  /* ---- surfaces ---- */
  --bg:        #0d0e13;   /* app canvas / deepest */
  --rail:      #0a0b0f;   /* far-left workspace rail */
  --bg-2:      #111219;   /* room list / wells */
  --surface:   #16171e;   /* timeline canvas */
  --surface-2: #1b1c24;   /* cards / panels */
  --surface-3: #21232c;   /* raised rows / headers */
  --surface-4: #292b36;   /* hover / selected */
  --line:      #25262f;   /* hairline */
  --line-2:    #33353f;   /* stronger border */

  /* ---- brand / authority — Electric Tangerine (Kraken palette) ---- */
  --orange:      #ff6d1f;
  --orange-soft: #ff8a45;
  --orange-tint: rgba(255,109,31,.14);
  --orange-t:    rgba(255,109,31,.14);   /* alias — matches the --*-t tint naming */
  --orange-line: rgba(255,109,31,.44);
  --grad: linear-gradient(135deg,#ff8a45,#ff6d1f 55%,#e55a0f);

  /* ---- text ---- */
  --fg1: #eceef4;
  --fg2: #a8aab6;
  --fg3: #797b85;
  --fg4: #5b5d67;

  /* ---- semantic ---- */
  --ok:    #5fb083;  --ok-t:   rgba(95,176,131,.13);  --ok-l:   rgba(95,176,131,.4);
  --warn:  #d9a441;  --warn-t: rgba(217,164,65,.14);  --warn-l: rgba(217,164,65,.42);
  --err:   #df6f5f;  --err-t:  rgba(223,111,95,.13);  --err-l:  rgba(223,111,95,.42);
  --info:  #6f9fd0;  --info-t: rgba(111,159,208,.13); --info-l: rgba(111,159,208,.4);
  --human: #c98be0;  --human-t:rgba(201,139,224,.15); --human-l:rgba(201,139,224,.44);
  --risk:  #e0683f;  --risk-t: rgba(224,104,63,.14);  --risk-l: rgba(224,104,63,.44);

  /* ---- agent accent ring colors (assigned per agent) ---- */
  --a-codex:   #6f9fd0;
  --a-claude:  #c98be0;
  --a-design:  #5fb083;
  --a-manus:   #d9a441;
  --a-gemini:  #e0683f;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --r-xs: 5px; --r-sm: 7px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;
  --rail-w: 60px; --rooms-w: 248px; --ctx-w: 360px; --topbar-h: 48px;
}

/* ============================================================================
   LIGHT THEME — EXACT Kraken OS warm-paper palette (os-pages/theme.css).
   Page = sidebar = #FCFBF7 · white cards · ink-alpha borders · tangerine.
   ============================================================================ */
:root[data-theme="light"] {
  color-scheme: light;   /* FEEDBACK-REMEDIATION-1: native controls follow the light theme */
  --bg:        #fcfbf7;   /* kw-page — warm paper canvas */
  --rail:      #fcfbf7;   /* sidebar = page (single-paper system) */
  --bg-2:      #fcfbf7;   /* room list / context = same paper */
  --surface:   #fcfbf7;   /* timeline reading area = paper */
  --surface-2: #ffffff;   /* kw-surface — white cards */
  --surface-3: #f7f5ee;   /* kw-surface-2 — raised rows / headers */
  --surface-4: #f2efe8;   /* kw-sunken — hover / selected */
  --line:      rgba(15,15,15,.07);   /* kw-border */
  --line-2:    rgba(15,15,15,.14);   /* kw-border-strong */

  --fg1: #0a0a0a;                /* kw-ink */
  --fg2: #3a3a3a;                /* kw-ink-3 */
  --fg3: rgba(15,15,15,.55);     /* kw-mute */
  --fg4: rgba(15,15,15,.36);     /* kw-fade */

  --orange-soft: #b33f03;        /* kw-brand-700 — tangerine text on paper */
  --orange-tint: rgba(255,109,31,.12);
  --orange-t:    rgba(255,109,31,.12);
  --orange-line: rgba(255,109,31,.42);

  --ok:   #0e7048;  --ok-t:   rgba(16,185,129,.10);  --ok-l:   rgba(16,185,129,.40);
  --warn: #8a5a07;  --warn-t: rgba(201,148,47,.14);  --warn-l: rgba(201,148,47,.42);
  --err:  #a11341;  --err-t:  rgba(161,19,65,.10);   --err-l:  rgba(161,19,65,.40);
  --info: #036497;  --info-t: rgba(42,130,201,.10);  --info-l: rgba(42,130,201,.40);
  --human:#4d3679;  --human-t:rgba(80,60,140,.10);   --human-l:rgba(80,60,140,.40);
  --risk: #b33f03;  --risk-t: rgba(255,109,31,.12);  --risk-l: rgba(255,109,31,.42);
}
/* Kraken soft paper shadows */
:root[data-theme="light"] .mention-pop { box-shadow: 0 6px 28px rgba(15,15,15,.10); }
:root[data-theme="light"] .context { box-shadow: -12px 0 32px -18px rgba(15,15,15,.12); }
/* workspace tiles — white cards with ink-alpha border on warm paper */
:root[data-theme="light"] .ws { background: #ffffff; border: 1px solid rgba(15,15,15,.12); color: var(--fg1); }
:root[data-theme="light"] .ws:hover { background: #ffffff; border-color: rgba(15,15,15,.24); }
:root[data-theme="light"] .ws.active,
:root[data-theme="light"] .ws.active:hover { background: var(--orange); border-color: transparent; color: #fff; }
:root[data-theme="light"] .ws.add { background: transparent; border-style: dashed; border-color: rgba(15,15,15,.18); color: var(--fg3); }
:root[data-theme="light"] .ws.add:hover { color: var(--orange); border-color: var(--orange-line); }
:root[data-theme="light"] .rail .sep { background: rgba(15,15,15,.10); }
/* section labels use kw-mute (Kraken label treatment) for readability on paper */
:root[data-theme="light"] #ctxBody > .ctx-sec-title,
:root[data-theme="light"] .room-group .gl,
:root[data-theme="light"] .tui-panel > .ph { color: var(--fg3); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg2); font-family: var(--sans); font-size: 13px;
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; }
::selection { background: var(--orange-tint); color: var(--fg1); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #44464f; background-clip: padding-box; }
.mono { font-family: var(--mono); }
button { font-family: inherit; cursor: pointer; }
svg.ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ============================================================================
   APP GRID  —  rail | rooms | room-view | context
   ============================================================================ */
.app { display: grid; grid-template-columns: var(--rail-w) var(--rooms-w) 1fr var(--ctx-w);
  height: 100vh; overflow: hidden; }
.app.ctx-collapsed { grid-template-columns: var(--rail-w) var(--rooms-w) 1fr 0; }
.app.rooms-collapsed { grid-template-columns: var(--rail-w) 0 1fr var(--ctx-w); }

/* ============================================================================
   1 · WORKSPACE RAIL (far-left)
   ============================================================================ */
.rail { background: var(--rail); border-right: 1px solid var(--line); display: flex;
  flex-direction: column; align-items: center; padding: 10px 0; gap: 8px; }
/* ROUNDTABLE-UX-FEEDBACK-1 (F1): RT system logo at the top of the rail; workspace tiles sit below it. */
.rail-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font: 800 14px var(--mono); letter-spacing: .02em; color: var(--orange); background: var(--orange-tint);
  border: 1px solid var(--orange-line); flex: none; }
.ws { position: relative; width: 40px; height: 40px; border-radius: 13px; border: none;
  background: var(--surface-2); color: var(--fg2); display: grid; place-items: center;
  font-weight: 700; font-size: 14px; transition: .14s; }
.ws:hover { border-radius: 11px; color: var(--fg1); background: var(--surface-3); }
.ws.active { background: var(--orange); color: #fff; border-radius: 12px; box-shadow: 0 4px 14px -4px rgba(255,109,31,.55); cursor: default; }
.ws.active::before { content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--orange); }
.ws .ws-badge { position: absolute; top: -4px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--orange); color: var(--surface); border: 1px solid var(--rail);
  display: inline-flex; align-items: center; justify-content: center; font: 800 8.5px var(--mono); line-height: 1; pointer-events: none; }
.rail .sep { width: 26px; height: 1px; background: var(--line-2); margin: 2px 0; }
.rail .add { background: none; border: 1px dashed var(--line-2); color: var(--fg3); }
.rail .add:hover { color: var(--orange); border-color: var(--orange-line); }
.rail .add:disabled,
.rail .add[aria-disabled="true"] { opacity: .52; cursor: not-allowed; color: var(--fg4); border-color: var(--line); }
.rail .add:disabled:hover,
.rail .add[aria-disabled="true"]:hover { color: var(--fg4); border-color: var(--line); background: transparent; }
.rail .spacer { flex: 1; }
.profile-dock { position: relative; }
.rail .me { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); color: var(--human);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 2px solid var(--human-l); cursor: pointer; }
.rail .me.active, .rail .me:hover { background: var(--human-t); border-color: var(--human); color: var(--fg1); }
.profile-menu { position: absolute; left: 50px; bottom: 0; z-index: 90; width: min(300px, 78vw);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  box-shadow: var(--shadow); padding: 10px; display: grid; gap: 8px; color: var(--fg2); }
.profile-menu-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.profile-menu-head b { color: var(--fg1); font-size: 13px; }
.profile-menu-head small { display: block; margin-top: 2px; color: var(--fg3); font-family: var(--mono); font-size: 10px;
  overflow-wrap: anywhere; }
.profile-authority { color: var(--fg3); font-size: 11px; line-height: 1.35; }
.profile-login, .profile-change, .profile-actions { display: grid; gap: 6px; }
.profile-actions { grid-template-columns: 1fr 1fr; }
.profile-login input,
.profile-change input { width: 100%; min-height: 30px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--fg1); padding: 0 8px; }
.profile-action { width: 100%; justify-content: center; min-height: 32px; }
.profile-action.primary { color: #fff; border-color: transparent; background: var(--grad); }
.profile-action.primary:hover { color: #fff; border-color: transparent; filter: brightness(1.06); }
.profile-action.secondary { color: var(--fg2); background: var(--surface-2); }
.profile-action.danger { color: var(--err); border-color: var(--err-l); background: var(--err-t); }
.profile-action.danger:hover { color: #ffd2cc; border-color: var(--err); background: rgba(223,111,95,.20); }
.profile-login input:focus,
.profile-change input:focus,
.people-field input:focus,
.people-field select:focus,
.people-field textarea:focus { outline: 1px solid var(--orange-line); border-color: var(--orange-line); }
.profile-status { color: var(--fg3); font-size: 11px; line-height: 1.35; }

.app.auth-shell { display: block; min-height: 100vh; background: var(--bg); }
.app.auth-shell .rail,
.app.auth-shell .rooms,
.app.auth-shell .context,
.app.auth-shell .rv-top,
.app.auth-shell .gov-ribbon,
.app.auth-shell .composer-wrap,
.app.auth-shell .scrim { display: none; }
.app.auth-shell .room-view { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.app.auth-shell .timeline { width: 100%; height: 100vh; overflow: auto; display: grid; place-items: center; padding: 24px; }
.auth-page { width: min(472px, calc(100vw - 32px)); }
.auth-card { position: relative; display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line);
  border-radius: var(--r-xl); background: var(--surface); color: var(--fg2); box-shadow: var(--shadow); overflow: hidden; }
.auth-motif { display: flex; gap: 7px; }
.auth-motif span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--orange-line); background: var(--orange-t); }
.auth-motif span:nth-child(2) { border-color: var(--human-l); background: var(--human-t); }
.auth-motif span:nth-child(3) { border-color: var(--line-2); background: var(--surface-3); }
.auth-theme { position: absolute; top: 18px; right: 18px; }
.auth-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.auth-badge { min-width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--orange-line);
  color: var(--orange-soft); background: var(--orange-t); display: grid; place-items: center; font-weight: 800; }
.auth-lockup b { color: var(--fg1); font-size: 16px; }
.auth-lockup small { display: block; margin-top: 3px; color: var(--fg3); font: 11px var(--mono); }
.auth-card h1 { margin: 4px 0 0; color: var(--fg1); font-size: 30px; line-height: 1.05; letter-spacing: 0; }
.auth-card p { margin: 0; color: var(--fg3); line-height: 1.45; }
.auth-form { display: grid; gap: 11px; }
.auth-field { display: grid; gap: 5px; }
.auth-field span { color: var(--fg3); font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0; }
.auth-field input,
.password-shell input { width: 100%; min-height: 44px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--fg1); padding: 0 12px; font-size: 14px; }
.password-shell { position: relative; display: flex; align-items: center; }
.password-shell input { padding-right: 44px; }
.password-reveal { position: absolute; right: 6px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--fg3); display: grid; place-items: center; cursor: pointer; }
.password-reveal:hover { color: var(--orange-soft); border-color: var(--orange-line); background: var(--orange-t); }
.auth-field input:focus,
.password-shell input:focus,
.auth-check input:focus { outline: 2px solid var(--orange-line); outline-offset: 2px; border-color: var(--orange-line); }
.auth-check { min-height: 44px; display: flex; align-items: center; gap: 9px; color: var(--fg2); }
.auth-check input { width: 18px; height: 18px; accent-color: var(--orange); }
.auth-primary { min-height: 44px; border-radius: var(--r-md); border: 1px solid transparent; color: #fff; background: var(--grad);
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
.auth-primary:hover { filter: brightness(1.06); }
.auth-primary:disabled,
.auth-primary[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
/* LOGIN-UX-POLISH-1: in-flight field clarity + spinner + screen-reader status (token-only) */
.auth-field input:disabled,
.password-shell input:disabled { opacity: .55; cursor: not-allowed; }
.auth-spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
.auth-sr-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.link-button { border: 0; background: transparent; color: var(--orange-soft); padding: 0; min-height: 32px; cursor: pointer;
  font: 700 12px var(--mono); text-decoration: none; display: inline-flex; align-items: center; }
.link-button:hover { color: var(--orange); }
.auth-alert,
.auth-note { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--fg2);
  padding: 10px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.auth-alert { border-color: var(--err-l); background: var(--err-t); color: #ffd2cc; }
.auth-note.ok { border-color: var(--ok-l); background: var(--ok-t); color: var(--ok); }
.auth-signature { border-top: 1px solid var(--line); padding-top: 12px; color: var(--fg3); font: 11px var(--mono); }
.password-strength { display: grid; gap: 8px; }
.strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength-bars span { height: 5px; border-radius: 999px; background: var(--line); }
.strength-bars span.on { background: var(--orange); }
.strength-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.strength-list span { color: var(--fg3); font: 11px var(--mono); display: flex; align-items: center; gap: 5px; }
.strength-list span.met { color: var(--ok); }
/* ROUNDTABLE-UX-FEEDBACK-2: Account Settings matches the object-manager modal — anchored to a stable top
   position so switching tabs (which re-renders) does NOT recenter/move it vertically. */
.settings-backdrop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: start center; padding: 56px 20px 20px;
  background: rgba(0,0,0,.45); }
.account-settings { width: min(620px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); overflow: auto;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--fg2); box-shadow: var(--shadow); }
.account-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.account-settings-head > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.account-settings-head h2 { grid-column: 2; margin: 0; color: var(--fg1); font-size: 18px; letter-spacing: 0; }
.account-settings-head p { grid-column: 2; margin: 0; color: var(--fg3); font: 11px var(--mono); }
/* ROUNDTABLE-UX-FEEDBACK-2: boxed close button matching the object manager's .object-close (44px target). */
.account-settings-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--fg2); }
.account-settings-close:hover { color: var(--fg1); border-color: var(--orange-line); }
.settings-tabs { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.settings-tab { min-height: 34px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2);
  color: var(--fg2); padding: 0 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.settings-tab.active { border-color: var(--orange-line); color: var(--orange-soft); background: var(--orange-t); }
.settings-section { display: grid; gap: 10px; padding: 16px; }
.settings-password-grid { display: grid; gap: 10px; }
.settings-grid { display: grid; gap: 8px; }
.settings-row { display: grid; grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.settings-row span { color: var(--fg3); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.settings-row b { color: var(--fg1); min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.settings-history,
.settings-session-list { display: grid; gap: 8px; }
.settings-history-row,
.settings-session-row,
.settings-callout { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); min-width: 0; }
.settings-history-row span,
.settings-session-row b,
.settings-callout b { color: var(--fg1); font-weight: 800; }
.settings-history-row small,
.settings-session-row small,
.settings-callout small { display: block; color: var(--fg3); font: 11px var(--mono); margin-top: 3px; line-height: 1.35; }
.settings-session-row > div { min-width: 0; display: grid; gap: 3px; }
.settings-session-row code { color: var(--fg3); font: 11px var(--mono); overflow-wrap: anywhere; }
.settings-theme { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================================
   2 · ROOM LIST
   ============================================================================ */
.rooms { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  overflow: hidden; min-width: 0; }
.rooms-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.rooms-head .wm { font-weight: 700; font-size: 14px; color: var(--fg1); letter-spacing: -.01em; }
.rooms-head .wm small { display: block; font-family: var(--mono); font-size: 10px; color: var(--fg3); font-weight: 500; margin-top: 1px; }
.rooms-head .gear { margin-left: auto; color: var(--fg3); width: 28px; height: 28px; border-radius: 6px;
  background: none; border: none; display: grid; place-items: center; }
.rooms-head .gear:hover { background: var(--surface-2); color: var(--fg1); }
.rooms-head .gear:disabled,
.rooms-head .gear[aria-disabled="true"] { opacity: .52; cursor: not-allowed; color: var(--fg4); }
.rooms-head .gear:disabled:hover,
.rooms-head .gear[aria-disabled="true"]:hover { background: transparent; color: var(--fg4); }

.rooms-search { padding: 10px 12px; }
.rooms-search .box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 7px 10px; color: var(--fg4); font-size: 12px; }
.rooms-search .box svg { width: 14px; height: 14px; }
.rooms-search .box.unavailable { cursor: not-allowed; opacity: .7; border-style: dashed; }

.rooms-list { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
/* ROOM-CREATION-DISCOVERABILITY-1: persistent room-list create affordance (layout only; reuses tokens) */
.room-create-bar { padding: 8px 8px 2px; }
.room-create-bar .room-create-toggle { width: 100%; justify-content: center; }
.room-create-bar .room-create-form { margin-top: 6px; }
/* ROOM-CREATION-DISCOVERABILITY-2: expanded opener is a secondary "Cancel" (muted), not a 2nd primary */
.room-create-bar .room-create-cancel { color: var(--fg3); border-color: var(--line); background: transparent; }
.room-group { margin-top: 12px; }
.room-group .gl { display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-family: var(--mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg4); }
.room-group .gl .ct { margin-left: auto; }
.room-group .gl svg { width: 11px; height: 11px; }
.room { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-sm);
  color: var(--fg2); font-size: 13px; border: none; background: none; width: 100%; text-align: left; transition: .1s; }
.room:hover { background: var(--surface-2); color: var(--fg1); }
/* ROOM-LIFECYCLE-1: archived rooms live behind a default-closed disclosure, not in the normal list. */
.room-archived-disclosure { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.archived-rooms-toggle { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 8px; border: none;
  background: none; color: var(--fg3); font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.archived-rooms-toggle:hover { color: var(--fg1); }
.archived-rooms-list { display: flex; flex-direction: column; gap: 4px; padding: 4px 8px 2px; }
.archived-room-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.archived-room-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg3); font-size: 12px; }
.room.active { background: rgba(255,109,31,.14); color: var(--orange-soft); }
.room.active .room-glyph { color: var(--orange-soft); }
.room.active .unread { background: rgba(255,109,31,.20); color: var(--orange-soft); }
.room.active .live-dot { background: var(--orange); box-shadow: 0 0 7px rgba(255,109,31,.6); }
.room-glyph { width: 16px; color: var(--fg3); display: grid; place-items: center; font-family: var(--mono); flex: none; }
.room-glyph svg { width: 14px; height: 14px; }
.room .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .room-meta { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.room .unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-4);
  color: var(--fg1); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.room.has-alert .unread { background: var(--orange); color: #fff; }
.room .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 7px var(--ok); }
.room .pin { color: var(--fg4); }
.room .pin svg { width: 12px; height: 12px; }

.rooms-foot { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: center; gap: 9px; }
.rooms-foot .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.rooms-foot .txt { font-family: var(--mono); font-size: 10.5px; color: var(--fg3); }
.rooms-foot .txt b { color: var(--fg2); }

/* ============================================================================
   3 · ROOM VIEW (center)
   ============================================================================ */
.room-view { display: flex; flex-direction: column; background: var(--surface); overflow: hidden; min-width: 0; }

/* topbar */
.rv-top { height: var(--topbar-h); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: var(--surface); }
.rv-top .rv-glyph { color: var(--fg3); font-family: var(--mono); }
.rv-top .rv-title { font-weight: 700; font-size: 14px; color: var(--fg1); }
.rv-top .rv-topic { font-size: 12px; color: var(--fg3); border-left: 1px solid var(--line-2); padding-left: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.rv-top .rv-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
/* ROUNDTABLE-UX-FEEDBACK-1 (F3): clickable presence cluster + read-only member-name popover. */
.facepile-wrap { position: relative; display: inline-flex; align-items: center; }
.rv-top .facepile { display: flex; align-items: center; min-width: 44px; min-height: 44px; margin-right: 6px; cursor: pointer; background: none; border: none; padding: 0 7px; border-radius: var(--r-sm); }
.rv-top .facepile:hover { background: var(--surface-2); }
.rv-top .facepile .av { margin-left: -7px; border: 2px solid var(--surface); }
/* ROUNDTABLE-UX-FEEDBACK-2: richer rows (role · agent/person · name) need more width than the names list. */
.facepile-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 130; min-width: 290px; max-height: 360px; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 8px; }
.facepile-pop.hidden { display: none; }
.facepile-pop-head { display: flex; align-items: center; gap: 6px; font: 700 11px var(--mono); color: var(--fg3); padding: 2px 4px 8px; }
.facepile-pop-head .ct { margin-left: auto; }
.facepile-pop-row { display: flex; align-items: center; gap: 7px; padding: 5px 4px; font-size: 12.5px; color: var(--fg1); }
.facepile-pop-row .people-role-badge, .facepile-pop-row .status-pill { flex: none; }
.facepile-pop-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid transparent; background: none;
  color: var(--fg3); display: grid; place-items: center; transition: .12s; position: relative; }
#toggleRooms { display: none; }
.iconbtn:hover { background: var(--surface-3); color: var(--fg1); }
.iconbtn.on { background: var(--orange-tint); color: var(--orange); border-color: var(--orange-line); }
.iconbtn svg { width: 16px; height: 16px; }
.iconbtn:disabled,
.iconbtn[aria-disabled="true"] { opacity: .48; cursor: not-allowed; color: var(--fg4); }
.iconbtn:disabled:hover,
.iconbtn[aria-disabled="true"]:hover { background: transparent; color: var(--fg4); }
.notifications-wrap { position: relative; display: inline-flex; align-items: center; }
.notification-bell.on { background: var(--surface-3); color: var(--fg1); border-color: var(--line-2); }
.notification-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: var(--orange); color: var(--surface); border: 2px solid var(--surface);
  display: grid; place-items: center; font: 800 8px var(--mono); line-height: 1; }
.notification-badge.hidden { display: none; }
.notification-panel { position: absolute; z-index: 130; top: calc(100% + 8px); right: 0; width: min(430px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - var(--topbar-h) - 24px)); overflow: auto; border: 1px solid var(--line-2);
  border-radius: var(--r-md); background: var(--surface-2); box-shadow: var(--shadow); padding: 12px; }
.notification-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 12px;
  border-bottom: 1px solid var(--line); color: var(--fg1); }
.notification-title { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: 15px; }
.notification-title svg { width: 18px; height: 18px; color: var(--fg1); }
.notification-actions { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.notification-mark { min-height: 30px; padding: 5px 10px; white-space: nowrap; }
/* decorative only — not a control: no border/background/box, no pointer, no hover/focus state */
.notification-filter { display: grid; place-items: center; color: var(--fg4); }
.notification-filter svg { width: 15px; height: 15px; }
.notification-summary-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 12px 0;
  border-bottom: 1px solid var(--line); }
.notification-summary-pill { display: grid; grid-template-columns: 18px minmax(0, auto); grid-template-rows: auto auto;
  align-items: center; column-gap: 8px; min-width: 0; padding: 0 10px; color: var(--fg2); }
.notification-summary-pill:not(:first-child) { border-left: 1px solid var(--line); }
.notification-summary-pill svg { grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--fg3); }
.notification-summary-pill b { color: var(--fg1); font: 800 12px var(--mono); line-height: 1.1; }
.notification-summary-pill small { color: var(--fg3); font-size: 11px; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.notification-summary-pill.unread,
.notification-summary-pill.unread svg,
.notification-summary-pill.unread b { color: var(--info); }
.notification-list { display: grid; gap: 10px; padding-top: 12px; }
.notification-row { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) 12px; gap: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
/* NOTIFICATIONS-UI-POLISH-1: unread is indicated subtly — a NEUTRAL surface lift + stronger border + bolder
   title + the dot button. No orange/brown full-card fill, no colored left-side bar; icon/category tone colors
   (.notification-kind.tone-*) carry the only color. */
.notification-row.unseen { background: var(--surface-3); border-color: var(--line-2); }
.notification-row.unseen .notification-row-head b { font-weight: 800; }
.notification-kind { align-self: start; display: grid; place-items: center; color: var(--fg3); }
.notification-kind svg { width: 19px; height: 19px; }
.notification-kind.tone-info { color: var(--info); }
.notification-kind.tone-ok { color: var(--ok); }
.notification-kind.tone-human { color: var(--human); }
.notification-kind.tone-warn { color: var(--warn); }
.notification-kind.tone-risk,
.notification-kind.tone-orange { color: var(--orange); }
.notification-main { display: grid; gap: 6px; min-width: 0; }
.notification-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.notification-row-head b { min-width: 0; color: var(--fg1); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-row-head b span { color: var(--info); font: 800 10px var(--mono); text-transform: uppercase; }
.notification-row-head time { flex: none; color: var(--fg3); font-size: 11px; }
.notification-main > span,
.notification-main small { color: var(--fg3); font: 700 10px var(--mono); overflow-wrap: anywhere; }
.notification-main .technical-details { margin-top: 2px; }
.notification-dot { position: relative; align-self: center; justify-self: center; width: 24px; height: 24px; padding: 0; border: 0;
  border-radius: 999px; background: transparent; cursor: pointer; }
.notification-dot::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 9px; height: 9px;
  border-radius: 999px; background: var(--info); box-shadow: 0 0 0 3px var(--info-t); transform: translate(-50%, -50%); }
.notification-dot:hover::after { box-shadow: 0 0 0 4px var(--info-t); filter: brightness(1.08); }
.notification-empty { color: var(--fg3); font: 700 11px var(--mono); padding: 12px 4px; }

/* governance ribbon — ink "authority bar" (Kraken kw-card--ink): dark strip,
   paper text, tangerine shield. Reads as the mission-control control plane. */
.gov-ribbon { flex: none; display: flex; align-items: center; gap: 9px; padding: 7px 16px;
  background: #0c0d11; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 11.5px; color: rgba(236,238,244,.72);
  min-width: 0; flex-wrap: wrap; }
.gov-ribbon #govRibbonTxt { min-width: 0; overflow-wrap: anywhere; }
.gov-ribbon svg { width: 14px; height: 14px; color: var(--orange); }
.gov-ribbon b { color: #ffffff; }
.gov-ribbon .rb-right { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: rgba(236,238,244,.42);
  min-width: 0; overflow-wrap: anywhere; }
.gov-ribbon.lockdown { background: #2a0d12; border-color: rgba(223,111,95,.4); color: #f0a99f; }
.gov-ribbon.lockdown b { color: #ffd9d2; }
.gov-ribbon.lockdown svg { color: var(--err); }
:root[data-theme="light"] .gov-ribbon { background: var(--orange-tint); border-bottom-color: var(--orange-line); color: #5f3422; }
:root[data-theme="light"] .gov-ribbon b { color: #2f1b12; }
:root[data-theme="light"] .gov-ribbon .rb-right { color: rgba(95,52,34,.65); }
:root[data-theme="light"] .gov-ribbon.lockdown { background: var(--err-t); border-bottom-color: var(--err-l); color: #7d1c32; }
:root[data-theme="light"] .gov-ribbon.lockdown b { color: #4c0c1b; }

/* ============================================================================
   4 · CHAT TIMELINE
   ============================================================================ */
.timeline { flex: 1; overflow-y: auto; padding: 14px 16px 8px; display: flex; flex-direction: column; }
.day-div { display: flex; align-items: center; gap: 12px; margin: 16px 2px 8px; }
.day-div::before, .day-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day-div span { font-family: var(--mono); font-size: 10.5px; color: var(--fg4); letter-spacing: .05em; }

.msg { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 7px 6px; border-radius: var(--r-sm);
  position: relative; }
.msg:hover { background: var(--surface-2); }
.msg.sys { grid-template-columns: 1fr; padding: 3px 6px; }
.msg .av-col { padding-top: 2px; }
.msg .m-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.msg .m-name { font-weight: 700; font-size: 13px; color: var(--fg1); }
.msg .m-ts { font-family: var(--mono); font-size: 10px; color: var(--fg4); }
.msg .m-body { font-size: 13.5px; color: var(--fg1); line-height: 1.55; }
.msg .m-body p { margin: 0 0 6px; } .msg .m-body p:last-child { margin: 0; }
.msg.cont { padding-top: 1px; padding-bottom: 1px; }
.msg.cont .av-col { opacity: 0; }
.msg.cont:hover .av-col { opacity: 1; }
.msg.cont .av-col .mini-ts { font-family: var(--mono); font-size: 9px; color: var(--fg4); text-align: center; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; opacity: .2; transition: opacity .12s; }
.msg:hover .msg-actions, .msg-actions:focus-within { opacity: 1; }
.mini-action { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 9px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--surface-3); color: var(--fg2); font-size: 11px; font-weight: 650; }
.mini-action:hover { color: var(--fg1); border-color: var(--orange-line); background: var(--orange-t); }
.mini-action.run { color: var(--orange-soft); border-color: var(--orange-line); }
.mini-action.ok { color: var(--ok); border-color: var(--ok-l); background: var(--ok-t); }
.mini-action.warn { color: var(--warn); border-color: var(--warn-l); background: var(--warn-t); }
.mini-action.stop { color: var(--err); border-color: var(--err-l); background: var(--err-t); }
.mini-action.review-action { color: var(--human); border-color: var(--human-l); background: var(--human-t); }
.mini-action.committee-action { color: var(--info); border-color: var(--info-l); background: var(--info-t); }
.mini-action.static { pointer-events: none; opacity: .72; }
.mini-action.static.completed { color: var(--ok); border-color: var(--ok-l); background: var(--ok-t); }
.mini-action.static.failed,
.mini-action.static.cancelled { color: var(--risk); border-color: var(--risk-l); background: var(--risk-t); }
.mini-action.disabled,
.mini-action.unavailable,
.mini-action:disabled,
.mini-action[aria-disabled="true"] { opacity: .48; cursor: not-allowed; color: var(--fg4); border-color: var(--line); background: var(--surface-2); }
.mini-action.unavailable:hover,
.mini-action:disabled:hover,
.mini-action[aria-disabled="true"]:hover { color: var(--fg4); border-color: var(--line); background: var(--surface-2); }
.inline-stop { margin-top: 6px; }
.mini-action svg { width: 13px; height: 13px; }

/* message kind tag */
.kind { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 9.5px;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--line-2); color: var(--fg3); }
.kind.task { color: var(--orange-soft); background: var(--orange-t); border-color: var(--orange-line); }
.kind.proposal { color: var(--info); background: var(--info-t); border-color: var(--info-l); }
.kind.review { color: var(--human); background: var(--human-t); border-color: var(--human-l); }
.kind.decision { color: var(--ok); background: var(--ok-t); border-color: var(--ok-l); }
.kind.critique { color: var(--warn); background: var(--warn-t); border-color: var(--warn-l); }
.kind.blocked { color: var(--err); background: var(--err-t); border-color: var(--err-l); }

/* mentions & code inline */
.mention { color: var(--orange-soft); background: var(--orange-tint); padding: 0 4px; border-radius: 4px;
  font-weight: 600; font-size: 12.5px; }
.mention.human { color: var(--human); background: var(--human-t); }
.mention.all { color: var(--warn); background: var(--warn-t); }
.m-body code { font-family: var(--mono); font-size: 11.5px; background: var(--surface-3); color: var(--orange-soft);
  padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.m-body a.ref { color: var(--info); text-decoration: none; border-bottom: 1px dashed var(--info-l); }

/* code block in message */
.m-code { margin: 8px 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.m-code .cc-top { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface-3);
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--fg3); }
.m-code .cc-top .cp { margin-left: auto; color: var(--fg3); }
.m-code pre { margin: 0; padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7;
  color: var(--fg2); overflow-x: auto; }
.m-code .kw { color: var(--info); } .m-code .st { color: var(--ok); } .m-code .fn { color: var(--orange-soft); }

/* attachment chips / cards */
.attach { display: flex; gap: 9px; margin-top: 7px; flex-wrap: wrap; }
.att-card { display: flex; align-items: center; gap: 9px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 11px; min-width: 180px; color: inherit; text-decoration: none; }
.att-card:hover { border-color: var(--info-l); background: var(--surface-3); }
.att-card .ai { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.att-card .ai.diff { background: var(--ok-t); color: var(--ok); }
.att-card .ai.file { background: var(--info-t); color: var(--info); }
.att-card .ai.img,
.att-card .ai.image { background: var(--human-t); color: var(--human); }
.att-card .ai svg { width: 16px; height: 16px; }
.att-card .an { font-size: 12px; color: var(--fg1); font-weight: 600; }
.att-card .as { font-family: var(--mono); font-size: 10px; color: var(--fg3); margin-top: 1px; }
.att-card .as .pos { color: var(--ok); } .att-card .as .neg { color: var(--err); }

/* inline proposal/review card embedded in timeline */
.embed { margin-top: 8px; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; max-width: 560px; }
.embed .e-top { display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: var(--surface-3);
  border-bottom: 1px solid var(--line); }
.embed .e-top .e-id { font-family: var(--mono); font-size: 11px; color: var(--orange-soft); font-weight: 600; }
.embed .e-top .e-title { font-size: 12.5px; font-weight: 600; color: var(--fg1); }
.embed .e-top .b { margin-left: auto; }
.embed .e-body { padding: 10px 12px; }
.embed .e-row { display: flex; gap: 10px; font-size: 11.5px; padding: 3px 0; }
.embed .e-row .ek { color: var(--fg3); width: 76px; flex: none; font-family: var(--mono); font-size: 10.5px; }
.embed .e-actions { display: flex; gap: 7px; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* reactions */
.reacts { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-3); border: 1px solid var(--line);
  border-radius: 11px; padding: 2px 8px; font-size: 11px; color: var(--fg2); }
.react.mine { background: var(--orange-tint); border-color: var(--orange-line); color: var(--orange-soft); }
.react .rc { font-family: var(--mono); font-size: 10px; color: var(--fg3); }
.mention-lifecycle .mention-state.ok { color: var(--ok); border-color: var(--ok-l); background: var(--ok-t); }
.mention-lifecycle .mention-state.warn { color: var(--warn); border-color: var(--warn-l); background: var(--warn-t); }
.mention-lifecycle .mention-state.risk { color: var(--risk); border-color: var(--risk-l); background: var(--risk-t); }

.agent-working-strip { display: grid; gap: 8px; margin: 4px 6px 8px; }
.agent-working { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%;
  border: 1px solid var(--warn-l); background: var(--warn-t); color: var(--fg2); border-radius: var(--r-sm); padding: 7px 9px; }
.agent-working b { color: var(--fg1); }
.agent-response { max-width: 720px; }
.agent-response-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.recommendation-card { margin-top: 9px; max-width: 620px; border: 1px solid var(--info-l); background: var(--info-t);
  border-radius: var(--r-md); overflow: hidden; }
.recommendation-card .rec-top { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); color: var(--fg1); }
.recommendation-card .rec-top svg { color: var(--info); }
.recommendation-card .rec-top .b { margin-left: auto; }
.recommendation-card .rec-body { padding: 10px 11px; color: var(--fg2); font-size: 12.5px; line-height: 1.5; }
.recommendation-card .rec-meta { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 11px 9px;
  font-family: var(--mono); font-size: 10px; color: var(--fg3); }
.recommendation-card .rec-meta span:not(:last-child)::after { content: "·"; margin-left: 7px; color: var(--fg4); }
.recommendation-card .rec-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 9px 11px; border-top: 1px solid var(--line);
  background: var(--surface-2); }

/* typing / status line */
.typing { display: flex; align-items: center; gap: 8px; padding: 4px 8px 8px; font-size: 11.5px; color: var(--fg3);
  font-style: italic; }
.typing .dots { display: inline-flex; gap: 3px; }
.typing .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); animation: blink 1.2s infinite; }
.typing .dots i:nth-child(2){ animation-delay: .2s; } .typing .dots i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{opacity:.25;} 30%{opacity:1;} }

/* ============================================================================
   AVATARS (agents + human)
   ============================================================================ */
.av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700;
  font-size: 13px; color: #fff; position: relative; flex: none; }
.av.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.av.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.av.human { background: var(--surface-3); color: var(--human); border: 1.5px solid var(--human-l); }
.av .presence { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--surface); }
.av.sm .presence { width: 8px; height: 8px; right: -2px; bottom: -2px; }
.presence.online { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.presence.busy   { background: var(--warn); }
.presence.thinking { background: var(--info); }
.presence.offline { background: var(--fg4); }

/* ============================================================================
   5 · COMPOSER
   ============================================================================ */
.composer-wrap { flex: none; padding: 10px 16px 14px; }
.composer { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2);
  transition: border-color .15s; }
.composer.focus { border-color: var(--orange-line); box-shadow: 0 0 0 3px var(--orange-tint); }
.composer .c-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.composer .c-toolbar .tb { width: 44px; height: 44px; border-radius: 6px; background: none; border: none; color: var(--fg3);
  display: grid; place-items: center; }
.composer .c-toolbar .tb:hover { background: var(--surface-3); color: var(--fg1); }
.composer .c-toolbar .tb:disabled,
.composer .c-toolbar .tb[aria-disabled="true"] { color: var(--fg4); cursor: not-allowed; opacity: .58; }
.composer .c-toolbar .tb:disabled:hover,
.composer .c-toolbar .tb[aria-disabled="true"]:hover { background: transparent; color: var(--fg4); }
.composer .c-toolbar .tb svg { width: 15px; height: 15px; }
.composer .c-toolbar .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.composer .c-toolbar .target { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11px;
  color: var(--fg2); font-family: var(--mono); border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 999px; padding: 3px 8px 3px 4px; cursor: pointer; transition: .12s; white-space: nowrap; }
.composer .c-toolbar .target:hover { background: var(--surface-3); border-color: var(--human-l); }
.composer .c-toolbar .target .who { color: var(--human); font-weight: 600; }
.composer .c-toolbar .target .chev { width: 12px; height: 12px; color: var(--fg3); }
.composer .c-input { padding: 11px 13px; min-height: 24px; color: var(--fg1); font-size: 13.5px; outline: none; }
.composer .c-input:empty::before { content: attr(data-ph); color: var(--fg4); }
.composer .auth-strip { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.composer .auth-strip input { min-width: 0; width: 130px; height: 28px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--fg1); padding: 0 9px; font: inherit; }
.composer .auth-strip input:focus { outline: none; border-color: var(--orange-line); box-shadow: 0 0 0 3px var(--orange-tint); }
.composer .c-foot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.composer .c-foot .hint { font-family: var(--mono); font-size: 10.5px; color: var(--fg4); }
.composer .c-foot .hint b { color: var(--fg3); }
.composer .c-foot .hint .cli-hint { color: var(--orange-soft); }
.composer .c-foot .send { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; background: var(--grad);
  color: #fff; border: none; border-radius: var(--r-sm); padding: 8px 15px; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(239,106,54,.5); }
.composer .c-foot .send:active { transform: scale(.97); }
.composer .c-foot .send svg { width: 14px; height: 14px; }
.composer .c-foot .send:disabled, .composer .c-foot .send.is-disabled {
  background: var(--surface-3); color: var(--fg4); box-shadow: none; cursor: not-allowed; filter: none; transform: none; }
.composer .c-attach-row { display: flex; gap: 8px; padding: 0 12px 10px; flex-wrap: wrap; }
.composer .c-attach-row:empty { display: none; }
.composer-attach-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; min-height: 34px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-3); color: var(--fg2); padding: 5px 7px; }
.composer-attach-chip .ai { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none;
  background: var(--info-t); color: var(--info); }
.composer-attach-chip .ai.image { background: var(--human-t); color: var(--human); }
.composer-attach-chip b,
.composer-attach-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-attach-chip b { font-size: 11px; color: var(--fg1); }
.composer-attach-chip small { margin-top: 1px; font: 9.5px var(--mono); color: var(--fg3); }
.composer-attach-chip .chip-remove { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--fg3); display: grid; place-items: center; cursor: pointer; }
.composer-attach-chip .chip-remove:hover { color: var(--fg1); border-color: var(--line-2); }

/* mention autocomplete popover */
.mention-pop { position: absolute; top: 44px; left: 10px; width: min(280px, calc(100% - 20px)); max-height: 180px;
  overflow: auto; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.7); padding: 6px; z-index: 70; display: none; }
.mention-pop.show { display: block; }
.mention-pop .mp-h { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg4); padding: 5px 8px; }
.mention-pop .mp-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-sm); }
.mention-pop .mp-row:hover, .mention-pop .mp-row.sel { background: var(--surface-3); }
.mention-pop .mp-row .mp-name { font-size: 12.5px; color: var(--fg1); font-weight: 600; }
.mention-pop .mp-row .mp-role { font-family: var(--mono); font-size: 10px; color: var(--fg3); margin-left: auto; }

/* ============================================================================
   6 · CONTEXT PANEL (right, tabbed)
   ============================================================================ */
.context { background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  overflow: hidden; min-width: 0; }
/* Grouped context navigation preserves every canonical surface while separating people/work from
   operational and evidence destinations. */
.ctx-tabs { display: grid; gap: 7px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: hidden; flex: none; }
.ctx-tabs::-webkit-scrollbar { display: none; }
.ctx-tab-group { min-width: 0; }
.ctx-tab-group-label { margin: 0 4px 3px; color: var(--fg4); font: 800 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ctx-tab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 2px; }
.ctx-tab { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; border: none; background: none;
  color: var(--fg3); font-size: 12px; font-weight: 600; border-radius: 6px; white-space: nowrap; min-width: 0; min-height: 32px; text-align: left; }
.ctx-tab-icon { display: grid; place-items: center; }
.ctx-tab-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ctx-tab-badge { justify-self: end; display: inline-flex; align-items: center; }
.ctx-tab svg { width: 14px; height: 14px; color: currentColor; }
.ctx-tab .tct { font-family: var(--mono); font-size: 10px; background: var(--surface-3); color: var(--fg2);
  padding: 0 5px; border-radius: 7px; min-width: 16px; text-align: center; }
.ctx-tab:hover { color: var(--fg1); background: var(--surface-2); }
/* ROUND-UI-POLISH-4: active state is the orange-tinted item box itself (orange text + icon via
   currentColor), attached by definition — no detached left-accent bracket in the multi-column grid. */
.ctx-tab.active { color: var(--orange); background: var(--orange-tint); }
.ctx-tab.active .tct { background: var(--orange-tint); color: var(--orange); }
.ctx-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px; min-width: 0; }
.ctx-sec-title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--fg4); margin: 4px 2px 10px; }
.ctx-sec-title .ct { margin-left: auto; color: var(--fg3); }
.ctx-sec-title:not(:first-child) { margin-top: 20px; }

/* generic panel card */
.pcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 9px; overflow: hidden; }
.pcard .pc-top { display: flex; align-items: center; gap: 9px; padding: 9px 11px; }
.pcard .pc-top.bd { border-bottom: 1px solid var(--line); background: var(--surface-3); }
.pcard .pc-body { padding: 9px 11px; }
.pcard .pc-row { display: flex; gap: 8px; font-size: 11.5px; padding: 3px 0; }
.pcard .pc-row .pk { color: var(--fg3); width: 78px; flex: none; font-family: var(--mono); font-size: 10.5px; }
.pcard .pc-row .pv { color: var(--fg2); }
/* GEN4-3B-BACKGROUND-TASKS: deferred-schedule controls (token-only). */
.task-schedule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.task-schedule.due { padding: 4px 6px; border-radius: var(--r-sm); background: var(--warn-t); }
.task-schedule-input { min-height: 24px; font-size: 10.5px; color: var(--fg2); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-family: var(--mono); }

/* ---- 8/9/10 AGENT CARD ---- */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 10px; align-items: start; }
.agent-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 9px; overflow: hidden; }
.agent-card .ac-top { display: flex; align-items: center; gap: 10px; padding: 11px; }
.agent-card .ac-id { min-width: 0; }
.agent-card .ac-name { font-size: 13px; font-weight: 700; color: var(--fg1); display: flex; align-items: center; gap: 7px; }
.agent-card .ac-sub { font-family: var(--mono); font-size: 10.5px; color: var(--fg3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-card .ac-status { margin-left: auto; flex: none; }
.agent-card .ac-status { display: inline-flex; align-items: center; gap: 6px; }
.agent-card .ac-foot { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-top: 1px solid var(--line);
  background: var(--surface); flex-wrap: wrap; }
.agent-card.disabled-agent { opacity: .82; border-style: dashed; }
.agent-card.disabled-agent .ac-name,
.agent-card.disabled-agent .ac-sub { color: var(--fg3); }
.agent-band { padding: 10px 11px; border-top: 1px solid var(--line); }
.agent-band:first-child { border-top: 0; }
.agent-identity-band { display: flex; align-items: center; gap: 10px; }
.agent-tag-band { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-top: 0; border-top: 0; }
.agent-tag-band .b { font-size: 9.5px; padding: 2px 6px; }
.agent-detail-band { display: grid; gap: 7px; background: var(--surface); }
.agent-capability-band { display: grid; gap: 7px; }
.agent-band-label { font-family: var(--mono); color: var(--fg3); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.agent-statusbar-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 11.5px; }
.agent-statusbar-row > span:first-child { font-family: var(--mono); color: var(--fg3); font-size: 10.5px; }
.statusbar { min-width: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2);
  font: 700 10px var(--mono); overflow-wrap: anywhere; }
.statusbar-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.statusbar.ok { color: var(--ok); border-color: var(--ok-l); background: var(--ok-t); }
.statusbar.warn { color: var(--warn); border-color: var(--warn-l); background: var(--warn-t); }
.statusbar.risk,
.statusbar.err { color: var(--err); border-color: var(--err-l); background: var(--err-t); }
.statusbar.muted { color: var(--fg3); }
.pulse { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 8px;
  border-radius: 999px; border: 1px solid var(--ok-l); background: var(--ok-t); color: var(--ok);
  font: 800 10px var(--mono); text-transform: uppercase; flex: none; }
.pulse svg { width: 14px; height: 14px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--ok-t); }
.pulse.down { color: var(--err); border-color: var(--err-l); background: var(--err-t); }
.pulse.down .pulse-dot { box-shadow: 0 0 0 3px var(--err-t); }
.agent-profile-body { display: grid; gap: 7px; padding: 0 11px 10px; }
.agent-profile-row { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: start; font-size: 11.5px; }
.agent-profile-row > span:first-child { font-family: var(--mono); color: var(--fg3); font-size: 10.5px; }
.capability-chip { color: var(--info); background: var(--info-t); border-color: var(--info-l); }
.agent-turns { display: grid; gap: 6px; padding: 9px 11px; border-top: 1px solid var(--line); background: var(--surface); }
.agent-turn-mini { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; font-size: 11px; color: var(--fg2); }
.muted-line { font-family: var(--mono); font-size: 10.5px; color: var(--fg4); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px;
  font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg3); }
.status-pill .sd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.online   { color: var(--ok);   background: var(--ok-t);   border-color: var(--ok-l); }
.status-pill.busy     { color: var(--warn); background: var(--warn-t); border-color: var(--warn-l); }
.status-pill.thinking { color: var(--info); background: var(--info-t); border-color: var(--info-l); }
.status-pill.offline  { color: var(--fg3); }
.status-pill .spin { width: 9px; height: 9px; animation: spin 1s linear infinite; }
.health-indicator { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 7px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg3); }
.health-indicator svg { width: 13px; height: 13px; }
.health-indicator .health-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.health-indicator.ok { color: var(--ok); border-color: var(--ok-l); background: var(--ok-t); }
.health-indicator.warn { color: var(--warn); border-color: var(--warn-l); background: var(--warn-t); }
.health-indicator.risk { color: var(--risk); border-color: var(--risk-l); background: var(--risk-t); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- badges (shared) ---- */
.b { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--fg2); background: var(--surface-3); white-space: nowrap; }
.b svg { width: 10px; height: 10px; }
.b.role { color: var(--orange-soft); background: var(--orange-t); border-color: var(--orange-line); }
.b.human { color: var(--human); background: var(--human-t); border-color: var(--human-l); }
.b.perm.granted { color: var(--ok); background: var(--ok-t); border-color: var(--ok-l); }
.b.perm.revoked { color: var(--fg4); background: transparent; border-style: dashed; }
.b.ok { color: var(--ok); background: var(--ok-t); border-color: var(--ok-l); }
.b.warn { color: var(--warn); background: var(--warn-t); border-color: var(--warn-l); }
.b.err { color: var(--err); background: var(--err-t); border-color: var(--err-l); }
.b.info { color: var(--info); background: var(--info-t); border-color: var(--info-l); }
.b.human2 { color: var(--human); background: var(--human-t); border-color: var(--human-l); }
.b.risk { color: var(--risk); background: var(--risk-t); border-color: var(--risk-l); }
.b.lock { color: var(--warn); background: var(--warn-t); border-color: var(--warn-l); }
.b.muted { color: var(--fg3); }
.permset { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---- 11 TASK PANEL ---- */
.task { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; }
.task .tk-top { display: flex; align-items: center; gap: 9px; padding: 10px 11px; }
.task .tk-id { font-family: var(--mono); font-size: 10.5px; color: var(--orange-soft); font-weight: 600; }
.task .tk-title { font-size: 12.5px; color: var(--fg1); font-weight: 600; flex: 1; }
.task .tk-foot { display: flex; align-items: center; gap: 8px; padding: 0 11px 10px; }
.task .tk-assignee { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.task-state { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px; }
.task-state.todo { color: var(--fg3); background: var(--surface-3); }
.task-state.doing { color: var(--info); background: var(--info-t); }
.task-state.review { color: var(--human); background: var(--human-t); }
.task-state.blocked { color: var(--err); background: var(--err-t); }
.task-state.done { color: var(--ok); background: var(--ok-t); }
.task .tk-prog { height: 3px; background: var(--surface-4); border-radius: 3px; margin: 0 11px 10px; overflow: hidden; }
.task .tk-prog i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }

/* ---- 12 DEPENDENCY GRAPH ---- */
.depgraph { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px;
  position: relative; overflow: hidden; }
.depgraph svg { width: 100%; display: block; }
.dep-legend { display: flex; gap: 12px; margin-top: 10px; font-size: 10.5px; color: var(--fg3); flex-wrap: wrap; }
.dep-legend .li { display: flex; align-items: center; gap: 6px; }
.dep-legend .sw { width: 9px; height: 9px; border-radius: 3px; }

/* ---- 16 AUDIT ---- */
.audit-row { display: grid; grid-template-columns: 52px 1fr; gap: 9px; padding: 6px 2px; font-family: var(--mono);
  font-size: 10.5px; border-bottom: 1px dashed var(--line); align-items: baseline; }
.audit-row:last-child { border-bottom: none; }
.audit-row .a-ts { color: var(--fg4); }
.audit-row .a-main .a-actor.human { color: var(--human); }
.audit-row .a-main .a-actor.agent { color: var(--info); }
.audit-row .a-main .a-actor.system { color: var(--fg3); }
.audit-row .a-main .a-type { color: var(--fg1); }
.audit-row .a-main .a-pl { color: var(--fg3); }
.technical-details { margin-top: 6px; color: var(--fg3); font: 10.5px var(--mono); }
.technical-details summary { display: inline-flex; align-items: center; gap: 6px; color: var(--fg3); cursor: pointer; user-select: none; }
.technical-details summary:hover { color: var(--fg1); }
.technical-details summary:focus-visible { outline: 1px solid var(--orange-line); outline-offset: 3px; border-radius: 4px; }
.technical-details pre { margin: 6px 0 0; max-height: 220px; overflow: auto; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--fg2);
  white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- 17 ACTIVITY FEED ---- */
.act-row { display: grid; grid-template-columns: 26px 1fr; gap: 9px; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.act-row:last-child { border-bottom: none; }
.act-row .a-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.act-row .a-ico svg { width: 13px; height: 13px; }
.act-row .a-txt { font-size: 11.5px; color: var(--fg2); line-height: 1.45; }
.act-row .a-txt b { color: var(--fg1); font-weight: 600; }
.act-row .a-txt .at { font-family: var(--mono); font-size: 9.5px; color: var(--fg4); display: block; margin-top: 2px; }

/* buttons used in panels */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  padding: 6px 11px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-3); color: var(--fg1); }
.btn svg { width: 13px; height: 13px; }
.btn:hover { background: var(--surface-4); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; }
.btn.ghost { background: none; }
.btn.sm { padding: 4px 9px; font-size: 11px; }
.btn.disabled { opacity: .45; pointer-events: none; }
.btn.human { border-color: var(--human-l); color: var(--human); background: var(--human-t); }

/* ============================================================================
   EMPTY / LOADING STATES
   ============================================================================ */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 50px 20px; color: var(--fg3); }
.empty .ew { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; margin-bottom: 14px; }
.empty .ew svg { width: 24px; height: 24px; color: var(--fg3); }
.empty h3 { font-size: 15px; color: var(--fg1); margin: 0 0 6px; }
.empty p { font-size: 12px; max-width: 280px; margin: 0; }
/* AGENT-CREATE-CONVERGENCE-1: lightweight success-state action row (Ask in room / Close). */
.agent-success-actions { display: flex; gap: 8px; margin-top: 8px; }
.empty-mini { text-align: center; padding: 20px 10px; color: var(--fg4); font-size: 11px; font-family: var(--mono); }
.empty-mini svg { width: 18px; height: 18px; margin-bottom: 7px; }

.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 5px; }
@keyframes shimmer { 0%{background-position:100% 0;} 100%{background-position:-100% 0;} }
.sk-msg { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 8px 6px; }
.sk-msg .sk-av { width: 34px; height: 34px; border-radius: 9px; }
.sk-line { height: 10px; margin: 4px 0; }

/* big screen-level empty (no room) */
.room-empty { flex: 1; display: grid; place-items: center; }
.hidden { display: none !important; }
.icon-nudge { margin-right: -4px; }
.avatar-codex { background: #4a7cb8; }
.avatar-claude { background: #a35fc6; }
.avatar-design { background: #439268; }
.avatar-gemini { background: #c8502f; }
.avatar-manus { background: #a8761c; }
.avatar-all { background: var(--warn); color: #1a1a1a; }
.avatar-operator-mark { width: 16px; height: 16px; border-radius: 4px; background: var(--surface-3);
  border: 1px solid var(--human-l); color: var(--human); display: grid; place-items: center;
  font-size: 8px; font-weight: 700; }
.composer.readonly { opacity: .82; }
.composer.readonly .c-input { color: var(--fg3); cursor: default; }
.composer.readonly .send,
.composer.readonly .tb { cursor: not-allowed; filter: grayscale(.2); opacity: .62; }
.composer.readonly .send { background: var(--surface-4); color: var(--fg3); box-shadow: none; }
.composer.locked .c-input { color: var(--fg3); }
.composer.locked .send { background: var(--surface-4); color: var(--fg3); box-shadow: none; }
.composer.busy { opacity: .72; }
.hidden { display: none !important; }
.mention-pop { min-width: 210px; }
.mention-pop:not(:empty) { display: flex; flex-direction: column; }
.mention-pop:empty { display: none; }
.mention-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent;
  color: var(--fg1); padding: 8px 10px; text-align: left; width: 100%; border-radius: var(--r-sm); }
.mention-choice:hover { background: var(--surface-3); color: var(--orange-soft); }
.mention-choice span { color: var(--fg3); font-size: 11px; }
.cli-hint { color: var(--orange-soft); }
.msg.sys .m-body { color: var(--fg3); font-size: 11.5px; font-family: var(--mono); }
.typing.workline { padding: 4px 0 0; }
.react-muted { color: var(--fg4); }
.agent-card.operator-card { border-color: var(--human-l); }
.ctx-section-gap { margin-top: 18px; }
.ctx-section-gap-lg { margin-top: 20px; }
.governance-lock-strip { display: flex; align-items: center; gap: 9px; padding: 11px;
  background: var(--warn-t); border-bottom: 1px solid var(--warn-l); }
.governance-lock-strip .lock-icon { color: var(--warn); }
.governance-lock-strip .lock-copy { font-size: 11.5px; color: var(--fg2); }
.governance-lock-strip .lock-holder { color: #e8c074; }
.governance-body { padding: 9px 11px; }
.matrix-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.matrix-name { font-size: 11.5px; color: var(--fg1); width: 96px; }
.cli-note { display: flex; gap: 8px; margin-top: 10px; }
.cli-note .b { padding: 8px 11px; width: 100%; justify-content: flex-start; text-align: left; white-space: normal;
  height: auto; line-height: 1.35; overflow-wrap: anywhere; }
.activity-icon { background: var(--info-t); color: var(--info); }
.activity-icon.human2 { background: var(--human-t); color: var(--human); }
.activity-icon.ok { background: var(--ok-t); color: var(--ok); }
.activity-icon.warn { background: var(--warn-t); color: var(--warn); }
.activity-icon.risk { background: var(--risk-t); color: var(--risk); }
.flow-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  margin-bottom: 10px; overflow: hidden; }
.flow-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--line);
  color: var(--fg1); min-width: 0; flex-wrap: wrap; }
.flow-head b { min-width: 0; overflow-wrap: anywhere; }
.flow-graph { padding: 10px 11px; display: grid; gap: 7px; }
.flow-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px 9px; align-items: start; border: 1px solid var(--line);
  background: var(--surface-3); border-radius: var(--r-sm); padding: 8px; }
.flow-step.done { border-color: var(--ok-l); background: var(--ok-t); }
.flow-step.running, .flow-step.ready { border-color: var(--warn-l); background: var(--warn-t); }
.flow-step.failed, .flow-step.cancelled { border-color: var(--risk-l); background: var(--risk-t); }
.flow-pos { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-4); color: var(--fg2); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.flow-step-main { min-width: 0; }
.flow-step b { color: var(--fg1); font-size: 12px; overflow-wrap: anywhere; }
.flow-step small { display: block; margin-top: 1px; color: var(--fg3); font-size: 10.5px; line-height: 1.35; overflow-wrap: anywhere; }
.flow-edge { display: inline-flex; align-items: center; gap: 6px; color: var(--fg3); font-family: var(--mono);
  font-size: 10px; padding-left: 8px; }
.flow-edge svg { width: 13px; height: 13px; color: var(--orange-soft); }
.review-badge { border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px;
  font-family: var(--mono); font-size: 9.5px; white-space: nowrap; color: var(--fg3); }
.flow-step > .review-badge { grid-column: 2; justify-self: start; }
.review-badge.ok { color: var(--ok); background: var(--ok-t); border-color: var(--ok-l); }
.review-badge.warn { color: var(--warn); background: var(--warn-t); border-color: var(--warn-l); }
.review-badge.risk { color: var(--risk); background: var(--risk-t); border-color: var(--risk-l); }
.lineage-row .review-badge { margin-left: 4px; }
.committee-tally { grid-column: 2; justify-self: start; font-family: var(--mono); font-size: 9.5px; color: var(--fg3);
  border-left: 1px solid var(--line); padding-left: 8px; overflow-wrap: anywhere; }
.gate-actions { grid-column: 2; display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
.gate-actions.task-run { align-items: center; }
.gate-actions.final-gate { padding-left: 8px; border-left: 1px solid var(--human-l); }
.gate-actions .mini-action { min-height: 22px; font-size: 10px; }
.mini-action.static.running, .mini-action.static.blocked { color: var(--warn); border-color: var(--warn-l); background: var(--warn-t); }
.gate-reason { flex-basis: 100%; max-width: 100%; color: var(--fg3); font-size: 10.5px; line-height: 1.35; text-align: left; }
.flow-actions { display: flex; gap: 7px; padding: 9px 11px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.flow-guide { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 8px;
  border: 1px solid var(--orange-line); border-radius: var(--r-md); background: var(--orange-t); }
.flow-guide span { display: inline-flex; align-items: center; gap: 5px; color: var(--orange-soft);
  font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.flow-guide span:not(:last-child)::after { content: "->"; color: var(--fg4); margin-left: 6px; }
.committee-card { border-top: 1px solid var(--line); background: var(--surface); padding: 10px 11px; }
.committee-head { display: flex; align-items: center; gap: 8px; color: var(--fg1); margin-bottom: 8px; }
.committee-head svg { color: var(--info); }
.committee-head .b { margin-left: auto; }
.committee-grid { display: grid; grid-template-columns: 82px 1fr; gap: 6px 10px; align-items: center;
  font-size: 11px; color: var(--fg2); }
.committee-grid > span { color: var(--fg3); font-family: var(--mono); font-size: 10px; }
.committee-grid b { color: var(--fg1); }
.committee-grid .b { margin-right: 4px; margin-bottom: 4px; }
.flow-lineage { border-top: 1px solid var(--line); padding: 8px 11px; display: grid; gap: 6px; min-width: 0; overflow: hidden; }
.lineage-row { display: flex; gap: 9px; font-size: 11.5px; min-width: 0; flex-wrap: wrap; }
.lineage-row .pk { font-family: var(--mono); color: var(--fg3); width: 18px; flex: none; }
.lineage-row .pv { min-width: 0; color: var(--fg2); overflow-wrap: anywhere; }
.ops-panel { display: grid; gap: 10px; }
.op-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  overflow: hidden; }
.op-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px;
  border-bottom: 1px solid var(--line); color: var(--fg1); }
.op-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.op-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-meta { display: flex; gap: 7px; flex-wrap: wrap; padding: 9px 11px 0; font-family: var(--mono);
  font-size: 10.5px; color: var(--fg3); }
.op-meta span { display: inline-flex; align-items: center; gap: 5px; }
.op-meta b { color: var(--fg2); font-weight: 600; }
.op-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 9px 11px; }
.op-history { border-top: 1px solid var(--line); padding: 8px 11px; background: var(--surface);
  display: grid; gap: 4px; }
.op-history .pc-row.compact { padding: 2px 0; }
.op-history .pk { width: 70px; overflow: hidden; text-overflow: ellipsis; }
.people-panel { padding-bottom: 10px; }
.people-form { display: grid; gap: 8px; padding: 10px 11px 0; }
/* ROUNDTABLE-UX-FEEDBACK-1 (F6): action buttons in manager forms (Create invite, add member, Save) are
   compact and right-aligned to their field instead of stretching full-width. */
.people-form > button, .object-settings-form > button { justify-self: end; width: auto; }
.people-field { display: grid; gap: 4px; min-width: 0; }
.people-field span { color: var(--fg3); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.people-field input,
.people-field select,
.people-field textarea { width: 100%; min-height: 32px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg1); padding: 0 9px; }
.people-field input[type="file"] { padding: 3px 7px; color: var(--fg2); font-family: var(--mono); font-size: 11px; }
.people-field input[type="file"]::file-selector-button {
  min-height: 24px; margin: 0 8px 0 0; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--surface-3); color: var(--fg1); font: 600 11px var(--mono); cursor: pointer;
}
.people-field input[type="file"]::-webkit-file-upload-button {
  min-height: 24px; margin: 0 8px 0 0; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--surface-3); color: var(--fg1); font: 600 11px var(--mono); cursor: pointer;
}
.people-field input[type="file"]:hover::file-selector-button,
.people-field input[type="file"]:hover::-webkit-file-upload-button {
  border-color: var(--orange-line); background: var(--orange-t); color: var(--orange-soft);
}
.people-field textarea { min-height: 58px; resize: vertical; padding: 8px 9px; line-height: 1.35; font: 12px var(--sans); }
.rt-select { position: relative; min-width: 0; }
.rt-select > input[type="hidden"] { display: none; }
.rt-select-trigger { width: 100%; min-height: 32px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg1); padding: 0 8px 0 9px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; font: inherit; text-align: left; cursor: pointer; }
.rt-select-trigger:hover,
.rt-select.open .rt-select-trigger { border-color: var(--orange-line); background: var(--surface-3); }
.rt-select-trigger:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.rt-select-trigger svg { width: 14px; height: 14px; color: var(--fg3); flex: none; }
.rt-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-select-panel { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 4px); max-height: 220px; overflow: auto;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-3); box-shadow: var(--shadow); padding: 4px; }
.rt-select-panel.hidden { display: none; }
.rt-select-option { width: 100%; min-height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--fg2);
  padding: 6px 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px;
  text-align: left; cursor: pointer; font: inherit; }
.rt-select-option:hover,
.rt-select-option.active { background: var(--orange-t); color: var(--fg1); }
.rt-select-option.selected { color: var(--orange-soft); }
.rt-select-option small { grid-column: 1; color: var(--fg3); font: 10px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-select-option svg { width: 14px; height: 14px; color: var(--orange-soft); }
.rt-select-empty { display: block; padding: 7px 8px; color: var(--fg3); font: 11px var(--mono); }
.rt-checkbox { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; color: var(--fg2); cursor: pointer; min-width: 0; }
.rt-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.rt-checkbox-box { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; flex: none; color: var(--fg1); }
.rt-checkbox-box svg { width: 13px; height: 13px; opacity: 0; }
.rt-checkbox input:checked + .rt-checkbox-box { border-color: var(--orange); background: transparent; color: var(--orange); }
.rt-checkbox input:checked + .rt-checkbox-box svg { opacity: 1; color: var(--orange); }
.rt-checkbox:hover .rt-checkbox-box { border-color: var(--orange-line); background: var(--surface-3); }
.rt-checkbox input:checked:hover + .rt-checkbox-box { border-color: var(--orange); background: var(--orange-t); }
.rt-checkbox input:focus-visible + .rt-checkbox-box { outline: 2px solid var(--orange); outline-offset: 2px; }
.rt-checkbox-label { min-width: 0; overflow-wrap: anywhere; }
.auth-check .rt-checkbox { width: 100%; min-height: 44px; }
.rt-checkbox-grid { gap: 6px; }
.rt-search { width: 100%; min-height: 32px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg3); display: flex; align-items: center; gap: 7px; padding: 0 8px; min-width: 0; }
.rt-search:focus-within { border-color: var(--orange-line); box-shadow: 0 0 0 2px var(--orange-tint); }
.rt-search > svg { width: 14px; height: 14px; flex: none; }
.rt-search input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--fg1); padding: 0; min-height: 30px; font: inherit; }
.rt-search input:focus { outline: none; }
.rt-search.disabled { opacity: .7; cursor: not-allowed; border-style: dashed; }
.rt-search-clear { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-3);
  color: var(--fg3); display: grid; place-items: center; cursor: pointer; flex: none; }
.rt-search-clear:hover { color: var(--orange-soft); border-color: var(--orange-line); background: var(--orange-t); }
.rt-search-clear svg { width: 12px; height: 12px; transform: rotate(45deg); }
.rt-filter { display: grid; gap: 7px; min-width: 0; }
.rt-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: end; min-width: 0; }
.rt-filter-fields > .mini-action { align-self: end; min-height: 32px; }
.rt-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.rt-filter-empty { color: var(--fg4); font: 10.5px var(--mono); }
.rt-filter-chip { min-height: 28px; max-width: 100%; border-radius: 999px; border: 1px solid var(--orange-line); background: var(--orange-t);
  color: var(--orange-soft); display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; cursor: pointer; font: 700 10.5px var(--mono); }
.rt-filter-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-filter-chip b { color: var(--fg2); }
.rt-filter-clear-all { min-height: 28px; }
.rt-menu { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.kebab { width: 44px; min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--fg3); display: grid; place-items: center; cursor: pointer; font: 800 18px var(--mono); }
.kebab:hover,
.rt-menu.open .kebab { color: var(--fg1); border-color: var(--orange-line); background: var(--surface-3); }
.kebab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.menu { position: fixed; z-index: 95; top: 0; left: 0; right: auto; min-width: 190px; max-width: min(280px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-3); box-shadow: var(--shadow);
  padding: 4px; display: grid; gap: 2px; }
.menu.open { visibility: hidden; }
.menu.open.positioned { visibility: visible; }
.menu[hidden] { display: none; }
.mi { width: 100%; min-height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--fg2);
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; text-align: left; cursor: pointer; font: 700 11.5px var(--mono); }
.mi svg { width: 14px; height: 14px; flex: none; color: currentColor; }
.mi span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi:hover,
.mi:focus-visible { color: var(--fg1); background: var(--surface-2); outline: none; }
.mi.enable { color: var(--ok); }
.mi.enable:hover,
.mi.enable:focus-visible { background: var(--ok-t); }
.mi.disable,
.mi.danger { color: var(--err); }
.mi.disable:hover,
.mi.disable:focus-visible,
.mi.danger:hover,
.mi.danger:focus-visible { background: var(--err-t); }
.mi.safe { color: var(--info); }
.mi.safe:hover,
.mi.safe:focus-visible { background: var(--info-t); }
.mi:disabled { color: var(--fg4); cursor: not-allowed; opacity: .72; }
.mi:disabled:hover,
.mi:disabled:focus-visible { background: transparent; }
.mi.empty { display: block; min-height: auto; padding: 8px 9px; color: var(--fg3); cursor: default; }
.mi-separator { height: 1px; background: var(--line); margin: 3px 4px; }
#rtToasts { position: fixed; z-index: 120; top: calc(var(--topbar-h) + 12px); right: calc(var(--ctx-w) + 16px);
  width: min(360px, calc(100vw - var(--ctx-w) - 32px)); max-height: min(45vh, calc(100vh - var(--topbar-h) - 32px));
  display: grid; align-content: start; gap: 8px; overflow-y: auto; pointer-events: none; }
.app.ctx-collapsed ~ #rtToasts { right: 16px; width: min(360px, calc(100vw - 32px)); }
.toast { min-height: 44px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-3);
  color: var(--fg1); box-shadow: var(--shadow); display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 9px; padding: 9px 10px; pointer-events: auto; font: 700 12px var(--mono); }
.toast > svg { width: 16px; height: 16px; color: currentColor; }
.toast span { min-width: 0; overflow-wrap: anywhere; }
.toast.success { color: var(--ok); border-color: var(--ok-l); background: var(--ok-t); }
.toast.error { color: var(--err); border-color: var(--err-l); background: var(--err-t); }
.toast.warning { color: var(--warn); border-color: var(--warn-l); background: var(--warn-t); }
.toast.info { color: var(--info); border-color: var(--info-l); background: var(--info-t); }
.toast-dismiss { width: 44px; height: 44px; margin: -8px -9px -8px 0; border: 0; border-radius: var(--r-sm);
  background: transparent; color: currentColor; cursor: pointer; font: 800 18px var(--mono); }
.toast-dismiss:hover,
.toast-dismiss:focus-visible { background: var(--surface-2); outline: none; }
.people-field.wide,
.connector-register-form .wide { grid-column: 1 / -1; }
.connector-register-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.connector-register-form > button { align-self: end; }
/* AGENT-CREATE-CONVERGENCE-1: the provision panel uses the Invite panel's layout contract
   (op-card + people-panel + plain people-form + full-width mini-action run CTA). Neutral border
   matches op-card's default; people-panel supplies the shared bottom padding. */
.agent-provision-card { border-color: var(--line); }
.connector-pick-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font: 10px var(--mono); color: var(--fg3); text-transform: uppercase; letter-spacing: .06em; }
.connector-health-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.connector-health-dot.ok { color: var(--ok); }
.connector-health-dot.warn { color: var(--warn); }
.connector-health-dot.risk,
.connector-health-dot.err { color: var(--err); }
.connector-health-dot.muted { color: var(--fg3); }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.capability-grid label { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--fg2); font: 11px var(--mono);
  overflow-wrap: anywhere; }
.connector-risk-note { color: var(--fg2); font-size: 12px; line-height: 1.45; border: 1px dashed var(--line);
  border-radius: 7px; padding: 8px 9px; background: color-mix(in srgb, var(--orange) 8%, transparent); }
@media (max-width: 1180px) {
  .connector-register-form { grid-template-columns: 1fr; }
  .artifact-editor,
  .artifact-target-panel,
  .diff-controls,
  .diff-link-grid,
  .log-filter-bar,
  .rt-filter-fields { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .agent-statusbar-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
.people-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.people-roster-card,
.people-roster-body { overflow: visible; }
.people-roster-body { container-type: inline-size; display: grid; gap: 7px; }
.people-roster-row { display: grid; grid-template-columns: 132px 124px minmax(0, 1fr) 44px; gap: 8px; align-items: center;
  min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.people-role-badge,
.people-roster-row .status-pill { justify-self: start; max-width: 100%; }
.people-member { display: grid; gap: 2px; min-width: 0; }
.people-display-name { min-width: 0; color: var(--fg1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-handle { min-width: 0; color: var(--fg3); font: 11px var(--mono); overflow-wrap: anywhere; }
.people-expiry { color: var(--fg3); font: 10px var(--mono); overflow-wrap: anywhere; }
.people-action-cell { width: 44px; display: grid; place-items: center; }
.people-action-cell .rt-menu { width: 44px; }
/* TRANSFER-WORKSPACE-OWNERSHIP-1: confirmation-gated ownership transfer affordance (token-only). */
.people-transfer-confirm { display: grid; gap: 8px; margin: -2px 0 2px; padding: 8px 10px;
  border: 1px solid var(--err-l); border-radius: var(--r-sm); background: var(--err-t); }
.people-transfer-prompt { color: var(--fg1); font-size: 12px; overflow-wrap: anywhere; }
.people-transfer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* WORKSPACE-LIFECYCLE-1: archived-workspace list with per-row restore (token-only). */
.archived-ws-list { display: grid; gap: 6px; }
.archived-ws-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.archived-ws-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg2); }
@container (max-width: 460px) {
  .people-roster-row { grid-template-columns: minmax(72px, max-content) minmax(92px, 1fr) 44px; }
  .people-member { grid-column: 1 / -1; grid-row: 2; }
  .people-action-cell { grid-column: 3; grid-row: 1; }
}
.invite-result { margin: 10px 11px 0; display: grid; gap: 7px; }
.invite-result p { margin: 0; color: var(--fg3); font: 10.5px/1.45 var(--mono); }
.invite-url { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.invite-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); color: var(--fg1); padding: 7px; font-family: var(--mono); font-size: 11px; }
.invite-status { margin: 10px 11px 0; color: var(--fg2); font-size: 11.5px; overflow-wrap: anywhere; }
.plan-constitution { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 10px; padding: 9px 10px;
  border: 1px solid var(--human-l); border-radius: var(--r-md); background: var(--human-t); color: var(--fg2);
  font-size: 12px; line-height: 1.4; }
.plan-constitution svg { flex: none; margin-top: 1px; }
.plan-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); margin-bottom: 8px;
  overflow: hidden; }
.plan-card.active { border-color: var(--orange-line); box-shadow: inset 2px 0 0 var(--orange); }
.plan-card-main { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 8px; text-align: left;
  padding: 10px 11px; border: 0; background: transparent; color: var(--fg1); cursor: pointer; }
.plan-card-main:hover { background: var(--surface); }
.plan-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.plan-meta { grid-column: 1 / -1; min-width: 0; color: var(--fg3); font: 10.5px var(--mono); overflow-wrap: anywhere; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 11px 10px; align-items: center; }
.plan-actions.detail { padding: 9px 11px; border-bottom: 1px solid var(--line); }
.plan-approval-actions { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; }
.plan-inst-copy { color: var(--fg3); font-size: 11px; line-height: 1.35; min-width: min(180px, 100%); overflow-wrap: anywhere; }
.plan-detail { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; }
.plan-steps { display: grid; gap: 7px; padding: 9px 11px; }
.plan-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; min-width: 0; }
.plan-step-body { display: grid; gap: 4px; min-width: 0; }
.plan-step-body b,
.plan-step-body small { min-width: 0; overflow-wrap: anywhere; }
.plan-step-body small { color: var(--fg3); line-height: 1.35; }
.plan-task-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.plan-create-card,
.plan-revise-card { border-color: var(--human-l); margin-bottom: 10px; }
.plan-editor { display: grid; gap: 8px; padding: 10px 11px; }
.plan-step-editor-list { display: grid; gap: 8px; }
.plan-step-editor { display: grid; gap: 7px; padding: 8px; border: 1px dashed var(--line); border-radius: 7px;
  background: var(--surface); min-width: 0; }
.plan-step-editor-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.plan-step-editor-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-step-buttons { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.plan-editor-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-start; }
.artifact-constitution { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 10px; padding: 9px 10px;
  border: 1px solid var(--info-l); border-radius: var(--r-md); background: var(--info-t); color: var(--fg2);
  font-size: 12px; line-height: 1.4; }
.artifact-constitution svg { flex: none; margin-top: 1px; }
.artifact-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); margin-bottom: 8px;
  overflow: hidden; }
.artifact-card.active { border-color: var(--info-l); box-shadow: inset 2px 0 0 var(--info); }
.artifact-card-main { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 8px; text-align: left;
  padding: 10px 11px; border: 0; background: transparent; color: var(--fg1); cursor: pointer; }
.artifact-card-main:hover { background: var(--surface); }
.artifact-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.artifact-meta { grid-column: 1 / -1; min-width: 0; color: var(--fg3); font: 10.5px var(--mono); overflow-wrap: anywhere; }
.artifact-create-card { border-color: var(--human-l); margin-bottom: 10px; }
.artifact-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 11px; min-width: 0; }
.artifact-editor .wide { grid-column: 1 / -1; }
.artifact-subeditor { border-top: 1px solid var(--line); background: var(--surface); }
.artifact-editor-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: var(--fg2);
  font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.artifact-editor-actions,
.artifact-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.artifact-target-toggle { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.artifact-target-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.artifact-detail { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; }
.artifact-version-list,
.artifact-link-list { display: grid; gap: 7px; padding: 9px 11px; }
.artifact-version-row,
.artifact-link-row { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 8px; min-width: 0; }
.artifact-version-head,
.artifact-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.artifact-version-head code { font-family: var(--mono); color: var(--info); background: var(--info-t); border: 1px solid var(--info-l);
  border-radius: 5px; padding: 2px 5px; overflow-wrap: anywhere; }
.artifact-version-head .mini-action { margin-left: auto; }
.artifact-version-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; color: var(--fg3); font: 10.5px var(--mono); }
.artifact-note { margin-top: 6px; color: var(--fg2); font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; }
.artifact-pin { display: inline-flex; align-items: center; gap: 4px; color: var(--fg3); font: 10.5px var(--mono); }
.artifact-pin svg { width: 12px; height: 12px; }
.artifact-action-copy,
.artifact-retained { color: var(--fg3); font-size: 11px; line-height: 1.35; padding: 9px 11px; overflow-wrap: anywhere; }
.artifact-actions { padding: 9px 11px; border-top: 1px solid var(--line); background: var(--surface); }
.diff-panel { border-top: 1px solid var(--line); background: var(--surface); padding: 10px 11px; display: grid; gap: 8px; min-width: 0; }
.diff-panel-head,
.artifact-diff-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.diff-panel-head { justify-content: space-between; }
.diff-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; min-width: 0; }
.diff-context,
.diff-empty,
.diff-summary { color: var(--fg3); font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; }
.diff-empty { border: 1px dashed var(--line); border-radius: 7px; padding: 8px; }
.diff-empty.risk { color: var(--risk); border-color: var(--risk-l); background: var(--risk-t); }
.diff-result,
.diff-rows,
.diff-metadata-grid,
.diff-link-grid,
.diff-link-section { display: grid; gap: 7px; min-width: 0; }
.diff-step { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 6px 8px; align-items: start;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); padding: 8px; min-width: 0; }
.diff-pos { color: var(--fg3); font: 10.5px var(--mono); white-space: nowrap; }
.diff-field { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 7px; grid-column: 1 / -1; min-width: 0; }
.diff-field .pv { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.diff-field del { color: var(--risk); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.diff-field ins { color: var(--ok); text-decoration: none; overflow-wrap: anywhere; }
.artifact-diff-identity code { font-family: var(--mono); color: var(--info); background: var(--info-t); border: 1px solid var(--info-l);
  border-radius: 5px; padding: 2px 5px; overflow-wrap: anywhere; }
.diff-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.diff-link-section { border: 1px solid var(--line); border-radius: 7px; padding: 8px; background: var(--surface-2); }
.artifact-link-row.compact { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; }
.artifact-diff-panel .mini-action { white-space: nowrap; }
.log-filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 10px; align-items: end; margin-bottom: 9px; }
.log-filter-bar .mini-action { align-self: end; }
.log-scope { color: var(--fg3); font: 10.5px var(--mono); margin: 0 0 8px; overflow-wrap: anywhere; }
.log-technical-note { margin: 0 0 8px; color: var(--fg3); font-size: 11px; line-height: 1.4; }
.log-feed { display: grid; gap: 7px; }
.log-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; border: 1px solid var(--line);
  border-radius: 7px; background: var(--surface-2); padding: 8px; min-width: 0; }
.log-kind { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 5px;
  border: 1px solid var(--line-2); color: var(--fg3); background: var(--surface-3); font: 700 10px var(--mono); text-transform: uppercase; }
.log-kind.completed { color: var(--ok); border-color: var(--ok-l); background: var(--ok-t); }
.log-kind.running { color: var(--warn); border-color: var(--warn-l); background: var(--warn-t); }
.log-kind.failed,
.log-kind.cancelled { color: var(--risk); border-color: var(--risk-l); background: var(--risk-t); }
.log-main { min-width: 0; display: grid; gap: 5px; }
.log-title,
.log-meta,
.log-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.log-title { font-weight: 700; color: var(--fg1); }
.log-meta,
.log-summary { color: var(--fg3); font: 10.5px var(--mono); overflow-wrap: anywhere; }
.log-error { color: var(--risk); background: var(--risk-t); border: 1px solid var(--risk-l); border-radius: 6px; padding: 6px 7px; overflow-wrap: anywhere; }
.log-pager { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: space-between; margin-top: 9px; }
.invite-page { display: grid; place-items: center; min-height: 100%; padding: 24px; }
.invite-card { width: min(520px, 100%); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2); padding: 18px; display: grid; gap: 12px; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.invite-card p { margin: 0; }
.sk-card-avatar { width: 34px; height: 34px; border-radius: 9px; }
.sk-flex { flex: 1; }
.sk-line-lg { width: 80%; }
.sk-line-md { width: 60%; }
.sk-line-sm { width: 40%; }
.sk-line-xs { width: 30%; }
.sk-line-body { width: 55%; }
.progress-0 { width: 0%; }
.progress-20 { width: 20%; }
.progress-70 { width: 70%; }
.progress-90 { width: 90%; }
.progress-100 { width: 100%; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
.scrim { display: none; }
@media (max-width: 1200px) {
  :root { --ctx-w: 320px; }
}
@media (max-width: 1040px) {
  .app { grid-template-columns: var(--rail-w) var(--rooms-w) 1fr 0; }
  .app.show-ctx { grid-template-columns: var(--rail-w) 0 1fr min(420px, 86vw); }
  .context { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px,86vw); z-index: 60;
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.7); }
  .app:not(.show-ctx) .context { transform: translateX(100%); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: var(--rail-w) 1fr 0 0; }
  #toggleRooms { display: grid; }
  #rtToasts { top: 12px; right: 12px; width: min(340px, calc(100vw - 24px)); max-height: min(45vh, calc(100vh - 24px)); }
  .rooms { position: fixed; left: var(--rail-w); top: 0; bottom: 0; width: 280px; z-index: 55; }
  .app:not(.show-rooms) .rooms { transform: translateX(-110%); }
  .app.show-ctx .scrim, .app.show-rooms .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 54; }
  .rv-top .rv-topic { display: none; }
}

/* ============================================================================
   BEST-PRACTICE POLISH — accessibility, legibility, affordances
   ============================================================================ */

/* 1 · Keyboard focus rings (none existed). Mouse users unaffected. */
:where(button, a, [contenteditable], .room, .ctx-tab, .ws, .iconbtn, .tb, .react):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.c-input:focus-visible { outline: none; }           /* composer shows its own .focus ring */
:where(.send, .btn.primary):focus-visible { outline-offset: 3px; }

/* 2 · Avatar initial legibility on lighter identity colors (amber/green) */
.av:not(.human) { text-shadow: 0 1px 1.5px rgba(0,0,0,.3); }

/* 3 · Active room — soft tangerine tint (Kraken kw-nav-item--active) */
.room.active { position: relative; font-weight: 600; }

/* 4 · Consistent press feedback */
.btn:active { transform: translateY(1px); }
.iconbtn:active, .tb:active, .room:active, .ctx-tab:active { transform: translateY(1px); }
.ws:active { transform: scale(.94); }

/* 5 · Slightly stronger hover on primary actions */
.btn.primary:hover, .btn.human:hover { filter: brightness(1.06); }

/* 6 · Reduced-motion: calm the looping presence/typing/shimmer animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
}

/* ===== GEN4-4C Terminal surface (token-only) ===== */
.mono { font-family: var(--mono); }
.terminal-notice { display:flex; gap:6px; align-items:flex-start; font-size:11px; color:var(--fg3); background:var(--surface-2); border:1px solid var(--line); border-radius:7px; padding:8px 10px; margin:8px 0; }
.terminal-notice svg { width:14px; height:14px; flex:0 0 auto; margin-top:1px; }
.terminal-editor { display:flex; flex-direction:column; gap:8px; }
.terminal-input { width:100%; resize:vertical; font-family:var(--mono); font-size:12px; background:var(--surface-2); color:var(--fg1); border:1px solid var(--line-2); border-radius:7px; padding:8px; }
.terminal-bytes { font-family:var(--mono); font-size:12px; white-space:pre-wrap; word-break:break-word; background:var(--surface-2); border:1px solid var(--line-2); border-radius:7px; padding:8px 10px; margin:4px 0; color:var(--fg1); }
.terminal-bytes.redacted { color:var(--fg3); }
.terminal-pin { font-size:11px; color:var(--fg2); background:var(--surface-2); border:1px solid var(--line); border-radius:7px; padding:7px 9px; margin:6px 0; }
.terminal-pin.muted { color:var(--fg3); }
.terminal-pin svg { width:13px; height:13px; vertical-align:-2px; }
.terminal-run { border:1px solid var(--line); border-radius:7px; padding:8px 10px; margin:6px 0; background:var(--surface-2); }
.terminal-run-summary { display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:11px; color:var(--fg2); }
.terminal-run-line { flex:1 1 auto; }
.terminal-output { font-family:var(--mono); font-size:11px; white-space:pre-wrap; word-break:break-word; background:var(--bg, var(--surface-2)); border:1px dashed var(--line-2); border-radius:6px; padding:7px 9px; margin:7px 0 0; color:var(--fg2); max-height:240px; overflow:auto; }
.terminal-run-detail { margin-top:7px; border-top:1px solid var(--line); padding-top:7px; }
.gate-reason { font-size:10.5px; color:var(--fg3); font-family:var(--mono); }

/* OBJECT-SUBSTRATE-1 — reusable object-management surface (token-only). */
.room-manage-btn { display:inline-flex; align-items:center; gap:6px; }
/* ROUNDTABLE-UX-FEEDBACK-1 (F9): anchor the manager to a stable top position so switching section tabs (or a
   poll re-render) does NOT recenter/move it vertically as section content height changes. */
.object-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding: 56px 20px 20px; background: rgba(0,0,0,.45); }
.object-manager { position: relative; width: min(560px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 32px));
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--fg2); box-shadow: var(--shadow); }
/* ROUNDTABLE-UX-FEEDBACK-1 (F5): status sits next to the title (object-title-row); the close (✓) is a boxed
   button in the reserved top-right gutter so it no longer overlaps the status badge. */
.object-header { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 16px; padding-right: 56px; border-bottom: 1px solid var(--line); }
.object-glyph { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font: 700 13px var(--mono); color: var(--fg1); }
.object-id { min-width: 0; }
.object-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.object-title { margin: 0; font-size: 17px; letter-spacing: 0; color: var(--fg1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.object-subtitle { font: 11px var(--mono); color: var(--fg3); }
.object-status { flex: none; padding: 3px 9px; border-radius: 999px; font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .03em; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg2); }
.object-status.archived, .object-status.disabled, .object-status.cancelled, .object-status.failed, .object-status.revoked { color: var(--err); }
.object-status.active, .object-status.open, .object-status.enabled, .object-status.approved, .object-status.current, .object-status.online { color: var(--ok); }
.object-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--fg2); }
.object-close:hover { color: var(--fg1); border-color: var(--orange-line); }
.object-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.object-tab { min-height: 32px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); color: var(--fg2);
  padding: 0 10px; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.object-tab .ic { width: 14px; height: 14px; }
.object-tab.active { border-color: var(--orange); color: var(--orange); }
.object-tab.active .ic { color: var(--orange); }
.object-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px 16px; min-width: 0; }
.object-section { display: flex; flex-direction: column; gap: 12px; }
.object-counts { display: flex; gap: 10px; flex-wrap: wrap; }
.object-count { flex: 1 1 80px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); padding: 10px; text-align: center; }
.object-count-n { display: block; font: 700 18px var(--mono); color: var(--fg1); }
.object-count-l { font: 10.5px var(--mono); color: var(--fg3); text-transform: uppercase; letter-spacing: .03em; }
.object-rows { display: flex; flex-direction: column; gap: 6px; }
.object-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.object-row:last-child { border-bottom: 0; }
.object-row-k { color: var(--fg3); font-size: 12px; }
.object-row-v { color: var(--fg1); font-size: 12px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.object-people-meta { font: 11px var(--mono); color: var(--fg3); text-transform: uppercase; letter-spacing: .03em; }
.object-people { display: flex; flex-direction: column; gap: 6px; }
.object-person { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.object-person-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 10px var(--mono); background: var(--surface); border: 1px solid var(--line); color: var(--fg2); }
.object-person-av.agent { color: var(--orange); }
.object-person-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg1); font-size: 12px; font-weight: 600; }
.object-person-role { font: 10.5px var(--mono); color: var(--fg3); text-transform: uppercase; }
.object-events { display: flex; flex-direction: column; gap: 2px; }
.object-event { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 7px 0; }
.object-event-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--line-2, var(--line)); }
.object-event-label { display: block; color: var(--fg1); font-size: 12px; font-weight: 600; }
.object-event-meta { font: 10.5px var(--mono); color: var(--fg3); overflow-wrap: anywhere; }
.object-note { font-size: 11px; color: var(--fg3); margin: 0; }
.object-gap { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; color: var(--fg2); margin: 0; padding: 9px 11px; border: 1px dashed var(--line-2, var(--line)); border-radius: var(--r-md); background: var(--surface-2); }
.object-gap .ic { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--orange); }
.object-empty { font-size: 12px; color: var(--fg3); margin: 0; }
.object-gov-state-badge { font-size: 12px; color: var(--fg2); }
.object-gov-state-badge b { color: var(--fg1); text-transform: capitalize; }
.object-gov-actions { display: flex; flex-direction: column; gap: 7px; }
.object-gov-action { display: grid; grid-template-columns: 90px auto; gap: 4px 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.object-gov-kind { font-weight: 700; font-size: 12px; color: var(--fg1); text-transform: capitalize; }
.object-gov-state { display: inline-flex; align-items: center; gap: 5px; justify-self: end; font: 10.5px var(--mono); color: var(--fg3); }
.object-gov-state .ic { width: 13px; height: 13px; }
.object-gov-action.available .object-gov-state { color: var(--ok); }
.object-gov-action.unavailable { opacity: .82; }
.object-gov-note { grid-column: 1 / -1; font-size: 11px; color: var(--fg3); }
/* ROUNDTABLE-UX-FEEDBACK-1 (gov polish): compact, right-aligned, capitalized action button (no misleading ✓);
   tone communicates intent — restore affirmative, archive/freeze caution, delete danger. */
.gov-btn { justify-self: end; text-transform: capitalize; min-height: 44px; color: var(--orange-soft); border-color: var(--orange-line); }
.gov-btn:hover { background: var(--orange-tint); }
.gov-btn.gov-restore { color: var(--ok); border-color: var(--ok-l); }
.gov-btn.gov-restore:hover { background: var(--ok-t); }
.gov-btn.gov-archive, .gov-btn.gov-freeze { color: var(--warn); border-color: var(--warn-l); }
.gov-btn.gov-archive:hover, .gov-btn.gov-freeze:hover { background: var(--warn-t); }
.gov-btn.gov-delete { color: var(--err); border-color: var(--err-l); }
.gov-btn.gov-delete:hover { background: var(--err-t); }
