/* refera — design tokens + shared styles */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* === Style: CRISP — pure white, cool neutrals === */
  --bg: #FFFFFF;
  --bg-2: #F6F7F8;
  --bg-3: #EDEFF2;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #1F2024;
  --ink-3: #595C63;
  --ink-4: #9498A1;
  --line: #ECEEF1;
  --line-2: #D9DCE2;

  /* Accent terracotta */
  --terracotta: #D97757;
  --terracotta-2: #C5613F;
  --terracotta-soft: #FBE4D9;
  --terracotta-faint: #FDF1EA;

  /* Score scale */
  --score-low: #B65A3D;
  --score-mid: #C99A4A;
  --score-high: #18794E;

  /* Type */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(15, 17, 20, 0.04);
  --shadow-2: 0 4px 12px rgba(15, 17, 20, 0.06), 0 1px 2px rgba(15, 17, 20, 0.04);
  --shadow-3: 0 20px 50px rgba(15, 17, 20, 0.12);
}

/* ---- artboard reset ---- */
.r-art {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
.r-art *, .r-art *::before, .r-art *::after { box-sizing: border-box; }
.r-art button { font-family: inherit; }

/* ---- type ---- */
.r-display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.r-display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--terracotta);
}
.r-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  font-weight: 500;
}
.r-label {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.r-mono { font-family: var(--mono); font-size: 12px; }

/* ---- buttons ---- */
.r-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--r-full);
  border: 1px solid transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: all .14s ease;
  white-space: nowrap;
}
.r-btn-primary { background: var(--ink); color: #fff; }
.r-btn-primary:hover { background: #000; }
.r-btn-accent { background: var(--terracotta); color: #fff; }
.r-btn-accent:hover { background: var(--terracotta-2); }
.r-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.r-btn-ghost:hover { background: var(--bg-2); }
.r-btn-soft { background: var(--bg-2); color: var(--ink); }
.r-btn-soft:hover { background: var(--bg-3); }
.r-btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.r-btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; }

/* ---- inputs ---- */
.r-input {
  height: 42px;
  width: 100%;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.r-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--bg-3); }
textarea.r-input { height: auto; padding: 12px 14px; resize: none; line-height: 1.5; }

/* ---- card ---- */
.r-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.r-card-flat { background: var(--surface); border-radius: var(--r-lg); }

/* ---- chip / pill ---- */
.r-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
  transition: all .14s;
}
.r-chip:hover { background: var(--bg-2); }
.r-chip-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.r-chip-line { background: transparent; border-color: var(--line-2); }

/* ---- segmented control (for radio groups like price type) ---- */
.r-segmented {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: 8px;
}
.r-segmented__opt {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  min-height: 36px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-3);
  background: transparent;
  border-radius: calc(var(--r-md) - 4px);
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s, box-shadow .15s;
}
.r-segmented__opt:hover { color: var(--ink-2); }
.r-segmented__opt.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

/* ---- divider ---- */
.r-hr { height: 1px; background: var(--line); border: 0; }

/* ---- placeholder image (radial gradient, no stripes) ---- */
.r-img-ph {
  background: var(--bg-2);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  text-transform: uppercase;
  border-radius: var(--r-md);
  overflow: hidden;
}
.r-img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,0,0,0.04), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.04), transparent 60%);
}
.r-img-ph > * { position: relative; }
.r-img-ph.dark {
  background: #1A1C20;
  color: #6B6E75;
}

/* ---- score bar ---- */
.r-scorebar {
  position: relative;
  height: 4px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}
.r-scorebar > i {
  display: block;
  height: 100%;
  background: var(--score-high);
  border-radius: 999px;
}

/* ---- avatar fallback ---- */
.r-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-weight: 500;
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

/* device frame helpers */
.r-mobile {
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex; flex-direction: column;
  font-size: 14px;
}
.r-statusbar {
  height: 36px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}

/* scrollable inner regions */
.r-scroll {
  overflow-y: auto;
  flex: 1;
}

/* tiny tag */
.r-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 3px 7px;
  border-radius: var(--r-xs);
  background: var(--bg-2);
}

.r-dot { width: 6px; height: 6px; border-radius: 999px; display: inline-block; }
.r-dot-live { background: var(--score-high); box-shadow: 0 0 0 3px rgba(24,121,78,0.18); }
.r-dot-away { background: var(--ink-4); }

/* row hover */
.r-row { transition: background .12s; }
.r-row:hover { background: var(--bg-2); }

/* ---- login screen layout (mirrors SignInArtboard) ---- */
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; height: 100%; }

.r-signin {
  height: 100dvh;
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 1fr;
  background: var(--bg);
  overflow: hidden;
}

.r-signin__brand {
  padding: clamp(28px, 4vw, 72px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: clamp(20px, 4vh, 56px);
  background: var(--bg);
  min-height: 0;
  height: 100%;
  overflow-y: auto;
}

.r-signin__brand > :nth-child(2) {
  align-self: center;
}

.r-signin__brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.r-signin__mark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.r-signin__mark em { font-family: var(--serif); color: var(--terracotta); font-style: italic; font-weight: 400; }

.r-signin__headline {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(44px, 4.8vw, 88px);
  margin: 0;
  max-width: 14ch;
}
.r-signin__headline em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--terracotta); }

.r-signin__lede {
  margin-top: clamp(20px, 1.8vw, 32px);
  color: var(--ink-3);
  font-size: clamp(15px, 1.15vw, 21px);
  max-width: 46ch;
  line-height: 1.55;
}
.r-signin__lede strong { color: var(--ink); font-weight: 600; }

.r-signin__trust {
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  color: var(--ink-3);
  font-size: clamp(13px, 0.95vw, 16px);
  flex-wrap: wrap;
}
.r-signin__trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.r-signin__form {
  background: var(--surface);
  padding: clamp(28px, 4vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  min-height: 0;
  height: 100%;
  overflow-y: auto;
}

.r-signin__form-inner {
  max-width: clamp(380px, 28vw, 460px);
  width: 100%;
  margin: 0 auto;
}

.r-signin__welcome {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(34px, 2.8vw, 50px);
  margin: 14px 0 4px;
}

.r-signin__welcome-sub {
  color: var(--ink-3);
  margin: 0 0 28px;
  font-size: clamp(14px, 1vw, 17px);
}

.r-btn-google {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.r-btn-google:hover { background: var(--bg-2); }

.r-signin__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.r-signin__divider-line { flex: 1; height: 1px; background: var(--line); }
.r-signin__divider-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
}

.r-signin__steps {
  padding-left: 0;
  list-style: none;
  margin: 0;
  color: var(--ink-3);
  font-size: clamp(13.5px, 0.95vw, 15.5px);
}
.r-signin__steps li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.r-signin__step-n {
  font-family: var(--mono);
  color: var(--terracotta);
}

.r-signin__legal {
  margin-top: 24px;
  color: var(--ink-4);
  font-size: 12px;
}
.r-signin__legal a { color: inherit; text-decoration: underline; }

.r-flash {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
}
.r-flash-error {
  background: var(--terracotta-faint);
  color: var(--ink-2);
  border: 1px solid var(--terracotta-soft);
}
.r-flash-info {
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

@media (max-width: 880px) {
  .r-signin {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .r-signin__brand,
  .r-signin__form {
    height: auto;
    overflow: visible;
  }
  .r-signin__brand { padding: 32px 24px; }
  .r-signin__headline { font-size: clamp(40px, 9vw, 64px); }
  .r-signin__form { padding: 32px 24px; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---- shared onboarding screen (phone, OTP, etc.) ---- */
.r-auth-screen {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vh, 36px) clamp(20px, 4vw, 48px);
}

.r-auth-screen__topbar {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.r-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.r-icon-btn:hover { background: var(--bg-3); }

.r-auth-screen__step {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
}

.r-auth-screen__brand {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.r-auth-screen__brand em { font-family: var(--serif); color: var(--terracotta); font-style: italic; font-weight: 400; }

.r-auth-screen__body {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) 0 clamp(20px, 3vh, 32px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.r-auth-screen__title {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(32px, 3.8vw, 48px);
  margin: 14px 0 10px;
}
.r-auth-screen__title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--terracotta); }

.r-auth-screen__sub {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
.r-auth-screen__sub .r-mono { color: var(--ink); }
.r-auth-screen__sub a { color: var(--terracotta); text-decoration: underline; cursor: pointer; }

.r-auth-screen__spacer { flex: 1; min-height: 24px; }

.r-auth-screen__cta {
  width: 100%;
}

.r-auth-screen__hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-4);
  text-align: center;
}

/* ---- phone entry ---- */
.r-phone-field { margin-top: clamp(28px, 4vh, 40px); }
.r-phone-row {
  display: flex;
  gap: 8px;
}
.r-phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink-2);
}
.r-phone-input {
  height: 48px;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.05em;
}

.r-info-banner {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--terracotta-faint);
  border-radius: var(--r-md);
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.r-info-banner svg { flex: 0 0 auto; margin-top: 2px; color: var(--terracotta-2); }

/* ---- OTP boxes ---- */
.r-otp {
  display: flex;
  gap: 10px;
  margin: clamp(28px, 5vh, 48px) 0 18px;
}
.r-otp__box {
  flex: 1;
  height: 60px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.r-otp__box::placeholder { color: var(--ink-4); }
.r-otp__box:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-faint);
}

.r-otp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.r-otp-meta .r-mono { color: var(--ink); }
.r-otp-meta__expired { color: var(--terracotta-2); }
.r-otp-resend {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--terracotta);
  text-decoration: underline;
}
.r-otp-resend[disabled] {
  color: var(--ink-4);
  text-decoration: none;
  cursor: default;
}

/* ---- forbidden screen ---- */
.r-forbidden__inner {
  margin: auto;
  max-width: 420px;
  text-align: center;
}

/* ---- app shell ---- */
.r-app { background: var(--bg); min-height: 100dvh; }
.r-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 40px); }

.r-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.r-nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; gap: 28px;
}
.r-nav__brand {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.r-nav__brand em { font-family: var(--serif); color: var(--terracotta); font-style: italic; font-weight: 400; }
.r-nav__links { display: flex; gap: 22px; flex: 1; }
.r-nav__links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
}
.r-nav__links a:hover { color: var(--ink); }
.r-nav__right { display: flex; align-items: center; gap: 14px; }
.r-nav__user { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.r-nav__avatar { width: 30px; height: 30px; font-size: 12px; }
.r-link-btn {
  background: none; border: 0; padding: 0; color: var(--ink-3);
  font-family: inherit; font-size: 13px; cursor: pointer;
}
.r-link-btn:hover { color: var(--ink); text-decoration: underline; }
.r-nav__logout { display: inline; }

.r-page-flash {
  max-width: 1240px;
  margin: 14px auto 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - clamp(40px, 8vw, 80px));
}

/* ---- page heading ---- */
.r-page-title {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(30px, 3.5vw, 48px);
  margin: 0 0 8px;
}
.r-page-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--terracotta);
}
.r-page-sub { color: var(--ink-3); font-size: 15px; margin: 0; max-width: 60ch; }

/* ---- chip strip ---- */
.r-chip-strip {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 24px 0;
}
.r-chip-strip a, .r-chip-strip .r-chip { text-decoration: none; }

/* ---- search bar ---- */
.r-search {
  display: flex; align-items: center; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 22px;
  margin-top: 20px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.r-search:hover { border-color: var(--line-2); }
.r-search:focus-within {
  border-color: var(--line-2);
  box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.10);
}
.r-search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 15px; color: var(--ink); height: 36px;
}
.r-search input::placeholder { color: var(--ink-4); }
.r-search select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 0; background-color: transparent; outline: none;
  font-family: inherit; font-size: 13px; color: var(--ink-2);
  border-left: 1px solid var(--line-2);
  height: 28px;
  padding: 0 34px 0 16px;
  min-width: 150px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23595C63' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
  transition: color .15s;
}
.r-search select:hover { color: var(--ink); }
.r-search select:focus-visible { color: var(--ink); }
.r-search select option { color: var(--ink); background: var(--surface); }
.r-search button {
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 999px;
  height: 36px; padding: 0 22px; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  letter-spacing: 0.01em;
  transition: background .15s;
}
.r-search button:hover { background: #000; }

@media (max-width: 720px) {
  .r-search {
    flex-wrap: wrap;
    border-radius: var(--r-lg);
    padding: 8px;
    gap: 6px;
  }
  .r-search input {
    flex: 1 1 100%;
    padding: 0 10px;
  }
  .r-search select {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    border-left: 0;
    background-color: var(--bg-2);
    border-radius: var(--r-md);
    height: 36px;
    padding: 0 32px 0 12px;
    background-position: right 10px center;
  }
  .r-search button {
    flex: 1 1 100%;
  }
}

/* ---- listing grid ---- */
.r-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.r-listing {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.r-listing:hover { border-color: var(--line-2); transform: translateY(-2px); }
.r-listing__photo {
  aspect-ratio: 4/3;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative; overflow: hidden;
}
.r-listing__photo::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,0,0,0.04), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.04), transparent 60%);
}
.r-listing__photo img { width: 100%; height: 100%; object-fit: cover; }
.r-listing__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.r-listing__title { font-size: 16px; font-weight: 500; color: var(--ink); margin: 0; line-height: 1.3; }
.r-listing__meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); }
.r-listing__meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--ink-4); }
.r-listing__row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.r-listing__price { font-family: var(--mono); font-size: 13px; color: var(--ink); }

/* ---- card ---- */
.r-paper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
}
.r-paper + .r-paper { margin-top: 18px; }

/* ---- form fields ---- */
.r-field { margin-top: 16px; }
.r-field:first-child { margin-top: 0; }
.r-field label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; letter-spacing: 0.01em; }
.r-field .r-input { font-size: 14px; }
.r-field textarea.r-input { min-height: 110px; }
.r-field-error { color: var(--terracotta-2); font-size: 12px; margin-top: 6px; }
.r-field-hint { color: var(--ink-4); font-size: 12px; margin-top: 6px; }

.r-form-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---- score visual ---- */
.r-score-big { display: flex; align-items: baseline; gap: 6px; }
.r-score-big .num { font-family: var(--sans); font-size: 52px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--score-high); }
.r-score-big .denom { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.r-score-meta { color: var(--ink-3); font-size: 12px; margin-top: 6px; font-family: var(--mono); }
.r-score-inline {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 6px; border-radius: 999px;
  background: var(--bg-2); font-size: 12px; font-weight: 500;
  font-family: var(--sans);
}
.r-score-inline .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--score-high); }

/* ---- profile hero ---- */
.r-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
.r-profile__avatar { width: 120px; height: 120px; font-size: 44px; }
.r-profile__name { font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.02; margin: 12px 0 4px; }
.r-profile__meta { color: var(--ink-3); font-size: 14px; margin: 0; }

@media (max-width: 880px) {
  .r-profile { grid-template-columns: 1fr; }
}

/* ---- chat ---- */
.r-chat {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 70vh;
}
.r-chat__list { border-right: 1px solid var(--line); background: var(--bg); }
.r-chat__listitem {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer; text-decoration: none; color: inherit;
}
.r-chat__listitem:hover, .r-chat__listitem.active { background: var(--bg-2); }
.r-chat__listitem .who { font-weight: 500; }
.r-chat__listitem .preview { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.r-chat__thread { display: flex; flex-direction: column; }
.r-chat__header { padding: 14px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.r-chat__messages { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.r-msg { max-width: 70%; padding: 10px 14px; border-radius: var(--r-lg); font-size: 14px; line-height: 1.45; }
.r-msg.mine { background: var(--ink); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 4px; }
.r-msg.theirs { background: var(--bg-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.r-msg.system { background: var(--terracotta-faint); color: var(--ink-2); align-self: center; font-size: 12px; font-family: var(--mono); }
.r-msg__meta { font-size: 10.5px; opacity: 0.65; margin-top: 4px; font-family: var(--mono); }
.r-chat__composer { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.r-chat__composer textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 140px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; font-family: inherit; font-size: 14px;
  background: var(--bg); color: var(--ink); outline: none;
}
.r-chat__composer textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--terracotta-faint); }
.r-chat__empty { padding: 60px; text-align: center; color: var(--ink-3); }

@media (max-width: 880px) {
  .r-chat { grid-template-columns: 1fr; min-height: auto; }
  .r-chat__list { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---- reviews ---- */
.r-review { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.r-review:last-child { border-bottom: 0; }
.r-review__avatar { width: 40px; height: 40px; font-size: 14px; flex: 0 0 auto; }
.r-review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.r-review__author { font-weight: 500; font-size: 14px; }
.r-review__date { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.r-review__body { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ---- slider (review score) ---- */
.r-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--score-low), var(--score-mid), var(--score-high));
  outline: none;
}
.r-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--ink); border: 4px solid var(--surface);
  box-shadow: var(--shadow-2); cursor: pointer;
}
.r-slider::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--ink); border: 4px solid var(--surface);
  box-shadow: var(--shadow-2); cursor: pointer; border: none;
}

/* ---- calendar grid ---- */
.r-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.r-cal__head {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  text-align: center; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 0 10px;
}
.r-cal__day {
  position: relative;
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 500;
  color: var(--ink); cursor: pointer; background: var(--surface);
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.r-cal__day:hover { border-color: var(--line-2); background: var(--bg-2); }
.r-cal__day.is-other-month {
  color: var(--ink-4); background: transparent; cursor: default;
  opacity: 0.45;
}
.r-cal__day.is-other-month:hover { background: transparent; border-color: transparent; }
.r-cal__day.is-past {
  color: var(--ink-4); background: transparent; cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
}
.r-cal__day.is-past:hover { background: transparent; border-color: transparent; }
.r-cal__day.is-full {
  color: var(--ink-4); background: transparent; cursor: not-allowed;
}
.r-cal__day.is-full:hover { background: transparent; border-color: transparent; }
.r-cal__day.has-slots::after {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--terracotta);
}
.r-cal__day.today { border-color: var(--terracotta); }
.r-cal__day.selected {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.r-cal__day.selected::after { background: var(--bg); }

.r-cal__legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 14px;
  font-family: var(--sans); font-size: 11.5px; color: var(--ink-3);
}
.r-cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.r-cal__legend i {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
}
.r-cal__legend .lg-free   i { background: var(--terracotta); }
.r-cal__legend .lg-full   i { background: var(--ink-4); }
.r-cal__legend .lg-past   i { background: transparent; border: 1px solid var(--line-2); }

/* ---- time slot grid ---- */
.r-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.r-slot {
  height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.r-slot:hover { border-color: var(--terracotta); }
.r-slot.selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.r-slot:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---- empty state ---- */
.r-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}
.r-empty .r-display { font-size: 36px; color: var(--ink); margin-bottom: 8px; }

/* ---- table ---- */
.r-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.r-table th, .r-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.r-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; }
.r-table tbody tr:hover { background: var(--bg-2); }

/* ---- badges ---- */
.r-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-xs);
}
.r-badge-active   { background: rgba(24,121,78,0.10); color: var(--score-high); }
.r-badge-paused   { background: var(--bg-2); color: var(--ink-3); }
.r-badge-pending  { background: var(--terracotta-faint); color: var(--terracotta-2); }
.r-badge-declined { background: rgba(182,90,61,0.15); color: var(--score-low); }
.r-badge-confirmed { background: rgba(24,121,78,0.10); color: var(--score-high); }

/* ---- step indicator (onboarding) ---- */
.r-steps-progress {
  display: flex; gap: 6px;
}
.r-steps-progress span { width: 28px; height: 4px; border-radius: 2px; background: var(--bg-3); }
.r-steps-progress span.done { background: var(--terracotta); }

/* ---- listings: hero, summary, detail, photo strip, pagination ---- */
.r-listings-hero {
  padding: 8px 0 4px;
}
.r-listings-hero__title {
  margin-top: 8px;
}
.r-listings-summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.r-listings-summary__title {
  margin: 0; font-size: 18px; font-weight: 500;
}
.r-pagination {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.r-listing-detail {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px;
  margin-top: 32px;
}
.r-listing-detail__aside { position: sticky; top: 24px; align-self: start; }
@media (max-width: 860px) {
  .r-listing-detail { grid-template-columns: 1fr; }
  .r-listing-detail__aside { position: static; }
}
.r-photo-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 180px;
  gap: 8px;
}
.r-photo-strip__item {
  overflow: hidden; border-radius: var(--r-md);
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
}
.r-photo-strip__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-photo-strip__item.is-lead { grid-row: span 2; }
@media (max-width: 700px) {
  .r-photo-strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .r-photo-strip__item.is-lead { grid-column: span 2; grid-row: span 1; }
}

/* ---- chat 3-column layout (inbox + thread + context) ---- */
.r-chat.r-chat--3col {
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  /* Lock the chat to the viewport so only inner panes scroll. */
  height: calc(100dvh - 210px);
  min-height: 500px;
}
.r-chat.r-chat--3col .r-chat__list,
.r-chat.r-chat--3col .r-chat__thread,
.r-chat.r-chat--3col .r-chat__context {
  min-height: 0;
}
.r-chat.r-chat--3col .r-chat__list { overflow-y: auto; }
.r-chat__context {
  border-left: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 20px;
  overflow-y: auto;
}
@media (max-width: 1100px) {
  .r-chat.r-chat--3col { grid-template-columns: 260px minmax(0, 1fr); }
  .r-chat__context { display: none; }
}
@media (max-width: 880px) {
  .r-chat.r-chat--3col {
    grid-template-columns: 1fr;
    height: auto; min-height: auto;
  }
  .r-chat__list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; overflow-y: auto; }
}

/* ---- admin panel ---- */
.r-admin-head { margin-bottom: 18px; }

.r-admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 20px 0 24px;
  flex-wrap: wrap;
}
.r-admin-tab {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.r-admin-tab:hover { color: var(--ink); }
.r-admin-tab-active {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
  font-weight: 500;
}

.r-admin-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.r-admin-filters__search { flex: 1 1 260px; min-width: 200px; height: 38px; }
.r-admin-filters__select { flex: 0 0 auto; width: auto; height: 38px; padding: 0 12px; }

.r-admin-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.r-admin-actions form { display: inline; }

.r-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.r-stat { padding: 22px 22px 20px; }
.r-stat__num {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.r-stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}
.r-stat__delta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--score-high);
  margin-top: 6px;
}


/* ─── Track: Onboarding + Account + Portfolio additions ─────────────────── */
.r-onboarding { max-width: 1200px; margin: 0 auto; }
.r-onboarding__progress { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.r-onboarding__identity { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.r-onboarding__avatar { width: 64px; height: 64px; font-size: 22px; overflow: hidden; }
.r-onboarding__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.r-onboarding__step2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 32px; align-items: start; }
.r-onboarding__catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.r-onboarding__cat {
  padding: 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-2); cursor: pointer; text-align: left; font: inherit;
  font-size: 13.5px; font-weight: 500;
}
.r-onboarding__cat:hover { border-color: var(--line-2); }
.r-onboarding__cat.is-selected { border-color: var(--terracotta); background: var(--terracotta-faint); color: var(--ink); }
.r-onboarding__cat-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink-4); flex: 0 0 8px; }
.r-onboarding__cat.is-selected .r-onboarding__cat-dot { background: var(--terracotta); }
.r-onboarding__sidebar { padding: 0; }
.r-onboarding__sidestep { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.r-onboarding__sidestep-n { color: var(--ink-4); width: 24px; }
.r-onboarding__sidestep-t { flex: 1; font-size: 14px; color: var(--ink); }
.r-onboarding__sidestep-s { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); }
.r-onboarding__sidestep.is-done .r-onboarding__sidestep-n { color: var(--ink-2); }
.r-onboarding__sidestep.is-done .r-onboarding__sidestep-t { color: var(--ink-4); text-decoration: line-through; }
.r-onboarding__sidestep.is-active .r-onboarding__sidestep-n,
.r-onboarding__sidestep.is-active .r-onboarding__sidestep-s { color: var(--terracotta); }
.r-onboarding__sidequote { margin-top: 16px; font-size: 13px; color: var(--ink-3); font-family: var(--serif); font-style: italic; line-height: 1.45; }

.r-account__profile-row { display: flex; gap: 22px; align-items: flex-start; }
.r-account__avatar { width: 88px; height: 88px; font-size: 30px; overflow: hidden; flex: 0 0 88px; }
.r-account__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }

.r-profile__avatar { overflow: hidden; }
.r-profile__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.r-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }

@media (max-width: 880px) {
  .r-onboarding__step2 { grid-template-columns: 1fr; }
  .r-onboarding__catgrid { grid-template-columns: repeat(2, 1fr); }
  .r-account__profile-row { flex-direction: column; }
}

/* ---- bookings (added by bookings track) ---- */
.r-week-row > .r-intervals { min-width: 0; }
@media (max-width: 880px) {
  .r-week-row { grid-template-columns: 1fr !important; }
  .r-exception-row { grid-template-columns: 1fr 1fr !important; }
}

/* ============================================================
   Business admin shell
   ============================================================ */
.r-biz-body { overflow: hidden; }
.r-biz {
  display: grid;
  grid-template-rows: 56px 1fr;
  height: 100dvh;
  background: var(--bg);
}

/* Top bar */
.r-biz__topbar {
  display: flex; align-items: center; gap: 20px;
  padding: 0 28px; height: 56px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.r-biz__brand {
  font-family: var(--sans); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1;
  color: var(--ink); text-decoration: none; flex: 0 0 auto;
}
.r-biz__brand em { font-family: var(--serif); color: var(--terracotta); font-style: italic; font-weight: 400; }
.r-biz__topbar-div { width: 1px; height: 18px; background: var(--line-2); flex: 0 0 auto; }
.r-biz__crumb { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3); }
.r-biz__crumb-sep { display: flex; align-items: center; color: var(--ink-4); }
.r-biz__crumb-item.is-current { color: var(--ink); font-weight: 500; }
.r-biz__topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.r-biz__topbar-avatar { width: 32px; height: 32px; font-size: 12px; }
.r-biz__topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Shell */
.r-biz__shell { display: flex; min-height: 0; }
.r-biz__content {
  flex: 1; min-width: 0; overflow-y: auto;
  padding: clamp(28px, 3vw, 48px) clamp(28px, 3.5vw, 52px);
}

/* Sidebar */
.r-biz__sidenav {
  width: 260px; flex: 0 0 260px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 12px;
  display: flex; flex-direction: column;
  overflow-y: auto; gap: 1px;
}

/* Group header card */
.r-sidenav__group {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  margin-bottom: 4px;
}
.r-sidenav__group--spaced { margin-top: 14px; }
.r-sidenav__group.is-active {
  background: var(--bg-2);
  border-color: var(--line);
}
.r-sidenav__group-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-2); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.r-sidenav__group.is-active .r-sidenav__group-icon {
  background: var(--ink); color: #fff;
}
.r-sidenav__group-text { flex: 1; min-width: 0; }
.r-sidenav__group-label { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.r-sidenav__group-sub { font-size: 10px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sidenav__group-tag { font-size: 9.5px; color: var(--ink-4); letter-spacing: 0.05em; }

/* Nav items */
.r-sidenav__item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  color: var(--ink-3); font-size: 13px; font-weight: 400;
  text-decoration: none; cursor: pointer;
  transition: background .1s, color .1s;
}
.r-sidenav__item:hover { background: var(--bg-2); color: var(--ink); }
.r-sidenav__item.is-active { background: var(--bg-2); color: var(--ink); font-weight: 500; }
.r-sidenav__item-icon {
  width: 16px; flex: 0 0 16px;
  display: inline-flex; justify-content: center; align-items: center;
  color: var(--ink-4);
}
.r-sidenav__item.is-active .r-sidenav__item-icon { color: var(--ink); }
.r-sidenav__item-grow { flex: 1; min-width: 0; overflow: hidden; }
.r-sidenav__badge { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }

/* Depth-1 listing sub-items */
.r-sidenav__item--d1 {
  padding-left: 22px;
  padding-top: 5px; padding-bottom: 5px;
  position: relative;
  font-size: 12.5px;
}
/* Tree connector – vertical line */
.r-sidenav__tree-v {
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-2);
  pointer-events: none;
}
/* Last sub-item: vertical line ends at midpoint */
.r-sidenav__item--d1.is-last .r-sidenav__tree-v { bottom: 50%; }
/* Tree connector – horizontal arm */
.r-sidenav__tree-h {
  position: absolute;
  left: 14px; top: 50%;
  width: 8px; height: 1px;
  background: var(--line-2);
  pointer-events: none;
}
/* Sub-label under item label */
.r-sidenav__item-sub {
  display: block;
  font-size: 9.5px; color: var(--ink-4);
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
/* Item label + sub stacked */
.r-sidenav__item--d1 .r-sidenav__item-grow {
  display: flex; flex-direction: column;
}
.r-sidenav__item-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.35;
}
.r-sidenav__item-label.is-strike { text-decoration: line-through; }
/* Muted (paused) items */
.r-sidenav__item.is-muted { color: var(--ink-4); }
.r-sidenav__item.is-muted .r-sidenav__item-sub { color: var(--ink-4); }
/* Accent icon (pin inside listing items) */
.r-sidenav__item-icon--accent { color: var(--ink-4); }
.r-sidenav__item.is-active .r-sidenav__item-icon--accent { color: var(--terracotta); }
.r-sidenav__item--d1:not(.is-muted):hover { color: var(--ink); }

/* Row wrapper – holds a nav link + secondary action (e.g. "+") on one line */
.r-sidenav__row {
  display: flex; align-items: center; gap: 2px;
  border-radius: 8px;
}
.r-sidenav__row .r-sidenav__item--row { flex: 1; min-width: 0; }
.r-sidenav__row .r-sidenav__add { margin-right: 6px; }

/* Add button inside item */
.r-sidenav__add {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; color: var(--ink-4); text-decoration: none;
  transition: background .1s, color .1s; flex: 0 0 auto;
}
.r-sidenav__add:hover { background: var(--bg-3); color: var(--ink); }

/* Footer */
.r-sidenav__footer {
  margin-top: auto; padding-top: 16px; margin-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-4);
}

/* Flash inside biz layout */
.r-biz__flash { margin-bottom: 18px; }

/* ---- listing card (horizontal, same on desktop + mobile) ---- */
.r-listing-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  align-items: flex-start;
  transition: all .14s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.r-listing-card:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-2); }

/* ─── Locations page ─────────────────────────────────────────────────────── */

.r-loc-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.r-loc-head__title {
  font-size: 40px; letter-spacing: -0.04em; margin: 10px 0 6px;
}
.r-loc-head__lede {
  color: var(--ink-3); margin: 0; font-size: 14.5px; max-width: 560px; line-height: 1.55;
}
.r-loc-head__actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* Type chooser cards */
.r-loc-types {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 36px;
}
.r-loc-type {
  padding: 22px;
  display: flex; gap: 16px; align-items: flex-start;
  cursor: pointer; text-decoration: none; color: inherit;
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.r-loc-type:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.r-loc-type__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.r-loc-type__icon--fixed { background: var(--terracotta-faint); color: var(--terracotta); }
.r-loc-type__icon--mobile { background: var(--bg-2); color: var(--ink-2); }
.r-loc-type__body { flex: 1; min-width: 0; }
.r-loc-type__title { font-size: 15px; font-weight: 500; margin-bottom: 2px; color: var(--ink); }
.r-loc-type__desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.r-loc-type__desc strong { color: var(--ink); font-weight: 500; }
.r-loc-type__arrow { color: var(--ink-4); flex: 0 0 auto; margin-top: 6px; }

/* Existing-locations list header */
.r-loc-listhead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.r-loc-listhead__title { margin: 0; font-size: 16px; font-weight: 500; }
.r-loc-listhead__filters { display: flex; gap: 6px; }

/* Rows */
.r-loc-rows { display: flex; flex-direction: column; gap: 10px; }
.r-loc-row {
  padding: 18px;
  display: flex; align-items: center; gap: 16px;
}
.r-loc-row.is-paused { opacity: 0.7; }
.r-loc-row__icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.r-loc-row__icon--fixed { background: var(--terracotta-faint); color: var(--terracotta); }
.r-loc-row__icon--mobile { background: var(--bg-2); color: var(--ink-2); }
.r-loc-row__body { flex: 1; min-width: 0; }
.r-loc-row__titleline {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  flex-wrap: wrap;
}
.r-loc-row__name { font-size: 14px; font-weight: 500; color: var(--ink); }
.r-loc-row__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--ink-3);
  flex-wrap: wrap;
}
.r-loc-row__county { display: inline-flex; align-items: center; gap: 4px; }
.r-loc-row__dot { color: var(--ink-4); }
.r-loc-row__city { font-size: 11px; color: var(--ink-2); }
.r-loc-row__side { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.r-loc-row__counts { text-align: right; }
.r-loc-row__count { font-size: 12.5px; color: var(--ink-2); }
.r-loc-row__count strong { color: var(--ink); font-weight: 500; }
.r-loc-row__sub { font-size: 10.5px; color: var(--ink-3); }
.r-loc-row__more {
  background: transparent; border: 0; color: var(--ink-4);
  cursor: pointer; padding: 6px; font-size: 14px;
}
.r-loc-row__more:hover { color: var(--ink); }

/* Tag color variants used on the locations page */
.r-tag-fixed  { background: var(--terracotta-faint); color: var(--terracotta-2); }
.r-tag-mobile { background: var(--bg-2); color: var(--ink-3); }
.r-tag-paused { background: var(--bg-3); color: var(--ink-3); }

/* Dashed "Add another" button */
.r-loc-addmore {
  margin-top: 18px;
  width: 100%; height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed var(--line-2); background: transparent;
  border-radius: 10px;
  color: var(--ink-3); font-size: 13.5px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.r-loc-addmore:hover { border-color: var(--ink-4); color: var(--ink); background: var(--bg-2); }

@media (max-width: 880px) {
  .r-loc-head { flex-direction: column; align-items: stretch; }
  .r-loc-types { grid-template-columns: 1fr; }
  .r-loc-row { flex-wrap: wrap; }
  .r-loc-row__side { width: 100%; justify-content: space-between; }
}
