/* Home23 Dashboard — ReginaCosmo glass-morphism design */

:root {
  --glass-primary: rgba(255, 255, 255, 0.10);
  --glass-secondary: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.18);
  --bg-gradient: linear-gradient(135deg,
    hsl(220, 100%, 6%) 0%,
    hsl(210, 90%, 10%) 25%,
    hsl(200, 80%, 14%) 50%,
    hsl(190, 85%, 12%) 75%,
    hsl(180, 90%, 8%) 100%);
  --text-primary: rgba(255, 255, 255, 0.98);
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.25);
  --accent-blue: #0A84FF;
  --accent-green: #30D158;
  --accent-orange: #FF9F0A;
  --accent-red: #FF453A;
  --accent-purple: rgba(120, 100, 255, 0.25);
  --shadow-glass: 0 12px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --home-top-tile-height: 460px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(0,122,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(0,199,190,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#particles-js {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.h23-header, .h23-pills, .h23-pulse-bar, .h23-update-bar, .h23-tabs, .h23-main {
  position: relative;
  z-index: 1;
}

/* ── Header (ReginaCosmo style) ── */

.h23-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.5rem;
}

.h23-header-left {
  display: flex;
  flex-direction: column;
}

.h23-logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h23-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.h23-dashboard-identity {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.55rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.h23-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.time-cluster { display: flex; gap: 16px; align-items: center; }
.time-loc { display: flex; align-items: center; gap: 5px; }
.time-flag { font-size: 1rem; }
.time-tz { font-size: 0.7rem; color: var(--text-dim); opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }
.time-display {
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.cosmo-status {
  display: flex; align-items: center; gap: 0.4rem;
  justify-content: flex-end; margin-top: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted);
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); transition: background 0.3s;
}
.status-dot.alive {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(48,209,88,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
.status-dot.dead { background: var(--accent-red); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Legacy header elements (kept for compatibility) */
.h23-time {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.h23-status {
  font-size: 12px;
  color: var(--accent-green);
  white-space: nowrap;
}

.h23-status.offline {
  color: var(--accent-red);
}

/* ── Status Pills (ReginaCosmo sensor bar) ── */

.h23-pills {
  display: flex;
  gap: 8px;
  padding: 4px 24px 12px;
  flex-wrap: wrap;
}

.h23-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Engine Pulse Bar ── */

.h23-pulse-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 24px 10px;
  font-size: 0.78rem;
  font-family: 'Inter', monospace;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.h23-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  flex-shrink: 0;
  transition: background 0.3s;
}

.h23-pulse-dot.awake {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

.h23-pulse-dot.sleeping {
  background: #a78bfa;
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.4);
  animation: pulse-glow-sleep 3s ease-in-out infinite;
}

.h23-pulse-dot.thinking {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  animation: pulse-glow-think 1s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes pulse-glow-sleep {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse-glow-think {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 14px rgba(56, 189, 248, 0.9); }
}

.h23-pulse-state {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.h23-pulse-sep {
  color: rgba(255,255,255,0.15);
}

.h23-pulse-phase, .h23-pulse-energy, .h23-pulse-cycle {
  color: var(--text-secondary);
}

.h23-pulse-ago {
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
}

/* ── Update Notification Bar ── */

.h23-update-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background: rgba(79, 70, 229, 0.25);
  border-bottom: 1px solid rgba(79, 70, 229, 0.4);
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

/* ── Tab Bar ── */

.h23-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 24px 16px;
  flex-wrap: wrap;
}

.h23-tab {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  padding: 6px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.h23-tab:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

.h23-tab.active {
  background: var(--accent-purple);
  border-color: rgba(120,100,255,0.5);
  color: #fff;
}

.h23-tab-label {
  white-space: nowrap;
}

.h23-tab-scope-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h23-tab.active .h23-tab-scope-chip {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}

.h23-tab-scope-chip.scope-dashboard {
  color: #7ef0a8;
  border-color: rgba(126,240,168,0.24);
  background: rgba(126,240,168,0.08);
}

.h23-tab-scope-chip.scope-peer {
  color: #ffd27a;
  border-color: rgba(255,210,122,0.24);
  background: rgba(255,210,122,0.08);
}

.h23-tab-scope-chip.scope-shared {
  color: #7ad9ff;
  border-color: rgba(122,217,255,0.24);
  background: rgba(122,217,255,0.08);
}

.h23-tab-scope-chip.scope-mixed {
  color: #c6a7ff;
  border-color: rgba(198,167,255,0.24);
  background: rgba(198,167,255,0.08);
}

.h23-tab-scope-chip.scope-external {
  color: #ff9a76;
  border-color: rgba(255,154,118,0.24);
  background: rgba(255,154,118,0.08);
}

.h23-tab-evobrew {
  background: rgba(0, 199, 190, 0.12);
  color: #4ecdc4;
  border: 1px solid rgba(0, 199, 190, 0.25);
}

.h23-tab-evobrew:hover {
  background: rgba(0, 199, 190, 0.22);
  color: #6ee7de;
}

#agent-tabs {
  display: contents;
}

.h23-tab-settings {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}
.h23-tab-settings:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.h23-tab-cosmo23 {
  background: rgba(69, 183, 209, 0.12);
  color: #45b7d1;
  border: 1px solid rgba(69, 183, 209, 0.25);
}
.h23-tab-cosmo23:hover {
  background: rgba(69, 183, 209, 0.22);
  color: #7dd3e8;
}

/* Settings pushes right, cosmo23 + evobrew follow */
.h23-tab-settings {
  margin-left: auto;
}

.h23-tab-scope-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 14px;
  flex-wrap: wrap;
  color: var(--text-secondary);
}

.h23-tab-scope-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.h23-tab-scope-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
}
/* COSMO iframe */
#cosmo23-frame {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 48px);
  border: none;
}

/* COSMO status indicator on Home tab */
.h23-cosmo-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #9ca3af;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  width: fit-content;
}

.h23-cosmo-indicator:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.h23-cosmo-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  flex-shrink: 0;
}

.h23-cosmo-indicator-dot.running {
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

.h23-cosmo-indicator-dot.error {
  background: var(--accent-red);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Main Content ── */

.h23-main {
  padding: 0 24px 24px;
}

.h23-panel {
  display: none;
}

.h23-panel.active {
  display: block;
}

.h23-muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Dynamic Home Layout ── */

.h23-home-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.h23-home-item {
  min-width: 0;
}

.h23-home-item.h23-home-size-third {
  grid-column: span 4;
  height: var(--home-top-tile-height);
  max-height: var(--home-top-tile-height);
}

.h23-home-item.h23-home-size-half {
  grid-column: span 6;
}

.h23-home-item.h23-home-size-full {
  grid-column: span 12;
}

.h23-home-item.h23-home-size-third > .h23-tile {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

/* ── Top Row: 3-column tile grid (ReginaCosmo layout) ── */

.h23-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: minmax(460px, 560px);
  align-items: stretch;
  gap: 16px;
  margin-bottom: 16px;
}

.h23-tile {
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.h23-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.h23-tile-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}

.h23-tile-header .icon {
  font-size: 15px;
}

.h23-tile-log {
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.h23-tile-log:hover {
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.h23-tile-system-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.h23-tile-system-summary .h23-system-bar {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.h23-system-summary-excerpt {
  min-height: 54px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.h23-system-summary-excerpt:empty {
  display: none;
}

.h23-tile-custom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}

.h23-tile-custom.is-error {
  border-color: rgba(255, 69, 58, 0.35);
}

.h23-custom-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.h23-custom-value {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  word-break: break-word;
}

.h23-custom-subtitle {
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 2.8em;
}

.h23-custom-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.h23-custom-metric {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.h23-custom-metric-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.h23-custom-metric-value {
  display: block;
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 600;
}

.h23-custom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.h23-custom-action-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.h23-custom-action-btn:hover {
  background: rgba(10,132,255,0.16);
  border-color: rgba(10,132,255,0.4);
  transform: translateY(-1px);
}

.h23-custom-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.h23-custom-error {
  color: #ffb4ae;
}

.h23-custom-empty {
  color: var(--text-dim);
  font-style: italic;
}

/* ── Thoughts tile (left column, tall) ── */

.h23-tile-thoughts {
  min-height: 460px;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.h23-thought-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
}

.h23-thought-text[data-kind="dream"] {
  color: rgba(210, 218, 255, 0.94);
  font-style: italic;
}

.h23-thought-meta {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 12px;
  letter-spacing: 0.5px;
  min-height: 16px;
}

.h23-thought-meta[data-kind="dream"] {
  color: rgba(180, 193, 255, 0.72);
}

/* ── Vibe tile (center column) ── */

.h23-tile-vibe {
  min-height: 460px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.h23-vibe-image {
  flex: 1 1 auto;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 10px;
}

.h23-vibe-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.h23-vibe-placeholder {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

.h23-vibe-caption {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
  min-height: 0;
  max-height: 3.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 0 0 auto;
}

.h23-vibe-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.h23-vibe-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.h23-vibe-action:hover {
  border-color: rgba(10, 132, 255, 0.44);
  color: var(--text-primary);
  background: rgba(10, 132, 255, 0.08);
}

.h23-vibe-image.clickable {
  cursor: pointer;
}

/* ── System tile (right column) ── */

.h23-tile-system {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.h23-system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.h23-system-item label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.h23-system-item .value {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
}

.h23-system-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
  max-height: 60px;
  overflow: hidden;
}

/* ── Feeder tile ── */

.h23-tile-feeder {
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.h23-tile-feeder:hover {
  border-color: rgba(255,255,255,0.2);
}

.h23-feeder-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.h23-feeder-stat {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.h23-feeder-stat .value {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-primary);
  display: block;
}

.h23-feeder-stat .value.compiling {
  color: #38bdf8;
}

.h23-feeder-progress {
  flex: 1;
  min-width: 120px;
}

.h23-feeder-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.h23-feeder-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #38bdf8);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.h23-feeder-progress-label {
  font-size: 10px;
  color: var(--text-muted);
}

.h23-feeder-recent {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h23-feeder-recent .filename {
  color: var(--text-secondary);
}

/* Feeder overlay */

.h23-feeder-overlay-panel {
  max-width: 800px;
  max-height: 80vh;
}

.h23-feeder-overlay-stats {
  display: flex;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.h23-feeder-overlay-section {
  margin-bottom: 16px;
}

.h23-feeder-overlay-section h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.h23-feeder-file-list {
  max-height: 400px;
  overflow-y: auto;
}

.h23-feeder-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  gap: 8px;
}

.h23-feeder-file:last-child {
  border-bottom: none;
}

.h23-feeder-file .path {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.h23-feeder-file .meta {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  font-size: 11px;
}

.h23-feeder-file .badge {
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
}

.h23-feeder-file .badge.compiled {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.h23-feeder-file .badge.raw {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.h23-feeder-file .badge.quarantined {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}

.h23-feeder-file .chunks {
  color: var(--text-muted);
  white-space: nowrap;
}

.h23-feeder-file .ago {
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  min-width: 50px;
  text-align: right;
}

/* ── Brain Log tile (full width) ── */

.h23-tile-brainlog {
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.h23-tile-brainlog::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.h23-brainlog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.h23-brainlog-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(160,160,255,0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.h23-brainlog-stamp {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.h23-brain-log {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(200,220,200,0.8);
  background: rgba(0,0,0,0.3);
  margin: 0;
  padding: 12px 16px;
  overflow-y: auto;
  max-height: 220px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Side-by-side logs row */
.h23-logs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.h23-logs-row .h23-tile-brainlog {
  cursor: pointer;
  transition: border-color 0.2s;
}

.h23-logs-row .h23-tile-brainlog:hover {
  border-color: rgba(255,255,255,0.28);
}

/* Log overlay */
.h23-log-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.h23-log-overlay.active {
  display: flex;
}

.h23-log-overlay-panel {
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  width: 80vw;
  max-width: 900px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.h23-log-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.h23-log-overlay-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.h23-log-overlay-close:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}

.h23-log-overlay-body {
  overflow-y: auto;
  padding: 16px 20px;
  flex: 1;
}

.h23-tile-action-overlay-panel {
  width: min(560px, 92vw);
}

.h23-tile-action-confirmation {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.h23-tile-action-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.h23-tile-action-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h23-tile-action-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.h23-tile-action-field input[type="text"],
.h23-tile-action-field input[type="number"] {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 0.95rem;
}

.h23-tile-action-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
}

.h23-tile-action-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.h23-tile-action-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.h23-tile-action-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 18px;
}

.h23-tile-action-btn {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

.h23-tile-action-btn.secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

.h23-tile-action-btn.primary {
  background: rgba(10,132,255,0.2);
  color: #fff;
  border-color: rgba(10,132,255,0.45);
}

.h23-tile-action-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Full-detail brain log entries in overlay */
.h23-log-overlay-body .h23-log-entry-full {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.h23-log-overlay-body .h23-log-entry-full:last-child {
  border-bottom: none;
}

.h23-log-entry-full-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 4px;
  display: flex;
  gap: 12px;
}

.h23-log-entry-full-role {
  color: var(--accent-blue);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.h23-log-entry-full-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Full-detail dream entries in overlay */
.h23-log-overlay-body .h23-dream-entry-full {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.h23-log-overlay-body .h23-dream-entry-full:last-child {
  border-bottom: none;
}

.h23-dream-entry-full-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.h23-dream-entry-full-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(200,200,240,0.9);
  font-style: italic;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .h23-logs-row {
    grid-template-columns: 1fr;
  }
}

.h23-dream-log {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(200,200,240,0.85);
  background: rgba(0,0,0,0.3);
  margin: 0;
  padding: 12px 16px;
  overflow-y: auto;
  max-height: 260px;
}

.h23-dream-entry {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.h23-dream-entry:last-child {
  border-bottom: none;
}

.h23-dream-meta {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.h23-dream-text {
  color: rgba(200,200,240,0.85);
  font-style: italic;
}

.h23-log-entry {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.h23-log-entry:last-child {
  border-bottom: none;
}

.h23-log-time {
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 70px;
  font-size: 11px;
}

.h23-log-role {
  color: var(--accent-blue);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
  min-width: 60px;
}

.h23-log-text {
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Scrollbar ── */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Intelligence Tab ── */

.h23-intel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.h23-intel-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.h23-intel-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.h23-intel-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.h23-intel-synth-btn {
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}

.h23-intel-synth-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}

.h23-intel-synth-btn.running {
  opacity: 0.6;
  cursor: wait;
}

/* Vitals row */
.h23-intel-vitals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.h23-intel-stat {
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  text-align: center;
}

.h23-intel-stat-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.h23-intel-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
.h23-intel-section {
  margin-bottom: 1.5rem;
}

.h23-intel-section h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.6rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards */
.h23-intel-card {
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.h23-intel-index-card {
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Insight cards */
.h23-intel-insight {
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  border-left: 3px solid rgba(139, 92, 246, 0.4);
}

.h23-intel-insight-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.h23-intel-insight-excerpt {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.h23-intel-insight-meta {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.h23-intel-insight-theme {
  display: inline-block;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.65rem;
  margin-right: 0.3rem;
}

/* Activity list */
.h23-intel-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.h23-intel-activity-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.h23-intel-activity-list li:last-child {
  border-bottom: none;
}

/* Self-understanding obsessions */
.h23-intel-obsessions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.h23-intel-obsession {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ── Brain Map tab ── */

.h23-brain-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 12px;
}

.h23-brain-map-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.h23-brain-map-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.h23-brain-map-search {
  background: var(--glass-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  width: 200px;
}

.h23-brain-map-search::placeholder {
  color: var(--text-dim);
}

.h23-brain-map-search:focus {
  border-color: var(--accent-blue);
}

.h23-brain-map-btn {
  background: var(--glass-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.h23-brain-map-btn:hover {
  background: var(--glass-primary);
  color: var(--text-primary);
}

.h23-brain-map-container {
  width: 100%;
  height: calc(100vh - 200px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.h23-brain-map-detail {
  position: fixed;
  right: 24px;
  top: 180px;
  width: 320px;
  max-height: 60vh;
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 16px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.h23-brain-map-detail.active {
  display: block;
}

.h23-brain-map-detail h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.h23-brain-map-detail .node-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.h23-brain-map-detail .node-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.h23-brain-map-detail .map-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.h23-brain-map-detail .map-detail-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.h23-brain-map-detail .map-detail-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.h23-brain-map-detail .map-detail-close:hover {
  color: var(--text-primary);
}

.h23-brain-map-detail .map-detail-concept {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.h23-brain-map-detail .map-detail-meta {
  border-top: 1px solid var(--glass-border);
  padding-top: 8px;
}

.h23-brain-map-detail .map-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 0.75rem;
}

.h23-brain-map-detail .map-meta-label {
  color: var(--text-dim);
}

.h23-brain-map-detail .map-meta-value {
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

.h23-brain-map-detail .map-detail-connections {
  border-top: 1px solid var(--glass-border);
  padding-top: 8px;
  margin-top: 8px;
}

.h23-brain-map-detail .map-connections-title {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.h23-brain-map-detail .map-connection-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 3px 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.h23-brain-map-detail .map-connection-item:hover {
  color: var(--text-primary);
}

.h23-brain-map-detail .map-connection-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.h23-brain-map-detail .map-connection-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.h23-brain-map-detail .map-connection-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h23-brain-map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  gap: 12px;
}

.h23-brain-map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── About Page ── */

.h23-about {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.h23-about h2 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.h23-about-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-style: italic;
}

.h23-about-section {
  margin-bottom: 28px;
}

.h23-about-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.h23-about-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.h23-about-section code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--accent-blue);
}

.h23-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.h23-about-card {
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.h23-about-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.h23-about-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.h23-about-guide {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h23-about-guide-item {
  padding: 8px 12px;
  background: var(--glass-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.h23-about-guide-item strong {
  color: var(--text-primary);
}

.h23-about-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Layout Refresh (2026-04-22) ── */

:root {
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --sidebar-width: 252px;
  --home-mid-tile-height: 228px;
  --home-utility-tile-height: 360px;
  --home-summary-tile-min-height: 188px;
  --surface-1: rgba(5, 16, 34, 0.78);
  --surface-2: rgba(8, 22, 44, 0.88);
  --surface-3: rgba(10, 32, 58, 0.74);
  --border-strong: rgba(84, 190, 255, 0.2);
  --shadow-shell: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  padding: 18px;
}

.h23-app-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.h23-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px;
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(7, 18, 39, 0.96), rgba(5, 16, 31, 0.92)),
    radial-gradient(circle at top left, rgba(46, 203, 255, 0.12), transparent 45%);
  border: 1px solid rgba(118, 190, 255, 0.16);
  box-shadow: var(--shadow-shell);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.h23-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 12px;
}

.h23-sidebar-orb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex: 0 0 54px;
  background: radial-gradient(circle, rgba(87, 237, 255, 0.18), rgba(87, 237, 255, 0.02) 62%, transparent 63%);
}

.h23-sidebar-orb-ring,
.h23-sidebar-orb-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.h23-sidebar-orb-ring.ring-a {
  inset: 5px;
  border: 1px solid rgba(83, 217, 255, 0.55);
  box-shadow: 0 0 18px rgba(83, 217, 255, 0.14);
}

.h23-sidebar-orb-ring.ring-b {
  inset: 14px;
  border: 1px solid rgba(83, 217, 255, 0.45);
}

.h23-sidebar-orb-core {
  inset: 22px;
  background: radial-gradient(circle, rgba(91, 241, 255, 0.9), rgba(91, 241, 255, 0.22));
  box-shadow: 0 0 12px rgba(91, 241, 255, 0.45);
}

.h23-sidebar-brand-copy {
  min-width: 0;
}

.h23-logo {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(204,227,255,0.84));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h23-subtitle {
  margin-top: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  color: rgba(206, 228, 255, 0.58);
}

.h23-sidebar-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.h23-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.h23-sidebar-group-label {
  padding: 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(186, 205, 232, 0.52);
}

.h23-tabs,
.h23-linked-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

#agent-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h23-tab {
  width: 100%;
  justify-content: flex-start;
  padding: 13px 14px;
  border-radius: 16px;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(226, 236, 252, 0.82);
}

.h23-tab-settings,
.h23-tab-cosmo23,
.h23-tab-evobrew {
  margin-left: 0;
}

.h23-tab:hover {
  background: rgba(13, 76, 127, 0.32);
  border-color: rgba(87, 215, 255, 0.2);
}

.h23-tab.active {
  background: linear-gradient(180deg, rgba(16, 49, 82, 0.94), rgba(8, 30, 57, 0.96));
  border-color: rgba(70, 222, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(57, 214, 255, 0.16), 0 0 22px rgba(37, 157, 235, 0.12);
}

.h23-tab-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.h23-tab-label::before {
  width: 16px;
  color: rgba(136, 215, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
}

.h23-tab[data-tab="home"] .h23-tab-label::before { content: '⌂'; }
.h23-tab[data-tab="intelligence"] .h23-tab-label::before { content: '◌'; }
.h23-tab[data-tab="query"] .h23-tab-label::before { content: '⌕'; }
.h23-tab[data-tab="brain-map"] .h23-tab-label::before { content: '◈'; }
.h23-tab[data-tab="about"] .h23-tab-label::before { content: 'i'; }
.h23-tab-settings .h23-tab-label::before { content: '⚙'; }
.h23-tab-cosmo23 .h23-tab-label::before { content: '⌁'; }
.h23-tab-evobrew .h23-tab-label::before { content: '⚡'; }
.h23-tab[data-tab^="agent-"] .h23-tab-label::before { content: '◦'; }

.h23-tab-scope-chip {
  margin-left: auto;
  min-width: auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.h23-tab-scope-chip.scope-peer {
  color: #ffcf84;
  border-color: rgba(255, 207, 132, 0.26);
  background: rgba(255, 207, 132, 0.08);
}

.h23-tab-scope-chip.scope-external {
  color: #ffb773;
  border-color: rgba(255, 183, 115, 0.24);
  background: rgba(255, 183, 115, 0.08);
}

.h23-sidebar-card {
  margin-top: auto;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 30, 57, 0.92), rgba(8, 22, 41, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
}

.h23-sidebar-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(245, 249, 255, 0.96);
}

.h23-sidebar-card-line {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(199, 214, 238, 0.72);
}

.h23-sidebar-card-button {
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(242, 247, 255, 0.92);
  font-weight: 600;
  cursor: pointer;
}

.h23-shell-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.h23-external-focus {
  padding: 0;
  overflow: hidden;
  background: #f7f9fb;
}

body.h23-external-focus::before,
body.h23-external-focus #particles-js,
body.h23-external-focus .h23-sidebar,
body.h23-external-focus .h23-header,
body.h23-external-focus .h23-update-bar,
body.h23-external-focus .h23-overview-band,
body.h23-external-focus .h23-tab-scope-bar {
  display: none !important;
}

body.h23-external-focus .h23-app-shell {
  min-height: 100vh;
  display: block;
}

body.h23-external-focus .h23-shell-main,
body.h23-external-focus .h23-main {
  width: 100vw;
  min-height: 100vh;
  gap: 0;
  padding: 0;
}

body.h23-external-focus #cosmo23-frame-wrap {
  height: 100vh !important;
  min-height: 100vh;
}

body.h23-external-focus .cosmo23-home-toggle {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 60;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(26, 92, 82, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #174840;
  box-shadow: 0 8px 22px rgba(13, 40, 36, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body:not(.h23-external-focus) .cosmo23-home-toggle {
  display: none;
}

body.h23-external-focus.h23-external-drawer-open .h23-sidebar {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 55;
  display: flex !important;
  width: var(--sidebar-width);
  height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

body.h23-external-focus.h23-external-drawer-open .h23-sidebar-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

body.h23-external-focus.h23-external-drawer-open .h23-tabs,
body.h23-external-focus.h23-external-drawer-open .h23-linked-tabs,
body.h23-external-focus.h23-external-drawer-open #agent-tabs {
  flex-direction: column;
  flex-wrap: nowrap;
}

body.h23-external-focus.h23-external-drawer-open .h23-tab {
  width: 100%;
  justify-content: flex-start;
}

body.h23-external-focus.h23-external-drawer-open .h23-sidebar-card {
  display: none;
}

body.h23-external-focus.h23-external-drawer-open #cosmo23-home-toggle-btn {
  left: calc(var(--sidebar-width) + 28px);
}

body.h23-external-focus #cosmo23-refresh-btn {
  top: 14px !important;
  right: 18px !important;
}

.h23-header,
.h23-pulse-bar,
.h23-update-bar,
.h23-tab-scope-bar,
.h23-main {
  margin: 0;
  padding: 0;
}

.h23-header {
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(5, 18, 40, 0.96), rgba(4, 15, 31, 0.94));
  box-shadow: var(--shadow-shell);
}

.h23-header-left {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.h23-header-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h23-header-agent-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(177, 231, 255, 0.92);
}

.h23-header-agent-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.h23-header-kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(182, 207, 236, 0.5);
}

.h23-header-agent-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.h23-dashboard-identity {
  margin-top: 0;
  padding: 6px 12px;
  background: rgba(29, 89, 153, 0.26);
  border-color: rgba(91, 241, 255, 0.24);
  color: rgba(215, 240, 255, 0.88);
  font-weight: 700;
}

.h23-header-right {
  gap: 10px;
}

.time-cluster {
  gap: 18px;
}

.time-loc {
  gap: 8px;
}

.time-display {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.time-tz {
  color: rgba(205, 222, 246, 0.55);
}

.cosmo-status {
  gap: 8px;
  margin-top: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(35, 102, 73, 0.16);
  color: rgba(214, 240, 224, 0.82);
}

.h23-update-bar {
  justify-content: flex-start;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(50, 77, 134, 0.32);
  border: 1px solid rgba(116, 162, 255, 0.2);
  font-size: 0.86rem;
}

.h23-overview-band {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  padding: 10px 12px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(11, 33, 64, 0.96), rgba(4, 31, 44, 0.92)),
    radial-gradient(circle at right center, rgba(43, 210, 219, 0.14), transparent 32%);
  border: 1px solid rgba(90, 216, 255, 0.16);
  box-shadow: var(--shadow-shell);
}

.h23-overview-state-block,
.h23-overview-metric,
.h23-overview-badges {
  position: relative;
  border-radius: 0;
  border: none;
  background: transparent;
  min-width: 0;
}

.h23-overview-state-block::after,
.h23-overview-metric::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 0;
  bottom: 16px;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.h23-overview-state-block {
  display: flex;
  flex: 2.2 1 0;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 14px;
}

.h23-overview-kicker,
.h23-overview-metric label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(176, 201, 230, 0.5);
}

.h23-overview-state-copy {
  min-width: 0;
}

.h23-pulse-state {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.h23-pulse-phase {
  margin-top: 2px;
  font-size: 0.92rem;
  color: rgba(213, 227, 248, 0.76);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h23-overview-metric {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  padding: 10px 16px;
}

.h23-overview-value {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.h23-overview-sub {
  margin-top: 2px;
  color: rgba(176, 201, 230, 0.58);
  font-size: 0.76rem;
}

.h23-overview-badges {
  display: flex;
  flex: 1.15 1 0;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 10px 10px 16px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.h23-pulse-notifs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
}

.h23-pulse-sep {
  display: none !important;
}

.h23-tab-scope-bar {
  padding: 0 4px;
  color: rgba(184, 206, 233, 0.58);
}

.h23-tab-scope-kicker {
  color: rgba(87, 217, 255, 0.7);
}

.h23-tab-scope-summary {
  font-size: 0.8rem;
}

.h23-main {
  padding: 0 2px 0;
}

.h23-panel {
  padding: 0;
}

.h23-panel:not(.active) {
  display: none;
}

.h23-home-layout {
  gap: 14px;
}

.h23-home-item.h23-home-size-third,
.h23-home-item.h23-home-size-half,
.h23-home-item.h23-home-size-full {
  height: auto;
  max-height: none;
}

.h23-home-item[data-home-tile-id="thought-feed"],
.h23-home-item[data-home-tile-id="vibe"],
.h23-home-item[data-home-tile-id="chat"] {
  grid-column: span 4;
  height: var(--home-top-tile-height);
  max-height: var(--home-top-tile-height);
}

.h23-home-item[data-home-tile-id="outside-weather"],
.h23-home-item[data-home-tile-id="sauna-control"] {
  grid-column: span 6;
  height: var(--home-utility-tile-height);
  max-height: var(--home-utility-tile-height);
}

.h23-home-item[data-home-tile-id="system-summary"] {
  grid-column: span 12;
  min-height: var(--home-summary-tile-min-height);
}

.h23-home-item[data-home-tile-id="good-life"] {
  grid-column: span 12;
  min-height: 300px;
  order: -30;
}

.h23-tile-goodlife {
  gap: 12px;
}

.h23-tile-goodlife .h23-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.h23-goodlife-detail-btn,
.h23-goodlife-plain-btn {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-primary);
  background: rgba(255,255,255,0.055);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.h23-goodlife-detail-btn:hover,
.h23-goodlife-plain-btn:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.09);
}

.h23-goodlife-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.h23-goodlife-policy {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.h23-goodlife-status {
  flex: 0 0 auto;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
}

.h23-goodlife-status.current {
  color: #9ee8bf;
  border-color: rgba(120,220,160,0.45);
}

.h23-goodlife-status.conflicted,
.h23-goodlife-status.stale {
  color: #ffd38a;
  border-color: rgba(255,190,90,0.5);
}

.h23-goodlife-status.unknown {
  color: var(--text-muted);
}

.h23-goodlife-summary,
.h23-goodlife-meta {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.h23-goodlife-brief-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr) auto;
  gap: 10px;
  align-items: stretch;
  border: 1px solid rgba(90,200,250,0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(90,200,250,0.055);
  min-width: 0;
}

.h23-goodlife-brief-panel.needs-user,
.h23-goodlife-brief-panel.critical {
  border-color: rgba(255,190,90,0.36);
  background: rgba(255,190,90,0.075);
}

.h23-goodlife-brief-panel.repairing {
  border-color: rgba(255,120,120,0.28);
  background: rgba(255,120,120,0.055);
}

.h23-goodlife-brief-panel.clear {
  border-color: rgba(112,211,162,0.24);
  background: rgba(112,211,162,0.055);
}

.h23-goodlife-brief-status {
  align-self: start;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 5px 7px;
  color: var(--text-primary);
  background: rgba(0,0,0,0.16);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.h23-goodlife-brief-main,
.h23-goodlife-brief-next,
.h23-goodlife-brief-receipt {
  min-width: 0;
}

.h23-goodlife-brief-main strong,
.h23-goodlife-brief-receipt strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.h23-goodlife-brief-main span,
.h23-goodlife-brief-next span,
.h23-goodlife-brief-receipt small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.h23-goodlife-brief-next label,
.h23-goodlife-brief-receipt span {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.h23-goodlife-brief-action {
  align-self: center;
  border: 1px solid rgba(112,211,162,0.34);
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--text-primary);
  background: rgba(112,211,162,0.1);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.h23-goodlife-brief-action:hover {
  border-color: rgba(112,211,162,0.55);
  background: rgba(112,211,162,0.16);
}

.h23-goodlife-fleet {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255,255,255,0.035);
}

.h23-goodlife-fleet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.h23-goodlife-fleet-head span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.h23-goodlife-fleet-head strong {
  min-width: 0;
  font-size: 13px;
  color: var(--text-primary);
  text-align: right;
}

.h23-goodlife-fleet-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.h23-goodlife-fleet-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.7fr) auto;
  gap: 4px 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 8px 9px;
  color: var(--text-primary);
  background: rgba(0,0,0,0.14);
  text-align: left;
  cursor: pointer;
}

.h23-goodlife-fleet-row:hover {
  border-color: rgba(140,190,255,0.55);
  background: rgba(255,255,255,0.07);
}

.h23-goodlife-fleet-row span,
.h23-goodlife-fleet-row strong,
.h23-goodlife-fleet-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h23-goodlife-fleet-row span {
  font-size: 12px;
  font-weight: 700;
}

.h23-goodlife-fleet-row strong {
  justify-self: end;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
}

.h23-goodlife-fleet-row small {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--text-secondary);
}

.h23-goodlife-fleet-row.needs-user,
.h23-goodlife-fleet-row.critical {
  border-color: rgba(255,120,120,0.55);
}

.h23-goodlife-fleet-row.repairing,
.h23-goodlife-fleet-row.review,
.h23-goodlife-fleet-row.attention {
  border-color: rgba(255,190,90,0.45);
}

.h23-goodlife-fleet-row.working,
.h23-goodlife-fleet-row.resting {
  border-color: rgba(120,170,255,0.4);
}

.h23-goodlife-fleet-row.paused {
  border-color: rgba(180,190,205,0.38);
}

.h23-goodlife-fleet-row.clear,
.h23-goodlife-fleet-row.healthy {
  border-color: rgba(120,220,160,0.35);
}

.h23-goodlife-fleet-empty {
  font-size: 12px;
  color: var(--text-secondary);
}

.h23-problems-overlay-panel {
  width: min(1120px, 94vw);
  max-width: 1120px;
}

.h23-problems-list {
  padding: 12px;
}

.h23-problems-operator {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(90,200,250,0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(90,200,250,0.055);
}

.h23-problems-operator.needs-user {
  border-color: rgba(255,190,90,0.42);
  background: rgba(255,190,90,0.08);
}

.h23-problems-operator.repairing {
  border-color: rgba(255,120,120,0.26);
  background: rgba(255,120,120,0.055);
}

.h23-problems-operator.clear {
  border-color: rgba(112,211,162,0.24);
  background: rgba(112,211,162,0.055);
}

.h23-problems-operator label,
.h23-problem-operator-grid label,
.h23-goodlife-issue-brief label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.h23-problems-operator strong,
.h23-problem-operator-grid span,
.h23-goodlife-issue-brief p {
  display: block;
  min-width: 0;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.h23-problems-operator span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.h23-problem-operator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.h23-problem-operator-grid > div,
.h23-goodlife-issue-brief > div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 8px 9px;
  background: rgba(0,0,0,0.12);
}

.h23-problem-user-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  border: 1px solid rgba(255,190,90,0.32);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(255,190,90,0.08);
}

.h23-problem-user-action label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,210,130,0.82);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.h23-problem-user-action strong,
.h23-problem-user-action span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.h23-problem-user-action strong {
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.35;
}

.h23-problem-user-action span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.h23-problem-user-action-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.h23-problem-user-action-controls button {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 5px;
  padding: 5px 9px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  cursor: pointer;
}

.h23-problem-user-action-controls button:hover {
  border-color: rgba(255,190,90,0.52);
  color: var(--text-primary);
}

.h23-goodlife-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px;
}

.h23-goodlife-section {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255,255,255,0.035);
  min-width: 0;
}

.h23-goodlife-section-title {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.h23-goodlife-answer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h23-goodlife-answer-line,
.h23-goodlife-empty,
.h23-goodlife-problem-detail {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.h23-goodlife-digest-list {
  display: grid;
  gap: 7px;
}

.h23-goodlife-digest-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.h23-goodlife-digest-row label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.h23-goodlife-digest-row span {
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.h23-goodlife-rings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.h23-goodlife-ring {
  min-width: 0;
  min-height: 104px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.055);
  color: var(--text-primary);
  text-align: left;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 5px;
  cursor: pointer;
}

.h23-goodlife-ring:hover {
  border-color: rgba(90,200,250,0.45);
  background: rgba(90,200,250,0.08);
}

.h23-goodlife-ring span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.h23-goodlife-ring strong {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.2;
}

.h23-goodlife-ring small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.h23-goodlife-ring em {
  color: var(--accent-cyan);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.h23-goodlife-ring.needs-user,
.h23-goodlife-ring.critical {
  border-color: rgba(255,69,58,0.42);
  background: rgba(255,69,58,0.10);
}

.h23-goodlife-ring.repairing,
.h23-goodlife-ring.attention,
.h23-goodlife-ring.review {
  border-color: rgba(255,204,0,0.34);
  background: rgba(255,204,0,0.08);
}

.h23-goodlife-ring.working,
.h23-goodlife-ring.resting {
  border-color: rgba(90,200,250,0.34);
  background: rgba(90,200,250,0.08);
}

.h23-goodlife-ring.clear,
.h23-goodlife-ring.healthy {
  border-color: rgba(52,199,89,0.34);
  background: rgba(52,199,89,0.08);
}

.h23-goodlife-problem-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.h23-goodlife-problem-stats span {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.12);
}

.h23-goodlife-problem-stats strong {
  color: var(--text-primary);
}

.h23-goodlife-problem-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h23-goodlife-problem-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(110px, 150px) minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  font-size: 11px;
  text-align: left;
  padding: 0;
}

.h23-goodlife-problem-row:hover .h23-goodlife-problem-claim {
  color: var(--text-primary);
}

.h23-goodlife-problem-state {
  border-radius: 5px;
  padding: 2px 5px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}

.h23-goodlife-problem-state.chronic {
  color: #ffd38a;
  background: rgba(255,190,90,0.12);
}

.h23-goodlife-problem-state.open {
  color: #ff9f9f;
  background: rgba(255,120,120,0.12);
}

.h23-goodlife-problem-state.healthy,
.h23-goodlife-problem-state.clear,
.h23-goodlife-problem-state.resolved {
  color: #9ee8bf;
  background: rgba(112, 211, 162, 0.12);
}

.h23-goodlife-needs-user {
  color: #ffd38a;
  background: rgba(255,190,90,0.1);
  border: 1px solid rgba(255,190,90,0.32);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  white-space: nowrap;
}

.h23-goodlife-problem-id,
.h23-goodlife-problem-claim {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h23-goodlife-problem-id {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.h23-goodlife-action {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.h23-goodlife-action-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.4;
}

.h23-goodlife-action-row span {
  color: var(--text-muted);
}

.h23-goodlife-action-row strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.h23-goodlife-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.h23-goodlife-lane {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
}

.h23-goodlife-lane.critical { color: #ff9f9f; border-color: rgba(255,120,120,0.45); }
.h23-goodlife-lane.strained { color: #ffd38a; border-color: rgba(255,190,90,0.45); }
.h23-goodlife-lane.watch { color: #9bc8ff; border-color: rgba(120,170,255,0.35); }
.h23-goodlife-lane.healthy { color: #9ee8bf; border-color: rgba(120,220,160,0.35); }
.h23-goodlife-lane.active { background: rgba(255,255,255,0.09); }

.h23-goodlife-overlay-panel {
  width: min(1180px, 94vw);
  max-width: 1180px;
  height: min(900px, 92vh);
  max-height: 92vh;
}

.h23-goodlife-overlay-header {
  gap: 16px;
}

.h23-goodlife-overlay-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.h23-goodlife-overlay-status {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
}

.h23-goodlife-overlay-status.current {
  color: #9ee8bf;
  border-color: rgba(120,220,160,0.45);
}

.h23-goodlife-overlay-status.conflicted,
.h23-goodlife-overlay-status.stale {
  color: #ffd38a;
  border-color: rgba(255,190,90,0.5);
}

.h23-goodlife-overlay-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.h23-goodlife-overlay-body {
  display: grid;
  grid-template-rows: minmax(180px, 0.82fr) auto minmax(260px, 1.18fr) auto;
  gap: 12px;
  overflow: hidden;
  padding: 16px 20px;
  flex: 1;
  min-height: 0;
}

.h23-goodlife-overlay-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.h23-goodlife-top-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.h23-goodlife-top-card {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255,255,255,0.035);
  min-width: 0;
}

.h23-goodlife-top-card label,
.h23-goodlife-detail-grid label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.h23-goodlife-top-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.h23-goodlife-top-card span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h23-goodlife-digest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.h23-goodlife-digest-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.055);
  min-width: 0;
  min-height: 72px;
}

.h23-goodlife-digest-card label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.h23-goodlife-digest-card span {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.h23-goodlife-operator-answer-panel {
  border: 1px solid rgba(90,200,250,0.24);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(90,200,250,0.06);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.h23-goodlife-operator-answer-panel label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.h23-goodlife-operator-answer-panel div + div {
  margin-top: 3px;
}

.h23-goodlife-handoff-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255,255,255,0.045);
}

.h23-goodlife-handoff-panel.needs-user {
  border-color: rgba(255,204,102,0.38);
  background: rgba(255,204,102,0.08);
}

.h23-goodlife-handoff-panel.attention,
.h23-goodlife-handoff-panel.critical {
  border-color: rgba(255,149,0,0.34);
  background: rgba(255,149,0,0.07);
}

.h23-goodlife-handoff-panel label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.h23-goodlife-handoff-panel p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.h23-goodlife-handoff-panel p + p {
  margin-top: 4px;
}

.h23-goodlife-overlay-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-content: flex-start;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 8px 0;
}

.h23-goodlife-tab {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.h23-goodlife-tab.active {
  color: var(--text-primary);
  border-color: rgba(90,200,250,0.48);
  background: rgba(90,200,250,0.12);
}

.h23-goodlife-overlay-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.35fr);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.h23-goodlife-overlay-list,
.h23-goodlife-overlay-detail {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(0,0,0,0.12);
  overflow-y: auto;
  min-height: 0;
}

.h23-goodlife-overlay-detail {
  padding: 14px;
}

.h23-goodlife-list-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 0.42fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 8px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  padding: 10px;
  color: var(--text-secondary);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.h23-goodlife-list-row.static {
  cursor: default;
}

.h23-goodlife-list-row:hover,
.h23-goodlife-list-row.selected {
  background: rgba(255,255,255,0.055);
}

.h23-goodlife-list-row strong,
.h23-goodlife-list-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h23-goodlife-list-row small {
  grid-column: 2 / 4;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h23-goodlife-pad {
  padding: 14px;
}

.h23-goodlife-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h23-goodlife-clear-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.h23-goodlife-overlay-detail .h23-goodlife-clear-state h3 {
  margin: 0 0 5px;
}

.h23-goodlife-clear-state p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.h23-goodlife-overlay-detail h3 {
  margin: 10px 0 14px;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.35;
}

.h23-goodlife-issue-brief {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(90,200,250,0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(90,200,250,0.045);
}

.h23-goodlife-issue-brief.needs-user {
  border-color: rgba(255,190,90,0.38);
  background: rgba(255,190,90,0.075);
}

.h23-goodlife-issue-brief.repairing {
  border-color: rgba(255,120,120,0.24);
  background: rgba(255,120,120,0.05);
}

.h23-goodlife-issue-brief p {
  margin: 0;
  color: var(--text-secondary);
}

.h23-goodlife-overlay-detail h4 {
  margin: 14px 0 8px;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
}

.h23-goodlife-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.h23-goodlife-detail-grid > div {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255,255,255,0.035);
}

.h23-goodlife-detail-grid p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

.h23-goodlife-detail-grid small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
}

.h23-goodlife-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.h23-goodlife-primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  border: 1px solid rgba(90,200,250,0.24);
  border-radius: 8px;
  padding: 10px;
  background: rgba(90,200,250,0.055);
}

.h23-goodlife-primary-action > div {
  min-width: 0;
}

.h23-goodlife-primary-action label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.h23-goodlife-primary-action strong,
.h23-goodlife-primary-action p,
.h23-goodlife-primary-action small {
  display: block;
  min-width: 0;
}

.h23-goodlife-primary-action p {
  margin: 4px 0;
  color: var(--text-secondary);
  line-height: 1.35;
}

.h23-goodlife-primary-action small {
  color: var(--text-muted);
}

.h23-goodlife-primary-action .h23-goodlife-mini-actions {
  flex: 0 0 auto;
}

.h23-goodlife-intervention-console {
  margin: 12px 0;
  border: 1px solid rgba(255,190,90,0.26);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,190,90,0.055);
}

.h23-goodlife-intervention-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.h23-goodlife-intervention-grid > div {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 9px;
  background: rgba(0,0,0,0.12);
}

.h23-goodlife-intervention-grid label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.h23-goodlife-intervention-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.h23-goodlife-intervention-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.h23-goodlife-intervention-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.h23-goodlife-intervention-note strong {
  color: var(--text-primary);
}

.h23-goodlife-json {
  margin: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 10px;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.18);
  font-size: 11px;
  line-height: 1.45;
  overflow-x: auto;
}

.h23-goodlife-evidence-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr) minmax(80px, 0.25fr) auto;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.h23-goodlife-evidence-row strong,
.h23-goodlife-evidence-row span,
.h23-goodlife-evidence-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h23-goodlife-evidence-row small {
  color: var(--text-muted);
}

.h23-goodlife-evidence-row em {
  justify-self: end;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.h23-goodlife-evidence-row.info em {
  color: rgba(255,255,255,0.5);
}

.h23-goodlife-evidence-row.watch em {
  color: rgba(255, 200, 87, 0.95);
}

.h23-goodlife-evidence-row.critical em {
  color: rgba(255, 112, 112, 0.95);
}

.h23-goodlife-evidence-row p {
  grid-column: 2 / -1;
  margin: -2px 0 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

.h23-goodlife-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.h23-goodlife-two-col > div {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255,255,255,0.025);
}

.h23-goodlife-two-col ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.h23-goodlife-worker-run-row {
  grid-template-columns: minmax(90px, 0.22fr) minmax(0, 1fr) minmax(120px, 0.3fr) auto;
}

.h23-goodlife-worker-receipt-detail {
  margin-top: 10px;
  border: 1px solid rgba(112, 211, 162, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(112, 211, 162, 0.055);
}

.h23-goodlife-worker-receipt-detail p {
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.h23-goodlife-worker-receipt-detail ul {
  margin: 0 0 0 18px;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.h23-goodlife-section-actions {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 6px;
}

.h23-goodlife-section-actions button {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1;
  padding: 7px 9px;
  cursor: pointer;
  white-space: nowrap;
}

.h23-goodlife-section-actions button:hover {
  border-color: rgba(112, 211, 162, 0.35);
  color: var(--text-primary);
}

.h23-goodlife-mini-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.h23-goodlife-mini-actions button {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.h23-goodlife-mini-actions button:hover {
  border-color: rgba(112, 211, 162, 0.35);
  color: var(--text-primary);
}

.h23-goodlife-evidence-receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  border: 1px solid rgba(112, 211, 162, 0.22);
  border-radius: 6px;
  padding: 10px;
  background: rgba(112, 211, 162, 0.07);
}

.h23-goodlife-evidence-receipt strong {
  color: var(--text-primary);
  font-size: 12px;
}

.h23-goodlife-evidence-receipt span,
.h23-goodlife-evidence-receipt code {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.h23-goodlife-overlay-action-status {
  min-height: 18px;
  color: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
}

@media (max-width: 980px) {
  .h23-goodlife-grid {
    grid-template-columns: 1fr;
  }

  .h23-goodlife-brief-panel {
    grid-template-columns: 1fr;
  }

  .h23-goodlife-head {
    flex-direction: column;
  }

  .h23-goodlife-top-grid,
  .h23-goodlife-digest-grid,
  .h23-goodlife-handoff-panel,
  .h23-problems-operator,
  .h23-problem-operator-grid,
  .h23-goodlife-issue-brief,
  .h23-goodlife-overlay-workspace,
  .h23-goodlife-intervention-grid,
  .h23-goodlife-detail-grid {
    grid-template-columns: 1fr;
  }

  .h23-goodlife-overlay-panel {
    width: 96vw;
    height: min(900px, 92vh);
    max-height: 92vh;
  }

  .h23-goodlife-overlay-body {
    grid-template-rows: minmax(180px, 0.7fr) auto minmax(280px, 1.3fr) auto;
    overflow: hidden;
  }

  .h23-goodlife-overlay-workspace {
    overflow: hidden;
  }

  .h23-goodlife-overlay-list,
  .h23-goodlife-overlay-detail {
    overflow-y: auto;
  }

  .h23-goodlife-primary-action {
    align-items: stretch;
    flex-direction: column;
  }

  .h23-goodlife-primary-action .h23-goodlife-mini-actions {
    justify-content: flex-start;
  }
}

.h23-home-item[data-home-tile-id="brain-log"],
.h23-home-item[data-home-tile-id="dream-log"] {
  grid-column: span 6;
}

.h23-home-item[data-home-tile-id="feeder"] {
  grid-column: span 12;
}

.h23-home-item[data-home-tile-id="thought-feed"] > .h23-tile,
.h23-home-item[data-home-tile-id="vibe"] > .h23-tile,
.h23-home-item[data-home-tile-id="chat"] > .h23-tile {
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.h23-home-item[data-home-tile-id="outside-weather"] > .h23-tile,
.h23-home-item[data-home-tile-id="sauna-control"] > .h23-tile {
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.h23-home-item[data-home-tile-id="system-summary"] > .h23-tile {
  min-height: var(--home-summary-tile-min-height);
}

.h23-tile {
  border-radius: 22px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(8, 24, 49, 0.94), rgba(7, 18, 36, 0.94)),
    radial-gradient(circle at top right, rgba(73, 206, 255, 0.08), transparent 34%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 44px rgba(0,0,0,0.22);
}

.h23-tile::before {
  background: linear-gradient(90deg, transparent, rgba(126, 225, 255, 0.35), transparent);
}

.h23-tile-header {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(240, 246, 255, 0.96);
}

.h23-tile-thoughts {
  background:
    radial-gradient(circle at bottom center, rgba(111, 88, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(21, 24, 64, 0.95), rgba(13, 20, 45, 0.96));
}

.h23-tile-system-summary {
  background:
    radial-gradient(circle at right center, rgba(36, 205, 202, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(8, 38, 50, 0.94), rgba(8, 27, 42, 0.96));
}

.h23-system-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.h23-home-item[data-home-tile-id="outside-weather"] .h23-custom-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.h23-home-item[data-home-tile-id="sauna-control"] .h23-custom-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.h23-system-bar-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.h23-system-bar-item label {
  display: block;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(181, 209, 234, 0.52);
}

.h23-system-bar-item .value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.h23-system-summary-excerpt {
  background: rgba(255,255,255,0.03);
}

.h23-tile-custom {
  min-height: 224px;
  gap: 10px;
}

.h23-custom-status {
  font-size: 0.72rem;
  color: rgba(181, 209, 234, 0.56);
}

.h23-custom-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.h23-custom-subtitle {
  min-height: 0;
}

.h23-custom-metrics {
  gap: 8px;
}

.h23-custom-metric {
  border-radius: 12px;
}

.h23-custom-footer {
  margin-top: auto;
}

.h23-vibe-image {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}

.h23-vibe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h23-vibe-caption {
  text-align: left;
}

.h23-tile-brainlog {
  min-height: 180px;
}

.h23-cosmo-indicator {
  display: none;
}

.h23-about,
.h23-panel#panel-intelligence,
.h23-panel#panel-workers,
.h23-panel#panel-brain-map,
.h23-panel#panel-query {
  border-radius: 24px;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-shell);
  padding: 22px;
}

.h23-panel#panel-intelligence,
.h23-panel#panel-workers,
.h23-panel#panel-brain-map,
.h23-panel#panel-query {
  min-height: 70vh;
}

/* ── Workers ── */

.h23-workers-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.h23-workers-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.h23-workers-subtitle,
.h23-workers-status {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.h23-workers-actions,
.h23-workers-run-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.h23-worker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid rgba(94, 234, 212, 0.36);
  background: rgba(45, 212, 191, 0.14);
  color: #b9fff7;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.h23-worker-btn.secondary {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.1);
  color: rgba(231, 241, 255, 0.86);
}

.h23-worker-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.h23-workers-capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.h23-worker-capability-card {
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.13), rgba(3, 16, 32, 0.38)),
    rgba(255,255,255,0.025);
}

.h23-worker-capability-card h3 {
  margin: 5px 0 14px;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.h23-worker-capability-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.h23-worker-capability-kicker {
  color: #9ff0c9;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.h23-worker-capability-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.h23-worker-capability-columns strong {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}

.h23-worker-capability-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.h23-worker-guardrails,
.h23-worker-intents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h23-worker-guardrails {
  margin-top: 14px;
}

.h23-worker-guardrails span {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  color: var(--text-muted);
  font-size: 0.72rem;
}

.h23-worker-intents {
  margin-bottom: 14px;
}

.h23-worker-intent {
  flex: 1 1 210px;
  min-height: 88px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(45, 212, 191, 0.075);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.h23-worker-intent:hover {
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(45, 212, 191, 0.12);
}

.h23-worker-intent strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.h23-worker-intent span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.38;
}

.h23-worker-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.h23-worker-stat,
.h23-workers-section {
  background: var(--glass-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.h23-worker-stat {
  padding: 14px;
}

.h23-worker-stat span {
  display: block;
  color: var(--text-primary);
  font-size: 1.45rem;
  font-weight: 700;
}

.h23-worker-stat label {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.h23-workers-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.h23-workers-grid-wide {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.h23-workers-section {
  padding: 16px;
  min-width: 0;
}

.h23-workers-section-title {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.h23-workers-field,
.h23-workers-field-row label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.h23-workers-field-row {
  margin-bottom: 12px;
}

.h23-workers-field select,
.h23-workers-field textarea,
.h23-workers-field-row select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(3, 16, 32, 0.72);
  color: var(--text-primary);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

.h23-workers-field textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.45;
}

.h23-worker-row,
.h23-worker-run-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.h23-worker-row:first-child,
.h23-worker-run-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.h23-worker-run-row {
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.h23-worker-name {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.h23-worker-meta,
.h23-worker-purpose,
.h23-worker-run-main span,
.h23-worker-run-main small,
.h23-worker-run-side time {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.h23-worker-purpose {
  margin-top: 5px;
}

.h23-worker-human {
  margin-top: 7px;
  color: #b9fff7;
  font-size: 0.78rem;
  line-height: 1.4;
}

.h23-worker-pill,
.h23-worker-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.82);
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.h23-worker-status.pass {
  border-color: rgba(52, 211, 153, 0.35);
  color: #9ff0c9;
  background: rgba(16, 185, 129, 0.12);
}

.h23-worker-status.fail {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
}

.h23-worker-status.blocked {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
}

.h23-worker-run-main,
.h23-worker-run-side,
.h23-worker-receipt-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.h23-worker-run-main {
  flex-direction: column;
  align-items: flex-start;
}

.h23-worker-run-main strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.h23-worker-run-side {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.h23-workers-empty {
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.86rem;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 8px;
}

.h23-worker-receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.h23-workers-receipt p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.h23-worker-root-cause,
.h23-worker-receipt-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.h23-worker-receipt-block h4 {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.h23-worker-receipt-block ul {
  margin: 0 0 10px 18px;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.h23-worker-receipt-block code {
  color: #b9fff7;
  word-break: break-all;
}

@media (max-width: 1080px) {
  .h23-overview-band {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(120px, 1fr));
    gap: 12px;
  }

  .h23-overview-badges {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-left: 0;
  }

  .h23-overview-state-block,
  .h23-overview-metric,
  .h23-overview-badges {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.02);
  }

  .h23-overview-state-block::after,
  .h23-overview-metric::after {
    display: none;
  }

  .h23-worker-stats,
  .h23-workers-capabilities,
  .h23-workers-grid,
  .h23-workers-grid-wide {
    grid-template-columns: 1fr;
  }

  .h23-worker-capability-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  body {
    padding: 12px;
  }

  .h23-app-shell {
    grid-template-columns: 1fr;
  }

  .h23-sidebar {
    position: static;
    top: auto;
    align-self: stretch;
    gap: 14px;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .h23-sidebar-scroll {
    gap: 16px;
    overflow: visible;
    padding-right: 0;
  }

  .h23-tabs,
  .h23-linked-tabs,
  #agent-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .h23-tab {
    width: auto;
  }

  .h23-sidebar-card {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .h23-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .h23-header-right {
    width: 100%;
    align-items: flex-start;
  }

  .h23-overview-band {
    grid-template-columns: 1fr 1fr;
  }

  .h23-overview-state-block,
  .h23-overview-badges {
    grid-column: 1 / -1;
  }

  .h23-home-layout {
    grid-template-columns: 1fr;
  }

  .h23-home-item[data-home-tile-id] {
    grid-column: span 1 !important;
    height: auto;
    max-height: none;
  }

  .h23-goodlife-rings {
    grid-template-columns: 1fr;
  }

  .h23-about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .time-cluster {
    flex-direction: column;
    align-items: flex-start;
  }

  .time-display {
    font-size: 1.5rem;
  }

  .h23-system-bar {
    grid-template-columns: 1fr 1fr;
  }

  .h23-sidebar,
  .h23-header,
  .h23-overview-band,
  .h23-about,
  .h23-panel#panel-intelligence,
  .h23-panel#panel-workers,
  .h23-panel#panel-brain-map,
  .h23-panel#panel-query {
    border-radius: 20px;
  }
}
