:root {
  --bg: #f7f3ec;
  --bg-soft: #f5f1e8;
  --card: #ffffff;
  --card-warm: #faf7f0;
  --charcoal: #171a1d;
  --charcoal-2: #111418;
  --text: #252525;
  --muted: #6f6a61;
  --muted-2: #8b867c;
  --gold: #c9a24d;
  --gold-soft: #f3e6c3;
  --gold-border: #e7d7ad;
  --border: #e5ded2;
  --success: #3fa66b;
  --warning: #d99a2b;
  --error: #c95c54;
  --info: #5f7285;
  --shadow: 0 10px 28px rgba(42, 36, 27, 0.08);
  font-family: "Inter", "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% -18%, rgba(201, 162, 77, 0.14), transparent 28rem),
    #ebe4d8;
  color: var(--text);
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 390px);
  min-height: 100vh;
  max-height: 920px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 24px 70px rgba(39, 31, 20, 0.22);
}

.screen {
  display: none;
  height: calc(100vh - 76px);
  max-height: 844px;
  overflow-y: auto;
  padding-bottom: 20px;
  background: var(--bg);
}

.screen.is-active {
  display: block;
}

.brand-header {
  min-height: 76px;
  padding: 16px 18px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 0;
  box-shadow: none;
}

.brand-name {
  color: var(--charcoal);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--gold);
}

.business-mini {
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
}

.business-mini b,
.business-mini span {
  display: block;
}

.business-mini b {
  color: var(--charcoal);
  font-weight: 700;
}

.business-mini span {
  color: var(--muted);
  margin-top: 2px;
}

.hero {
  position: relative;
  padding: 18px 20px 14px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 243, 236, 0)),
    var(--bg);
}

.hero > * {
  position: relative;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin-top: 6px;
  color: var(--charcoal);
  font-size: 24px;
  line-height: 1.12;
  font-weight: 750;
}

.date {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.subtle {
  max-width: 270px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.content-panel {
  padding: 0 16px 96px;
  background: var(--bg);
}

.content-panel.full {
  min-height: calc(100vh - 76px);
  padding-top: 18px;
}

.daily-summary-card {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.summary-top {
  margin-bottom: 10px;
}

.summary-top h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.day-list {
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
}

.day-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.task-emoji {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--card-warm);
  font-size: 12px;
}

.day-list b {
  color: var(--charcoal);
  font-weight: 750;
}

.day-list .priority {
  align-items: flex-start;
  margin-top: 1px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: #5d471a;
  font-weight: 700;
}

.day-list .priority .task-emoji {
  background: rgba(255, 255, 255, 0.56);
}

.audio-card {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 14px;
  color: var(--charcoal);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--charcoal);
}

.audio-card:hover {
  background: var(--card-warm);
}

.audio-icon,
.mic-button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--charcoal-2);
  font-size: 13px;
  font-weight: 800;
}

.audio-card b {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.audio-card small {
  display: block;
  color: var(--muted);
  margin-top: 1px;
  font-size: 11px;
  font-weight: 500;
}

.wave {
  display: none;
  gap: 3px;
  align-items: center;
  margin-left: auto;
}

.audio-card.is-playing .wave {
  display: flex;
}

.wave i {
  width: 3px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
  opacity: 0.65;
}

.audio-card.is-playing .wave i {
  animation: wave 0.7s ease-in-out infinite alternate;
}

.audio-card.is-playing .wave i:nth-child(2) { animation-delay: 0.08s; }
.audio-card.is-playing .wave i:nth-child(3) { animation-delay: 0.16s; }
.audio-card.is-playing .wave i:nth-child(4) { animation-delay: 0.24s; }

@keyframes wave {
  from { height: 9px; opacity: 0.45; }
  to { height: 22px; opacity: 1; }
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.quick-card {
  min-height: 126px;
  padding: 13px 10px;
  border-radius: 18px;
  text-align: center;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(42, 36, 27, 0.08);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.quick-card::before {
  content: none;
}

.quick-card:hover,
.lead-card:hover,
.contact-row:hover,
.message-row:hover,
.appointment-card:hover,
.tool-list button:hover {
  background: var(--card-warm);
}

.quick-card:active,
.prospect-category:active {
  transform: scale(0.98);
}

.quick-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  display: grid !important;
  place-items: center;
  border-radius: 15px;
  font-size: 24px !important;
  line-height: 1;
}

.quick-card.status-success {
  border-color: rgba(63, 166, 107, 0.42);
  border-bottom: 4px solid var(--success);
}

.quick-card.status-success .quick-icon {
  background: rgba(63, 166, 107, 0.14);
}

.quick-card.status-warning {
  border-color: rgba(217, 154, 43, 0.48);
  border-bottom: 4px solid var(--warning);
}

.quick-card.status-warning .quick-icon {
  background: rgba(217, 154, 43, 0.16);
}

.quick-card.status-info {
  border-color: rgba(95, 114, 133, 0.4);
  border-bottom: 4px solid var(--info);
}

.quick-card.status-info .quick-icon {
  background: rgba(95, 114, 133, 0.14);
}

.quick-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.quick-card b {
  display: block;
  margin-top: 6px;
  color: var(--charcoal);
  font-size: 30px;
  line-height: 1;
  font-weight: 750;
}

.quick-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
}

.section-heading,
.simple-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  margin: 0 0 12px;
}

.section-heading h2,
.simple-header h1 {
  color: var(--charcoal);
  font-size: 20px;
  line-height: 1.18;
  font-weight: 750;
}

.section-heading span,
.pill {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.temp-tabs,
.segmented {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.prospect-category-grid {
  display: grid;
  gap: 10px;
  padding: 0;
  margin-bottom: 28px;
}

.prospect-category {
  width: 100%;
  min-height: 210px;
  padding: 20px;
  border-radius: 22px;
  text-align: left;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-top: 6px solid var(--success);
  box-shadow: 0 14px 34px rgba(42, 36, 27, 0.08);
  display: block;
  position: relative;
  transition: transform 140ms ease, background 140ms ease;
}

.prospect-category.important {
  border-color: rgba(201, 92, 84, 0.36);
  border-top-color: var(--error);
}

.category-icon {
  display: block;
  width: auto;
  height: auto;
  background: transparent !important;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 18px;
}

.category-arrow {
  position: absolute;
  top: 20px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--card-warm);
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.prospect-category:nth-child(1) .category-icon {
  background: rgba(63, 166, 107, 0.14);
}

.prospect-category:nth-child(2) {
  border-color: rgba(217, 154, 43, 0.38);
  border-top-color: var(--warning);
}

.prospect-category:nth-child(2) .category-icon {
  background: rgba(217, 154, 43, 0.16);
}

.prospect-category:nth-child(3) {
  border-color: rgba(95, 114, 133, 0.36);
  border-top-color: var(--info);
}

.prospect-category:nth-child(3) .category-icon {
  background: rgba(95, 114, 133, 0.14);
}

.category-copy {
  display: block;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.category-copy b {
  display: block;
  color: var(--error);
  font-size: 19px;
  line-height: 1.18;
  font-weight: 800;
}

.prospect-category:nth-child(2) .category-copy b {
  color: var(--warning);
}

.prospect-category:nth-child(3) .category-copy b {
  color: var(--info);
}

.category-copy small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.category-stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.category-stats span {
  display: block;
}

.category-stats strong {
  display: block;
  color: var(--charcoal);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.category-stats span:last-child strong {
  color: var(--success);
  font-size: 20px;
  text-align: right;
}

.category-stats small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.category-stats span:last-child small {
  text-align: right;
}

.prospect-category:hover {
  background: var(--card-warm);
}

.temp-tab,
.segmented button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 650;
  font-size: 13px;
}

.temp-tab.is-active,
.segmented .is-active {
  background: var(--gold-soft);
  color: #684f17;
  border-color: var(--gold-border);
}

.lead-list,
.contact-list,
.inbox-list,
.appointment-list,
.tool-list {
  display: grid;
  gap: 9px;
}

.lead-card,
.contact-row,
.message-row,
.appointment-card,
.appointment-row,
.tool-list button {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(42, 36, 27, 0.05);
}

.appointment-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  border-left: 5px solid var(--gold);
  padding: 10px 9px;
  overflow: hidden;
}

.appointment-row .row-body {
  min-width: 0;
}

.appointment-row .row-top {
  align-items: center;
  min-width: 0;
}

.appointment-row .tag {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  padding: 5px 7px;
}

.appointment-row.confirmed {
  border-left-color: var(--success);
}

.appointment-row.warning {
  border-left-color: var(--warning);
}

.open-arrow {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--card-warm);
  color: var(--muted);
  font-weight: 800;
}

.lead-card {
  display: grid;
  gap: 8px;
}

.lead-top,
.row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.lead-card h3,
.contact-row b,
.message-row b,
.appointment-card b,
.tool-list b {
  margin: 0;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 750;
}

.lead-card p,
.message-row p,
.appointment-card p,
.income-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #765a19;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.simple-header {
  height: 78px;
  padding: 18px 16px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--charcoal-2);
  font-size: 24px;
  line-height: 1;
  font-weight: 750;
}

.voice-command,
.income-card {
  margin-bottom: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(42, 36, 27, 0.05);
}

.voice-command {
  background: var(--card);
  color: var(--text);
  border-color: var(--charcoal);
  border-left: 5px solid var(--charcoal);
}

.voice-command b {
  color: var(--charcoal);
}

.voice-command span {
  color: var(--muted);
}

.tool-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.voice-command span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.voice-command.warm {
  background: linear-gradient(135deg, var(--gold-soft), var(--card));
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.day-chip {
  min-height: 78px;
  padding: 10px 5px;
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 6px 16px rgba(42, 36, 27, 0.04);
}

.day-chip span,
.day-chip small {
  display: block;
  color: var(--muted);
}

.day-chip span {
  font-size: 10px;
  font-weight: 700;
}

.day-chip b {
  display: block;
  margin: 3px 0 1px;
  color: var(--charcoal);
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
}

.day-chip small {
  font-size: 9px;
  font-weight: 650;
}

.day-chip.is-active {
  background: var(--gold-soft);
  border-color: var(--charcoal);
  border-bottom-width: 3px;
}

.day-chip.is-active span,
.day-chip.is-active small {
  color: #765a19;
}

.day-chip.is-active b {
  color: var(--charcoal);
}

.appointment-card.featured {
  border-left: 5px solid var(--gold);
}

.appointment-time {
  color: var(--charcoal);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.status-line,
.map-actions,
.appointment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-line {
  margin-top: 2px;
}

.timeline {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.tl {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dot {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: #765a19;
  font-size: 12px;
  font-weight: 800;
}

.tl strong {
  color: var(--charcoal);
  font-size: 13px;
}

.tl p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.map-btn,
.appointment-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}

.map-btn.google {
  background: #eaf4ee;
  color: #247447;
}

.map-btn.apple,
.appointment-actions .secondary {
  background: var(--card-warm);
  color: var(--charcoal);
  border: 1px solid var(--border);
}

.appointment-actions .primary {
  background: var(--card);
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-left: 5px solid var(--charcoal);
}

.tag.confirmed {
  background: #eaf4ee;
  color: #2c7a4d;
}

.tag.warning {
  background: #faead8;
  color: #8b5112;
}

.tag.value {
  background: var(--gold-soft);
  color: #765a19;
  border-color: var(--gold-border);
}

.appointment-card {
  display: grid;
  gap: 10px;
}

.map-preview {
  position: relative;
  height: 96px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #e8ecdf, #f7efe1);
  border: 1px solid var(--border);
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0 12px 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.map-preview::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 24px;
  left: -26px;
  top: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  transform: rotate(-22deg);
  box-shadow:
    82px 30px 0 rgba(255, 255, 255, 0.42),
    30px -32px 0 rgba(201, 162, 77, 0.16);
}

.map-preview::after {
  content: "📍";
  position: absolute;
  top: 29px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  filter: drop-shadow(0 5px 8px rgba(42, 36, 27, 0.22));
}

.followup {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: #6d5218;
  font-size: 12px;
  font-weight: 700;
}

.contact-row,
.message-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-row.cerrar {
  border-left: 5px solid var(--success);
}

.contact-row.seguimiento {
  border-left: 5px solid var(--warning);
}

.contact-row.pensando {
  border-left: 5px solid var(--info);
}

.message-row.expanded {
  align-items: flex-start;
}

.ai-suggestion {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
}

.ai-suggestion b,
.ai-suggestion span {
  display: block;
}

.ai-suggestion b {
  color: #654c16;
  font-size: 12px;
  margin-bottom: 4px;
}

.ai-suggestion span {
  color: #5f512f;
  font-size: 12px;
  line-height: 1.35;
}

.reply-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 9px;
}

.reply-box input {
  min-width: 0;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 10px;
  color: var(--text);
  background: var(--card);
  font: inherit;
  font-size: 12px;
}

.reply-box button,
.important-now button {
  min-height: 38px;
  border-radius: 12px;
  padding: 0 12px;
  background: var(--charcoal);
  color: #f7f3ec;
  font-size: 12px;
  font-weight: 800;
}

.avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: #765a19;
  font-weight: 800;
}

.avatar.large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 17px;
}

.row-body {
  min-width: 0;
  flex: 1;
}

.row-body p {
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
}

.channel {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}

.income-card {
  display: block;
  background:
    linear-gradient(135deg, var(--charcoal), #252018);
  color: #f7f3ec;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.status-card {
  min-height: 122px;
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--info);
  box-shadow: 0 8px 22px rgba(42, 36, 27, 0.05);
}

.status-card.money {
  border-left-color: var(--success);
}

.status-card.warning {
  border-left-color: var(--warning);
}

.status-card span,
.premium-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.status-card strong {
  display: block;
  margin-top: 8px;
  color: var(--charcoal);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.status-card p,
.important-now p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.important-now,
.premium-box {
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--error);
  box-shadow: 0 8px 22px rgba(42, 36, 27, 0.05);
}

.important-now span {
  color: var(--error);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.important-now b,
.premium-box b {
  display: block;
  margin-top: 6px;
  color: var(--charcoal);
  font-size: 16px;
}

.important-now button {
  margin-top: 12px;
}

.premium-box {
  border-left-color: var(--gold);
  opacity: 0.82;
}

.income-card span {
  color: #cfc6b7;
  font-size: 13px;
}

.income-card strong {
  display: block;
  margin: 6px 0;
  color: #e3c372;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.income-card p {
  color: #d9d0c0;
}

.tool-list button {
  display: block;
}

.tool-list span {
  color: var(--muted);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 7px 10px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 22px rgba(42, 36, 27, 0.06);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav span {
  font-size: 18px;
  line-height: 1;
}

.bottom-nav .is-active {
  color: #765a19;
  background: var(--gold-soft);
}

.drawer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 180ms ease;
}

.drawer.is-open .drawer-backdrop {
  background: rgba(23, 26, 29, 0.34);
}

.drawer-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82vh;
  overflow-y: auto;
  padding: 10px 16px 22px;
  border-radius: 22px 22px 0 0;
  background: var(--bg);
  border: 1px solid var(--border);
  transform: translateY(102%);
  transition: transform 220ms ease;
}

.drawer.is-open .drawer-panel {
  transform: translateY(0);
}

.drawer-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #d6ccbd;
}

.back-dashboard {
  min-height: 40px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--card);
  color: var(--charcoal);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 750;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.client-profile-card {
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  box-shadow: 0 8px 22px rgba(42, 36, 27, 0.05);
}

.client-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.client-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 2px;
}

.client-profile-top h2 {
  color: var(--charcoal);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
}

.client-profile-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.client-actions,
.conversation-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.client-actions button,
.conversation-toggle {
  min-height: 42px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 750;
}

.client-actions .primary {
  background: var(--charcoal);
  color: #f7f3ec;
}

.client-actions .secondary {
  background: var(--gold-soft);
  color: #765a19;
  border: 1px solid var(--gold-border);
}

.client-actions .wait,
.client-actions .success {
  grid-column: 1 / -1;
  color: var(--charcoal);
  border: 1px solid var(--border);
}

.client-actions .wait {
  background: #f1ebe0;
}

.client-actions .success {
  background: #e9f5ee;
  color: #21613f;
  border-color: rgba(63, 166, 107, 0.28);
}

.contact-group {
  display: grid;
  gap: 10px;
}

.contact-group.waiting {
  margin-top: 8px;
}

.mini-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 750;
}

.mini-section-title span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #765a19;
}

.contact-row.waiting {
  opacity: 0.86;
  border-left: 5px solid var(--info);
}

.hold-panel {
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(42, 36, 27, 0.05);
}

.hold-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--gold-soft);
  color: #765a19;
  font-size: 22px;
  margin-bottom: 12px;
}

.hold-panel h2 {
  color: var(--charcoal);
  font-size: 24px;
}

.hold-panel p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hold-options {
  display: grid;
  gap: 8px;
}

.hold-options button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  text-align: left;
  background: #f7f3ec;
  color: var(--charcoal);
  border: 1px solid var(--border);
  font-weight: 750;
}

.profile-head h2 {
  color: var(--charcoal);
  font-size: 26px;
  font-weight: 750;
}

.profile-head p {
  color: var(--muted);
  margin: 4px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.detail-item,
.recommendation,
.conversation {
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}

.detail-item.status {
  border-color: rgba(63, 166, 107, 0.34);
  border-left: 5px solid var(--success);
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.detail-item b {
  display: block;
  margin-top: 4px;
  color: var(--charcoal);
  font-size: 13px;
}

.recommendation {
  margin-bottom: 14px;
  background: var(--gold-soft);
  color: var(--text);
  border-color: var(--gold-border);
}

.recommendation b {
  color: #654c16;
}

.recommendation p {
  margin: 8px 0 0;
  color: #5f512f;
  font-size: 13px;
  line-height: 1.42;
}

.photo-strip {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
}

.photo-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.photo-strip-head b {
  color: var(--charcoal);
  font-size: 13px;
}

.photo-strip-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.photo-thumb {
  min-height: 74px;
  padding: 9px;
  border-radius: 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(201, 162, 77, 0.14), rgba(95, 114, 133, 0.09)),
    var(--card-warm);
  border: 1px solid var(--border);
}

.photo-thumb span {
  font-size: 20px;
}

.photo-thumb b {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.photo-empty,
.empty-state {
  grid-column: 1 / -1;
  padding: 14px;
  border-radius: 14px;
  background: var(--card-warm);
  color: var(--muted);
  border: 1px dashed var(--border);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.conversation-toggle {
  width: 100%;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 12px;
  text-align: left;
  background: var(--card);
  color: var(--charcoal);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
}

.conversation-toggle b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #765a19;
}

.conversation.is-hidden {
  display: none;
}

.conversation {
  display: grid;
  gap: 8px;
}

.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.42;
}

.bubble.ai {
  background: var(--card-warm);
  color: var(--text);
  border: 1px solid var(--border);
}

.bubble.client {
  justify-self: end;
  background: var(--card);
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-left: 5px solid var(--charcoal);
}

.bubble small {
  display: block;
  margin-top: 4px;
  opacity: 0.7;
  font-size: 10px;
  font-weight: 700;
}

@media (min-width: 700px) {
  .phone-shell {
    min-height: 844px;
    border-radius: 28px;
  }
}
