:root {
  --bg: #f4eee6;
  --surface: #fffaf5;
  --surface-solid: #fffdf9;
  --surface-2: #e8dcc4;
  --ink: #4a5354;
  --muted: #6b7475;
  --line: #d8c9b4;
  --sage: #6dacb3;
  --sage-dark: #4f848a;
  --sage-deep: #315b61;
  --clay: #c86b45;
  --clay-dark: #8d4a2d;
  --blue: #4a5354;
  --gold: #d7b58c;
  --mauve: #8f7d74;
  --danger: #b55650;
  --brand-wash: #dcecef;
  --brand-wash-strong: #cbdee2;
  --brand-wash-soft: #eef6f7;
  --clay-wash: #f2ddd4;
  --warm-wash: #f3ebde;
  --warm-wash-2: #fbf6ee;
  --gold-wash: #eadfc8;
  --slate-wash: #dce3e3;
  --ring: rgba(109, 172, 179, 0.18);
  --ring-strong: rgba(109, 172, 179, 0.28);
  --shadow: 0 14px 36px rgba(74, 83, 84, 0.12);
  --font-body:
    "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:
    "Playfair Display", Georgia, "Times New Roman", serif;
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.72), rgba(244, 238, 230, 0.97)),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid rgba(216, 201, 180, 0.82);
  background: rgba(255, 250, 245, 0.94);
  box-shadow: 0 10px 28px rgba(74, 83, 84, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--sage), var(--clay));
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 110px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.interactive-pill {
  appearance: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.interactive-pill:hover {
  border-color: rgba(109, 172, 179, 0.28);
  box-shadow: 0 8px 18px rgba(74, 83, 84, 0.08);
  transform: translateY(-1px);
}

.page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 32px) 52px;
}

.auth-wrap {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
}

.auth-visual {
  display: grid;
  align-content: end;
  min-height: 100vh;
  padding: clamp(28px, 7vw, 82px);
  background:
    linear-gradient(180deg, rgba(74, 83, 84, 0.14), rgba(74, 83, 84, 0.7)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900'%3E%3Crect width='1200' height='900' fill='%23E8DCC4'/%3E%3Crect x='95' y='95' width='1010' height='650' rx='20' fill='%23FFF9F2' opacity='.76'/%3E%3Crect x='180' y='180' width='270' height='360' rx='16' fill='%236DACB3' opacity='.84'/%3E%3Crect x='505' y='205' width='440' height='58' rx='8' fill='%23C86B45' opacity='.58'/%3E%3Crect x='505' y='305' width='360' height='58' rx='8' fill='%234A5354' opacity='.46'/%3E%3Crect x='505' y='405' width='400' height='58' rx='8' fill='%23D7B58C' opacity='.5'/%3E%3Cpath d='M170 694h850' stroke='%234A5354' stroke-width='24' opacity='.15'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.auth-visual h1 {
  max-width: 740px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.auth-visual-copy {
  max-width: 720px;
  margin-top: 26px;
}

.auth-visual-copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.96rem, 1.35vw, 1.13rem);
  line-height: 1.6;
}

.auth-visual-copy p:first-child {
  color: #fff;
  font-size: clamp(1.08rem, 1.65vw, 1.35rem);
  font-weight: 700;
}

.auth-visual-copy p:last-child {
  margin-bottom: 0;
}

.auth-panel {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 48px);
  background: var(--surface);
}

.auth-box {
  width: min(100%, 470px);
  margin: 0 auto;
}

.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 107, 69, 0.35);
  border-radius: 8px;
  color: #8b442e;
  background: rgba(200, 107, 69, 0.1);
  font-size: 0.9rem;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
}

.section-title h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.section-title h3 {
  font-size: 1.05rem;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.tab {
  min-height: 38px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.tab.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(74, 83, 84, 0.1);
}

.stack {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-section-label {
  display: grid;
  gap: 3px;
  border-left: 4px solid var(--sage);
  padding: 8px 10px;
  background: var(--brand-wash-soft);
}

.form-section-label strong {
  font-size: 0.9rem;
}

.form-section-label span {
  color: var(--muted);
  font-size: 0.78rem;
}

.photo-input-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.photo-input-group legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.photo-input-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.photo-input-option {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.photo-input-option span {
  font-weight: 700;
}

.photo-input-option small {
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .photo-input-options {
    grid-template-columns: 1fr;
  }
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--surface-solid);
  outline: none;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--ring);
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  border-radius: 8px;
  padding: 9px 14px;
  color: #fff;
  background: var(--sage-dark);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(74, 83, 84, 0.16);
}

.btn.secondary {
  color: var(--ink);
  background: var(--surface-2);
}

.btn.sage {
  background: var(--sage-dark);
}

.btn.clay {
  background: var(--clay);
}

.btn.blue {
  background: var(--blue);
}

.btn.danger {
  background: var(--danger);
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.btn.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  gap: 6px;
  border: 1px solid rgba(74, 83, 84, 0.09);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink);
  background: var(--warm-wash-2);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill.sage {
  color: var(--sage-deep);
  background: var(--brand-wash);
}

.pill.clay {
  color: var(--clay-dark);
  background: var(--clay-wash);
}

.pill.blue {
  color: var(--ink);
  background: var(--slate-wash);
}

.pill.gold {
  color: var(--clay-dark);
  background: var(--surface-2);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.difference-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.score-panel,
.summary-panel,
.work-panel,
.client-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.94);
  box-shadow: 0 16px 44px rgba(74, 83, 84, 0.14);
}

.score-panel {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.score-ring {
  display: grid;
  width: 148px;
  height: 148px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 55%, transparent 56%),
    conic-gradient(var(--sage) calc(var(--score, 0) * 1%), var(--gold-wash) 0);
}

.score-ring strong {
  font-size: 2rem;
}

.score-panel h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.score-panel p,
.summary-panel p,
.work-panel p,
.admin-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.summary-panel {
  display: grid;
  align-content: center;
  padding: 20px;
}

.next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(109, 172, 179, 0.18);
  background: var(--brand-wash-soft);
}

.next-action strong {
  display: block;
}

.kpi-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.room-kpi-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workbook-kpi-row {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
}

.overall-kpi {
  display: grid;
  justify-content: center;
}

.kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-solid), var(--warm-wash-2));
  box-shadow: 0 10px 24px rgba(74, 83, 84, 0.08);
}

.featured-kpi {
  width: min(100%, 380px);
  border-color: rgba(109, 172, 179, 0.36);
  background: var(--brand-wash-soft);
}

.kpi span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.mini-chart {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  transform: rotate(-90deg);
}

.mini-chart-bg {
  fill: none;
  stroke: var(--gold-wash);
  stroke-width: 5;
}

.mini-chart-fill {
  fill: none;
  stroke: var(--sage-dark);
  stroke-linecap: round;
  stroke-width: 5;
}

.mini-chart text {
  fill: var(--ink);
  font-size: 0.58rem;
  font-weight: 800;
  text-anchor: middle;
  transform: rotate(90deg);
  transform-origin: 21px 21px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.client-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.client-tool-section,
.client-bottom {
  margin-top: 18px;
}

.client-tool-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  margin-bottom: 14px;
  border: 1px solid rgba(109, 172, 179, 0.36);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--brand-wash), var(--brand-wash-soft));
  box-shadow: 0 12px 30px rgba(79, 132, 138, 0.16);
}

.client-tool-tabs .tab {
  min-height: 44px;
  color: var(--sage-deep);
  font-weight: 900;
}

.client-tool-tabs .tab.active {
  color: #fff;
  background: var(--sage-dark);
  box-shadow: 0 6px 14px rgba(79, 132, 138, 0.22);
}

.support-track-panel {
  border: 1px solid rgba(79, 132, 138, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, var(--brand-wash-soft), rgba(255, 250, 245, 0.96));
  box-shadow: 0 12px 30px rgba(79, 132, 138, 0.12);
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.difference-card,
.support-track-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), var(--warm-wash-2));
}

.difference-card span,
.support-track-card strong {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.difference-card p,
.support-track-card p,
.support-track-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.support-track-list {
  display: grid;
  gap: 10px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.room-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-solid), var(--warm-wash-2));
  box-shadow: 0 10px 22px rgba(74, 83, 84, 0.08);
}

.room-card.selected {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--ring);
}

.room-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.room-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.room-track-line {
  margin: 4px 0 0;
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.room-photo-gallery,
.review-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.compact-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.modal-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.photo-slot {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gold-wash);
}

.photo-slot img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.photo-slot span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(74, 83, 84, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
}

.photo-slot.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-photo-grid .photo-slot,
.review-photo-grid .photo-slot,
.modal-photo-grid .photo-slot {
  min-height: 96px;
}

.compact-photo-grid .photo-slot img,
.review-photo-grid .photo-slot img,
.modal-photo-grid .photo-slot img {
  height: 96px;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: var(--warm-wash);
}

.progress-fill {
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--clay));
}

.room-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mini-metric {
  min-height: 70px;
  border-radius: 8px;
  padding: 9px;
  background: var(--warm-wash);
}

.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.mini-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 1.12rem;
}

.work-panel,
.client-panel,
.admin-panel {
  padding: 16px;
}

.detail-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-media img,
.detail-media .empty-large {
  width: 100%;
  height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--gold-wash);
}

.detail-media .empty-large {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.recommendation-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--brand-wash-soft);
}

.consultation-box {
  background: var(--warm-wash);
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.definition-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 250, 245, 0.86);
}

.definition-item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.definition-item strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.recommendation-box h4 {
  margin: 6px 0 0;
}

.recommendation-box h4:first-child {
  margin-top: 0;
}

.photo-panel {
  background: var(--surface-2);
}

.photo-review-box {
  background: linear-gradient(180deg, rgba(109, 172, 179, 0.14), rgba(255, 250, 245, 0.96));
  border: 1px solid rgba(109, 172, 179, 0.22);
}

.photo-review-section {
  display: grid;
  gap: 8px;
}

.photo-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.photo-review-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.photo-review-media {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gold-wash);
}

.photo-review-media img,
.photo-review-media .empty-large {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--gold-wash);
}

.photo-review-media .empty-large {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.photo-review-media span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(74, 83, 84, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
}

.photo-review-copy {
  display: grid;
  gap: 10px;
}

.photo-review-card-section {
  display: grid;
  gap: 6px;
}

.photo-review-card-section span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recommendation-box ul,
.compact-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.recommendation-box li,
.compact-list li {
  margin: 4px 0;
}

.compact-card-list,
.community-list,
.client-room-status-list {
  display: grid;
  gap: 10px;
}

.compact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-solid), var(--warm-wash-2));
  box-shadow: 0 8px 18px rgba(74, 83, 84, 0.07);
}

.assistant-form,
.warranty-form,
.freedom-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.assistant-form .full,
.warranty-form .full,
.freedom-form .full {
  grid-column: 1 / -1;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
}

.checkbox-label input {
  width: auto;
  min-height: auto;
}

.assistant-list,
.warranty-list,
.freedom-list {
  display: grid;
  gap: 10px;
}

.assistant-item,
.warranty-item,
.freedom-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-solid), var(--warm-wash-2));
  box-shadow: 0 8px 18px rgba(74, 83, 84, 0.07);
}

.edit-item {
  grid-template-columns: 1fr;
}

.inline-edit-form {
  width: 100%;
  margin: 0;
}

.assistant-item p,
.warranty-item p,
.freedom-entry p {
  margin: 5px 0 0;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.summary-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-solid), var(--warm-wash-2));
  box-shadow: 0 8px 18px rgba(74, 83, 84, 0.06);
}

.summary-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-chip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.freedom-guide {
  margin-bottom: 14px;
}

.dashboard-orientation {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 18px;
  margin-bottom: 16px;
  background:
    linear-gradient(120deg, rgba(109, 172, 179, 0.12), rgba(255, 251, 246, 0.9)),
    var(--surface-solid);
}

.orientation-copy h2,
.daily-pearl-card h3 {
  margin: 6px 0 0;
  font-family: var(--font-display);
}

.orientation-copy > p {
  max-width: 58rem;
  margin: 10px 0 0;
}

.orientation-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.orientation-list li::marker {
  color: var(--sage);
}

.daily-pearl-card,
.freedom-daily-card {
  border: 1px solid rgba(109, 172, 179, 0.42);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.daily-pearl-card p,
.freedom-daily-card p {
  margin: 10px 0;
}

.metric-definition-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 201, 180, 0.72);
}

.metric-definition-grid div {
  display: grid;
  gap: 5px;
}

.metric-definition-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.freedom-daily-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  margin: 14px 0;
  background: rgba(109, 172, 179, 0.1);
}

.freedom-stage-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.freedom-stage {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--warm-wash);
}

.freedom-stage > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-size: 0.74rem;
  font-weight: 800;
}

.freedom-stage small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.release-sequence {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
}

.release-sequence summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
}

.release-sequence ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 18px 16px 36px;
}

.freedom-progress-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.inspiration-gallery {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inspiration-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
}

.inspiration-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.inspiration-card div {
  padding: 12px;
}

.inspiration-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.protected-note {
  color: var(--clay-dark);
  font-weight: 700;
}

.assistant-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.calendar-panel {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--warm-wash);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.calendar-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.calendar-toolbar h3 {
  margin: 0;
}

.calendar-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.calendar-cell {
  display: grid;
  align-content: start;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface-solid);
}

.week-grid .calendar-cell {
  min-height: 160px;
}

.calendar-cell.outside {
  opacity: 0.56;
  background: var(--warm-wash);
}

.calendar-cell.today {
  border-color: var(--sage);
  box-shadow: inset 0 0 0 2px var(--ring-strong);
}

.calendar-date {
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.calendar-events {
  display: grid;
  gap: 4px;
}

.calendar-event {
  border: 0;
  overflow: hidden;
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--sage-deep);
  background: var(--brand-wash);
  cursor: grab;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
}

.calendar-event:active {
  cursor: grabbing;
}

.calendar-event.warranty {
  color: var(--clay-dark);
  background: var(--surface-2);
}

.calendar-more {
  margin-top: 5px;
  font-size: 0.72rem;
}

.calendar-day-list {
  display: grid;
  gap: 8px;
}

.calendar-list-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-solid);
  cursor: grab;
}

.calendar-list-event strong {
  display: block;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.month-card {
  display: grid;
  gap: 6px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-solid);
}

.small-empty {
  min-height: 90px;
}

.community-post-form,
.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.community-post-form .full {
  grid-column: 1 / -1;
}

.community-post {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-solid), var(--warm-wash-2));
  box-shadow: 0 10px 24px rgba(74, 83, 84, 0.09);
}

.community-post-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.community-post-head h3 {
  margin: 0;
}

.community-photo {
  width: 100%;
  max-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.rating-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.rating-button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--clay-dark);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.author-rating {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 4px;
  border: 1px solid rgba(109, 172, 179, 0.24);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--sage-deep);
  background: var(--brand-wash-soft);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.comment-list {
  display: grid;
  gap: 6px;
}

.community-comment {
  display: grid;
  gap: 2px;
  border-left: 3px solid var(--sage);
  padding: 6px 0 6px 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(74, 83, 84, 0.42);
}

.modal-panel {
  overflow: auto;
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(74, 83, 84, 0.28);
}

.modal-form {
  margin-bottom: 0;
}

.admin-overview,
.admin-client-explorer {
  margin-bottom: 18px;
}

.admin-overview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 245, 0.94);
  box-shadow: var(--shadow);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.overview-tile {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-solid);
}

.overview-tile span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

.admin-client-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 12px;
  margin-bottom: 14px;
}

.selected-client-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: start;
}

.client-status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-solid);
}

.admin-room-metrics {
  margin-top: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.freedom-summary-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--warm-wash);
}

.admin-summary-strip {
  margin-bottom: 0;
}

.email-draft-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--warm-wash);
}

.email-draft-box textarea {
  min-height: 180px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 12px;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 0.9rem;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.access-item {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-solid);
}

.access-item.locked {
  color: var(--muted);
  background: var(--warm-wash);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.admin-bottom-panel {
  margin-top: 18px;
}

.ghl-footer-panel {
  margin-top: 18px;
}

.queue-list {
  display: grid;
  gap: 12px;
}

.queue-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-solid);
}

.queue-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.queue-head h3 {
  margin: 0;
}

.client-list {
  display: grid;
  gap: 10px;
}

.client-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-solid);
}

.client-row h3 {
  margin: 0;
  font-size: 0.98rem;
}

.log-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.field-map-list {
  display: grid;
  gap: 8px;
}

.field-map-row {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 0.84rem;
}

.service-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.muted {
  color: var(--muted);
}

.empty-state {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 245, 0.72);
}

.divider {
  height: 1px;
  margin: 14px 0;
  background: var(--line);
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(74, 83, 84, 0.94);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

#toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .dashboard-hero,
  .difference-panel,
  .content-grid,
  .admin-grid,
  .client-tools-grid,
  .selected-client-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .room-kpi-row,
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workbook-kpi-row {
    grid-template-columns: minmax(0, 380px);
  }
}

@media (max-width: 820px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 46vh;
  }

  .auth-visual h1 {
    font-size: clamp(2.7rem, 14vw, 5rem);
  }

  .auth-panel {
    min-height: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .score-panel,
  .form-grid,
  .room-grid,
  .kpi-grid,
  .access-grid,
  .year-grid,
  .overview-grid,
  .definition-grid,
  .difference-grid,
  .admin-client-controls,
  .admin-room-metrics,
  .community-post-form,
  .comment-form {
    grid-template-columns: 1fr;
  }

  .dashboard-orientation,
  .freedom-daily-card {
    grid-template-columns: 1fr;
  }

  .metric-definition-grid,
  .inspiration-grid {
    grid-template-columns: 1fr;
  }

  .freedom-stage-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-form,
  .warranty-form,
  .freedom-form,
  .assistant-item,
  .warranty-item,
  .freedom-entry,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .assistant-meta {
    justify-content: flex-start;
  }

  .calendar-toolbar {
    display: grid;
  }

  .calendar-actions {
    justify-items: stretch;
  }

  .calendar-weekdays {
    display: none;
  }

  .calendar-grid,
  .client-tool-tabs,
  .segmented-control {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page {
    padding-inline: 12px;
  }

  .photo-pair,
  .detail-media,
  .room-metrics,
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .score-panel {
    justify-items: start;
  }

  .score-ring {
    width: 126px;
    height: 126px;
  }
}

.section-kicker {
  display: inline-block;
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shell-main {
  min-width: 0;
}

.client-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: #f7f0e7;
}

.workspace-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  border-right: 1px solid rgba(216, 201, 180, 0.82);
  background: rgba(255, 251, 246, 0.96);
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(216, 201, 180, 0.82);
}

.sidebar-logo {
  width: 106px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar-section-label {
  padding: 0 8px;
  color: rgba(107, 116, 117, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-nav {
  display: grid;
  gap: 6px;
}

.workspace-link,
.bottom-workspace-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.workspace-link.active,
.bottom-workspace-link.active {
  color: var(--sage-deep);
  background: rgba(109, 172, 179, 0.14);
  box-shadow: inset 3px 0 0 var(--sage);
}

.workspace-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.92) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(109, 172, 179, 0.9), rgba(74, 83, 84, 0.88));
}

.sidebar-membership-card {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(216, 201, 180, 0.82);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 235, 222, 0.92), rgba(255, 251, 246, 0.96));
}

.sidebar-membership-card strong {
  font-size: 1rem;
}

.sidebar-membership-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.client-shell .topbar,
.admin-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 14px 24px;
}

.client-shell .topbar {
  background: rgba(255, 251, 246, 0.94);
  padding-top: 26px;
}

.client-account {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.client-account-actions {
  gap: 8px;
}

.client-membership-label {
  padding-right: 2px;
  color: var(--sage-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.client-topbar-context {
  min-width: 0;
}

.client-topbar-greeting {
  gap: 2px;
  margin: 0;
}

.client-topbar-greeting .section-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.client-topbar-greeting .client-greeting-row {
  gap: 12px;
}

.client-topbar-greeting h1 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.client-topbar-greeting p {
  font-size: 0.86rem;
}

.client-topbar-loading {
  color: var(--muted);
  font-size: 0.86rem;
}

.topbar-brand {
  min-width: 0;
}

.topbar-brand .brand-logo {
  width: 104px;
}

.avatar-badge {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-weight: 800;
}

.client-page,
.admin-page {
  width: 100%;
  margin: 0;
  padding: 24px 36px 112px;
}

.client-greeting {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.client-greeting-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.client-greeting h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
}

.client-greeting p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.transformation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
  margin-bottom: 16px;
}

.hero-score-panel,
.hero-progress-panel {
  padding: 24px 28px;
}

.hero-score-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-right: 1px solid rgba(216, 201, 180, 0.72);
}

.large-ring {
  width: 136px;
  height: 136px;
}

.score-ring.large-ring strong {
  font-size: 2.2rem;
  line-height: 1;
}

.score-ring.large-ring span {
  display: block;
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-copy h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 700;
}

.hero-copy p {
  margin-top: 10px;
  max-width: 44rem;
}

.hero-progress-head,
.room-status-row,
.room-progress-row,
.detail-section-head,
.membership-panel-head,
.membership-status,
.wizard-head-top,
.wizard-footer,
.hero-stat-row,
.admin-client-summary,
.admin-client-identity,
.admin-room-row-head,
.client-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-progress-head span,
.hero-progress-head strong {
  font-size: 0.92rem;
}

.hero-progress-track,
.hero-room-track-bar,
.insight-bar,
.client-row-progress {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(216, 201, 180, 0.48);
}

.hero-progress-track {
  height: 6px;
  margin-top: 10px;
}

.hero-progress-fill,
.hero-room-track-fill,
.insight-bar-fill {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), #7cb8be);
}

.hero-room-tracks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.hero-room-track-bar {
  height: 4px;
}

.hero-room-track span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.hero-stat-row {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 201, 180, 0.72);
}

.hero-stat {
  display: grid;
  gap: 4px;
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.kpi-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid rgba(216, 201, 180, 0.84);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 251, 246, 0.96);
  box-shadow: 0 12px 32px rgba(74, 83, 84, 0.08);
}

.showcase-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 110px;
  padding: 20px 18px;
  border-right: 1px solid rgba(216, 201, 180, 0.72);
}

.showcase-kpi:last-child {
  border-right: 0;
}

.showcase-kpi strong {
  display: block;
  font-size: 2rem;
}

.showcase-kpi span {
  display: block;
  margin-top: 6px;
  font-weight: 700;
}

.showcase-kpi p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.next-best-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 20px;
  border-left: 4px solid rgba(141, 74, 45, 0.68);
}

.next-best-panel h3 {
  margin: 6px 0 0;
  font-size: 1.45rem;
}

.next-best-panel p {
  margin: 8px 0 0;
}

.first-room-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
  padding: 26px;
  margin-bottom: 20px;
}

.first-room-copy h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.first-room-copy p {
  max-width: 58ch;
}

.first-room-plan {
  display: grid;
  gap: 12px;
}

.first-room-step {
  border: 1px solid rgba(109, 172, 179, 0.22);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(248, 252, 251, 0.9);
}

.first-room-step strong {
  display: block;
  margin-bottom: 6px;
}

.starter-kpis {
  margin-bottom: 20px;
}

.starter-kpi {
  align-items: start;
}

.starter-kpi strong {
  font-size: 1.8rem;
}

.room-browser-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.room-browser-panel {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.room-browser-head {
  margin-bottom: 14px;
}

.room-browser-head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
}

.room-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.visual-room-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 251, 246, 0.98);
  border-radius: 14px;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.visual-room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(74, 83, 84, 0.14);
}

.visual-room-card.selected {
  box-shadow: 0 0 0 2px rgba(109, 172, 179, 0.28), 0 16px 34px rgba(74, 83, 84, 0.14);
}

.room-card-media {
  position: relative;
  min-height: 188px;
  background: var(--gold-wash);
}

.room-card-media img {
  width: 100%;
  height: 188px;
  object-fit: cover;
}

.room-media-empty {
  display: grid;
  min-height: 188px;
  place-items: center;
  color: var(--muted);
}

.room-score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(74, 83, 84, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.room-photo-toggle {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(74, 83, 84, 0.72);
}

.room-photo-toggle button {
  appearance: none;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  border: 0;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.room-photo-toggle button:hover:not(:disabled) {
  color: #fff;
}

.room-photo-toggle button.active {
  color: var(--ink);
  background: #fff;
}

.room-photo-toggle button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.room-card-copy {
  display: grid;
  gap: 10px;
  padding: 16px 16px 18px;
}

.room-status-row strong {
  font-size: 1.12rem;
}

.room-status-row span,
.room-progress-row,
.room-card-copy p {
  color: var(--muted);
}

.room-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-stepper {
  display: grid;
  width: min(100%, 280px);
  grid-template-columns: 52px minmax(72px, 1fr) 52px;
  margin-top: 4px;
}

.score-stepper input {
  min-width: 0;
  min-height: 52px;
  border-radius: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  -moz-appearance: textfield;
}

.score-stepper input::-webkit-outer-spin-button,
.score-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.score-stepper-button {
  min-width: 52px;
  min-height: 52px;
  border: 1px solid var(--line);
  padding: 0;
  color: var(--ink);
  background: var(--warm-wash-2);
  cursor: pointer;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.score-stepper-button:first-child {
  border-radius: 10px 0 0 10px;
  border-right: 0;
}

.score-stepper-button:last-child {
  border-radius: 0 10px 10px 0;
  border-left: 0;
}

.score-stepper-button:hover,
.score-stepper-button:focus-visible {
  color: var(--sage-deep);
  background: var(--brand-wash);
}

.score-stepper-button:active {
  background: var(--gold-wash);
}

.score-stepper-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.room-detail-panel {
  display: grid;
  gap: 14px;
  padding: 0 0 18px;
  overflow: hidden;
}

.room-detail-hero {
  position: relative;
  background: var(--gold-wash);
}

.room-detail-hero img,
.room-detail-hero .empty-large {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 0;
}

.room-detail-toggle {
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
}

.room-detail-head,
.detail-pill-grid,
.detail-section,
.membership-panel-body,
.admin-client-focus-grid {
  padding-inline: 18px;
}

.room-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-detail-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.room-detail-head p {
  margin: 6px 0 0;
}

.room-score-summary {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.room-score-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.detail-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-pill-card,
.insight-metric {
  border: 1px solid rgba(216, 201, 180, 0.72);
  border-radius: 12px;
  padding: 14px;
  background: rgba(247, 250, 248, 0.88);
}

.detail-pill-card span,
.insight-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.detail-pill-card strong {
  display: block;
  margin-top: 6px;
  color: var(--sage-deep);
  font-size: 1rem;
}

.detail-numbered-list {
  margin: 0;
  padding-left: 18px;
}

.detail-numbered-list li {
  margin: 9px 0;
  line-height: 1.5;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.insight-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.insight-bar {
  height: 4px;
  margin-top: 10px;
}

.quote-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.quote-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #af8355;
  font-weight: 800;
}

.quote-card blockquote {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
}

.action-checklist {
  display: grid;
  gap: 8px;
}

.action-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(216, 201, 180, 0.72);
  border-radius: 10px;
  padding: 10px 12px;
}

.action-check.complete {
  color: #7a8a7d;
  background: rgba(224, 239, 231, 0.76);
}

.action-check-box {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(216, 201, 180, 0.88);
  border-radius: 6px;
}

.room-cta {
  width: 100%;
  margin-top: 10px;
}

.support-details {
  margin: 0 18px;
  border-top: 1px solid rgba(216, 201, 180, 0.72);
  padding-top: 14px;
}

.support-details summary {
  cursor: pointer;
  font-weight: 800;
}

.after-update-form {
  margin-top: 12px;
}

.workspace-section-head {
  margin-bottom: 14px;
}

.workspace-section-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.membership-panel {
  padding: 0;
  overflow: hidden;
}

.membership-panel-head {
  padding: 18px 24px;
  background: rgba(232, 220, 196, 0.54);
  border-bottom: 1px solid rgba(216, 201, 180, 0.72);
}

.membership-status {
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5d9b69;
}

.membership-panel-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 22px;
}

.membership-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.membership-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.membership-metric p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.slot-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.slot-pill {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(216, 201, 180, 0.68);
}

.slot-pill.filled {
  background: var(--sage);
}

.membership-actions {
  display: grid;
  gap: 10px;
}

.faq-panel .section-title {
  margin-bottom: 18px;
}

.faq-panel-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.faq-panel-disclosure > summary::-webkit-details-marker {
  display: none;
}

.faq-panel-disclosure > summary > span:first-child {
  display: grid;
  gap: 4px;
}

.faq-panel-disclosure > summary strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.faq-panel-disclosure > summary small {
  color: var(--muted);
  font-size: 0.84rem;
}

.faq-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.faq-panel-disclosure[open] .faq-toggle {
  color: var(--ink);
  background: var(--warm-wash);
}

.faq-panel-disclosure .faq-list {
  margin-top: 18px;
}

.faq-list {
  gap: 0;
}

.faq-item {
  border-radius: 0;
  border-bottom: 0;
}

.faq-item:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.faq-item summary {
  position: relative;
  padding: 18px 20px;
  font-weight: 700;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.bottom-workspace-nav {
  display: none;
}

.modal-panel-wide {
  width: min(1040px, 100%);
  max-height: min(90vh, 980px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.room-detail-modal-panel {
  padding: 0;
}

.room-detail-modal-panel > .section-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(216, 201, 180, 0.72);
}

.room-detail-modal-content {
  min-height: 0;
  overflow-y: auto;
}

.room-detail-modal-content .room-detail-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.intake-wizard-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  margin: 0;
  min-height: 0;
}

.wizard-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  flex: 1 1 auto;
  min-height: 0;
}

.wizard-head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(216, 201, 180, 0.72);
}

.wizard-head h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.wizard-head p {
  margin: 6px 0 0;
}

.modal-close-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(216, 201, 180, 0.88);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
}

.wizard-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.wizard-step span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(216, 201, 180, 0.46);
  font-size: 0.72rem;
  font-weight: 800;
}

.wizard-step strong {
  font-size: 0.84rem;
}

.wizard-step.active {
  color: var(--sage-deep);
}

.wizard-step.active span {
  color: #fff;
  background: var(--sage);
}

.wizard-body {
  display: grid;
  gap: 18px;
  padding: 22px 24px 18px;
  min-height: 0;
  overflow-y: auto;
}

.wizard-section {
  display: grid;
  gap: 14px;
}

.priority-choice-group {
  display: grid;
  gap: 8px;
}

.priority-label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.priority-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.priority-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.priority-choice span {
  display: grid;
  min-height: 66px;
  place-items: center;
  border: 1px solid rgba(216, 201, 180, 0.9);
  border-radius: 12px;
  background: rgba(255, 251, 246, 0.96);
  color: var(--muted);
  font-weight: 700;
}

.priority-choice input:checked + span {
  color: var(--sage-deep);
  border-color: rgba(109, 172, 179, 0.42);
  background: rgba(109, 172, 179, 0.12);
  box-shadow: inset 0 0 0 1px rgba(109, 172, 179, 0.22);
}

.wizard-score-head {
  align-items: center;
}

.score-preview-card {
  display: grid;
  gap: 4px;
  min-width: 120px;
  border: 1px solid rgba(109, 172, 179, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(109, 172, 179, 0.1);
}

.score-preview-card span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.score-preview-card strong {
  font-size: 1.65rem;
}

.wizard-footer {
  border-top: 1px solid rgba(216, 201, 180, 0.72);
  padding: 16px 24px;
}

.wizard-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wizard-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(216, 201, 180, 0.88);
}

.wizard-dots span.active {
  width: 22px;
  border-radius: 999px;
  background: var(--sage);
}

.admin-shell {
  background: #f6efe6;
}

.admin-shell .topbar {
  color: rgba(255, 255, 255, 0.92);
  border: 0;
  background: #27211e;
  box-shadow: none;
}

.admin-shell .brand h1,
.admin-shell .brand p,
.admin-shell .admin-login-meta span,
.admin-shell .admin-login-meta strong {
  color: rgba(255, 255, 255, 0.92);
}

.admin-login-meta {
  display: grid;
  gap: 2px;
  justify-items: end;
  font-size: 0.8rem;
}

.admin-page {
  padding-top: 0;
}

.admin-overview {
  border: 0;
  padding: 0;
  margin-bottom: 20px;
  box-shadow: none;
  background: transparent;
}

.overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 201, 180, 0.78);
  border-radius: 0 0 12px 12px;
  background: rgba(255, 251, 246, 0.96);
}

.overview-tile {
  min-height: 114px;
  border: 0;
  border-right: 1px solid rgba(216, 201, 180, 0.78);
  border-radius: 0;
}

.overview-tile:last-child {
  border-right: 0;
}

.overview-tile strong {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.overview-tile p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-stage {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-stage-main {
  display: grid;
  gap: 18px;
}

.admin-client-explorer {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.admin-client-focus {
  display: grid;
  gap: 16px;
}

.admin-client-summary {
  padding: 18px 22px;
  border: 1px solid rgba(216, 201, 180, 0.78);
  border-radius: 14px;
  background: rgba(255, 251, 246, 0.98);
  box-shadow: 0 14px 32px rgba(74, 83, 84, 0.08);
}

.admin-client-identity h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.admin-client-identity p {
  margin: 5px 0 0;
}

.admin-avatar,
.client-row-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-weight: 800;
}

.admin-client-summary-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-client-summary-metrics div {
  display: grid;
  gap: 2px;
}

.admin-client-summary-metrics strong {
  font-family: var(--font-display);
  font-size: 2rem;
}

.admin-client-summary-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.admin-client-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 320px;
  gap: 18px;
  padding-inline: 0;
}

.admin-room-status-panel,
.admin-notes-panel {
  padding: 18px;
}

.admin-room-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-room-row-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-room-progress {
  display: grid;
  gap: 6px;
}

.admin-room-progress span {
  color: var(--muted);
  font-size: 0.78rem;
}

.ghl-contact-card {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 201, 180, 0.72);
}

.client-row {
  gap: 12px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.client-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(74, 83, 84, 0.08);
}

.client-row.selected {
  border-color: rgba(109, 172, 179, 0.5);
  box-shadow: inset 3px 0 0 var(--sage), 0 12px 24px rgba(74, 83, 84, 0.08);
}

.client-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-row-meta {
  display: grid;
  gap: 8px;
}

.client-row-progress {
  height: 4px;
}

.client-row-foot {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-client-workspace {
  padding: 18px;
}

.admin-tail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 18px;
}

@media (max-width: 1320px) {
  .room-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-client-focus-grid,
  .admin-tail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .client-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    display: none;
  }

  .bottom-workspace-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 16;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
    border-top: 1px solid rgba(216, 201, 180, 0.82);
    background: rgba(255, 251, 246, 0.96);
    backdrop-filter: blur(14px);
  }

  .bottom-workspace-link {
    flex-direction: column;
    min-height: 52px;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    font-size: 0.72rem;
  }

  .bottom-workspace-link.active {
    box-shadow: none;
  }

  .client-page,
  .admin-page {
    padding: 20px 18px 110px;
  }

  .transformation-hero,
  .first-room-panel,
  .room-browser-layout,
  .admin-stage,
  .admin-tail-grid {
    grid-template-columns: 1fr;
  }

  .admin-client-explorer {
    position: static;
  }

  .kpi-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-kpi:nth-child(2n) {
    border-right: 0;
  }

  .room-card-grid,
  .overview-grid,
  .membership-panel-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-room-tracks,
  .priority-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .client-shell .topbar,
  .admin-shell .topbar {
    padding: 12px 16px;
  }

  .client-shell .topbar {
    padding-top: 16px;
  }

  .topbar-brand p,
  .admin-login-meta,
  .showcase-kpi p {
    display: none;
  }

  .client-topbar-greeting h1 {
    font-size: 1.25rem;
  }

  .client-topbar-greeting p {
    font-size: 0.76rem;
  }

  .topbar-brand .brand-logo {
    width: 72px;
  }

  .top-actions {
    gap: 6px;
  }

  .transformation-hero,
  .hero-score-panel,
  .kpi-showcase,
  .membership-panel-body,
  .room-card-grid,
  .detail-pill-grid,
  .insight-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .showcase-kpi {
    border-right: 0;
    border-bottom: 1px solid rgba(216, 201, 180, 0.72);
  }

  .showcase-kpi:last-child {
    border-bottom: 0;
  }

  .hero-score-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(216, 201, 180, 0.72);
  }

  .hero-room-tracks,
  .priority-choice-grid,
  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .hero-stat-row,
  .next-best-panel,
  .membership-panel-head,
  .membership-status,
  .wizard-footer,
  .admin-client-summary,
  .admin-client-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-client-summary-metrics {
    width: 100%;
    justify-content: space-between;
  }

  .room-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
