/* Pulse — app-specific styles on top of kynship-ui */

/* Accent override: darkish hot pink. Status colors (tier chips, trends,
   sparklines) stay green/amber/red — only the UI accent changes. */
:root {
  --grn: #db2777;
  --grn-deep: #be185d;
}
::selection { background: rgba(219, 39, 119, .3); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(219, 39, 119, .15); }
#progress { box-shadow: 0 0 8px rgba(219, 39, 119, .55); }
.btn-accent { box-shadow: 0 2px 12px rgba(190, 24, 93, .3); }

.btn-sm { padding: 4px 9px; font-size: 11px; border-radius: 7px; }

.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.tier-healthy  { background: rgba(52, 211, 153, .12); color: #34d399; border: 1px solid rgba(52, 211, 153, .35); }
.tier-at-risk  { background: rgba(251, 191, 36, .12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, .35); }
.tier-critical { background: rgba(248, 113, 113, .12); color: #f87171; border: 1px solid rgba(248, 113, 113, .35); }
.tier-none     { background: rgba(95, 102, 114, .15); color: #9aa1ac; border: 1px solid #2d3139; }

.sparkline { display: block; }
.sparkline path { fill: none; stroke: #34d399; stroke-width: 1.5; }
.sparkline.down path { stroke: #f87171; }
.sparkline circle { fill: #f3f4f6; }

.trend-up   { color: #34d399; }
.trend-down { color: #f87171; }
.trend-flat { color: #5f6672; }

.score-input {
  width: 4.25rem;
  background: #22262f;
  border: 1px solid #2d3139;
  border-radius: .5rem;
  padding: .35rem .5rem;
  color: #f3f4f6;
  text-align: center;
}
.score-input:focus { outline: none; border-color: var(--grn); }
.score-input.adjusted { border-color: #22d3ee; color: #22d3ee; }

.frustration-log {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

details.citation summary { cursor: pointer; color: #9aa1ac; }
details.citation summary:hover { color: #f3f4f6; }
details.citation blockquote {
  border-left: 2px solid #2d3139;
  padding-left: .75rem;
  margin: .5rem 0;
  color: #9aa1ac;
  font-style: italic;
}

.progress-track { background: #22262f; border-radius: 999px; height: .5rem; overflow: hidden; }
.progress-fill  { background: var(--grn); height: 100%; transition: width .6s ease; }
