/*
 * monitor-view.css -- free-tier monitor + audit benchmark (/start/). CP3 + CP-I.
 * mon- namespace ONLY; styled entirely on components/shared.css :root tokens.
 * Premium "luxury analytics" feel mapped onto PWA-native primitives. Mobile-first.
 *
 * CP-I design rules applied here:
 *  - The brand GRADIENT is spent ONCE (the score gauge arc). Every other accent
 *    is a SOLID teal (section bars, add button, primary button) so the gauge is
 *    the single hero.
 *  - 8px rhythm + hairline (1px grey-100) dividers between card blocks.
 *  - Tabular numerals on every number (the .num utility).
 *  - Micro-labels: uppercase, 0.06em tracking, 0.7rem, grey-500 (WCAG AA).
 *  - Motion is a progressive enhancement -- all of it is switched off under
 *    prefers-reduced-motion at the foot of this file.
 */

/* tabular figures wherever a number is rendered */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* inline icon baseline (24x24 viewBox, sized by em) */
.mon-ic { width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -0.15em; }

/* ---------------------------------------------------------------- shell */
.mon-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

.mon-modes {
  display: flex;
  gap: 0.25rem;
  background: var(--grey-100);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  margin: 1rem 0 1.25rem;
}
.mon-mode-btn {
  flex: 1 1 0;
  border: 0;
  background: transparent;
  color: var(--grey-600);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-base);
}
.mon-mode-btn.is-active {
  background: var(--white);
  color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}

.mon-body { min-height: 50vh; }
.mon-muted { color: var(--grey-500); font-size: 0.9rem; line-height: 1.5; }

/* ---------------------------------------------------- add row + nav */
.mon-add-row { margin-bottom: 1rem; }
/* SOLID add button (no dashed border, no gradient) -- gradient is gauge-only. */
.mon-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--teal-200);
  background: var(--teal-50);
  color: var(--teal-800);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-base);
}
.mon-add-btn:hover { background: var(--teal-100); border-color: var(--teal-300); }
.mon-add-btn:active { transform: scale(0.985); }
.mon-cap-cta {
  background: var(--coral-50);
  border: 1px solid var(--coral-200);
  color: var(--coral-700);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-align: center;
}
.mon-directory-note { margin: 0.5rem 0 0; color: var(--grey-500); font-size: 0.8rem; line-height: 1.5; }

.mon-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.mon-nav-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--grey-200);
  background: var(--white);
  color: var(--teal-700);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-base);
}
.mon-nav-btn .mon-ic { width: 1.15rem; height: 1.15rem; }
.mon-nav-btn:disabled { opacity: 0.35; cursor: default; }
.mon-nav-btn:not(:disabled):hover { background: var(--teal-50); }
.mon-nav-btn:not(:disabled):active { transform: scale(0.96); }
.mon-nav-counter { color: var(--grey-600); font-size: 0.9rem; }
.mon-nav-counter strong { color: var(--grey-900); }

/* ----------------------------------------------------------- card */
.mon-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mon-card--own { border-color: var(--teal-300); box-shadow: var(--shadow-teal); }

/* CP-I: aspirational frosted overlay -- blur the BACKDROP, not the content. */
.mon-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  z-index: 2;
}
.mon-locked-copy { color: var(--grey-800); font-weight: 600; margin: 0; }
.mon-locked-cta { margin-top: 0.2rem; }
.mon-premium-badge {
  background: var(--gradient-brand);
  color: var(--white);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.mon-card-body { padding: 1.5rem; }
.mon-card-head { position: relative; margin-bottom: 0.25rem; }
.mon-pin-badge {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}
.mon-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--grey-900);
  margin: 0 0 0.15rem;
}
.mon-card-cat { color: var(--grey-500); font-size: 0.85rem; margin: 0; }
.mon-remove-btn {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--grey-400);
  cursor: pointer;
  border-radius: var(--radius-full);
}
.mon-remove-btn .mon-ic { width: 1.1rem; height: 1.1rem; }
.mon-remove-btn:hover { color: var(--coral-500); background: var(--grey-50); }

/* --------------------------------------------------- score gauge */
.mon-gauge-block { display: flex; flex-direction: column; align-items: center; margin-top: 1rem; }
.mon-gauge { position: relative; width: 8.25rem; height: 8.25rem; margin: 0 auto; }
.mon-gauge-svg { width: 100%; height: 100%; display: block; }
.mon-gauge-track { fill: none; stroke: var(--grey-100); stroke-width: 11; }
/* The ONE gradient in the view. */
.mon-grad-a { stop-color: var(--teal-500); }
.mon-grad-b { stop-color: var(--teal-700); }
.mon-gauge-arc {
  fill: none;
  stroke: url(#monGaugeGrad);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: var(--mon-circ);
  stroke-dashoffset: var(--mon-arc-offset);
  animation: mon-arc 1s ease-out;
}
.mon-gauge-ctr {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mon-gauge-num { font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--grey-900); }
.mon-gauge-max { font-size: 0.7rem; color: var(--grey-400); margin-top: 0.15rem; }
.mon-gauge-meta { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; margin-top: 0.5rem; text-align: center; }
.mon-score-band { font-weight: 600; font-size: 0.9rem; }
.mon-score-band--excellent { color: var(--success); }
.mon-score-band--good { color: var(--teal-600); }
.mon-score-band--needs-work { color: var(--warning); }
.mon-score-band--poor { color: var(--coral-600); }
.mon-score-scope { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); }
.mon-asof { font-size: 0.75rem; color: var(--grey-500); }

/* pending / connect states (gauge area) */
.mon-score-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  color: var(--grey-600);
}
.mon-pending-copy { margin: 0; font-size: 0.9rem; color: var(--grey-600); line-height: 1.5; }
.mon-connect-copy { font-weight: 600; color: var(--grey-700); margin: 0; }
.mon-pending-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  border: 3px solid var(--grey-200);
  border-top-color: var(--teal-500);
  animation: mon-spin 0.8s linear infinite;
}
@keyframes mon-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------- stat tiles */
.mon-stats { display: flex; border-top: 1px solid var(--grey-100); }
.mon-stat { flex: 1 1 0; text-align: center; padding: 0.85rem 0.4rem; }
.mon-stat + .mon-stat { border-left: 1px solid var(--grey-100); }
.mon-stat-v { display: block; font-size: 1.15rem; font-weight: 700; color: var(--grey-900); }
.mon-stat-v .mon-ic-star { color: var(--star); width: 0.85rem; height: 0.85rem; }
.mon-stat-l { display: block; margin-top: 0.15rem; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); }

/* --------------------------------------------------- photo strip */
.mon-strip { display: flex; gap: 0.45rem; padding: 0.85rem 1.5rem; overflow-x: auto; border-top: 1px solid var(--grey-100); -webkit-overflow-scrolling: touch; }
.mon-ph {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background-color: var(--grey-100);
  background-size: cover;
  background-position: center;
}
.mon-ph--more { display: flex; align-items: center; justify-content: center; background-color: var(--teal-600); color: var(--white); font-size: 0.8rem; font-weight: 700; }

/* --------------------------------------------------- section bars */
.mon-sections { padding: 1.1rem 1.5rem; border-top: 1px solid var(--grey-100); }
.mon-block-label { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); margin: 0 0 0.75rem; }
.mon-sec { display: grid; grid-template-columns: 5rem 1fr 2.4rem; align-items: center; gap: 0.6rem; font-size: 0.8rem; margin-bottom: 0.6rem; }
.mon-sec:last-child { margin-bottom: 0; }
.mon-sec-title { color: var(--grey-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-sec-bar { height: 0.4rem; background: var(--grey-100); border-radius: var(--radius-full); overflow: hidden; }
/* SOLID teal fill -- the gradient is reserved for the gauge. */
.mon-sec-fill { display: block; height: 100%; width: var(--mon-w); background: var(--teal-500); border-radius: var(--radius-full); animation: mon-secfill 0.7s ease-out; }
.mon-sec-pct { text-align: right; color: var(--grey-600); }
.mon-na-note { display: flex; align-items: flex-start; gap: 0.45rem; margin-top: 0.85rem; padding: 0.6rem 0.7rem; background: var(--grey-50); border-radius: var(--radius-lg); font-size: 0.78rem; color: var(--grey-500); line-height: 1.45; }
.mon-na-note .mon-ic-na { width: 0.95rem; height: 0.95rem; margin-top: 0.1rem; color: var(--grey-400); }
.mon-link-inline { border: 0; background: transparent; padding: 0; font: inherit; color: var(--teal-700); font-weight: 600; cursor: pointer; }
.mon-link-inline:hover { color: var(--teal-800); }

/* ------------------------------------------------- own reviews (CP-B) */
.mon-reviews { padding: 1.1rem 1.5rem; border-top: 1px solid var(--grey-100); }
.mon-reviews-head { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); margin: 0 0 0.65rem; }
.mon-reviews-empty { color: var(--grey-500); font-size: 0.85rem; margin: 0; }
.mon-reviews-skel { display: flex; flex-direction: column; gap: 0.5rem; }
.mon-reviews-skel span { display: block; height: 2.5rem; background: var(--grey-100); border-radius: var(--radius-md); animation: mon-shimmer 1.2s infinite; }
.mon-rv { display: flex; gap: 0.6rem; padding: 0.6rem 0; }
.mon-rv + .mon-rv { border-top: 1px solid var(--grey-100); }
.mon-rv-ava { flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: var(--radius-full); background: var(--teal-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
.mon-rv-body { min-width: 0; flex: 1 1 auto; }
.mon-rv-top { display: flex; align-items: center; gap: 0.5rem; }
.mon-rv-name { font-size: 0.8rem; font-weight: 600; color: var(--grey-800); }
.mon-rv-date { margin-left: auto; font-size: 0.7rem; color: var(--grey-500); white-space: nowrap; }
.mon-rv-stars { font-size: 0.7rem; letter-spacing: 0.5px; margin: 0.15rem 0; }
.mon-rv-star { color: var(--grey-300); }
.mon-rv-star.is-on { color: var(--star); }
.mon-rv-comment { font-size: 0.8rem; color: var(--grey-700); line-height: 1.45; margin: 0.1rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mon-rv-reply { margin-top: 0.4rem; padding: 0.4rem 0.6rem; border-left: 2px solid var(--teal-300); background: var(--teal-50); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.mon-rv-reply-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-700); }
.mon-rv-reply-text { font-size: 0.78rem; color: var(--grey-700); line-height: 1.4; margin: 0.15rem 0 0; }
.mon-reviews-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--teal-700); text-decoration: none; cursor: pointer; }
.mon-reviews-link .mon-ic { width: 0.95rem; height: 0.95rem; }
.mon-reviews-link:hover { color: var(--teal-800); }

/* ----------------------------------------------------- info grid */
.mon-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; padding: 1.1rem 1.5rem; border-top: 1px solid var(--grey-100); }
.mon-info-cell { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.mon-info-label { display: flex; align-items: center; gap: 0.3rem; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); }
.mon-info-label .mon-ic-sm { width: 0.8rem; height: 0.8rem; color: var(--grey-400); }
.mon-info-value { font-size: 0.85rem; color: var(--grey-800); word-break: break-word; }
.mon-info-value.is-link { color: var(--teal-700); }

/* ----------------------------------------------- skeleton + error */
.mon-card--skel { padding: 1.5rem; }
.mon-card--skel > * { background: var(--grey-100); border-radius: var(--radius-md); }
.mon-skel-line { height: 1rem; margin-bottom: 0.6rem; animation: mon-shimmer 1.2s infinite; }
.mon-skel-line--lg { width: 60%; height: 1.6rem; }
.mon-skel-line--sm { width: 35%; }
.mon-skel-score { height: 8rem; width: 8rem; border-radius: var(--radius-full); margin: 1rem auto; animation: mon-shimmer 1.2s infinite; }
.mon-skel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.mon-skel-grid span { display: block; height: 2.5rem; background: var(--grey-100); border-radius: var(--radius-md); animation: mon-shimmer 1.2s infinite; }
@keyframes mon-shimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.mon-error { text-align: center; padding: 2.5rem 1.5rem; color: var(--grey-600); }
.mon-error-title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--grey-900); margin: 0 0 0.4rem; }
.mon-error .mon-pending-spinner { margin: 0.75rem auto; }
.mon-error .mon-btn-secondary { margin-top: 0.75rem; }

/* ------------------------------------------------- compare matrix */
.mon-compare { padding-top: 0.25rem; }
.mon-compare-label { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); margin: 0 0 0.75rem; }
/* scroll-edge shadow cue */
.mon-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(to right, var(--white) 30%, rgba(255,255,255,0)) left / 2.5rem 100% no-repeat,
    linear-gradient(to left, var(--white) 30%, rgba(255,255,255,0)) right / 2.5rem 100% no-repeat,
    linear-gradient(to right, rgba(20,40,34,0.08), rgba(255,255,255,0)) left / 0.6rem 100% no-repeat,
    linear-gradient(to left, rgba(20,40,34,0.08), rgba(255,255,255,0)) right / 0.6rem 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.mon-compare-table { border-collapse: collapse; width: 100%; min-width: 28rem; font-size: 0.85rem; background: transparent; }
.mon-compare-table th, .mon-compare-table td { padding: 0.6rem 0.7rem; text-align: center; border-bottom: 1px solid var(--grey-100); }
.mon-compare-table tr:last-child th, .mon-compare-table tr:last-child td { border-bottom: 0; }
.mon-ct-corner { background: var(--white); }
.mon-ct-biz { vertical-align: bottom; background: var(--grey-50); min-width: 6rem; }
.mon-ct-biz.is-own { background: var(--teal-50); }
.mon-ct-biz.is-locked { opacity: 0.6; }
.mon-ct-ownflag { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-700); }
.mon-ct-name { display: block; font-weight: 700; color: var(--grey-900); margin: 0.15rem 0; }
.mon-ct-score { display: block; font-size: 1.1rem; font-weight: 800; color: var(--teal-700); font-variant-numeric: tabular-nums; }
.mon-ct-max { font-size: 0.7rem; font-weight: 500; color: var(--grey-400); }
.mon-ct-lock .mon-ic, .mon-ct-lock { width: 1rem; height: 1rem; color: var(--grey-400); }
.mon-ct-label { display: block; font-size: 0.7rem; color: var(--grey-500); }
.mon-verified-chip { display: inline-block; margin-top: 0.3rem; background: var(--success); color: var(--white); font-size: 0.62rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: var(--radius-full); }
.mon-ct-row { text-align: left; font-weight: 600; color: var(--grey-700); background: var(--white); position: sticky; left: 0; white-space: nowrap; }
.mon-ct-cell { position: relative; font-variant-numeric: tabular-nums; }
.mon-ct-cell.is-own { background: var(--teal-50); font-weight: 700; }
.mon-ct-cell.is-pending { color: var(--grey-500); }
.mon-ct-cell.is-pending .mon-ic-sm { width: 0.9rem; height: 0.9rem; }
/* in-cell proportional bar (sits behind the value) */
.mon-ct-bar { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.3rem; height: 0.2rem; background: var(--grey-100); border-radius: var(--radius-full); overflow: hidden; }
.mon-ct-cell.is-own .mon-ct-bar { background: rgba(15, 110, 86, 0.18); }
.mon-ct-barfill { display: block; height: 100%; background: var(--teal-400); border-radius: var(--radius-full); animation: mon-ctbar 0.6s ease-out; }
.mon-ct-cell.is-own .mon-ct-barfill { background: var(--teal-600); }
.mon-ct-val { position: relative; display: inline-block; color: var(--grey-800); }
.mon-ct-cell.is-own .mon-ct-val { color: var(--teal-800); }
.mon-delta { display: inline-block; margin-left: 0.25rem; font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mon-delta.is-ahead { color: var(--success); }
.mon-delta.is-behind { color: var(--coral-500); }
.mon-delta.is-level { color: var(--grey-400); }
.mon-ct-narow .mon-ct-na { color: var(--grey-500); font-size: 0.78rem; text-align: left; }
.mon-ct-narow .mon-ic-na { width: 0.85rem; height: 0.85rem; margin-right: 0.3rem; color: var(--grey-400); vertical-align: -0.1em; }
.mon-compare-asof { margin: 0.6rem 0 0; font-size: 0.75rem; color: var(--grey-500); line-height: 1.5; }
.mon-compare-empty { text-align: center; padding: 2.5rem 1.5rem; color: var(--grey-600); }
.mon-empty-title { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--grey-900); margin: 0 0 0.4rem; }

/* ------------------------------------------------- radar / spider */
.mon-radar { display: flex; flex-direction: column; align-items: center; margin-bottom: 1.25rem; }
.mon-radar-svg { width: 100%; max-width: 320px; height: auto; overflow: visible; }
.mon-radar-ring { fill: none; stroke: var(--grey-200); stroke-width: 1; }
.mon-radar-spoke { stroke: var(--grey-200); stroke-width: 1; }
.mon-radar-axis { fill: var(--grey-500); font-size: 9px; font-family: var(--font-body); }
.mon-radar-poly { fill: none; stroke-width: 2; stroke-linejoin: round; transform-origin: 50% 50%; animation: mon-radardraw 0.6s ease-out both; }
.mon-radar-poly.is-own { fill: var(--teal-400); fill-opacity: 0.20; stroke: var(--teal-600); }
.mon-radar-poly.c1 { stroke: var(--coral-500); stroke-dasharray: 6 4; }
.mon-radar-poly.c2 { stroke: var(--warning); stroke-dasharray: 2 3; }
.mon-radar-poly.c3 { stroke: var(--grey-600); stroke-dasharray: 8 3; }
.mon-radar-poly.c4 { stroke: var(--teal-800); stroke-dasharray: 1 4; }
.mon-radar-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; margin-top: 0.6rem; font-size: 0.78rem; color: var(--grey-600); }
.mon-radar-key { display: inline-flex; align-items: center; gap: 0.35rem; }
.mon-radar-swatch { width: 16px; height: 0; border-top: 2px solid var(--grey-400); display: inline-block; }
.mon-radar-key.is-own .mon-radar-swatch { border-top: none; width: 12px; height: 12px; background: var(--teal-400); border: 1px solid var(--teal-600); border-radius: 2px; }
.mon-radar-key.c1 .mon-radar-swatch { border-top: 2px dashed var(--coral-500); }
.mon-radar-key.c2 .mon-radar-swatch { border-top: 2px dotted var(--warning); }
.mon-radar-key.c3 .mon-radar-swatch { border-top: 2px dashed var(--grey-600); }
.mon-radar-key.c4 .mon-radar-swatch { border-top: 2px dotted var(--teal-800); }

/* ------------------------------------------------- biggest-gap callout */
.mon-gap-callout { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0 0 1rem; padding: 0.65rem 0.85rem; border-radius: var(--radius-lg); background: var(--coral-50); color: var(--coral-700); font-size: 0.85rem; line-height: 1.4; }
.mon-gap-callout .mon-ic-gap { width: 1rem; height: 1rem; margin-top: 0.12rem; flex: 0 0 auto; }
.mon-gap-callout strong { font-weight: 700; }
.mon-gap-callout--lead { background: var(--teal-50); color: var(--teal-700); }

/* ------------------------------------------------------- sheets */
.mon-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}
.mon-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-xl);
  padding: 1.25rem;
  animation: mon-sheet-up 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.mon-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mon-sheet-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin: 0; color: var(--grey-900); }
.mon-sheet-close { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--grey-400); cursor: pointer; border-radius: var(--radius-full); }
.mon-sheet-close .mon-ic { width: 1.3rem; height: 1.3rem; }
.mon-sheet-close:hover { color: var(--grey-700); background: var(--grey-50); }
.mon-add-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: var(--font-body);
}
.mon-add-input:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px var(--teal-100); }
.mon-add-hint { font-size: 0.78rem; color: var(--grey-500); margin: 0.4rem 0 0.75rem; }
.mon-add-results { display: flex; flex-direction: column; gap: 0.4rem; }
.mon-add-loading, .mon-add-error { padding: 0.75rem; text-align: center; color: var(--grey-500); font-size: 0.9rem; }
.mon-add-error { color: var(--coral-600); }
.mon-add-cand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition-base);
}
.mon-add-cand:hover { border-color: var(--teal-300); background: var(--teal-50); }
.mon-add-cand:active { transform: scale(0.99); }
.mon-cand-name { font-weight: 700; color: var(--grey-900); }
.mon-cand-addr { font-size: 0.78rem; color: var(--grey-500); }
.mon-cap-copy, .mon-remove-copy { color: var(--grey-700); margin: 0 0 1rem; }
.mon-sheet-actions { display: flex; gap: 0.6rem; }
.mon-sheet-actions > * { flex: 1 1 0; }

/* ------------------------------------------------------ buttons */
/* SOLID primary (teal-700) -- gradient reserved for the gauge. */
.mon-btn-primary {
  border: 0;
  background: var(--teal-700);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}
.mon-btn-primary:hover { background: var(--teal-800); }
.mon-btn-primary:active { transform: scale(0.98); }
.mon-btn-secondary {
  border: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--grey-700);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-base);
}
.mon-btn-secondary:active { transform: scale(0.98); }
.mon-btn-danger {
  border: 0;
  background: var(--coral-500);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
}
.mon-btn-danger:disabled { opacity: 0.6; cursor: default; }

/* ------------------------------------------------------ motion */
@keyframes mon-arc { from { stroke-dashoffset: var(--mon-circ); } to { stroke-dashoffset: var(--mon-arc-offset); } }
@keyframes mon-secfill { from { width: 0; } to { width: var(--mon-w); } }
@keyframes mon-ctbar { from { width: 0; } }
@keyframes mon-radardraw { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes mon-sheet-up { from { transform: translateY(12px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }

/* CP-I: a single, total prefers-reduced-motion off-switch. */
@media (prefers-reduced-motion: reduce) {
  .mon-gauge-arc,
  .mon-sec-fill,
  .mon-ct-barfill,
  .mon-radar-poly,
  .mon-pending-spinner,
  .mon-sheet,
  .mon-skel-line,
  .mon-skel-score,
  .mon-skel-grid span,
  .mon-reviews-skel span { animation: none !important; }
  .mon-gauge-arc { stroke-dashoffset: var(--mon-arc-offset); }
  .mon-sec-fill { width: var(--mon-w); }
  .mon-mode-btn,
  .mon-nav-btn,
  .mon-add-btn,
  .mon-add-cand,
  .mon-btn-primary,
  .mon-btn-secondary { transition: none !important; }
  .mon-add-btn:active,
  .mon-nav-btn:not(:disabled):active,
  .mon-btn-primary:active,
  .mon-btn-secondary:active,
  .mon-add-cand:active { transform: none; }
}
