/* Draft-only desktop portal sample. Colors, type, radius and space from the MCA app theme. */
:root {
  --navy: #0a1628;
  --navy-soft: #0f1f38;
  --orange: #ee580c;
  --orange-tint: #fdeee4;
  --orange-text: #b8430a;
  --link: #1a0dab;
  --bg: #f7f6f1;
  --card: #ffffff;
  --border: #e7e4da;
  --text: #0f1713;
  --muted: #5b6660;
  --danger: #c62828;
  --danger-tint: #fdecec;
  --success: #128222;
  --success-tint: #e7f5ea;
  --primary: #0a1628;
  --on-primary: #ffffff;
  --tint: #0a1628;
  --fill: #ebe9e1;
  --fill-pressed: #f1f0ea;
  --placeholder: #9aa29d;
  --chevron: #b5bcb7;
  --tab-inactive: #8a938e;
  --highlight: #e7eeea;
  --badge-urgent-bg: #fdecec;
  --badge-urgent-text: #c62828;
  --badge-spam-bg: #ecece8;
  --badge-spam-text: #7a3b3b;
  --badge-new-bg: #e7f5ea;
  --badge-new-text: #128222;
  --badge-info-bg: #e8eef8;
  --badge-info-text: #0a1628;
  --badge-lost-bg: #ecece8;
  --badge-lost-text: #5b6660;
  --badge-wait-bg: #fdeee4;
  --badge-wait-text: #b8430a;
  --badge-booked-bg: #e7f5ea;
  --badge-booked-text: #128222;
  --note-tint: #f3d5c4;
  --track-off: #d8d4ca;
  --warning-fill: #d99012;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --sidebar: 232px;
}
@font-face {
  font-family: Ionicons;
  src: url("Ionicons.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 22px;
}
.ico {
  font-family: Ionicons, sans-serif;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  speak: never;
  display: inline-block;
  vertical-align: middle;
}
.ico.call:before { content: "\f1d8"; }
.ico.call-outline:before { content: "\f1d9"; }
.ico.calendar:before { content: "\f1cf"; }
.ico.calendar-outline:before { content: "\f1d6"; }
.ico.headset:before { content: "\f367"; }
.ico.headset-outline:before { content: "\f368"; }
.ico.sunny:before { content: "\f5ad"; }
.ico.sunny-outline:before { content: "\f5ae"; }
.ico.person-circle:before { content: "\f4a9"; }
.ico.person-circle-outline:before { content: "\f4aa"; }
.ico.search-outline:before { content: "\f563"; }
.ico.chevron-forward:before { content: "\f23b"; }
.ico.chevron-back:before { content: "\f229"; }
.ico.mic-outline:before { content: "\f45e"; }
.ico.wallet-outline:before { content: "\f626"; }
.ico.bar-chart-outline:before { content: "\f170"; }
.ico.notifications-outline:before { content: "\f47f"; }
.ico.people-outline:before { content: "\f4a3"; }
.ico.people:before { content: "\f49f"; }
.ico.document-text-outline:before { content: "\f2b4"; }
.ico.ban-outline:before { content: "\f16a"; }
.ico.chatbubble-ellipses-outline:before { content: "\f213"; }
.ico.alarm-outline:before { content: "\f10d"; }
.ico.star-outline:before { content: "\f599"; }
.ico.pricetag-outline:before { content: "\f4eb"; }
.ico.scan-outline:before { content: "\f55a"; }
.ico.timer-outline:before { content: "\f5e1"; }
.ico.card-outline:before { content: "\f1e8"; }
.ico.book-outline:before { content: "\f1a6"; }
.ico.mail-outline:before { content: "\f434"; }
.ico.globe-outline:before { content: "\f350"; }
.ico.shield-checkmark-outline:before { content: "\f579"; }
.ico.close-circle-outline:before { content: "\f24c"; }
.ico.open-outline:before { content: "\f488"; }
.ico.gift-outline:before { content: "\f338"; }
.ico.time-outline:before { content: "\f5de"; }
.ico.checkmark-circle:before { content: "\f21e"; }
.ico.checkmark-circle-outline:before { content: "\f21f"; }
.ico.location-outline:before { content: "\f3c5"; }
.ico.navigate-outline:before { content: "\f470"; }
.ico.chatbubble-outline:before { content: "\f215"; }
.ico.share-outline:before { content: "\f572"; }
.ico.person-add-outline:before { content: "\f4a7"; }
.ico.camera-outline:before { content: "\f1dc"; }
.ico.flame-outline:before { content: "\f314"; }
.ico.moon-outline:before { content: "\f461"; }
.ico.checkmark:before { content: "\f21d"; }
.ico.people-circle-outline:before { content: "\f4a1"; }

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 20px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.brand .name {
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}
.brand .sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 15px;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--tab-inactive);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  position: relative;
}
.nav a .ico { font-size: 22px; width: 24px; text-align: center; }
.nav a:hover { background: var(--fill-pressed); }
.nav a.active {
  background: var(--fill);
  color: var(--tint);
}
.nav .badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 12px;
  flex-shrink: 0;
  gap: 16px;
}
.topbar h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 34px;
}
.topbar .title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .title-row img.mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.ask-darla {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fill);
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: default;
}
.ask-darla img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.ask-darla .ico { font-size: 16px; color: var(--navy); }
.content {
  flex: 1;
  overflow: auto;
  padding: 0 24px 24px;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--muted);
  text-transform: uppercase;
  margin: 16px 0 8px;
}
.section-label:first-child { margin-top: 0; }
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.card + .card { margin-top: 10px; }
.muted { color: var(--muted); font-size: 14px; line-height: 19px; }
.body { font-size: 16px; line-height: 22px; }
.heading { font-size: 17px; font-weight: 600; }
.link { color: var(--link); }
.row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  gap: 12px;
  color: var(--link);
  text-decoration: none;
  font-size: 16px;
}
.row-link .left { display: flex; align-items: center; gap: 12px; }
.row-link .ico:first-child { font-size: 19px; }
.row-link .chev { color: var(--chevron); font-size: 16px; }
.divider { height: 1px; background: var(--border); }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  gap: 16px;
}

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}
.badge.urgent { background: var(--badge-urgent-bg); color: var(--badge-urgent-text); }
.badge.wait { background: var(--badge-wait-bg); color: var(--badge-wait-text); }
.badge.new { background: var(--badge-new-bg); color: var(--badge-new-text); }
.badge.booked, .badge.confirmed { background: var(--badge-booked-bg); color: var(--badge-booked-text); }
.badge.info, .badge.returning, .badge.quoted { background: var(--badge-info-bg); color: var(--badge-info-text); }
.badge.lost, .badge.spam { background: var(--badge-spam-bg); color: var(--badge-spam-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: default;
  background: var(--navy);
  color: #fff;
  white-space: nowrap;
}
.btn .ico { font-size: 16px; }
.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn.ghost {
  background: var(--card);
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn.success-outline {
  background: transparent;
  color: var(--success);
  border: 1.5px solid var(--success);
}
.btn.block { width: 100%; }
.btn.disabled, .btn:disabled {
  background: var(--fill);
  color: var(--muted);
}

/* segments + chips */
.segment {
  display: flex;
  background: var(--fill);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.segment button, .chip {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: default;
}
.segment button.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--fill);
  padding: 6px 12px;
  font-size: 13px;
}
.chip.active {
  background: var(--navy);
  color: #fff;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  color: var(--placeholder);
}
.search .ico { font-size: 18px; }
.search span { font-size: 16px; }

/* two-pane */
.split {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  height: 100%;
  min-height: 0;
}
.split .pane {
  overflow: auto;
  height: 100%;
  padding-bottom: 8px;
}
.split .pane-detail {
  overflow: auto;
  height: 100%;
  padding-bottom: 8px;
}

.entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}
.entry .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--badge-info-bg);
  color: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.entry .icon-wrap .ico { font-size: 20px; }
.entry .icon-wrap.mint { background: var(--success-tint); color: var(--tint); }
.entry .meta { flex: 1; min-width: 0; }
.entry .meta .kicker { font-size: 13px; color: var(--muted); font-weight: 500; }
.entry .meta .line { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .meta .sub { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .right { color: var(--muted); font-size: 13px; text-align: right; flex-shrink: 0; }
.entry .chev { color: var(--chevron); font-size: 16px; }
.pill-new {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}
.saved-value { font-size: 16px; font-weight: 700; }
.saved-paid { font-size: 13px; font-weight: 600; color: var(--success); }

/* queue / call rows */
.queue-card { padding: 0; overflow: hidden; }
.queue-item, .call-row {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.queue-item:first-child, .call-row:first-child { border-top: none; }
.queue-item.selected, .call-row.selected {
  background: var(--highlight);
}
.queue-item .who, .call-row .who {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}
.call-row .time { font-weight: 500; color: var(--muted); font-size: 14px; }
.queue-item .wait, .call-row .sum {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}
.call-row .sum {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.badge-row .dur { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.photo-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  margin-left: 4px;
}

/* call detail */
.detail-head .name { font-size: 24px; font-weight: 700; color: var(--link); line-height: 28px; }
.detail-head .phone { color: var(--link); font-size: 16px; margin-top: 2px; }
.detail-head .when { color: var(--muted); font-size: 14px; margin-top: 6px; }
.photo-grid { display: flex; gap: 8px; }
.photo-grid img {
  width: 148px;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
}
.transcript { display: flex; flex-direction: column; gap: 12px; }
.bubble-wrap { display: flex; flex-direction: column; max-width: 92%; }
.bubble-wrap.caller { align-self: flex-end; align-items: flex-end; }
.speaker { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.bubble {
  background: var(--fill);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 21px;
}
.bubble-wrap.caller .bubble {
  background: var(--navy);
  color: #fff;
}

/* schedule */
.appt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.appt-card .time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.appt-card .cust { font-size: 17px; font-weight: 700; }
.appt-card .addr { color: var(--muted); font-size: 14px; margin-top: 2px; }
.appt-card .need { color: var(--muted); font-size: 14px; margin-top: 6px; }
.notes-box {
  background: var(--orange-tint);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}
.notes-box .k { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; color: var(--orange-text); text-transform: uppercase; }
.notes-box p { font-size: 15px; margin-top: 2px; }

/* receptionist */
.recv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  padding-bottom: 16px;
}
.recv-grid > * { min-width: 0; }
.avatar-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.avatar-hero img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
  text-align: center;
}
.avatar-grid button {
  border: none;
  background: none;
  font: inherit;
  cursor: default;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.avatar-grid img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  display: block;
  margin: 0 auto 4px;
}
.avatar-grid .on img {
  border-color: var(--orange);
}
.avatar-grid .on { color: var(--text); }
.avatar-grid .on { position: relative; }
.check-dot {
  position: absolute;
  right: 8px;
  top: 38px;
  width: 16px;
  height: 16px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .day { font-weight: 600; width: 64px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.svc {
  background: var(--fill);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
}
.svc.off { color: var(--muted); text-decoration: line-through; }
.field-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.field-row:last-child { border-bottom: none; }
.field-row .lbl { font-size: 15px; font-weight: 600; flex-shrink: 0; width: 42%; }
.field-row .val { font-size: 15px; color: var(--muted); text-align: right; }
.greeting-box {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 21px;
}
.save-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding: 16px 0 8px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.save-bar .btn { min-width: 240px; }

/* account */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  padding-bottom: 16px;
}
.meter {
  height: 8px;
  background: var(--fill);
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--success);
  border-radius: 8px;
}
.switch {
  width: 48px;
  height: 30px;
  background: var(--navy);
  border-radius: 15px;
  position: relative;
  flex-shrink: 0;
}
.switch:before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  right: 3px;
}
.switch.off { background: var(--track-off); }
.switch.off:before { right: auto; left: 3px; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 1.5px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
}
.choice.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* report */
.report-hero { text-align: center; padding: 24px 16px; }
.report-hero .num { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.report-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
}
.tile { padding: 16px; }
.tile .ico-wrap {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 20px;
}
.tile .ico-wrap.orange { background: var(--orange-tint); color: var(--orange-text); }
.tile .ico-wrap.warn { background: var(--orange-tint); color: var(--orange-text); }
.tile .n { font-size: 28px; font-weight: 700; line-height: 32px; }
.tile .l { font-size: 14px; color: var(--muted); margin-top: 2px; }
.money-lg { font-size: 36px; font-weight: 700; color: var(--success); letter-spacing: -0.5px; }
.day-bars { display: flex; flex-direction: column; gap: 8px; }
.day-bar { display: grid; grid-template-columns: 36px 1fr 24px; gap: 10px; align-items: center; font-size: 14px; }
.day-bar .bar { height: 10px; background: var(--fill); border-radius: 6px; overflow: hidden; }
.day-bar .bar > span { display: block; height: 100%; background: #8a938e; border-radius: 6px; }
.day-bar .bar.top > span { background: var(--orange); }
.day-bar .lab { font-weight: 600; }
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row .warn { color: var(--orange-text); font-weight: 700; }
.month-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.month-picker .pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: 700;
  font-size: 15px;
}
.nav-circle {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
}
.report-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.cust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 16px;
}
.cust-stats .card { padding: 12px 14px; }
.cust-stats .k { font-size: 13px; color: var(--muted); }
.cust-stats .v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.history-item { padding: 14px 0; border-top: 1px solid var(--border); }
.history-item:first-child { border-top: none; padding-top: 0; }
.history-k { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; color: var(--muted); text-transform: uppercase; }
.helper { color: var(--muted); font-size: 14px; line-height: 19px; margin-bottom: 16px; }
.caption { font-size: 13px; color: var(--muted); }
.version { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }
.btn-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.btn.danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
}

.content.content-split { padding-bottom: 0; overflow: hidden; display: flex; flex-direction: column; }
.content-split .split { flex: 1; width: 100%; min-height: 0; }

.save-footer {
  flex-shrink: 0;
  padding: 12px 24px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.save-footer .btn { min-width: 240px; }
.brand .name { font-size: 13px; line-height: 16px; }
.pill-new { font-size: 10px; padding: 2px 6px; min-width: 44px; text-align: center; }
.appt-card { padding: 12px 14px; }
.appt-card .actions { margin-top: 8px; }
.appt-grid { gap: 10px; }
.notes-box { padding: 8px 10px; margin-top: 8px; }

.main > .content { min-height: 0; }

.field-row { align-items: center; }
.field-row .val-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.field-row .val-wrap .val {
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.field-row .val-wrap .chev { color: var(--chevron); font-size: 16px; flex-shrink: 0; }
.edit-input, .edit-area {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  color: var(--text);
  background: var(--card);
}
.edit-area { min-height: 84px; line-height: 21px; resize: none; }
.email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.email-row .ico { color: var(--muted); font-size: 18px; flex-shrink: 0; }
.email-row .addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-row .remove { color: var(--danger); font-size: 20px; flex-shrink: 0; }
.add-own { margin-top: 10px; }
.vac-wrap { max-width: 560px; width: 100%; }
.vac-wrap .btn.block { width: 100%; }
.date-confirm { color: var(--muted); font-size: 14px; margin: 8px 0 16px 4px; }

.sample-flag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--orange);
}
.draft-note {
  display: none;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--fill);
  color: var(--text);
  font-size: 14px;
}
.draft-note.on { display: block; }
.assign-panel {
  display: none;
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.assign-panel.on { display: block; }
.assign-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
}
.assign-panel button:hover { background: var(--fill); }
.assign-panel button.is-you { color: var(--muted); }
.photo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-cols .caption { margin-bottom: 6px; }
.photo-cols img { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--radius-md); display: block; }
.photo-empty {
  min-height: 120px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 14px;
}
.job-assign-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand .product {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
  margin-bottom: 2px;
}

/* —— App-matched visual richness (desktop) —— */
:root {
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.ico.mic:before { content: "\f454"; }

/* Sidebar sits on the same cream canvas as the app, with a white selected tab. */
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 18px 12px 16px;
}
.brand {
  padding: 4px 8px 22px;
  gap: 12px;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}
.brand .product {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin-bottom: 2px;
}
.brand .name {
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}
.nav { gap: 4px; }
.nav a {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--tab-inactive);
  border: 1px solid transparent;
}
.nav a .ico { font-size: 24px; width: 26px; }
.nav a:hover { background: var(--fill-pressed); color: var(--text); }
.nav a.active {
  background: var(--card);
  color: var(--tint);
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}
.nav .badge {
  background: var(--orange);
  color: var(--on-primary);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
}

/* Header matches the app: 22px bold title on cream, no bar shadow. */
.topbar {
  padding: 14px 24px 10px;
  background: var(--bg);
}
.topbar h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 28px;
}
.topbar .title-row { gap: 6px; }
.topbar .title-row .ico {
  font-size: 22px;
  color: var(--text);
  width: 22px;
}
.topbar .title-row a.back,
.topbar .title-row a.muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  width: 22px;
  margin-right: 0;
}
.topbar .title-row img.mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.ask-darla {
  height: 36px;
  gap: 6px;
  padding: 0 12px 0 4px;
  background: var(--fill);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
}
.ask-darla img { width: 28px; height: 28px; }
.ask-darla .ico { font-size: 16px; color: var(--text); }

/* Cards: hairline border + 16px corners, same as the app Card. */
.card,
.entry,
.queue-card,
.appt-card,
.tile,
.search {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.entry,
.appt-card {
  box-shadow: var(--shadow-card);
}
.entry + .entry { margin-top: 10px; }
.search {
  border-radius: var(--radius-lg);
  min-height: 48px;
  padding: 10px 12px;
  color: var(--placeholder);
  box-shadow: none;
}

/* Compact actions stay pills; full-width primary actions use 12px corners. */
.btn {
  min-height: 34px;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
}
.btn.block,
.save-footer .btn,
.save-bar .btn,
.vac-wrap .btn.block,
#save-vacation {
  min-height: 50px;
  border-radius: var(--radius-md);
  font-size: 16px;
  padding: 12px 16px;
}
.btn.ghost,
.btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.success-outline {
  background: var(--card);
  color: var(--success);
  border: 1.5px solid var(--success);
  min-height: 34px;
}
.btn.disabled,
.btn:disabled {
  background: var(--fill);
  color: var(--muted);
  border-color: transparent;
  box-shadow: none;
}
#save-receptionist {
  border-radius: var(--radius-md);
  min-height: 36px;
  padding: 8px 16px;
}

/* Segmented control: 12px outer, 10px inner, white + shadow when on. */
.segment {
  display: flex;
  align-items: stretch;
  background: var(--fill);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 0;
}
.segment > * { flex: 1; min-width: 0; }
.segment button {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.segment button.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.segment a,
.segment a.seg {
  display: flex;
  text-decoration: none;
}
.segment a button { width: 100%; }

/* Filter / choice chips: white with hairline, navy when selected. */
.chip,
.choice {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 600;
}
.chip { padding: 6px 12px; font-size: 13px; }
.choice { padding: 7px 14px; font-size: 14px; }
.chip.active,
.choice.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Badges match the app: 700 weight, 10×3 padding. */
.badge {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

/* Call / customer detail: name is text, phone is the link. */
.detail-head .name { color: var(--text); font-size: 24px; font-weight: 700; line-height: 28px; }
.detail-head .phone { color: var(--link); font-size: 16px; margin-top: 2px; }
.queue-item .who, .call-row .who { font-weight: 600; }

.entry .icon-wrap,
.tile .ico-wrap {
  width: 40px;
  height: 40px;
  border-radius: 20px;
}
.entry .icon-wrap .ico,
.tile .ico-wrap { font-size: 20px; }

/* Receptionist avatars: thicker orange ring + check badge like the app. */
.avatar-hero {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.avatar-hero img {
  width: 72px;
  height: 72px;
  box-shadow: var(--shadow-card);
}
.avatar-grid { gap: 14px 8px; }
.avatar-grid button { position: relative; }
.avatar-grid img {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  box-sizing: border-box;
}
.avatar-grid .on img { border-color: var(--orange); }
.avatar-grid .on { color: var(--text); font-weight: 700; }
.check-dot {
  left: 50%;
  right: auto;
  margin-left: 12px;
  top: 42px;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

/* Account identity row, same as the app Account header card. */
.account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-identity img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.switch:before { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.month-picker .pill {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-pill);
}
.nav-circle {
  background: var(--fill);
  box-shadow: none;
}
.notes-box { border-radius: var(--radius-md); }
.photo-grid img,
.photo-cols img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.bubble { border-radius: 16px; }
.report-hero { padding: 28px 16px; }
.report-hero .num { font-size: 56px; font-weight: 700; letter-spacing: -1.5px; }
.pill-new {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 6px;
}

/* Inputs stay on the card, with the app's 12px corners. */
.edit-input, .edit-area {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.assign-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
