/* ============================================================
   GIFT OF SITE — Dashboard & client pages (receipt / preview)
   Same monochrome language as the site, app-shaped.
   ============================================================ */

:root {
  --bg: #f4f4f2;
  --bg-panel: #ecece9;
  --card: #ffffff;
  --ink: #141413;
  --ink-soft: #2b2b29;
  --muted: #71706c;
  --line: #e2e1dd;
  --surface: #ebeae6;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 3px rgba(20, 20, 19, 0.06), 0 4px 20px -6px rgba(20, 20, 19, 0.12);
}

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

[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

button { font-family: var(--font-body); cursor: pointer; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.mark-box {
  width: 24px; height: 24px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-block;
}

.mark-box-lg { width: 44px; height: 44px; border-radius: 9px; }

.brand-mark { width: 122%; height: 122%; margin: -11% 0 0 -11%; max-width: none; }

/* ============ BUTTONS ============ */

.dash-btn {
  display: inline-block;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.dash-btn:hover { background: var(--ink); color: var(--bg); }

.dash-btn-primary { background: var(--ink); color: var(--bg); }
.dash-btn-primary:hover { background: var(--ink-soft); }

.dash-btn:disabled { opacity: 0.5; pointer-events: none; }

.dash-btn-sm { padding: 6px 14px; font-size: 0.82rem; }

.dash-btn-danger { border-color: #b03a3a; color: #b03a3a; }
.dash-btn-danger:hover { background: #b03a3a; color: #fff; }

/* ============ AUTH SCREEN ============ */

.auth-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 44px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.auth-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.auth-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

.auth-error { color: #b03a3a; font-size: 0.85rem; margin-top: 10px; }

/* ============ APP SHELL ============ */

.dash-app {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100svh;
}

.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.dash-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}

.dash-nav { display: flex; flex-direction: column; gap: 4px; }

.dash-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.dash-nav-link:hover { background: var(--bg); color: var(--ink); }

.dash-nav-link.is-active { background: var(--ink); color: var(--bg); }

.nav-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 8px;
}

.dash-nav-link.is-active .nav-count { background: var(--bg); }

.dash-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dash-foot-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  text-align: left;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dash-foot-link:hover { color: var(--ink); background: var(--bg); }

/* ============ MAIN ============ */

.dash-main { padding: clamp(24px, 4vw, 48px); }

.dash-view { max-width: 880px; margin: 0 auto; width: 100%; }

.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.view-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

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

.filter-chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s ease;
}

.filter-chip:hover { border-color: var(--ink); color: var(--ink); }

.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ============ CARDS & LISTS ============ */

.dash-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.card-foot { display: flex; align-items: center; gap: 14px; margin-top: 6px; }

.save-note { font-size: 0.85rem; color: var(--muted); }

.dash-list { display: flex; flex-direction: column; gap: 12px; }

.dash-empty { color: var(--muted); font-size: 0.92rem; padding: 18px 4px; }

.lead-card, .item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}

.lead-top { gap: 14px; }

.lead-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  cursor: pointer;
}

.lead-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }

.lead-meta { color: var(--muted); font-size: 0.85rem; }

.status-chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.status-chip.s-new, .status-chip.s-unpaid, .status-chip.s-awaiting { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.status-chip.s-pending, .status-chip.s-changes { background: var(--surface); color: var(--ink); border-color: var(--ink); }

.lead-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease), margin-top 0.4s var(--ease);
  margin-top: 0;
}

.lead-body-in {
  overflow: hidden;
  min-height: 0;
}

.lead-card.open .lead-body {
  grid-template-rows: 1fr;
  margin-top: 14px;
}

.lead-card.open .lead-body-in {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lead-row { display: flex; gap: 10px; font-size: 0.9rem; margin-bottom: 6px; flex-wrap: wrap; }

.lead-row b { font-weight: 600; min-width: 84px; }

.lead-message {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  margin: 10px 0 14px;
  white-space: pre-wrap;
}

.lead-actions, .item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* content editor */

.dash-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }

.dash-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.dash-label { font-size: 0.84rem; font-weight: 600; }

.dash-input {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #d9d8d3;
  border-radius: 10px;
  padding: 10px 13px;
  width: 100%;
  transition: border-color 0.2s ease;
}

.dash-input:focus { outline: none; border-color: #9a9994; }

.dash-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.dash-hint { font-size: 0.8rem; color: var(--muted); }

.photo-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }

.photo-preview {
  width: 130px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.photo-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* copy-link row */
.link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 8px 8px 12px;
  margin-top: 10px;
}

.link-row code {
  flex: 1;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-feedback {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.88rem;
  margin-top: 10px;
  white-space: pre-wrap;
}

/* ============ ANIMATIONS ============ */

.view-anim { animation: viewIn 0.35s var(--ease); }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
}

.anim-in {
  animation: viewIn 0.4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

/* ============ LEADS ============ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.leads-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.lead-search { max-width: 280px; }

.lead-card { transition: box-shadow 0.25s ease, border-color 0.25s ease; }

.lead-card:hover { border-color: #cfceca; box-shadow: var(--shadow-sm); }

.lead-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-top { align-items: center; }

.lead-who { display: flex; flex-direction: column; min-width: 0; }

.lead-who .lead-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.lead-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.lead-caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  margin: -4px 4px 0 0;
}

.lead-card.open .lead-caret { transform: rotate(-135deg); margin-top: 4px; }

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin-bottom: 4px;
}

.lead-row span { color: var(--muted); }

/* ============ SITE EDITOR ============ */

.page-tabs { margin-bottom: 18px; }

.editor-hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.switch input { position: absolute; opacity: 0; }

.switch-track {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.25s var(--ease);
}

.switch input:checked + .switch-track { background: var(--ink); }

.switch input:checked + .switch-track::after { transform: translateX(16px); }

.switch-label { font-size: 0.8rem; color: var(--muted); min-width: 52px; }

.social-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.faq-editor-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--bg);
}

.faq-editor-row .dash-btn { align-self: flex-end; }

.projects-editor { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.project-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.project-shot {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}

.project-info { display: flex; flex-direction: column; min-width: 0; }

.project-info .lead-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row .dash-btn { margin-left: auto; flex-shrink: 0; }

.project-row-edit { flex-direction: column; align-items: stretch; gap: 8px; overflow: hidden; }

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

.project-row-top .dash-btn { flex-shrink: 0; }

.project-row-top .project-link { margin-right: auto; }

.pshot { position: relative; display: inline-flex; flex-shrink: 0; }

.pshot .project-shot { opacity: 0.15; transition: opacity 0.4s ease; }

.pshot .project-shot.shot-done { opacity: 1; }

.pshot .project-shot.shot-done + .shot-spinner-sm,
.pshot .shot-spinner-sm { position: absolute; top: 50%; left: 50%; margin: -8px 0 0 -8px; }

.pshot:has(.shot-done) .shot-spinner-sm { display: none; }

.shot-spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: dashSpin 0.9s linear infinite;
}

@keyframes dashSpin { to { transform: rotate(360deg); } }

/* ============ TOASTS ============ */

#gosToasts {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.gos-toast {
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -12px rgba(20, 20, 19, 0.45);
  max-width: min(90vw, 480px);
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1.3, 0.36, 1);
}

.gos-toast.show { opacity: 1; transform: translateY(0) scale(1); }

.gos-toast-error { background: #8c2b2b; }

/* ============ CONFIRM DIALOG ============ */

.gos-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 20, 19, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gos-modal-overlay.show { opacity: 1; }

.gos-modal {
  background: var(--card);
  border-radius: 16px;
  padding: 26px 26px 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 30px 70px -20px rgba(20, 20, 19, 0.5);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1.3, 0.36, 1);
}

.gos-modal-overlay.show .gos-modal { transform: none; }

.gos-modal-msg { font-size: 0.95rem; line-height: 1.55; margin-bottom: 22px; }

.gos-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.project-add {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 8px;
  align-items: center;
}

.publish-bar.bar-in { animation: barIn 0.45s cubic-bezier(0.22, 1.4, 0.36, 1); }

.publish-bar.bar-out {
  animation: barOut 0.3s ease forwards;
}

.publish-bar.bar-success { animation: barPulse 0.5s ease; }

.publish-bar.bar-success .publish-note::before {
  content: "✓ ";
}

@keyframes barIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes barOut {
  to { opacity: 0; transform: translateY(20px); }
}

@keyframes barPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

.publish-bar {
  position: sticky;
  bottom: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
  padding: 12px 12px 12px 20px;
  margin-top: 18px;
  box-shadow: 0 12px 32px -12px rgba(20, 20, 19, 0.4);
  animation: viewIn 0.3s var(--ease);
}

.publish-note { font-size: 0.88rem; }

.publish-bar .dash-btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.publish-bar .dash-btn-primary:hover { background: #fff; }

/* ============ VISUAL EDITOR ============ */

.dash-view-wide {
  max-width: none;
  display: flex;
  flex-direction: column;
  height: calc(100svh - clamp(48px, 8vw, 96px));
}

.dash-view-wide .view-head,
.dash-view-wide .page-tabs { flex-shrink: 0; }

.editor-tip { font-size: 0.85rem; color: var(--muted); }

.editor-stage {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.editor-frame {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.ef-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.ef-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }

.ef-url {
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 16px;
}

.ef-body { position: relative; flex: 1; min-height: 0; }

#siteFrame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.frame-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9rem;
  z-index: 2;
}

/* slide-in edit panel */
.edit-panel {
  width: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: width 0.35s var(--ease), opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.edit-panel.open { width: 320px; opacity: 1; }

.edit-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  min-width: 280px;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.panel-scope { font-size: 0.78rem; color: var(--muted); }

.panel-close {
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.panel-close:hover { color: var(--ink); background: var(--bg); }

.edit-panel-body {
  flex: 1;
  min-height: 0;
  padding: 16px 18px;
  overflow-y: auto;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo-shot { object-fit: contain; background: #fff; padding: 4px; }

.logo-shot-text {
  width: 64px;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-add { grid-template-columns: 1fr !important; }

.project-link { text-decoration: none; }
.project-link:hover { color: var(--ink); }

.edit-panel-body .social-field { margin-bottom: 8px; }

.edit-panel-body .project-add { grid-template-columns: 1fr; }

.edit-panel-body .project-shot { width: 64px; height: 44px; }

@media (max-width: 980px) {
  .editor-stage { flex-direction: column; }

  .edit-panel { width: 100%; }

  .edit-panel.open { width: 100%; }

  .dash-view-wide { height: auto; }

  .ef-body { min-height: 60vh; }
}

/* ============ CLIENT PAGES (receipt / preview) ============ */

.client-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 6vh, 64px) 20px 48px;
}

.client-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.client-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

.client-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 5vw, 40px);
  text-align: center;
}

.client-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.client-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.client-desc { color: var(--muted); font-size: 0.95rem; }

.client-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin: 22px 0;
}

.client-divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.client-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.client-note { font-size: 0.82rem; color: var(--muted); margin-top: 16px; }

.client-status {
  display: inline-block;
  margin: 14px 0 4px;
}

.client-textarea {
  font-family: var(--font-body);
  font-size: 16px;
  width: 100%;
  min-height: 110px;
  background: var(--bg);
  border: 1px solid #d9d8d3;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  resize: vertical;
}

.client-textarea:focus { outline: none; border-color: #9a9994; }

.client-foot { margin-top: 28px; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* ============ RESPONSIVE ============ */

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

  .dash-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .dash-brand { border: 0; margin: 0; padding: 0 8px 0 0; }
  .dash-brand-name { display: none; }

  .dash-nav { flex-direction: row; }

  .dash-nav-link { white-space: nowrap; padding: 8px 12px; }

  .dash-sidebar-foot {
    margin: 0 0 0 auto;
    flex-direction: row;
    border: 0;
    padding: 0;
  }

  .dash-foot-link:first-child { display: none; }

  .dash-field-row { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .lead-right { gap: 8px; }
  .lead-plan, .lead-when { display: none; }

  .project-add { grid-template-columns: 1fr; }

  .lead-search { max-width: none; width: 100%; }
}
