:root {
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --bg: #eef1f4;
  --card: #ffffff;
  --ink: #121417;
  --muted: #5c6570;
  --line: #e3e7ec;
  --green: #0e7a43;
  --green-dark: #0b6337;
  --below-bg: #f7f1ea;
  --below-ink: #6d4c3d;
  --below-line: #e6d9cf;
  --gold: #a56b09;
  --wine: #8d2c2a;
  --shadow: 0 1px 2px rgba(18, 20, 23, 0.04), 0 16px 40px rgba(18, 20, 23, 0.06);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 40;
  text-decoration: none;
  font-weight: 800;
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 32px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { text-decoration: none; color: inherit; min-width: 0; }
.brand small {
  display: block;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 800;
  color: var(--green);
}
.brand strong {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-links::-webkit-scrollbar { display: none; }
.header-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.header-links a:hover { color: var(--green); }
.signed-in {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page { padding: 28px 0 72px; }

.page-intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}
.page-intro h1,
.sheet-head h1,
.gate h1,
.panel h2,
.section-title h2,
.store-head h2 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.page-intro h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-intro h1,
.sheet-head h1,
.person-card h3,
.hero h1,
.store-head h2 { overflow-wrap: anywhere; }
.eyebrow,
.kicker,
.hero-role {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.lede, .meta, .help, .scrape, .login-name {
  color: var(--muted);
}
.lede { margin: 10px 0 0; max-width: 46rem; font-size: 1.05rem; }
.meta { margin: 6px 0 0; }
.scrape { margin: 10px 0 0; font-size: 0.9rem; }
.login-name { margin: 0 0 12px; font-size: 0.92rem; }
.stat {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  min-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.stat strong { font-size: 1.6rem; line-height: 1; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.82rem; font-weight: 700; }

.tools {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top));
  z-index: 9;
  margin: 18px 0 6px;
  padding: 12px 0 14px;
  background: rgba(238, 241, 244, 0.92);
  backdrop-filter: blur(14px);
}
.search {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
}
.chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.store-block { margin-top: 8px; }
.store-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
}
.store-head h2 { font-size: 1.7rem; }
.store-head span { color: var(--muted); font-weight: 800; }
.grid { display: grid; gap: 14px; }
.grid > .empty { grid-column: 1 / -1; }

.person-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(18, 20, 23, 0.06);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.person-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.person-id { min-width: 0; }
.person-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.badge-row { margin: 6px 0 0; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #e7f5ee;
  color: var(--green);
}
.badge.manager { background: var(--below-bg); color: var(--below-ink); }
.person-store { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

.avatar, .avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #e7ebf0;
}
.avatar.is-logo { object-fit: contain; background: #fff; padding: 11%; box-sizing: border-box; }
.avatar-lg, .avatar-lg.avatar-fallback { width: 84px; height: 84px; }
.avatar-xl, .avatar-xl.avatar-fallback { width: 112px; height: 112px; font-size: 2rem; }
.avatar-fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.45rem;
  color: #3d4652;
}

.card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  min-height: 48px;
  padding: 8px 12px;
  font-weight: 800;
  border: 1px solid transparent;
  width: 100%;
  cursor: pointer;
}
.btn-five, .btn-below {
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
  padding: 8px 6px;
}
.btn-five strong, .btn-below strong { font-size: 1.2rem; }
.btn-five span, .btn-below span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-five { background: var(--green); color: #fff; }
.btn-below { background: var(--below-bg); color: var(--below-ink); border-color: var(--below-line); }
.btn-fb {
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
  background: #f4efe6;
  color: var(--wine);
  border-color: #e6dccf;
}
.btn-fb strong { font-size: 1.2rem; }
.btn-fb span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-count { cursor: default; }
.btn-below em {
  text-transform: none;
  font-style: normal;
  letter-spacing: 0;
  font-weight: 700;
}
.btn-bio { background: var(--ink); color: #fff; }
.btn-public { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-embed { background: #fff; color: var(--wine); border-color: #e4c6c5; }
.switch .btn-embed { grid-column: 1 / -1; }
.btn.small {
  width: auto;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.btn.small.warn { background: #fff; color: #9f1239; border-color: #f0c7d1; }
.btn.small.secondary { background: #fff; color: var(--ink); border-color: var(--line); }

.solo-card { max-width: 440px; margin-top: 18px; }
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 4px;
}
.back:hover { color: var(--green); }
.sheet-head { display: flex; gap: 16px; align-items: center; margin: 6px 0 8px; }
.sheet-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.kicker.low { color: var(--below-ink); }

.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 16px;
}
.switch-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 800;
  background: #fff;
  text-align: center;
  padding: 8px;
}
.switch-link[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.switch-link.five[aria-current="page"] { background: var(--green); border-color: var(--green); }
.switch-link.below[aria-current="page"] { background: var(--below-ink); border-color: var(--below-ink); color: #fff; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 26px 0 12px;
}
.section-title h2 { font-size: 1.55rem; }
.section-title span { color: var(--muted); font-weight: 800; }
.help { margin: 0 0 4px; font-size: 0.95rem; }

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 12px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}
.review.is-hidden {
  background: #e7eaee;
  border: 1px dashed #c5ccd6;
  box-shadow: none;
}
.review.is-hidden .review-top .stars,
.review.is-hidden .review-text,
.review.is-hidden .review-photos,
.review.is-hidden .review-foot {
  opacity: 0.48;
}
.hide-form { margin: 12px 0 2px; }
.hide-form .btn { width: 100%; }
.review-top, .quote-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.flag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9f1239;
}
.stars { letter-spacing: 2px; font-size: 1rem; line-height: 1; }
.stars .on { color: var(--gold); }
.stars .off { color: #e4d7c6; }
.stars-lg { font-size: 1.15rem; }
.review-text { margin: 10px 0 12px; }
.muted { color: var(--muted); }
.review-photos, .quote-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 12px;
}
.review-photos img, .quote-photos img {
  width: 132px;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
  background: #efe8de;
}
.review-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.review-foot .who { color: var(--ink); font-weight: 800; }
.review-foot a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pill {
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 10px;
}
.review-foot form { margin: 0; }

.photo-form {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 8px 0 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.photo-fields { flex: 1; min-width: 0; }
.photo-form label,
.bio-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}
.photo-form input[type="file"] {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  font-size: 16px;
}
.photo-form .help { margin: 0 0 12px; }
.photo-form .btn { width: auto; min-width: 160px; }
.bio-form textarea {
  width: 100%;
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 16px;
  font-size: 16px;
  line-height: 1.55;
  background: #fff;
  resize: vertical;
}
.title-form { margin: 0 0 26px; }
.bio-form .text-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.3;
  background: #fff;
  font-family: inherit;
  color: inherit;
}
.form-actions { margin-top: 14px; }
.form-actions .btn { width: auto; min-width: 160px; }

.banner {
  background: #e5f6ec;
  color: var(--green-dark);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  margin-bottom: 14px;
}
.empty, .empty-panel {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.gate {
  max-width: 480px;
  margin: 8vh auto;
  background: var(--card);
  border-radius: 28px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.gate h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.gate p { color: var(--muted); margin: 10px 0 0; font-size: 1.05rem; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 22px 0 calc(28px + env(safe-area-inset-bottom));
}

body.is-public {
  --bg: #f4efe6;
  --card: #fffaf4;
  --ink: #1c1612;
  --muted: #5e564c;
  --line: #e6dccf;
  --shadow: 0 1px 2px rgba(28, 22, 18, 0.04), 0 18px 50px rgba(28, 22, 18, 0.06);
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(243, 214, 164, 0.55), transparent 62%),
    var(--bg);
  font-size: 17px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body.is-public :focus-visible { outline-color: var(--wine); }
.pub-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(141, 44, 42, 0.14);
  padding-top: env(safe-area-inset-top);
}
.pub-shell { width: min(680px, calc(100% - 32px)); margin: 0 auto; }
.pub-brand {
  min-height: 64px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pub-brand strong {
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.pub-brand span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
}
body.is-public .page { padding-top: 0; padding-bottom: 12px; }
.hero-cover {
  position: relative;
  height: clamp(228px, 58vw, 320px);
  overflow: hidden;
  background: #1a242c;
}
.hero-cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}
.hero-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(244, 239, 230, 0), var(--bg) 86%);
  pointer-events: none;
}
.hero { padding: 28px 0 6px; text-align: center; }
.hero.has-cover { padding-top: 0; }
.hero-portrait {
  width: 148px;
  height: 148px;
  margin: 4px auto 16px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 210deg, #f0d7a2, #8d2c2a, #1c1612, #f0d7a2);
  box-shadow: 0 16px 40px rgba(28, 22, 18, 0.12);
}
.hero.has-cover .hero-portrait {
  position: relative;
  z-index: 2;
  margin-top: -104px;
  box-shadow: 0 18px 36px rgba(18, 22, 26, 0.28);
}
.hero-portrait img,
.hero-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #efe4d4;
  border: 3px solid #fffaf4;
}
.hero-fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 3rem;
  color: var(--wine);
}
.hero-role { color: var(--wine); }
.hero h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.5rem, 10vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 6px 0;
}
.hero-store, .score-empty { margin: 8px 0 0; color: var(--muted); font-size: 1.05rem; }
.score {
  margin: 22px auto 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  text-align: left;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  max-width: 100%;
}
.score-num {
  font-family: var(--display);
  font-size: 2.7rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.score p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.share-row { margin-top: 18px; position: relative; }
.text-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.8);
  font-weight: 800;
  cursor: pointer;
}
.link-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  padding: 0;
}
.link-fallback.is-shown {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  margin: 10px auto 0;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 16px;
  background: #fff;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  margin-top: 22px;
}
.panel h2 { font-size: 1.85rem; }
.bio-copy p { margin: 0 0 14px; font-size: 1.06rem; line-height: 1.65; }
.bio-copy p:last-child { margin-bottom: 0; }
body.is-public .section-title { margin-top: 28px; }
body.is-public .section-title h2 { font-size: 1.9rem; }
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 16px 8px;
  margin: 0 0 12px;
  box-shadow: 0 10px 30px rgba(28, 22, 18, 0.04);
}
.quote-text { margin: 12px 0; font-size: 1.05rem; line-height: 1.65; }
.quote time, .quote .when { color: var(--muted); font-size: 0.85rem; text-align: right; }
.quote-by {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  padding-top: 4px;
}
.quote-by strong { display: block; }
.quote-by span { color: var(--muted); font-size: 0.88rem; }
.disc {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f6ead8;
  color: var(--wine);
  font-weight: 800;
}
.google-link {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--wine);
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pub-foot {
  margin-top: 12px;
  padding: 8px 0 calc(22px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.empty-panel p { margin: 0; }

@media (min-width: 560px) {
  .quote-by { grid-template-columns: auto 1fr auto; }
  .google-link { grid-column: auto; }
}
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .hero-cover { height: 360px; }
  .hero-portrait { width: 188px; height: 188px; }
  .hero.has-cover .hero-portrait { margin-top: -128px; }
  .page { padding-top: 36px; }
  body.is-public .page { padding-top: 0; }
}
@media (min-width: 900px) {
  .chips { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-intro { flex-direction: column; align-items: flex-start; }
  .sheet-head { align-items: flex-start; }
  .photo-form { flex-direction: column; align-items: stretch; }
  .photo-form .avatar, .photo-form .avatar-fallback { margin: 0 auto; }
  .photo-form .btn { width: 100%; }
  .form-actions .btn, .gate .btn { width: 100%; }
  .review-foot form { width: 100%; }
  .review-foot .btn { width: 100%; }
}
@media (hover: hover) {
  .btn-five:hover { background: var(--green-dark); }
  .stat-count.btn-five:hover { background: var(--green); }
  .stat-count.btn-below:hover { background: var(--below-bg); color: var(--below-ink); }
  .btn-bio:hover { background: #000; }
  .btn-public:hover, .btn-embed:hover, .text-btn:hover, .chip:hover { background: #f8fafc; }
  .chip.is-on:hover { background: var(--ink); }
  .person-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
  .person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(18, 20, 23, 0.08);
  }
  .switch-link:hover { background: #f8fafc; }
  .switch-link[aria-current="page"]:hover { background: var(--ink); color: #fff; }
  .switch-link.five[aria-current="page"]:hover { background: var(--green); }
  .switch-link.below[aria-current="page"]:hover { background: var(--below-ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .person-card { transition: none; }
}

.btn-add {
  background: #fff;
  color: var(--green);
  border-color: #b7e0c8;
}
.add-row { margin: 4px 0 14px; }
.add-row .btn { width: auto; min-width: 180px; }
.review-marks { display: flex; align-items: center; gap: 8px; }
.stars-dealer .on { color: #e25b12; }
.stars-yelp .on { color: #7a2e8a; }
.source {
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.source-google { color: #a56b09; }
.source-dealer { color: #e25b12; }
.source-yelp { color: #7a2e8a; }
.review-foot a.source-google { color: #a56b09; }
.review-foot a.source-dealer { color: #e25b12; }
.review-foot a.source-yelp { color: #7a2e8a; }
a.source.source-google { color: #a56b09; }
a.source.source-dealer { color: #e25b12; }
a.source.source-yelp { color: #7a2e8a; }
.delete-form { margin-top: 8px; }
.delete-form .btn,
.hide-form .btn { width: 100%; }
.btn.small.danger {
  background: #fff;
  color: #9f1239;
  border-color: #f0c7d1;
}
.form-error {
  background: #fff1f2;
  color: #9f1239;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  margin: 0 0 12px;
}
.add-form label,
.add-form legend {
  display: block;
  font-weight: 800;
  margin: 16px 0 8px;
}
.add-form fieldset { border: 0; margin: 0; padding: 0; }
.add-form input[type="text"],
.add-form input[type="url"],
.add-form input[type="date"],
.add-form select,
.add-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font-size: 16px;
}
.add-form input[type="text"],
.add-form input[type="url"],
.add-form input[type="date"],
.add-form select { min-height: 48px; }
.add-form textarea { min-height: 180px; line-height: 1.5; resize: vertical; }
.source-picks, .star-options { display: grid; gap: 8px; }
.star-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.source-pick,
.star-options label {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  padding: 8px;
}
.source-pick input,
.star-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.source-pick.google:has(input:checked) { background: #a56b09; color: #fff; border-color: #a56b09; }
.source-pick.dealer:has(input:checked) { background: #e25b12; color: #fff; border-color: #e25b12; }
.source-pick.yelp:has(input:checked) { background: #7a2e8a; color: #fff; border-color: #7a2e8a; }
.star-options label:has(input:checked) { background: #a56b09; color: #fff; border-color: #a56b09; }
.add-form.is-dealerrater .star-options label:has(input:checked) { background: #e25b12; border-color: #e25b12; }
.add-form.is-yelp .star-options label:has(input:checked) { background: #7a2e8a; border-color: #7a2e8a; }
.locked-fields { display: grid; gap: 8px; margin-top: 16px; }
.locked-fields div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.locked-fields span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.locked-fields strong { font-size: 1.05rem; }
@media (min-width: 640px) {
  .source-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .add-row .btn { width: 100%; }
}
@media (hover: hover) {
  .btn-add:hover { background: #f3faf6; }
  .source-pick:hover, .star-options label:hover { background: #f8fafc; }
}

.embed-dialog:not([open]) { display: none; }
.embed-dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: min(92vh, 860px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(18, 20, 23, 0.28);
}
.embed-dialog::backdrop { background: rgba(18, 20, 23, 0.56); }
.embed-card { padding: 22px 22px 18px; overflow: auto; max-height: min(92vh, 860px); }
.embed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.embed-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.embed-head .kicker { margin: 0 0 4px; color: var(--wine); }
.embed-x {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.embed-lead { margin: 12px 0 14px; color: var(--muted); }
.embed-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.embed-dialog textarea {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 42vh;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f6f8fa;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}
.embed-actions { display: flex; gap: 8px; margin-top: 12px; }
.embed-actions .btn { flex: 1; width: auto; }
.embed-dialog .btn-bio.is-copied { background: var(--green); }
@media (max-width: 640px) {
  .embed-card { padding: 16px; }
  .embed-actions { flex-direction: column; }
  .embed-actions .btn { width: 100%; }
}
