/* Leyscale Reputation app. Tokens mirror design-export/leyscale.css. */

/* ---- design tokens ---- */
:root {
	--color-violet: #6a4bc4;
	--color-violet-deep: #533ba1;
	--color-blue: #2f6fd8;
	--color-blue-deep: #1f55b0;
	--color-coral: #ff7a4d;
	--color-mint: #0fb39a;
	--color-amber: #c9780f;
	--color-danger: #c0392b;
	--grad-brand: linear-gradient(135deg, var(--color-violet) 0%, var(--color-blue) 100%);
	--grad-brand-deep: linear-gradient(135deg, var(--color-violet-deep) 0%, var(--color-blue-deep) 100%);
	--color-ink: #191830;
	--color-ink-soft: #52516e;
	--color-line: #e4e2f0;
	--color-bg: #f7f6fb;
	--color-surface: #ffffff;
	--color-tint-violet: #f0ecfd;
	--color-tint-blue: #e8f0ff;
	--color-tint-coral: #fff0ea;
	--color-tint-mint: #e6f7f4;
	--font-head: "Sora", sans-serif;
	--font-body: "Public Sans", sans-serif;
	--font-mono: "IBM Plex Mono", monospace;
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 24px;
	--r-pill: 999px;
	--shadow-card: 0 2px 4px rgba(25, 24, 48, 0.04), 0 12px 28px rgba(25, 24, 48, 0.07);
	--page-max: 1180px;
}

/* ---- base / reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* stop iOS Safari auto-inflating text size on rotate */
body.rep {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column; /* flex column + min-height:100vh lets .rep-foot sit at the bottom on short pages */
	background: var(--color-bg);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.62;
	overflow-x: hidden;
}
.rep h1, .rep h2, .rep h3 { font-family: var(--font-head); color: var(--color-ink); letter-spacing: -0.02em; line-height: 1.18; margin: 0; }
.rep h1 { font-size: 34px; }
.rep h2 { font-size: 23px; }
.rep h3 { font-size: 18px; }
.rep p { margin: 0; }
.rep a { color: var(--color-violet); }
.rep a:hover { color: var(--color-violet-deep); }
.rep img { max-width: 100%; }

/* ---- frame ---- */
.rep-stripe { height: 3px; background: var(--grad-brand); }
.rep-top { background: var(--color-surface); box-shadow: 0 1px 0 var(--color-line); }
.rep-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--page-max); margin: 0 auto; padding: 14px 24px; flex-wrap: wrap; }
.rep-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rep-logo { display: block; width: auto; height: 48px; }
.rep-word { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 1px solid var(--color-line); font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.1; color: var(--color-ink); }
.rep-word small { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-violet); }
.rep-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rep-nav a { padding: 8px 12px; border-radius: var(--r-pill); font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--color-ink-soft); text-decoration: none; }
.rep-nav a:hover { background: var(--color-tint-violet); color: var(--color-violet-deep); }
.rep-nav a[aria-current="page"] { background: var(--color-tint-violet); color: var(--color-violet-deep); }
.rep-nav a.rep-nav-out { color: var(--color-ink-soft); font-weight: 400; }
.rep-staff-bar { padding: 8px 24px; background: var(--color-tint-coral); color: #8a3b16; font-family: var(--font-mono); font-size: 12px; text-align: center; }
.rep-main { flex: 1 0 auto; width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 32px 24px 60px; display: flex; flex-direction: column; gap: 24px; }
.rep-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--page-max); width: 100%; margin: 0 auto; padding: 20px 24px; border-top: 1px solid var(--color-line); font-size: 13px; color: var(--color-ink-soft); }

/* ---- type helpers ---- */
.rep-eyebrow { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-violet); }
.rep-fine { font-size: 13px; color: var(--color-ink-soft); }
.rep-h2 { margin-top: 8px !important; } /* !important: wins over a more specific margin-top rule set elsewhere for this heading */
.rep-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rep-head h1 { margin-top: 6px; }

/* ---- buttons & links ---- */
.rep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 26px; border: 0; border-radius: var(--r-pill); background: var(--grad-brand); color: #fff !important; font-family: var(--font-head); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; } /* !important here and below overrides the generic ".rep a" link color rule since these buttons/labels are anchor elements */
.rep-btn:hover { background: var(--grad-brand-deep); }
.rep-btn-ghost { background: transparent; border: 1px solid var(--color-violet); color: var(--color-violet) !important; }
.rep-btn-ghost:hover { background: var(--color-tint-violet); color: var(--color-violet-deep) !important; }
.rep-btn-danger { background: var(--color-danger); }
.rep-btn-danger:hover { background: #962d21; }
.rep-btn-block { width: 100%; }
.rep-link { padding: 0; border: 0; background: none; font: inherit; font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--color-violet); text-decoration: none; cursor: pointer; }
.rep-link:hover { color: var(--color-violet-deep); text-decoration: underline; }
.rep-link-danger { color: var(--color-danger); }
.rep-link-danger:hover { color: #962d21; }
.rep-btn:focus-visible, .rep-link:focus-visible, .rep-nav a:focus-visible, .rep input:focus-visible, .rep select:focus-visible, .rep summary:focus-visible { outline: 3px solid rgba(106, 75, 196, 0.35); outline-offset: 2px; }

/* ---- cards & alerts ---- */
.rep-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 28px; }
.rep-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rep-alert { display: block; padding: 12px 16px; border-radius: var(--r-md); font-size: 15px; }
.rep-alert-ok { background: var(--color-tint-mint); color: #0b6e5f; }
.rep-alert-info { background: var(--color-tint-blue); color: var(--color-blue-deep); }
.rep-alert-err { background: var(--color-tint-coral); color: #8a3b16; }
a.rep-alert-link { text-decoration: none; font-weight: 600; }
a.rep-alert-link:hover { text-decoration: underline; color: #6e2c0e; }
.rep-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill); background: var(--color-tint-blue); color: var(--color-blue-deep); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; }
.rep-chip-new { background: var(--color-tint-mint); color: #0b6e5f; margin-left: auto; }

/* ---- location panel ---- */
.rep-loc { display: flex; flex-direction: column; gap: 24px; }
.rep-loc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rep-loc-head h2 { margin-bottom: 4px; }

/* ---- jump strip and collapsible business panels ----
   Only rendered with 2+ businesses. Both are plain HTML: anchor links and <details>, no script. */
html { scroll-behavior: smooth; }
.rep-loc { scroll-margin-top: 16px; } /* so a jumped-to panel isn't flush against the viewport edge */

.rep-jump { display: flex; gap: 10px; flex-wrap: wrap; }
.rep-jump-item { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--r-md); background: var(--color-surface); color: inherit !important; text-decoration: none; } /* color: inherit !important overrides the global ".rep a" link colour: this reads as a card, not a link */
.rep-jump-item:hover { border-color: var(--color-violet); background: var(--color-bg); }
.rep-jump-name { font-family: var(--font-head); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.rep-jump-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.rep-jump-rate { font-weight: 600; color: var(--color-ink); white-space: nowrap; }
.rep-jump-low { font-weight: 600; color: #c0392b; }
.rep-jump-ok { color: var(--color-ink-soft); }

.rep-loc-fold > summary { cursor: pointer; list-style: none; }
.rep-loc-fold > summary::-webkit-details-marker { display: none; } /* Safari draws its own triangle; ours is the chevron below */
.rep-loc-fold > summary::after { content: "⌄"; margin-left: auto; align-self: center; font-size: 22px; line-height: 1; color: var(--color-ink-soft); transition: transform 0.2s ease; }
.rep-loc-fold[open] > summary::after { transform: rotate(180deg); }
.rep-loc-fold > summary:hover h2 { color: var(--color-violet-deep); }
.rep-loc-glance { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--color-ink-soft); }
.rep-loc-maps { margin: 0; }
.rep-fresh { margin-top: 5px; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.rep-loc-fold > summary::after { transition: none; }
}
.rep-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rep-kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-md); background: var(--color-bg); }
.rep-kpi strong { font-family: var(--font-head); font-size: 32px; line-height: 1; color: var(--color-ink); }
.rep-kpi-hero { background: var(--color-tint-violet); }
.rep-kpi-hero strong { font-size: 40px; }
.rep-kpi-sub { font-size: 13px; color: var(--color-ink-soft); }
.rep-stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; }
.rep-stars-off { color: #d9d7e6; }
.rep-grid2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.rep-sub { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--color-line); border-radius: var(--r-md); }
.rep-chip-src { background: var(--color-bg); color: var(--color-ink-soft); }
.rep-chip-pos { background: var(--color-tint-mint); color: #0b6e5f; }
.rep-chip-neg { background: var(--color-tint-coral); color: #8a3b16; }
.rep-chip-own { background: var(--color-tint-violet); color: var(--color-violet-deep); }
.rep-review-headline { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.rep-link-muted { color: var(--color-ink-soft); font-weight: 400; font-size: 13px; }
.rep-inline-form { display: inline; margin: 0; }
.rep-td-actions { white-space: nowrap; }
.rep-td-actions .rep-inline-form { margin-left: 12px; }
.rep-suggest { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-md); background: var(--color-tint-blue); font-size: 14px; }
.rep-suggest-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid rgba(31, 85, 176, 0.15); }
.rep-suggest-actions { display: flex; align-items: center; gap: 14px; }
.rep-add-listing form, .rep-sub .rep-confirm form { max-width: 520px; background: var(--color-bg); }
.rep-add-listing input[type="url"] { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--color-line); border-radius: var(--r-md); background: #fff; font: inherit; font-size: 15px; }
.rep-serp { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; counter-reset: serp; }
.rep-serp-item { position: relative; padding: 10px 12px 10px 40px; border-radius: var(--r-sm); counter-increment: serp; }
.rep-serp-item::before { content: counter(serp); position: absolute; left: 10px; top: 10px; width: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-soft); } /* CSS counter (see counter-reset/increment above) numbers the list instead of using a native <ol> */
.rep-serp-item:nth-child(odd) { background: var(--color-bg); }
.rep-serp-neg { box-shadow: inset 4px 0 0 var(--color-coral); }
.rep-serp-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rep-serp-domain { font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-soft); margin-right: 4px; overflow-wrap: anywhere; }
.rep-serp-title { display: block; margin-top: 2px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--color-blue-deep) !important; text-decoration: none; overflow-wrap: anywhere; } /* !important overrides the global ".rep a" link color */
.rep-serp-title:hover { text-decoration: underline; }
.rep-serp-snippet { margin-top: 2px; font-size: 13px; color: var(--color-ink-soft); }
/* ---- sentiment ---- */
/* @property registers these as typed custom properties so their values can be
   transitioned/animated (plain custom properties can't be animated by the browser). */
@property --rep-sweep { syntax: '<number>'; inherits: false; initial-value: 100; }
@property --rep-n { syntax: '<integer>'; inherits: false; initial-value: 0; }
:root { --c-pos: #0fb39a; --c-mix: #f5a623; --c-neg: #ff7a4d; --c-pend: #dcdae8; }
.rep-seg-positive { background: var(--c-pos); }
.rep-seg-mixed { background: var(--c-mix); }
.rep-seg-negative { background: var(--c-neg); }
.rep-seg-pending { background: var(--c-pend); }
.rep-sbars .rep-stack { display: flex; flex-direction: column-reverse; width: 72%; max-width: 56px; border-radius: 6px 6px 0 0; overflow: hidden; transform-origin: bottom; animation: rep-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); } /* --i is set per element via inline style to stagger each bar's grow-in */
.rep-sbars .rep-seg { display: block; min-height: 2px; }
.rep-sbars .rep-bar-v { animation: rep-fade 0.6s ease both; animation-delay: calc(var(--i, 0) * 90ms + 400ms); }
.rep-legend-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--color-ink-soft); }
.rep-legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.rep-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.rep-senti { animation: rep-fade 0.6s ease both; }
.rep-senti-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.rep-senti-left { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.rep-ring-wrap { position: relative; width: 200px; height: 200px; }
/* Ring is a conic-gradient "pie" split at the --pos/--mix percentage custom
   properties (set inline per instance), then revealed with a conic mask driven
   by the animated --rep-sweep property so it appears to sweep in clockwise. */
.rep-ring { position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(from 0deg, var(--c-pos) 0 calc(var(--pos) * 1%), var(--c-mix) 0 calc((var(--pos) + var(--mix)) * 1%), var(--c-neg) 0 100%);
	-webkit-mask: conic-gradient(from 0deg, #000 calc(var(--rep-sweep) * 1%), transparent 0); mask: conic-gradient(from 0deg, #000 calc(var(--rep-sweep) * 1%), transparent 0);
	animation: rep-sweep 1.4s cubic-bezier(0.3, 0.7, 0.2, 1) both; filter: drop-shadow(0 6px 14px rgba(25, 24, 48, 0.12)); }
.rep-ring-empty { background: var(--c-pend); animation: none; }
.rep-ring-hole { position: absolute; inset: 17%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line); }
.rep-ring-hole small { font-size: 12px; color: var(--color-ink-soft); }
.rep-net { font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--color-ink); }
.rep-net-plus::before { content: "+"; }
.rep-countup { counter-reset: repn var(--rep-n); animation: rep-count 1.4s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.rep-countup::after { content: counter(repn); }
.rep-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* visually hidden but still announced by screen readers */
.rep-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; }
.rep-legend li { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 8px; font-size: 14px; text-align: left; }
.rep-legend strong { font-family: var(--font-head); }
.rep-pending { color: var(--color-blue-deep); }
.rep-topics { display: flex; flex-direction: column; gap: 10px; }
.rep-topics h4 { margin: 0 0 2px; font-family: var(--font-head); font-size: 15px; }
.rep-topic { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 10px; border-radius: var(--r-sm); color: inherit !important; text-decoration: none; animation: rep-slide 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 300ms); } /* color: inherit !important overrides the global link color since this <a> should look like plain text */
.rep-topic:hover { background: var(--color-bg); }
.rep-topic-name { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.rep-topic-meta { font-size: 12px; color: var(--color-ink-soft); text-align: right; }
.rep-topic-meta b { white-space: nowrap; }
.rep-topic-meta b { font-weight: 600; margin-left: 6px; }
.rep-up { color: var(--color-violet-deep); }
.rep-down { color: var(--color-ink-soft); }
.rep-hot { color: #c0392b; }
.rep-tbar-track { grid-column: 1 / -1; height: 10px; border-radius: var(--r-pill); background: var(--color-bg); overflow: hidden; }
.rep-tbar { display: flex; height: 100%; border-radius: var(--r-pill); overflow: hidden; transform-origin: left; animation: rep-growx 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 350ms); }
.rep-tbar .rep-seg { display: block; height: 100%; }
.rep-hidden { display: block; padding: 12px 16px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--color-tint-coral), #fff7f3); color: #8a3b16 !important; text-decoration: none; font-size: 14px; animation: rep-fade 0.6s ease both; animation-delay: 900ms; } /* !important overrides the global ".rep a" link color */
.rep-hidden:hover { text-decoration: underline; }
.rep-feel { font-weight: 600; }
.rep-feel-positive { background: var(--color-tint-mint); color: #0b6e5f; }
.rep-feel-mixed { background: #fff6e5; color: #9a5b00; }
.rep-feel-negative { background: var(--color-tint-coral); color: #8a3b16; }
.rep-topic-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rep-chip-topic { background: var(--color-bg); color: var(--color-ink-soft); }
@keyframes rep-sweep { from { --rep-sweep: 0; } }
@keyframes rep-count { from { --rep-n: 0; } }
@keyframes rep-grow { from { transform: scaleY(0); } }
@keyframes rep-growx { from { transform: scaleX(0); } }
@keyframes rep-fade { from { opacity: 0; transform: translateY(6px); } }
@keyframes rep-slide { from { opacity: 0; transform: translateX(-10px); } }
/* Disable all the decorative reveal animations above for users who asked for reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.rep-ring, .rep-countup, .rep-sbars .rep-stack, .rep-sbars .rep-bar-v, .rep-senti, .rep-topic, .rep-tbar, .rep-hidden { animation: none !important; }
}
@media (max-width: 960px) { .rep-senti-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .rep-topic { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 4px; } .rep-topic-meta { text-align: left; } .rep-topic-meta b:first-child { margin-left: 4px; } .rep-ring-wrap { width: 170px; height: 170px; } .rep-net { font-size: 36px; } }
.rep-loading { justify-content: center; background: var(--color-tint-blue); border-color: transparent; color: var(--color-blue-deep); }
.rep-loading h3 { color: var(--color-ink); }
.rep-sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rep-bars { display: flex; gap: 10px; height: 200px; padding-top: 6px; }
.rep-bar-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rep-bar-plot { flex: 1 1 auto; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; border-bottom: 1px solid var(--color-line); }
.rep-bar-v { font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1; }
.rep-bar { display: block; width: 72%; max-width: 56px; border-radius: 6px 6px 0 0; background: var(--color-violet); opacity: 0.3; }
.rep-bar-now .rep-bar { background: var(--grad-brand); opacity: 1; }
.rep-bar-k { font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-soft); }
.rep-dist { display: flex; flex-direction: column; gap: 10px; }
.rep-dist-row { display: grid; grid-template-columns: 34px 1fr 56px; align-items: center; gap: 10px; font-size: 14px; }
.rep-dist-k { font-family: var(--font-mono); color: var(--color-ink-soft); }
.rep-dist-bar { height: 10px; border-radius: var(--r-pill); background: var(--color-bg); overflow: hidden; }
.rep-dist-fill { display: block; height: 100%; border-radius: var(--r-pill); }
.rep-dist-5, .rep-dist-4 { background: var(--grad-brand); }
.rep-dist-3 { background: #f5a623; }
.rep-dist-2, .rep-dist-1 { background: var(--color-coral); }
.rep-dist-v { text-align: right; font-family: var(--font-head); font-weight: 600; }
.rep-loc-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--color-line); }
.rep-loc-actions { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }

/* ---- two-step confirm, no script ---- */
.rep-confirm summary { list-style: none; }
.rep-confirm summary::-webkit-details-marker { display: none; } /* Safari-only: hides its default <summary> disclosure triangle since list-style:none doesn't affect it there */
.rep-confirm[open] summary { margin-bottom: 10px; }
.rep-confirm form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 340px; padding: 14px; border-radius: var(--r-md); background: var(--color-tint-coral); font-size: 14px; }

/* ---- reviews ---- */
.rep-feed { display: flex; flex-direction: column; gap: 12px; }
.rep-review { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--r-md); }
.rep-sub .rep-review { border-color: var(--color-bg); background: var(--color-bg); }
.rep-review.rep-review-flag { border-left: 4px solid var(--color-coral); }
.rep-review-head { display: flex; align-items: center; gap: 12px; }
.rep-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.rep-avatar-blank { display: flex; align-items: center; justify-content: center; background: var(--color-tint-violet); color: var(--color-violet-deep); font-family: var(--font-head); font-weight: 700; }
.rep-review-who { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.rep-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--color-ink-soft); }
.rep-review-text { color: var(--color-ink); overflow-wrap: anywhere; }
.rep-reply { padding: 12px 14px; border-radius: var(--r-sm); background: var(--color-tint-violet); font-size: 14px; }
.rep-reply p { margin-top: 4px; overflow-wrap: anywhere; }
.rep-draft { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--color-tint-violet); }
.rep .rep-draft-text { width: 100%; min-height: 0; padding: 10px 12px; border: 1px solid var(--color-line); border-radius: var(--r-sm); background: #fff; color: var(--color-ink); font: inherit; font-size: 15px; line-height: 1.55; resize: vertical; }
.rep-draft-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rep-draft-actions form { margin: 0; }
.rep-btn-small { min-height: 38px; padding: 6px 18px; font-size: 14px; }
.rep-style-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; }
.rep-h3 { font-family: var(--font-head); font-size: 16px; margin: 24px 0 4px; }
.rep-clients .rep-h3 { margin-top: 32px; }
.rep-link[disabled] { opacity: 0.45; cursor: not-allowed; text-decoration: none; }

/* ---- share & team ---- */
.rep-share-box { grid-column: 2; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 12px 14px; background: var(--color-bg); border-radius: var(--r-md); }
.rep-field-label { font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.rep-share-url { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--color-line); border-radius: var(--r-md); background: #fff; font: inherit; font-size: 13px; }
.rep-share-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.rep-share-box .rep-btn-small { align-self: flex-start; }
.rep-team-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 14px 0; border-top: 1px solid var(--color-line); }
.rep-team-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: flex-start; }
.rep-share .rep-top-in { justify-content: flex-start; }
.rep-share-logo { display: block; max-height: 48px; max-width: 220px; }
.rep-share .rep-loc-head h2 { display: none; }
@media (max-width: 760px) { .rep-share-box { grid-column: 1; } }
.rep-field-color { flex: 0 0 auto !important; min-width: 0; } /* !important: this field must not grow/shrink like the flex:1 fields it shares a row with */
.rep-field-color input[type="color"] { width: 64px; height: 44px; padding: 2px; border: 1px solid var(--color-line); border-radius: var(--r-md); background: #fff; cursor: pointer; }

/* ---- clients ---- */
.rep-clients input[type="file"] { font: inherit; font-size: 14px; }
.rep-brand-logo { display: block; max-height: 56px; max-width: 220px; margin: 4px 0; }
.rep-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 44px; }
.rep-client-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--color-line); }
.rep-client-name { display: flex; flex-direction: column; gap: 4px; padding-top: 30px; }
.rep-client-form { margin-top: 0; }
.rep-client-test { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
@media (max-width: 760px) { .rep-client-row { grid-template-columns: minmax(0, 1fr); } .rep-client-name { padding-top: 0; } .rep-client-test { grid-column: 1; } }
.rep-style-form .rep-field { flex: 1 1 220px; }
.rep-style-form .rep-field-wide { flex: 1 1 100%; }
.rep textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--color-line); border-radius: var(--r-md); background: var(--color-bg); color: var(--color-ink); font: inherit; font-size: 15px; }
.rep-style { display: flex; flex-direction: column; gap: 6px; }

/* ---- filters & pager ---- */
.rep-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 20px; }
.rep-count { margin-top: -8px; }

/* ---- paste / rated import ---- */
.rep-paste { padding: 0; }
.rep-paste summary { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; cursor: pointer; list-style: none; }
.rep-paste summary::-webkit-details-marker { display: none; } /* Safari-only: see .rep-confirm above */
.rep-paste summary::after { content: "+ Open"; align-self: flex-start; margin-top: 6px; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--color-violet); }
.rep-paste[open] summary::after { content: "− Close"; }
.rep-paste-title { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.rep-paste-form { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 22px 22px; }
.rep-paste-form .rep-field { flex: 1 1 180px; }
.rep-paste-form .rep-field-wide { flex: 1 1 100%; }
.rep-paste-form input[type="url"] { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--color-line); border-radius: var(--r-md); background: var(--color-bg); font: inherit; font-size: 15px; }
.rep-paste-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; flex: 1 1 100%; }
.rep-paste-foot .rep-fine { flex: 1 1 280px; }
.rep-chip-pasted { background: var(--color-tint-coral); color: #8a3b16; }
.rep-pasted-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--color-line); }
.rep-rated { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; background: var(--color-tint-blue); border-color: transparent; box-shadow: none; font-size: 14px; }
.rep-rated-list { display: flex; flex-wrap: wrap; gap: 10px; }
.rep-rated-item { display: flex; flex-direction: column; gap: 2px; min-width: 180px; padding: 10px 14px; border-radius: var(--r-sm); background: #fff; }
.rep-pager { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---- forms ---- */
.rep-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.rep-field-grow { flex: 1 1 220px; }
.rep-field span { font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.rep input[type="text"], .rep input[type="email"], .rep input[type="tel"], .rep input[type="password"], .rep input[type="search"], .rep select {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--color-line);
	border-radius: var(--r-md);
	background: var(--color-bg);
	color: var(--color-ink);
	font: inherit;
	font-size: 15px;
}
.rep input:focus, .rep select:focus { border-color: var(--color-violet); background: #fff; }
.rep-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--color-ink-soft); }
.rep-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--color-violet); flex: 0 0 auto; }
.rep-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* pushed off-screen rather than display:none — a spam-catching honeypot field still needs to be fillable by bots but invisible to real users */

/* ---- add business ---- */
.rep-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.rep-search .rep-field { flex: 1 1 320px; }
.rep-search .rep-fine { flex: 1 1 100%; }
.rep-results { display: flex; flex-direction: column; gap: 12px; }
.rep-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; flex-wrap: wrap; }
.rep-result h3 { margin-bottom: 4px; }

/* ---- plans ---- */
.rep-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rep-plan { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.rep-plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1 0 auto; }
.rep-plan li, .rep-ticks li { position: relative; padding-left: 26px; font-size: 15px; }
.rep-plan li::before, .rep-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-mint); font-weight: 700; }
.rep-plan-featured { border: 2px solid var(--color-violet); }
.rep-price { font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1; }
.rep-price small { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--color-ink-soft); margin-left: 4px; }
/* The billing period the card is not priced on, always visible so the two can be compared without flipping the switch. */
.rep-price-alt { font-size: 13px; line-height: 1.5; color: var(--color-ink-soft); margin: -6px 0 0; }
.rep-plan form, .rep-plan .rep-btn { width: 100%; }
/* The free-trial offer above the plan cards: tinted so it reads as an offer, not another plan. */
.rep-trial { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--color-tint-mint); border-color: var(--color-mint); margin-bottom: 24px; }
.rep-trial p { max-width: 62ch; }
/* Monthly / yearly switch: links styled as one segmented control (the chosen side is a span, not a link). */
.rep-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--color-tint-violet); border-radius: var(--r-pill); }
.rep-switch a, .rep-switch .rep-switch-on { padding: 8px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; text-decoration: none; }
.rep-switch a { color: var(--color-ink-soft); }
.rep-switch a:hover { color: var(--color-violet); }
.rep-switch .rep-switch-on { background: var(--color-surface); color: var(--color-ink); box-shadow: 0 1px 2px rgba(25, 24, 48, 0.12); }

/* ---- tables ---- */
.rep-table-wrap { overflow-x: auto; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rep-table th { text-align: left; padding: 8px 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-soft); border-bottom: 1px solid var(--color-line); white-space: nowrap; }
.rep-table td { padding: 10px; border-bottom: 1px solid var(--color-line); }
.rep-row-you td { background: var(--color-tint-violet); font-weight: 600; }

/* ---- auth ---- */
.rep-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; padding: 24px 0; }
.rep-auth-narrow { grid-template-columns: minmax(0, 440px); justify-content: center; }
.rep-auth-intro h1 { margin: 10px 0 20px; font-size: 42px; line-height: 1.1; }
.rep-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--color-ink-soft); }
.rep-auth-form { display: flex; flex-direction: column; gap: 16px; }
.rep-auth-form .rep-field { min-width: 0; }

/* ---- tablet ---- */
@media (max-width: 960px) {
	.rep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rep-grid2 { grid-template-columns: minmax(0, 1fr); }
	.rep-plans { grid-template-columns: minmax(0, 1fr); }
	.rep-auth { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.rep-auth-intro h1 { font-size: 32px; }
}

/* ---- phone ---- */
@media (max-width: 600px) {
	.rep h1 { font-size: 27px; }
	.rep h2 { font-size: 20px; }
	.rep-top-in { padding: 12px 16px; }
	.rep-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -4px; scrollbar-width: none; }
	.rep-nav::-webkit-scrollbar { display: none; }
	.rep-bars { gap: 6px; height: 170px; }
	.rep-nav a { flex: 0 0 auto; }
	.rep-main { padding: 20px 16px 44px; gap: 18px; }
	.rep-card { padding: 20px 16px; border-radius: var(--r-md); }
	.rep-kpi { padding: 14px; }
	.rep-kpi strong { font-size: 26px; }
	.rep-kpi-hero strong { font-size: 32px; }
	.rep-sub { padding: 14px; }
	.rep-review { padding: 14px 16px; }
	.rep-filters .rep-field, .rep-filters .rep-btn { flex: 1 1 100%; }
	.rep-head .rep-btn, .rep-result form, .rep-result .rep-btn { width: 100%; }
	.rep-foot { padding: 16px; }
}
