/* ============================================================
   spooof — owner dashboard
   Locked palette:
   - bg:                #FAF8F4  (warm off-white)
   - sidebar bg:        #F1ECE2  (cream)
   - text:              #1F1D1A  (near-black)
   - text muted:        #6B6358
   - text quiet:        #8C8678
   - border:            #E6E2D9
   - traffic-light (logo, saturated):
       red             #E24B4A
       amber           #EF9F27
       green           #3B6D11
   - signal palette (desaturated, dashboard use):
       healthy         #5A7A2E  (sage-olive)
       attention       #BA7517  (ochre)
       attention bg    #F5E9D4
       attention edge  #D9B97A
       attention text  #5C3D0A
       alarm           #9B5454  (muted brick — reserved, not used yet)
   ============================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: #FAF8F4;
  color: #1F1D1A;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

/* ---------------- APP SHELL ---------------- */

.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* ---------------- SIDEBAR ---------------- */

.sidebar {
  background: #F1ECE2;
  border-right: 0.5px solid #E6E2D9;
  padding: 22px 0;
  display: flex;
  flex-direction: column;
}

.logo {
  padding: 0 22px 28px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #1F1D1A;
  user-select: none;
}

.logo-dots {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 100px;
  display: inline-block;
}

.logo-dot.r { background: #E24B4A; }
.logo-dot.a { background: #EF9F27; }
.logo-dot.g { background: #3B6D11; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  color: #5C5852;
  text-align: left;
  width: 100%;
  transition: background 80ms ease, color 80ms ease;
}

.nav-item:hover {
  background: #E8E1D3;
  color: #1F1D1A;
}

.nav-item.active {
  background: #E8E1D3;
  color: #1F1D1A;
  font-weight: 500;
}

.badge {
  margin-left: auto;
  background: #BA7517;
  color: #FFF8EE;
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px 22px;
  border-top: 0.5px solid #E6E2D9;
  font-size: 12px;
  color: #8C8678;
}

.sidebar-foot a {
  color: #8C8678;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.sidebar-foot a:hover {
  color: #6B6358;
}

.sidebar-foot .email {
  margin-top: 8px;
}

/* ---------------- MAIN ---------------- */

.main {
  padding: 64px 72px;
  max-width: 760px;
}

.greet {
  font-size: 14px;
  color: #8C8678;
  margin-bottom: 8px;
}

.practice-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 48px;
  color: #1F1D1A;
}

/* ---------------- BANNER ---------------- */

.banner {
  background: #F5E9D4;
  border: 0.5px solid #D9B97A;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner-text {
  font-size: 14.5px;
  color: #5C3D0A;
}

.banner-text strong {
  font-weight: 600;
}

.banner-action {
  font-size: 13px;
  color: #5C3D0A;
  text-decoration: none;
  border: 0.5px solid #BA7517;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  font-weight: 500;
  transition: background 80ms ease;
}

.banner-action:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------------- LINES ---------------- */

.lines {
  display: flex;
  flex-direction: column;
}

.line {
  padding: 24px 0;
  border-bottom: 0.5px solid #E6E2D9;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.line:first-of-type {
  border-top: 0.5px solid #E6E2D9;
}

.line-main {
  font-size: 18px;
  font-weight: 400;
  color: #1F1D1A;
  letter-spacing: -0.005em;
  line-height: 1.5;
}

.line-main strong {
  font-weight: 600;
}

.delta {
  font-size: 14px;
  margin-left: 8px;
  font-weight: 400;
  color: #8C8678; /* default = grey (flat / down) */
}

.delta[data-tone="up"] {
  color: #5A7A2E; /* green */
}

.line-action {
  font-size: 13px;
  color: #6B6358;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 0.5px solid #C7C0B0;
  padding-bottom: 1px;
  transition: color 80ms ease, border-color 80ms ease;
}

.line-action:hover {
  color: #1F1D1A;
  border-color: #1F1D1A;
}

/* ---------------- CAUGHT UP ---------------- */

.caught-up {
  padding: 40px 0 24px;
}

.caught-up-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: #E4ECD1;
  color: #3B6D11;
  margin-bottom: 16px;
}

.caught-up-tick svg {
  width: 20px;
  height: 20px;
}

.caught-up-headline {
  font-size: 17px;
  color: #1F1D1A;
  font-weight: 600;
  margin-bottom: 6px;
}

.caught-up-sub {
  font-size: 14px;
  color: #6B6358;
}

.caught-up-stat {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 0.5px solid #E6E2D9;
  font-size: 14px;
  color: #6B6358;
}

.caught-up-stat strong {
  color: #1F1D1A;
  font-weight: 600;
}

/* ---------------- FOOTER LINK ---------------- */

.foot {
  margin-top: 56px;
  font-size: 12.5px;
  color: #8C8678;
  line-height: 1.6;
}

.foot a {
  color: #6B6358;
  text-decoration: underline;
  text-decoration-color: #D5CFC2;
  text-underline-offset: 3px;
}

.foot a:hover {
  color: #1F1D1A;
}

/* ---------------- UTILITIES ---------------- */

.hidden {
  display: none;
}

/* ---------------- DEV STATE SWITCHER ---------------- */
/* Remove this whole block once states are wired to real data */

.dev-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(31, 29, 26, 0.92);
  color: #FAF8F4;
  padding: 8px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dev-label {
  color: #8C8678;
  padding: 0 6px;
  font-weight: 500;
}

.dev-btn {
  background: transparent;
  border: 0;
  color: #C7C0B0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 80ms ease, color 80ms ease;
}

.dev-btn:hover {
  color: #FAF8F4;
}

.dev-btn.active {
  background: #FAF8F4;
  color: #1F1D1A;
}

/* ---------------- REVIEWS PAGE ---------------- */

.main-wide {
  max-width: 900px;
}

.page-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: #1F1D1A;
}

.page-sub {
  font-size: 14px;
  color: #8C8678;
  margin: 0 0 32px;
}

/* Summary strip — 4 small key numbers */

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #E6E2D9;
  border: 0.5px solid #E6E2D9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}

.summary-item {
  background: #FAF8F4;
  padding: 16px 18px;
}

.summary-label {
  font-size: 11.5px;
  color: #8C8678;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.summary-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1F1D1A;
}

.summary-stars {
  color: #BA7517;
  font-size: 16px;
  margin-left: 2px;
}

.summary-delta {
  color: #5A7A2E;
  font-size: 13px;
  font-weight: 400;
  margin-left: 4px;
}

/* Filter bar */

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 0.5px solid #E6E2D9;
  margin-bottom: 4px;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-select {
  font-family: inherit;
  font-size: 12.5px;
  color: #1F1D1A;
  background: #FAF8F4;
  border: 0.5px solid #D5CFC2;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.filter-select:hover {
  border-color: #8C8678;
}

.filter-count {
  font-size: 12.5px;
  color: #8C8678;
}

/* Review list */

.review-list {
  display: flex;
  flex-direction: column;
}

.review-row {
  padding: 20px 0;
  border-bottom: 0.5px solid #E6E2D9;
}

.review-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 16px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.review-stars {
  color: #BA7517;
  letter-spacing: 1px;
  font-size: 13px;
}

.review-author {
  font-size: 13.5px;
  font-weight: 600;
  color: #1F1D1A;
}

.review-date {
  font-size: 12.5px;
  color: #8C8678;
}

.review-status {
  flex-shrink: 0;
}

.status-replied {
  font-size: 11.5px;
  color: #5A7A2E;
  background: #E4ECD1;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.status-unreplied {
  font-size: 13px;
  color: #6B6358;
  text-decoration: none;
  border-bottom: 0.5px solid #C7C0B0;
  padding-bottom: 1px;
}

.status-unreplied:hover {
  color: #1F1D1A;
  border-color: #1F1D1A;
}

.review-text {
  font-size: 14.5px;
  color: #1F1D1A;
  line-height: 1.55;
}

.review-empty {
  padding: 40px 0;
  text-align: center;
  font-size: 13.5px;
  color: #8C8678;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 0.5px solid #E6E2D9;
    padding: 16px 0;
  }

  .logo {
    padding: 0 20px 16px;
  }

  .nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 10px;
    gap: 4px;
  }

  .nav-item {
    flex-shrink: 0;
    padding: 8px 12px;
  }

  .sidebar-foot {
    display: none;
  }

  .main {
    padding: 32px 24px;
  }

  .practice-name {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .line-main {
    font-size: 16px;
  }

  .page-title {
    font-size: 22px;
  }

  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
