:root {
  --bg-deep: #0a0908;
  --bg-mid: #12100e;
  --bg-surface: #1a1714;
  --bg-raised: #221e1a;
  --text-primary: #e8e0d4;
  --text-muted: #8a8279;
  --text-dim: #5a554e;
  --accent: #c4a77d;
  --accent-glow: rgba(196, 167, 125, 0.12);
  --border: rgba(196, 167, 125, 0.12);
  --border-active: rgba(196, 167, 125, 0.35);
  --danger: #d47878;
  --success: #78d4a8;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body { min-height: 100%; overflow: hidden; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* ── SCREENS ── */
.screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.screen.active {
  display: block;
}
.screen-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
}

/* slide transitions */
.screen.slide-in-right {
  display: block;
  animation: slideInRight 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.screen.slide-in-left {
  display: block;
  animation: slideInLeft 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.screen.slide-out-right {
  display: block;
  animation: slideOutRight 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.screen.slide-out-left {
  display: block;
  animation: slideOutLeft 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes slideOutLeft { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ── HOME LINKS ── */
.home-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.home-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(196, 167, 125, 0.06);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}
.home-link:active {
  background: var(--bg-surface);
}
.home-link-icon {
  font-size: 18px;
  color: var(--accent);
  width: 28px;
  text-align: center;
}
.home-link-text {
  font-size: 14px;
  letter-spacing: 0.03em;
}

/* ── SCREEN HEADER ── */
.screen-header {
  padding: 12px 0 20px;
}
.screen-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1.2;
}
.screen-title em {
  font-style: italic;
  color: var(--accent);
}
.back-tap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 12px;
  border-radius: 50%;
}

/* ── CHIPS (replace tiny filter buttons) ── */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  -webkit-overflow-scrolling: touch;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 100px;
  white-space: nowrap;
}
.chip.active {
  background: var(--accent-glow);
  border-color: var(--border-active);
  color: var(--text-primary);
}

/* ── CARDS ── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:active {
  background: var(--bg-raised);
  transform: scale(0.98);
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 4px;
}
.card-meta {
  font-size: 11px;
  color: var(--text-dim);
}
.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── (fab removed) ── */

/* ── EMPTY ── */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 12px;
}

/* ── FORMS ── */
.form-group {
  margin-bottom: 28px;
}
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px; /* prevent iOS zoom */
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--border-active);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-dim);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.add-q-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.add-q-row .form-input { flex: 1; }
.add-q-row select {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  padding: 0 12px;
  outline: none;
}

/* ── BLOCK BUTTONS ── */
.btn-block {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 12px;
}
.btn-block:active {
  background: var(--bg-raised);
}
.btn-block.btn-accent {
  background: var(--accent-glow);
  border-color: var(--border-active);
  color: var(--text-primary);
  margin-top: 20px;
}

.btn {
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:active {
  background: var(--accent-glow);
}
.btn-primary {
  background: var(--accent-glow);
  border-color: var(--border-active);
}
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ── QUESTIONS BUILDER ── */
.questions-list { margin-bottom: 16px; }
.question-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  min-height: 52px;
}
.question-num { font-size: 12px; color: var(--text-dim); min-width: 24px; }
.question-content { flex: 1; }
.question-text { font-size: 13px; }
.question-type { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.question-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── TAKE QUESTIONNAIRE ── */
.take-header {
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.take-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 6px;
}
.take-meta { font-size: 11px; color: var(--text-dim); }

.take-question { margin-bottom: 36px; }
.take-question-num {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.take-question-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ── OPTIONS (big touch targets) ── */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.12s ease;
  font-size: 14px;
  color: var(--text-muted);
  min-height: 52px;
}
.option:active { transform: scale(0.98); }
.option.selected {
  background: var(--bg-raised);
  border-color: var(--accent);
  color: var(--text-primary);
}
.option-marker {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s;
}
.option.selected .option-marker {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── SCALE (bigger) ── */
.scale-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.scale-btn {
  aspect-ratio: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.12s ease;
  min-height: 48px;
}
.scale-btn:active { transform: scale(0.92); }
.scale-btn.selected {
  background: var(--bg-raised);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── RESPONSES ── */
.response-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 12px;
}
.response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.response-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
}
.response-date { font-size: 10px; color: var(--text-dim); }
.response-answer { margin-bottom: 14px; }
.response-answer-q { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.response-answer-a { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.export-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.export-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── GRAPH ── */
.graph-canvas-wrap {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  height: 50vh;
  position: relative;
  touch-action: none;
}
#graph-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* detail drawer (slides up from bottom of graph) */
.detail-drawer {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin-top: -1px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.detail-drawer.open {
  max-height: 400px;
  overflow-y: auto;
}
.drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--text-dim);
  border-radius: 2px;
  margin: 10px auto;
  cursor: pointer;
}
.detail-content { padding: 0 20px 20px; }
.detail-empty { color: var(--text-dim); font-size: 11px; text-align: center; padding: 20px 0; }

.detail-section { margin-bottom: 16px; }
.detail-section-title {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.detail-text { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.detail-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  margin-right: 6px;
  margin-bottom: 6px;
}
.detail-tag.l0 { background: rgba(212, 192, 120, 0.15); color: #d4c078; }
.detail-tag.l1 { background: rgba(120, 212, 168, 0.15); color: #78d4a8; }
.detail-tag.l2 { background: rgba(212, 120, 196, 0.15); color: #d478c4; }
.detail-tag.l3 { background: rgba(212, 120, 120, 0.15); color: #d47878; }
.detail-tag.cl { background: rgba(120, 196, 212, 0.15); color: #78c4d4; }

.detail-answer {
  padding: 12px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.detail-answer-q { font-size: 10px; color: var(--text-dim); margin-bottom: 6px; line-height: 1.4; }
.detail-answer-a { font-size: 12px; color: var(--text-primary); line-height: 1.5; }

#graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── DAILY ── */
.daily-header {
  text-align: center;
  padding: 24px 0 32px;
}
.daily-date {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.daily-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.daily-icon { font-size: 1.5rem; color: var(--accent); }
.daily-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
}

.daily-deep {
  background: linear-gradient(135deg, rgba(196, 167, 125, 0.1) 0%, rgba(212, 120, 196, 0.05) 100%);
  border: 1px solid var(--border);
  padding: 28px 20px;
  margin-bottom: 28px;
  text-align: center;
}
.daily-deep-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.daily-deep-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}
.daily-deep-category { font-size: 10px; color: var(--text-dim); margin-top: 12px; }

.daily-question { margin-bottom: 32px; }
.daily-q-num { font-size: 10px; color: var(--text-dim); letter-spacing: 0.1em; margin-bottom: 8px; }
.daily-q-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 14px;
  line-height: 1.4;
}

.daily-streak {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.streak-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--accent);
}
.streak-label { font-size: 11px; color: var(--text-muted); }

.daily-completed {
  text-align: center;
  padding: 40px 20px;
}
.daily-completed-icon { font-size: 2rem; margin-bottom: 16px; }
.daily-completed-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.quick-checkin {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 20px;
  margin-top: 24px;
}
.quick-checkin-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── MANIFEST ── */
.manifest-header {
  text-align: center;
  padding: 24px 0 40px;
}
.manifest-date {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.manifest-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 300;
  line-height: 1.3;
}
.manifest-title em { font-style: italic; color: var(--accent); }

.mantra-hero {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, rgba(196, 167, 125, 0.08) 0%, rgba(120, 212, 168, 0.05) 100%);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.mantra-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}
.mantra-source { font-size: 11px; color: var(--text-dim); margin-top: 16px; }

.truth-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.truth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 20px;
}
.truth-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--accent);
}
.truth-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5;
}

.voice-section { margin-bottom: 36px; }
.voice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.voice-icon { font-size: 18px; }
.voice-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.quote-stack { display: flex; flex-direction: column; gap: 12px; }
.quote-card {
  padding: 20px;
  background: var(--bg-mid);
  border-left: 2px solid var(--accent);
}
.quote-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}
.quote-date { font-size: 10px; color: var(--text-dim); margin-top: 10px; }

.reminder-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 24px 20px;
  margin-bottom: 32px;
}
.reminder-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 16px;
}
.reminder-list { display: flex; flex-direction: column; gap: 12px; }
.reminder-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.reminder-bullet { color: var(--accent); font-size: 8px; margin-top: 6px; }

.source-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.source-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}
.source-dot { width: 6px; height: 6px; border-radius: 50%; }
.source-dot.emotion { background: #d478c4; }
.source-dot.physical { background: #78d4a8; }
.source-dot.intuition { background: #d4c078; }
.source-dot.motivation { background: #d47878; }
.source-dot.logic { background: #78c4d4; }
.source-dot.creativity { background: #c4a77d; }

.breath-block {
  text-align: center;
  padding: 40px 20px;
}
.breath-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-dim);
  font-style: italic;
}

.closing-mantra {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
}
.closing-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── ANALYSIS ── */
.analysis-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.analysis-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; margin-bottom: 6px; }
.analysis-subtitle { font-size: 11px; color: var(--text-dim); }

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 16px;
}
.stat-label { font-size: 9px; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 6px; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; color: var(--accent); line-height: 1; }
.stat-sub { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

.analysis-section { margin-bottom: 36px; }
.section-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.section-tag {
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px;
}
.section-tag.quant { background: rgba(120, 212, 168, 0.15); color: #78d4a8; }
.section-tag.qual { background: rgba(212, 120, 196, 0.15); color: #d478c4; }
.section-tag.action { background: rgba(196, 167, 125, 0.15); color: #c4a77d; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 300; }

.insight-card {
  background: var(--bg-surface); border: 1px solid var(--border); padding: 20px; margin-bottom: 12px;
}
.insight-title { font-size: 13px; color: var(--text-primary); margin-bottom: 8px; font-weight: 500; }
.insight-body { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.insight-evidence {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-dim); font-style: italic;
}

.pattern-list { display: flex; flex-direction: column; gap: 10px; }
.pattern-item {
  display: flex; gap: 14px; padding: 16px; background: var(--bg-surface); border: 1px solid var(--border);
}
.pattern-icon { font-size: 18px; width: 28px; text-align: center; }
.pattern-name { font-size: 12px; color: var(--text-primary); margin-bottom: 4px; }
.pattern-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

.action-list { display: flex; flex-direction: column; gap: 10px; }
.action-item {
  display: flex; gap: 14px; padding: 16px; background: var(--bg-mid);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
}
.action-priority {
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; height: fit-content;
}
.action-priority.high { background: rgba(212, 120, 120, 0.2); color: #d47878; }
.action-priority.med { background: rgba(212, 192, 120, 0.2); color: #d4c078; }
.action-priority.low { background: rgba(120, 212, 168, 0.2); color: #78d4a8; }
.action-title { font-size: 13px; color: var(--text-primary); margin-bottom: 4px; }
.action-body { font-size: 11px; color: var(--text-muted); line-height: 1.6; }
.action-when { font-size: 10px; color: var(--text-dim); margin-top: 6px; }

.meter-row { margin-bottom: 14px; }
.meter-label { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.meter-name { color: var(--text-muted); }
.meter-value { color: var(--text-dim); }
.meter-bar { height: 6px; background: var(--bg-mid); overflow: hidden; }
.meter-fill { height: 100%; transition: width 0.5s ease; }
.meter-fill.l0 { background: #d4c078; }
.meter-fill.l1 { background: #78d4a8; }
.meter-fill.l2 { background: #d478c4; }
.meter-fill.l3 { background: #d47878; }

.context-block {
  background: var(--bg-mid); border: 1px solid var(--border); padding: 20px; margin-top: 16px;
}
.context-label { font-size: 9px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.context-text { font-size: 12px; color: var(--text-muted); line-height: 1.7; }

.signal-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.signal-box { padding: 16px; border: 1px solid var(--border); }
.signal-box.warning { background: rgba(212, 120, 120, 0.05); border-color: rgba(212, 120, 120, 0.2); }
.signal-box.healthy { background: rgba(120, 212, 168, 0.05); border-color: rgba(120, 212, 168, 0.2); }
.signal-box-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.signal-box.warning .signal-box-label { color: #d47878; }
.signal-box.healthy .signal-box-label { color: #78d4a8; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 10px; padding: 6px 12px;
  background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-muted);
}
.tag.l0 { background: rgba(212, 192, 120, 0.1); color: #d4c078; }
.tag.l1 { background: rgba(120, 212, 168, 0.1); color: #78d4a8; }
.tag.l2 { background: rgba(212, 120, 196, 0.1); color: #d478c4; }
.tag.l3 { background: rgba(212, 120, 120, 0.1); color: #d47878; }
