

:root {
  --bg: #0b0b0c;
  --bg-card: #141416;
  --bg-hover: #1a1a1e;
  --bg-sidebar: #0e0e10;
  --amber: #ffb300;
  --amber-dim: #b37d00;
  --amber-glow: rgba(255, 179, 0, 0.15);
  --amber-gradient: linear-gradient(135deg, #ffb300 0%, #ff9500 100%);
  --green: #10b981;
  --red: #ef4444;
  --yellow: #fbbf24;
  --fg: #e9e9ea;
  --fg-dim: #8b8b8e;
  --fg-muted: #5a5a5d;
  --border: #2a2a2e;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

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


html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}


.shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}


.sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  flex-shrink: 0;
  transition: width 0.3s var(--ease);
  z-index: 100;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.sidebar-brand h1 {
  font-size: 18px;
  font-weight: 700;
  background: var(--amber-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.sidebar-brand span {
  font-size: 10px;
  color: var(--fg-muted);
  display: block;
  margin-top: -2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 12px 8px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  user-select: none;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--fg);
}

.nav-item.active {
  background: var(--amber-glow);
  color: var(--amber);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.5;
}

.nav-section {
  font-size: 10px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 12px 6px;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-muted);
}

.sidebar-footer .status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}


.main {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.page-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--fg-dim);
  font-size: 13px;
  margin-top: 2px;
}

.page-content {
  padding: 24px 32px 48px;
}


.stats-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex: 1;
  min-width: 140px;
}

.stat-card .label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Geist Mono', monospace;
}

.stat-card .value.green { color: var(--green); }
.stat-card .value.red { color: var(--red); }
.stat-card .value.amber { color: var(--amber); }


.search-bar {
  position: relative;
  margin-bottom: 24px;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s var(--ease);
}

.search-bar input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.search-bar input::placeholder {
  color: var(--fg-muted);
}

.search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--fg-muted);
}


.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.18s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  border-color: var(--amber);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--amber-glow);
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-card-title .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--amber-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-title .icon-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.app-card-title h3 {
  font-size: 14px;
  font-weight: 600;
}

.app-card-desc {
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.4;
}

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-muted);
  font-family: 'Geist Mono', monospace;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.app-card-meta .host-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
}


.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.up { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.down { background: var(--red); box-shadow: 0 0 6px var(--red); }
.status-dot.unknown { background: var(--fg-muted); }


.panels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.panel-header svg { color: var(--amber); }


.voice-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.voice-item:hover {
  background: var(--bg-hover);
}

.voice-item-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-item-play svg { color: var(--amber); }

.voice-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.voice-item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-item-meta {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: 'Geist Mono', monospace;
}

.voice-now-playing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--amber-glow);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--amber);
}

.voice-now-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1s ease-in-out infinite;
}


.session-task {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.phase-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  color: #000;
  margin-left: auto;
}

.session-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--amber-gradient);
  border-radius: 3px;
  transition: width 0.5s var(--ease);
}

.progress-text {
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  color: var(--fg-dim);
  min-width: 40px;
  text-align: right;
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
}

.criteria-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-dim);
  padding: 2px 0;
}

.criteria-item svg { flex-shrink: 0; color: var(--fg-muted); width: 14px; height: 14px; }
.criteria-item.passed svg { color: var(--green); }
.criteria-item.passed { color: var(--fg); }

.criteria-more {
  font-size: 11px;
  color: var(--fg-muted);
  padding: 4px 0;
}


.app-iframe {
  width: 100%;
  height: calc(100vh - 65px);
  border: none;
  background: var(--bg);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.back-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}


.debug-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.debug-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--fg-dim);
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}

.debug-tab:hover { background: var(--bg-hover); color: var(--fg); }
.debug-tab.active { background: var(--amber-glow); color: var(--amber); border-color: var(--amber); }
.debug-tab-count {
  font-size: 10px;
  font-family: 'Geist Mono', monospace;
  color: var(--fg-muted);
  margin-left: 4px;
}


.debug-timeline {
  position: relative;
  padding-left: 120px;
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42, 42, 46, 0.3);
  position: relative;
}

.tl-date {
  position: absolute;
  left: -120px;
  width: 100px;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.tl-day { font-size: 12px; font-weight: 600; color: var(--fg-dim); }
.tl-time { font-size: 10px; color: var(--fg-muted); font-family: 'Geist Mono', monospace; }

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.tl-content { flex: 1; min-width: 0; }
.tl-task { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.tl-meta { display: flex; gap: 10px; font-size: 11px; }
.tl-phase { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.tl-effort { color: var(--fg-muted); }
.tl-progress { color: var(--fg-dim); font-family: 'Geist Mono', monospace; }


.ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
}

.ref-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11px;
}

.ref-date { color: var(--fg-muted); font-family: 'Geist Mono', monospace; }
.ref-effort {
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--amber-glow);
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.ref-score { font-weight: 700; font-family: 'Geist Mono', monospace; }
.ref-criteria { color: var(--fg-muted); font-family: 'Geist Mono', monospace; }

.ref-task { font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.ref-insights { display: flex; flex-direction: column; gap: 4px; }
.ref-q { font-size: 12px; color: var(--fg-dim); line-height: 1.4; }
.ref-qlabel { color: var(--amber-dim); font-weight: 600; font-size: 10px; text-transform: uppercase; margin-right: 4px; }


.debug-list { display: flex; flex-direction: column; gap: 6px; }

.debug-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.debug-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11px;
}

.debug-entry-id { font-family: 'Geist Mono', monospace; font-weight: 600; }
.debug-entry-prio { font-weight: 600; text-transform: uppercase; font-size: 10px; }
.debug-entry-date { color: var(--fg-muted); font-family: 'Geist Mono', monospace; }
.debug-entry-recur {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
}

.debug-entry-summary { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.debug-entry-key { font-size: 11px; color: var(--fg-muted); font-family: 'Geist Mono', monospace; }
.debug-entry-quote {
  font-size: 12px;
  color: var(--fg-dim);
  font-style: italic;
  padding: 6px 10px;
  border-left: 2px solid var(--amber);
  margin: 6px 0;
  background: var(--amber-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.debug-entry-context { font-size: 11px; color: var(--fg-muted); line-height: 1.4; margin-top: 4px; }

.debug-pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  overflow-x: auto;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .debug-timeline { padding-left: 0; }
  .tl-date { position: static; width: auto; text-align: left; flex-direction: row; gap: 6px; }
  .tl-item { flex-wrap: wrap; }
  .ref-header { flex-wrap: wrap; }
}


.arsenal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s var(--ease);
}

.arsenal-card:hover {
  border-color: rgba(255, 179, 0, 0.3);
}

.arsenal-header {
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
}

.arsenal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.arsenal-title h3 {
  font-size: 16px;
  font-weight: 700;
}

.arsenal-diff {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
}

.arsenal-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-dim);
  display: inline-block;
  margin-left: 4px;
  flex-shrink: 0;
  transition: background 0.3s;
}

.arsenal-tagline {
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.arsenal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.arsenal-tag {
  font-size: 10px;
  font-family: 'Geist Mono', monospace;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg-muted);
}

.arsenal-chevron {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--fg-muted);
  transition: transform 0.2s var(--ease);
}

.arsenal-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.arsenal-section {
  margin-top: 16px;
}

.arsenal-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.arsenal-section p {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
}

.arsenal-features, .arsenal-prereqs {
  list-style: none;
  padding: 0;
}

.arsenal-features li, .arsenal-prereqs li {
  font-size: 13px;
  color: var(--fg-dim);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.arsenal-features li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
}

.arsenal-prereqs li::before {
  content: "*";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
}

.arsenal-code-wrap {
  position: relative;
}

.arsenal-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg);
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre;
}

.arsenal-copy {
  position: absolute;
  top: 8px;
  right: 8px;
}

.arsenal-usage {
  padding: 0;
}

.arsenal-step {
  font-size: 13px;
  color: var(--fg-dim);
  padding: 4px 0 4px 8px;
  border-left: 2px solid var(--border);
  margin-bottom: 2px;
}

.arsenal-step:hover {
  border-left-color: var(--amber);
}

.arsenal-setup-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 150, 0, 0.08);
  border: 1px solid rgba(255, 150, 0, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.arsenal-setup-note strong {
  display: block;
  color: var(--amber);
  margin-bottom: 3px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.arsenal-setup-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.arsenal-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}


.endpoint-service {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.endpoint-service-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.endpoint-service-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.endpoint-routes {
  padding: 8px 0;
}

.endpoint-route {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  font-size: 13px;
  transition: background 0.12s var(--ease);
}

.endpoint-route:hover {
  background: var(--bg-hover);
}

.endpoint-route.wristops {
  background: rgba(255, 179, 0, 0.03);
}

.endpoint-route.wristops:hover {
  background: rgba(255, 179, 0, 0.08);
}

.endpoint-method {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  min-width: 38px;
  text-align: center;
  flex-shrink: 0;
}

.method-get { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.method-post { background: var(--amber-glow); color: var(--amber); }
.method-put { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.endpoint-path {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg);
  min-width: 180px;
  flex-shrink: 0;
}

.endpoint-desc {
  font-size: 12px;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wristops-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.wristops-header svg { color: var(--amber); }


.group-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0;
  margin-top: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.group-header:first-child { margin-top: 0; }

.group-header svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s var(--ease);
}

.group-header.collapsed svg {
  transform: rotate(-90deg);
}


.services-table {
  width: 100%;
  border-collapse: collapse;
}

.services-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.services-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42, 42, 46, 0.5);
  font-size: 13px;
}

.services-table tr:hover td {
  background: var(--bg-hover);
}

.services-table .svc-name {
  font-weight: 500;
}

.services-table .svc-host {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg-dim);
}

.services-table .svc-latency {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
}


.cron-table {
  width: 100%;
  border-collapse: collapse;
}

.cron-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.cron-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42, 42, 46, 0.5);
  font-size: 13px;
}

.cron-table tr:hover td {
  background: var(--bg-hover);
}

.cron-schedule {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--amber-dim);
  background: var(--amber-glow);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.cron-next {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg-dim);
}


.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.node-card.online {
  border-color: rgba(16, 185, 129, 0.3);
}

.node-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-card h4 {
  font-size: 14px;
  font-weight: 600;
}

.node-card .node-ip {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg-dim);
}

.node-card .node-meta {
  font-size: 11px;
  color: var(--fg-muted);
  display: flex;
  gap: 12px;
}


.hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg);
}

.hamburger svg { width: 20px; height: 20px; }


.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
}


.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--fg-muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 10px;
}


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

@keyframes spin {
  to { transform: rotate(360deg); }
}


.refresh-indicator {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 11px;
  color: var(--fg-muted);
  font-family: 'Geist Mono', monospace;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
}

.refresh-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}


@media (max-width: 768px) {
  .hamburger { display: flex; }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    transition: left 0.3s var(--ease);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .page-header {
    padding: 16px 16px 12px 56px;
  }

  .page-content {
    padding: 16px;
  }

  .stats-bar {
    gap: 8px;
  }

  .stat-card {
    min-width: 100px;
    padding: 12px;
  }

  .stat-card .value {
    font-size: 18px;
  }

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

  .network-grid {
    grid-template-columns: 1fr;
  }

  .panels-row {
    grid-template-columns: 1fr;
  }

  .endpoint-route {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .endpoint-path {
    min-width: unset;
  }

  .endpoint-desc {
    width: 100%;
    white-space: normal;
  }

  .services-table, .cron-table {
    font-size: 12px;
  }

  .services-table th:nth-child(4),
  .services-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 360px) {
  .app-card {
    padding: 14px;
  }

  .stat-card {
    min-width: 80px;
  }
}



:root {

  --orange-primary: #f97316;
  --orange-hover: #fb923c;
  --orange-dim: #c2410c;
  --orange-warm: #fff1e4;
  --orange-mute: rgba(249, 115, 22, 0.08);
  --orange-ring: rgba(249, 115, 22, 0.25);

  --amber-soft: rgba(251, 191, 36, 0.1);
  --amber-ring: rgba(251, 191, 36, 0.25);

  --violet: #c4b5fd;
  --violet-dot: #a78bfa;

  --zinc-900: #18181b;
  --zinc-800: #27272a;
  --zinc-700: #3f3f46;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-600: #52525b;

  --surface-translucent: rgba(0, 0, 0, 0.24);
  --surface-inner-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.015);

  --radius-xl: 12px;
  --radius-pill: 999px;
}



html, body { color: var(--zinc-400); }

.page-header h2 { color: var(--orange-warm); letter-spacing: -0.01em; }
.page-header p { color: var(--zinc-500); }



.page-header {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--zinc-800);
}



.app-card,
.arsenal-card,
.panel,
.stat-card,
.ref-card,
.debug-entry,
.endpoint-service,
.node-card {
  background: var(--surface-translucent);
  border: 1px solid var(--zinc-800);
  border-radius: var(--radius-xl);
  box-shadow: var(--surface-inner-ring);
}

.app-card:hover {
  border-color: var(--orange-primary);
  background: rgba(249, 115, 22, 0.04);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--orange-ring),
    var(--surface-inner-ring);
}

.arsenal-card:hover {
  border-color: var(--orange-ring);
}

.node-card.online {
  border-color: rgba(16, 185, 129, 0.32);
}



.app-card-title .icon-wrap {
  background: var(--orange-mute);
}
.app-card-title .icon-wrap svg {
  color: var(--orange-primary);
}

.app-card-meta .host-badge {
  background: rgba(255, 255, 255, 0.04);
  color: var(--zinc-500);
}



.panel-header,
.panel-header svg { color: var(--orange-primary); }
.panel-header { border-bottom-color: var(--zinc-800); }



.panel.accent-orange { border-left: 4px solid var(--orange-primary); }
.panel.accent-amber  { border-left: 4px solid #fbbf24; }
.panel.accent-violet { border-left: 4px solid var(--violet-dot); }
.panel.accent-green  { border-left: 4px solid #10b981; }



.btn-primary {
  background: var(--orange-primary);
  color: #000;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-ghost,
.back-btn {
  border-radius: 10px;
  border-color: var(--zinc-800);
  background: rgba(255, 255, 255, 0.02);
  color: var(--zinc-400);
}
.btn-ghost:hover,
.back-btn:hover {
  border-color: var(--orange-ring);
  color: var(--orange-warm);
  background: rgba(249, 115, 22, 0.04);
}



.micro-label {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(249, 115, 22, 0.55);
  margin-bottom: 6px;
}


.arsenal-section-title,
.wristops-header,
.nav-section,
.sidebar-footer {
  color: rgba(249, 115, 22, 0.7);
}
.nav-section { letter-spacing: 0.2em; }



.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--amber-soft);
  border: 1px solid var(--amber-ring);
  color: #fbbf24;
}


.arsenal-diff,
.phase-badge,
.debug-entry-recur,
.ref-effort,
.debug-tab-count {
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.08em;
}

.arsenal-diff {
  background: var(--amber-soft);
  border-color: var(--amber-ring);
  color: #fbbf24;
}


.phase-badge {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}


.arsenal-tag {
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--zinc-800);
  color: var(--zinc-500);
}


.cron-schedule {
  border-radius: var(--radius-pill);
  border: 1px solid var(--amber-ring);
}



.sidebar {
  background: rgba(14, 14, 16, 0.92);
  border-right-color: var(--zinc-800);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sidebar-brand { border-bottom-color: var(--zinc-800); }
.sidebar-brand h1 {
  background: linear-gradient(135deg, var(--orange-primary) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-brand span {
  color: var(--zinc-600);
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.32em;
}
.sidebar-footer {
  border-top-color: var(--zinc-800);
  color: var(--zinc-600);
}

.nav-item { color: var(--zinc-400); border-radius: 8px; }
.nav-item:hover { background: rgba(255, 255, 255, 0.03); color: var(--orange-warm); }
.nav-item.active {
  background: var(--orange-mute);
  color: var(--orange-primary);
  box-shadow: inset 2px 0 0 0 var(--orange-primary);
}
.nav-item.active svg { color: var(--orange-primary); }



.search-bar input {
  background: var(--surface-translucent);
  border-color: var(--zinc-800);
  border-radius: 10px;
}
.search-bar input:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px var(--orange-ring);
}



.stat-card .label {
  color: var(--zinc-600);
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.2em;
}
.stat-card .value.amber { color: var(--orange-primary); }
.stat-card .value.green { color: #34d399; }



.services-table th,
.cron-table th {
  color: var(--zinc-600);
  letter-spacing: 0.2em;
  font-family: 'Geist Mono', monospace;
  border-bottom-color: var(--zinc-800);
}
.services-table td,
.cron-table td {
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}



.debug-entry-quote {
  border-left-color: var(--orange-primary);
  background: var(--orange-mute);
  color: var(--zinc-400);
}
.ref-qlabel { color: var(--orange-primary); }



.endpoint-method { border-radius: var(--radius-pill); letter-spacing: 0.1em; }
.method-get  { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.method-post { background: var(--orange-mute);        color: var(--orange-primary); }



.tl-item { border-bottom-color: rgba(39, 39, 42, 0.4); }
.tl-phase { color: var(--orange-primary); }



.spinner { border-top-color: var(--orange-primary); }



.refresh-indicator {
  background: var(--surface-translucent);
  border: 1px solid var(--zinc-800);
  border-radius: var(--radius-pill);
  color: var(--zinc-500);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.refresh-indicator .dot { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); }



.status-dot.up    { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.55); }
.status-dot.down  { background: #f87171; box-shadow: 0 0 6px rgba(248, 113, 113, 0.55); }



.hamburger {
  background: var(--surface-translucent);
  border: 1px solid var(--zinc-800);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}



*:focus-visible {
  outline: 2px solid var(--orange-primary);
  outline-offset: 2px;
  border-radius: 6px;
}



.agent-chat-wrap { padding: 0; }

.agent-chat {
  background: #050507;
  border: 1px solid #1a1a1f;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}

.agent-messages {
  min-height: 160px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.agent-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}
.agent-msg--system {
  align-self: center;
  background: #111116;
  border: 1px solid #222228;
  color: #555;
  font-size: 11px;
  text-align: center;
  max-width: 100%;
  border-radius: 8px;
}
.agent-msg--user {
  align-self: flex-end;
  background: rgba(255,179,0,0.12);
  border: 1px solid rgba(255,179,0,0.25);
  color: #e8e8e8;
}
.agent-msg--agent {
  align-self: flex-start;
  background: #0f0f14;
  border: 1px solid #1e1e28;
  color: #d4d4d8;
}
.agent-msg--thinking {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: #444;
  font-size: 12px;
  padding: 4px 0;
}
.agent-msg--error { border-color: rgba(248,113,113,0.3) !important; }
.agent-blink { animation: ablink 1s infinite; }
@keyframes ablink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.agent-tool-call {
  align-self: flex-start;
  width: 100%;
  background: #0a0a0e;
  border: 1px solid #1a1a24;
  border-radius: 8px;
  overflow: hidden;
  font-size: 11px;
}
.agent-tool-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  color: #888;
  user-select: none;
}
.agent-tool-header:hover { background: #111118; }
.agent-tool-icon { color: var(--amber, #ffb300); flex-shrink: 0; }
.agent-tool-header code {
  flex: 1;
  font-family: monospace;
  font-size: 11px;
  color: #aaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-tool-toggle { flex-shrink: 0; color: #444; }
.agent-tool-output {
  padding: 10px;
  font-family: monospace;
  font-size: 11px;
  color: #666;
  white-space: pre-wrap;
  word-break: break-word;
  border-top: 1px solid #111;
  max-height: 300px;
  overflow-y: auto;
}

.agent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid #111;
}
.agent-sug {
  background: #0d0d12;
  border: 1px solid #1e1e28;
  color: #666;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.agent-sug:hover {
  border-color: rgba(255,179,0,0.3);
  color: var(--amber, #ffb300);
}

.agent-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #111;
  background: #080810;
}
.agent-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8e8e8;
  font-size: 13px;
  caret-color: var(--amber, #ffb300);
}
.agent-input::placeholder { color: #2a2a38; }
.agent-input:disabled { opacity: 0.4; }






.efforts-root [hidden], .efforts-modal-overlay[hidden] { display: none !important; }

.efforts-root {
  --ef-accent: var(--accent, #ffb300);
  --ef-accent-ink: var(--accent-ink, #111);
  --ef-fg: var(--fg, #e6e6e6);
  --ef-subtle: var(--subtle, #8b8b8b);
  --ef-border: var(--border, #2a2a2a);
  --ef-border-soft: rgba(255,255,255,0.06);
  --ef-bg: var(--bg, #111);
  --ef-surface: rgba(255,255,255,0.03);
  --ef-surface-hover: rgba(255,255,255,0.06);
  --ef-status-active: rgba(63,185,80,0.15);
  --ef-status-active-text: #7ee787;
  --ef-status-paused: rgba(139,148,158,0.18);
  --ef-status-paused-text: #cfcfcf;
  --ef-status-complete: rgba(88,166,255,0.15);
  --ef-status-complete-text: #79b8ff;
  --ef-status-abandoned: rgba(248,81,73,0.15);
  --ef-status-abandoned-text: #ff8a8a;

  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ef-fg);
  background: var(--ef-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


.efforts-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--ef-border);
  padding-left: 68px;
}
.efforts-eyebrow {
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ef-accent);
  opacity: 0.7;
  margin-bottom: 4px;
}
.efforts-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.efforts-subtitle {
  font-size: 12px;
  color: var(--ef-subtle);
  margin-top: 4px;
  line-height: 1.5;
}


.efforts-filters {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ef-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.efforts-filters::-webkit-scrollbar { display: none; }
.efforts-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ef-border);
  background: transparent;
  color: var(--ef-subtle);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 120ms ease;
}
.efforts-chip:hover { color: var(--ef-fg); border-color: var(--ef-accent); }
.efforts-chip-active {
  background: rgba(255,179,0,0.12);
  border-color: var(--ef-accent);
  color: var(--ef-accent);
}


.efforts-body {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1;
  min-height: 0;
  position: relative;
}

.efforts-list-pane {
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.efforts-card {
  padding: 14px;
  background: var(--ef-surface);
  border: 1px solid var(--ef-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 120ms ease;
}
.efforts-card:hover,
.efforts-card:focus-visible {
  background: var(--ef-surface-hover);
  border-color: var(--ef-accent);
  outline: none;
}
.efforts-card-selected {
  border-color: var(--ef-accent);
  box-shadow: inset 3px 0 0 var(--ef-accent);
}
.efforts-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ef-fg);
  line-height: 1.35;
  margin-bottom: 6px;
}
.efforts-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ef-subtle);
  margin-top: 8px;
}
.efforts-progress-bar {
  height: 3px;
  background: var(--ef-border-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}
.efforts-progress-fill {
  height: 100%;
  background: var(--ef-accent);
  transition: width 300ms ease;
}
.efforts-progress-label { color: var(--ef-fg); font-weight: 600; }


.efforts-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ef-status-paused);
  color: var(--ef-status-paused-text);
}
.efforts-status-active { background: var(--ef-status-active); color: var(--ef-status-active-text); }
.efforts-status-paused { background: var(--ef-status-paused); color: var(--ef-status-paused-text); }
.efforts-status-complete { background: var(--ef-status-complete); color: var(--ef-status-complete-text); }
.efforts-status-abandoned { background: var(--ef-status-abandoned); color: var(--ef-status-abandoned-text); }


.efforts-detail-pane {
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
  position: relative;
}
.efforts-detail-empty {
  color: var(--ef-subtle);
  font-size: 13px;
  text-align: center;
  padding: 60px 20px;
  line-height: 1.6;
}
.efforts-detail-empty p { margin: 0; }

.efforts-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-bottom: 12px;
  border: 1px solid var(--ef-border);
  border-radius: 8px;
  background: transparent;
  color: var(--ef-subtle);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 120ms ease;
}
.efforts-back:hover { color: var(--ef-accent); border-color: var(--ef-accent); }

.efforts-outcome-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.efforts-outcome {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ef-fg);
}
.efforts-meta {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ef-subtle);
  margin-bottom: 14px;
}


.efforts-detail-progress {
  margin-bottom: 18px;
}
.efforts-detail-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ef-subtle);
  margin-bottom: 4px;
}
.efforts-detail-progress-bar {
  height: 5px;
  background: var(--ef-border-soft);
  border-radius: 3px;
  overflow: hidden;
}
.efforts-detail-progress-fill {
  height: 100%;
  background: var(--ef-accent);
  transition: width 400ms ease;
}


.efforts-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.efforts-action-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--ef-border);
  background: transparent;
  color: var(--ef-subtle);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 120ms ease;
}
.efforts-action-btn:hover { color: var(--ef-fg); border-color: var(--ef-accent); }
.efforts-action-btn-active {
  background: rgba(255,179,0,0.1);
  border-color: var(--ef-accent);
  color: var(--ef-accent);
}
.efforts-action-btn-danger:hover { border-color: #ff6b6b; color: #ff6b6b; }


.efforts-section { margin-bottom: 22px; }
.efforts-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.efforts-section h4 {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ef-subtle);
  font-weight: 600;
}
.efforts-section details summary {
  cursor: pointer;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ef-subtle);
  padding: 4px 0;
  list-style: none;
}
.efforts-section details summary::before { content: "+ "; color: var(--ef-accent); }
.efforts-section details[open] summary::before { content: "- "; }
.efforts-section details summary::-webkit-details-marker { display: none; }


.efforts-steps { list-style: none; padding: 0; margin: 0; }
.efforts-step {
  padding: 10px 0;
  border-bottom: 1px solid var(--ef-border-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.efforts-step:last-child { border-bottom: none; }
.efforts-step-check {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--ef-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.efforts-step-body {
  flex: 1;
  min-width: 0;
}
.efforts-step-action {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ef-fg);
}
.efforts-step.is-done .efforts-step-action {
  color: var(--ef-subtle);
  text-decoration: line-through;
}
.efforts-step-rationale {
  font-size: 12px;
  color: var(--ef-subtle);
  margin-top: 4px;
  line-height: 1.5;
}
.efforts-step-order {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--ef-subtle);
  margin-right: 6px;
}
.efforts-step-delete {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--ef-subtle);
  padding: 4px 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 120ms ease;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
}
.efforts-step:hover .efforts-step-delete { opacity: 1; }
.efforts-step-delete:hover { color: #ff6b6b; background: rgba(248,81,73,0.12); }


.efforts-add-step-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.efforts-input,
.efforts-textarea {
  flex: 1;
  padding: 8px 12px;
  background: var(--ef-surface);
  border: 1px solid var(--ef-border);
  border-radius: 8px;
  color: var(--ef-fg);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  resize: vertical;
  min-height: 38px;
}
.efforts-input:focus,
.efforts-textarea:focus {
  outline: none;
  border-color: var(--ef-accent);
  background: rgba(255,255,255,0.05);
}
.efforts-input::placeholder,
.efforts-textarea::placeholder { color: var(--ef-subtle); }


.efforts-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.efforts-btn-primary {
  background: var(--ef-accent);
  color: var(--ef-accent-ink);
}
.efforts-btn-primary:hover { background: rgba(255,179,0,0.85); }
.efforts-btn-ghost {
  background: transparent;
  border-color: var(--ef-border);
  color: var(--ef-fg);
}
.efforts-btn-ghost:hover { border-color: var(--ef-accent); color: var(--ef-accent); }
.efforts-btn-warn {
  background: rgba(255,179,0,0.15);
  border-color: var(--ef-accent);
  color: var(--ef-accent);
}


.efforts-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,179,0,0.1);
  border: 1px solid var(--ef-accent);
  border-radius: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.efforts-banner-body {
  flex: 1;
  font-size: 13px;
  color: var(--ef-fg);
  line-height: 1.4;
}
.efforts-banner strong { color: var(--ef-accent); margin-right: 4px; }


.efforts-row-right { display: flex; justify-content: flex-end; margin-top: 8px; }
.efforts-hint { font-size: 11px; color: var(--ef-subtle); margin-top: 6px; line-height: 1.5; }

.efforts-attach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.efforts-attachments {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 12px;
}
.efforts-attachments li {
  padding: 6px 0;
  border-bottom: 1px solid var(--ef-border-soft);
}
.efforts-attachments li:last-child { border-bottom: none; }
.efforts-attachments a { color: var(--ef-accent); text-decoration: none; }
.efforts-attachments a:hover { text-decoration: underline; }


.efforts-sources {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--ef-subtle);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.efforts-sources li {
  padding: 2px 8px;
  border: 1px solid var(--ef-border);
  border-radius: 4px;
}
.efforts-markdown {
  white-space: pre-wrap;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  background: rgba(0,0,0,0.4);
  padding: 12px;
  border-radius: 6px;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 8px;
  color: var(--ef-subtle);
  line-height: 1.5;
}


.efforts-error {
  padding: 12px 14px;
  background: rgba(248,81,73,0.1);
  border: 1px solid rgba(248,81,73,0.4);
  border-radius: 8px;
  color: #ff8a8a;
  font-size: 13px;
  margin-bottom: 14px;
}
.efforts-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ef-subtle);
  font-size: 13px;
  line-height: 1.6;
}


.efforts-fab {
  position: fixed;
  bottom: 72px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ef-accent);
  color: var(--ef-accent-ink);
  border: none;
  font-size: 28px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,179,0,0.3);
  z-index: 40;
  transition: transform 120ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.efforts-fab:hover { transform: scale(1.05); }
.efforts-fab:active { transform: scale(0.95); }


.efforts-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px;
}
.efforts-modal {
  background: var(--ef-bg);
  border: 1px solid var(--ef-border);
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  overflow: hidden;
}
.efforts-modal-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--ef-border);
}
.efforts-modal-eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ef-accent);
  opacity: 0.7;
  margin-bottom: 4px;
}
.efforts-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.efforts-modal-body { padding: 16px 18px; }
.efforts-modal-foot {
  padding: 12px 18px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--ef-border);
}


@media (max-width: 767px) {
  .efforts-header { padding-left: 68px; padding-right: 14px; }
  .efforts-title { font-size: 18px; }
  .efforts-subtitle { font-size: 11px; }

  .efforts-body { grid-template-columns: 1fr; }

  .efforts-detail-pane {
    position: absolute;
    inset: 0;
    background: var(--ef-bg);
    transform: translateX(100%);
    transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 10;
    padding: 16px 14px 80px;
  }
  .efforts-root.is-detail-open .efforts-detail-pane {
    transform: translateX(0);
  }
  .efforts-root.is-detail-open .efforts-list-pane {
    visibility: hidden;
  }
  .efforts-back { display: inline-flex; }
  .efforts-outcome { font-size: 18px; }
  .efforts-step-action { font-size: 14px; }
}


@media (min-width: 768px) {
  .efforts-header { padding-left: 22px; }
  .efforts-body {
    grid-template-columns: 320px 1fr;
  }
  .efforts-list-pane {
    border-right: 1px solid var(--ef-border);
    padding: 14px;
  }
  .efforts-detail-pane { padding: 22px 28px; }
  .efforts-back { display: none; }
  .efforts-fab { display: none; }
  .efforts-root.is-detail-open .efforts-list-pane { visibility: visible; }
}


.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
}
.res-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px 10px;
}
.res-card.res-offline {
  opacity: 0.55;
  border-color: var(--red);
}
.res-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.res-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--fg);
}
.res-meta {
  font-size: 0.71rem;
  font-family: 'Geist Mono', monospace;
  color: var(--fg-muted);
}
.res-badge-err {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.08em;
}
.res-err-msg {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 6px;
}
.res-gauges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}
.fg-wrap {
  flex: 1;
  min-width: 0;
  max-width: 138px;
}
.fg-svg {
  width: 100%;
  height: auto;
  display: block;
}
.fg-pct {
  font-family: 'Geist Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  dominant-baseline: auto;
}
.fg-unit {
  font-family: 'Geist Mono', monospace;
  font-size: 1.0rem;
  font-weight: 600;
  dominant-baseline: auto;
}
.fg-detail {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  fill: #5a5a5d;
  dominant-baseline: auto;
}
.fg-label {
  font-family: 'Geist', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  fill: #8b8b8e;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  dominant-baseline: auto;
}
