/* ============================================================
   topdevphone — Snitch (business reviews) styles
   Catalog rows, rating hero, star histogram, review cards and the
   star picker. Every color comes from the shared CSS vars (plus the
   per-business gradients) so dark AND light themes both read well.
   ============================================================ */

/* ---------- stars ---------- */
.sn-stars { display: inline-flex; align-items: center; gap: 2px; line-height: 1; }
.sn-stars .ic { width: 15px; height: 15px; color: var(--text-tertiary); }
.sn-stars .sn-st.on { color: var(--accent-yellow); }
.sn-stars.sm .ic { width: 12px; height: 12px; }

/* ---------- catalog ---------- */
.sn-tagline {
  flex: 0 0 auto;
  padding: 0 18px 12px;
  font-size: 12.5px; line-height: 1.4;
  color: var(--text-secondary);
}

.sn-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, #ff453a, #8d1109);
  border-radius: var(--radius-card-lg);
  padding: 15px 16px; margin-bottom: 18px; color: #fff;
}
.sn-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 55%);
  pointer-events: none;
}
.sn-hero-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; opacity: 0.85;
}
.sn-hero-name { font-size: 19px; font-weight: 800; margin: 3px 0 7px; }
.sn-hero-row { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; }
.sn-hero-row .sn-stars .ic { color: rgba(255, 255, 255, 0.45); }
.sn-hero-row .sn-stars .sn-st.on { color: #fff; }

.sn-list { display: flex; flex-direction: column; gap: 9px; }
.sn-biz {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 11px 13px; cursor: pointer;
  transition: transform 0.12s, filter 0.15s;
}
.sn-biz:active { transform: scale(0.985); filter: brightness(0.92); }
.sn-bicon {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}
.sn-bmain { flex: 1; min-width: 0; }
.sn-bname {
  font-size: 14.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sn-brow { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.sn-bcount { font-size: 11.5px; color: var(--text-secondary); }
.sn-bavg { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; flex: 0 0 auto; }
.sn-bavg.muted { color: var(--text-tertiary); font-size: 16px; }

/* ---------- business page ---------- */
.sn-head {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card-lg);
  padding: 18px 16px; margin-bottom: 14px;
  color: #fff; display: flex; align-items: center; gap: 13px;
}
.sn-head::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.sn-hicon { font-size: 30px; display: flex; }
.sn-hname { font-size: 20px; font-weight: 800; line-height: 1.15; }

.sn-score {
  display: flex; gap: 16px; align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 14px; margin-bottom: 14px;
}
.sn-score-left { flex: 0 0 auto; text-align: center; }
.sn-big { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.sn-score-left .sn-stars { margin-top: 5px; }
.sn-score-sub { font-size: 11px; color: var(--text-secondary); margin-top: 5px; }
.sn-score-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.sn-hrow { display: flex; align-items: center; gap: 6px; }
.sn-hnum { font-size: 11px; color: var(--text-secondary); width: 8px; text-align: right; }
.sn-hstar { width: 11px; height: 11px; color: var(--text-tertiary); }
.sn-hbar {
  flex: 1; height: 6px; border-radius: 3px;
  background: var(--bg-tertiary); overflow: hidden;
}
.sn-hbar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-orange));
  transition: width 0.35s cubic-bezier(0.32, 0.72, 0.35, 1);
}
.sn-hcount { font-size: 10.5px; color: var(--text-tertiary); min-width: 16px; text-align: right; }

.sn-write { margin-bottom: 18px; background: linear-gradient(140deg, #ff453a, #c21807); }

/* ---------- review cards ---------- */
.sn-revs { display: flex; flex-direction: column; gap: 10px; }
.sn-rev {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 12px 13px;
}
.sn-rev.mine { border: 1px solid color-mix(in srgb, var(--accent-red) 40%, transparent); }
.sn-rtop { display: flex; align-items: center; gap: 10px; }
.sn-rav { width: 34px; height: 34px; font-size: 12px; }
.sn-rmain { flex: 1; min-width: 0; }
.sn-rname {
  font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sn-rmeta {
  display: flex; align-items: center; gap: 7px; margin-top: 2px;
  font-size: 11px; color: var(--text-tertiary);
}
.sn-ricon {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary); color: var(--text-secondary); font-size: 13px;
}
.sn-ricon:active { filter: brightness(0.8); }
.sn-rbody {
  margin-top: 9px; font-size: 13.5px; line-height: 1.45;
  color: var(--text-primary);
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- write a review ---------- */
.sn-wbiz {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-secondary); border-radius: var(--radius-card);
  padding: 12px 13px; margin-bottom: 6px;
}
.sn-picker { display: flex; justify-content: center; gap: 8px; padding: 6px 0 2px; }
.sn-pstar {
  font-size: 34px; color: var(--text-tertiary);
  transition: transform 0.12s, color 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.sn-pstar .ic { width: 38px; height: 38px; }
.sn-pstar:active { transform: scale(0.88); }
.sn-pstar.on { color: var(--accent-yellow); }
.sn-picker-label {
  text-align: center; font-size: 12.5px; font-weight: 700;
  color: var(--text-secondary); margin: 4px 0 6px;
  letter-spacing: 0.3px;
}
.sn-textarea { min-height: 130px; line-height: 1.45; }
.sn-count {
  text-align: right; font-size: 11px; color: var(--text-tertiary);
  margin: 5px 2px 0; font-variant-numeric: tabular-nums;
}
.sn-submit { margin-top: 18px; background: linear-gradient(140deg, #ff453a, #c21807); }
.sn-note {
  text-align: center; font-size: 11.5px; color: var(--text-tertiary);
  margin-top: 10px; line-height: 1.4;
}
.sn-modal-note {
  text-align: center; color: var(--text-secondary);
  font-size: 13px; margin-bottom: 14px;
}

/* ---------- home-screen widget ---------- */
.sn-w { display: flex; flex-direction: column; gap: 7px; }
.sn-w-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sn-w-name {
  flex: 1; min-width: 0; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sn-w-row b { font-size: 12.5px; font-weight: 800; }
.sn-w-empty { font-size: 12px; opacity: 0.65; }
