:root {
  --ss-navy: #1b3a5c;
  --ss-teal: #82c2d4;
  --ss-teal-bg: #e5f2f5;
  --ss-green: #3a7f78;
  --ss-green-dark: #2d6560;
  --ss-pink: #ff6566;
  --ss-pink-dark: #e84e4f;
  --ss-bg: #f4f7fa;
  --ss-panel: #ffffff;
  --ss-text: #2a3340;
  --ss-muted: #6b7785;
  --ss-border: #e2e8ef;
  --ss-side: #16304a;
  --ss-side-hover: #1e3f5e;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(27, 58, 92, 0.08);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  background: transparent;
  color: var(--ss-text);
}

body {
  font-family: inherit;
  line-height: 1.45;
  overflow: hidden;
}

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

button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ss-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(27, 58, 92, 0.12);
  box-shadow: var(--shadow);
}

/* Browser chrome */
.chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #eef2f6, #e4eaf1);
  border-bottom: 1px solid var(--ss-border);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d2dc;
}

.chrome-dots span:nth-child(1) { background: #ff5f57; }
.chrome-dots span:nth-child(2) { background: #febc2e; }
.chrome-dots span:nth-child(3) { background: #28c840; }

.chrome-url {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ss-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ss-pink);
  background: rgba(255, 101, 102, 0.12);
  border-radius: 999px;
  padding: 4px 8px;
}

.shell {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 200px 1fr;
}

/* Login */
.screen { display: none; height: 100%; }
.screen.active { display: flex; }

#screen-login {
  flex-direction: column;
  align-items: stretch;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(130, 194, 212, 0.5), transparent 52%),
    linear-gradient(180deg, #c5e6ed 0%, #dff0f4 14%, var(--ss-teal-bg) 42%, #fff 78%);
}

.login-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 0;
  background: transparent;
  overflow: hidden;
}

.login-hero {
  background: transparent;
  color: var(--ss-text);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.hero-composition {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 340px;
  width: 100%;
}

.login-hero .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-shrink: 0;
}

.login-hero .brand img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(27, 58, 92, 0.1);
}

.login-hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #3a3f46;
}

.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ss-muted);
  font-size: 14px;
  max-width: 32ch;
  line-height: 1.45;
  flex-shrink: 0;
}

.hero-tagline p {
  margin: 0;
}

.hero-bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 0.72fr 0.72fr;
  gap: 6px;
  width: 100%;
  max-width: 280px;
  height: 132px;
  margin-top: 6px;
  flex: 0 0 auto;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(27, 58, 92, 0.08);
  display: block;
}

.hero-photo-main {
  grid-column: 1;
  grid-row: 1 / 3;
}

.hero-photo-secondary {
  grid-column: 1;
  grid-row: 3;
}

.hero-photo-pet {
  grid-column: 2;
  grid-row: 2 / 4;
}

.hero-qr-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(130, 194, 212, 0.45);
  box-shadow: 0 3px 12px rgba(27, 58, 92, 0.1);
}

.qr-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ss-green-dark);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-qr-panel img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  display: block;
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: transparent;
}

.login-card {
  width: min(300px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(27, 58, 92, 0.08);
  border: 1px solid rgba(226, 232, 239, 0.9);
}

.login-card h2 {
  font-size: 20px;
  color: #2c2c2e;
  font-weight: 800;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3a3a3c;
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--ss-border);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  background: #fff;
  color: #2c2c2e;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ss-green);
  box-shadow: 0 0 0 3px rgba(58, 127, 120, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-pink { background: var(--ss-pink); color: #fff; }
.btn-pink:hover { background: var(--ss-pink-dark); }
.btn-green { background: var(--ss-green); color: #fff; }
.btn-green:hover { background: var(--ss-green-dark); }
.btn-green-dark { background: var(--ss-green-dark); color: #fff; }
.btn-green-dark:hover { background: #245550; }
.btn-green-dark:disabled,
.btn-green:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-navy { background: var(--ss-navy); color: #fff; }
.btn-ghost {
  background: #fff;
  border: 1.5px solid var(--ss-border);
  color: var(--ss-navy);
}
.btn-ghost:hover { border-color: var(--ss-teal); }
.btn-muted {
  background: transparent;
  border: 1.5px solid var(--ss-border);
  color: var(--ss-muted);
}
.btn-muted:hover {
  background: rgba(107, 119, 133, 0.06);
  border-color: #c5cdd6;
  color: var(--ss-text);
}
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn-danger-text {
  color: var(--ss-pink);
  font-weight: 600;
  font-size: 12px;
  padding: 0;
}
.btn-danger-text:hover { color: var(--ss-pink-dark); }
.btn-danger-outline {
  background: #fff;
  border: 1.5px solid var(--ss-pink);
  color: var(--ss-pink-dark);
}
.btn-danger-outline:hover {
  background: rgba(255, 101, 102, 0.08);
}

.login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 14px;
  font-size: 12px;
  color: var(--ss-muted);
}

.login-links button { color: var(--ss-navy); font-weight: 600; }
.login-links button:hover { color: var(--ss-green-dark); }

/* Sidebar — same teal wash as mobile home / welcome */
.sidebar {
  background-color: var(--ss-teal-bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(130, 194, 212, 0.55), transparent 52%),
    linear-gradient(180deg, #c5e6ed 0%, #dff0f4 28%, var(--ss-teal-bg) 62%, #f4fafb 100%);
  color: var(--ss-text);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  min-height: 0;
  border-right: 1px solid rgba(130, 194, 212, 0.35);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
}

.side-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.side-brand strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #2c2c2e;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ss-navy);
}

.nav-item.active {
  background: #fff;
  color: var(--ss-green-dark);
  box-shadow: 0 1px 4px rgba(27, 58, 92, 0.08);
}

.nav-item svg { flex: 0 0 auto; opacity: 0.85; color: currentColor; }

.side-user {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(130, 194, 212, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  padding-right: 8px;
}

.avatar,
.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.avatar {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--ss-teal);
  color: var(--ss-navy);
}

.avatar-img {
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.side-user .meta { min-width: 0; }
.side-user .meta strong {
  display: block;
  font-size: 12px;
  color: #2c2c2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-user .meta span {
  font-size: 11px;
  color: var(--ss-muted);
}

.side-copy {
  font-size: 10px;
  color: var(--ss-muted);
  padding: 10px 8px 4px;
}

/* Main */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ss-bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--ss-border);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ss-green-dark);
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.topbar-back:hover {
  background: rgba(58, 127, 120, 0.08);
  color: var(--ss-green);
}

.topbar-title h2,
.topbar h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ss-navy);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar.is-chat-thread {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--ss-border);
}

.topbar.is-chat-thread .topbar-title {
  flex: 1;
  width: 100%;
}

.topbar.is-chat-thread .topbar-actions {
  display: none;
}

.topbar-thread {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.topbar-thread-row--nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-thread-title {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ss-navy);
  line-height: 1.25;
}

.topbar-thread-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ss-muted);
  font-weight: 500;
}

.topbar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--ss-green-dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.topbar-back-link:hover {
  color: var(--ss-green);
}

.account-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  max-width: 480px;
}

.account-head .account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ss-teal-bg);
  box-shadow: 0 2px 10px rgba(27, 58, 92, 0.1);
}

.account-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ss-navy);
}

.account-head p {
  font-size: 13px;
  color: var(--ss-muted);
  margin-top: 2px;
}

.account-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.account-card-title h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ss-muted);
}

.icon-edit {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ss-navy);
  background: var(--ss-teal-bg);
  border: none;
  cursor: pointer;
}

.icon-edit:hover {
  background: rgba(130, 194, 212, 0.45);
}

.icon-edit svg {
  width: 14px;
  height: 14px;
}

.account-grid {
  display: grid;
  gap: 0;
  max-width: 480px;
}

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  font-size: 13px;
  padding: 10px 0;
}

.kv + .kv {
  border-top: 1px solid var(--ss-border);
}

.kv:last-child {
  border-bottom: none;
}

.kv span:first-child { color: var(--ss-muted); font-weight: 600; }

.membership-card {
  max-width: 480px;
  margin-top: 14px;
}

.membership-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.membership-row strong {
  font-size: 14px;
  color: var(--ss-navy);
}

.membership-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ss-green-dark);
}

.account-actions {
  max-width: 480px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.account-actions .btn {
  text-align: left;
}

.content {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 18px 20px 28px;
}

.panel { display: none; }
.panel.active {
  display: block;
  animation: fadeIn 0.22s ease;
}

#panel-support.active,
#panel-payments.active,
#panel-account.active,
#panel-pets.active {
  min-height: min-content;
  padding-bottom: 8px;
}

.faq {
  max-width: 640px;
  padding-bottom: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.banner {
  background: linear-gradient(120deg, rgba(130, 194, 212, 0.28), rgba(58, 127, 120, 0.1));
  border: 1px solid rgba(130, 194, 212, 0.45);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.banner h3 {
  font-size: 16px;
  color: var(--ss-navy);
  font-weight: 800;
  margin-bottom: 4px;
}

.banner p { font-size: 13px; color: var(--ss-muted); }

.section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ss-muted);
  margin: 8px 0 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  background: var(--ss-panel);
  border: 1px solid var(--ss-border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 4px 14px rgba(27, 58, 92, 0.04);
}

.card.interactive { cursor: pointer; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.card.interactive:hover {
  border-color: var(--ss-teal);
  box-shadow: 0 8px 22px rgba(27, 58, 92, 0.08);
}

.visit-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.vet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 14px;
}

.vet-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ss-teal-bg);
}

.vet-avatar-img.sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.visit-card h4 { font-size: 15px; color: var(--ss-navy); margin-bottom: 4px; }
.visit-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ss-muted);
}
.visit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--ss-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(130, 194, 212, 0.25);
  color: var(--ss-navy);
}

.pill.ok { background: rgba(40, 167, 69, 0.15); color: #1e7a36; }
.pill.default { background: rgba(58, 127, 120, 0.16); color: var(--ss-green-dark); }
.pill.new { background: rgba(58, 127, 120, 0.18); color: var(--ss-green-dark); }
.pill.live { background: var(--ss-green); color: #fff; font-weight: 600; }
.pill.ended { background: rgba(107, 119, 133, 0.16); color: #5c6773; }

.empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--ss-muted);
  font-size: 13px;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.pet-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.pet-photo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
  background: var(--ss-teal-bg);
}

.pet-photo.placeholder {
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--ss-muted);
  margin-bottom: 10px;
}

.pet-photo.lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.pet-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.pet-profile-head .pet-photo {
  margin-bottom: 0;
}

.pet-profile h3 {
  color: var(--ss-navy);
  font-size: 20px;
}

.pet-profile-sub {
  font-size: 13px;
  color: var(--ss-muted);
  margin-top: 4px;
}

.pet-detail-rows {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ss-border);
}

.pet-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.pet-detail-row span:first-child {
  color: var(--ss-muted);
}

.pet-activity-list {
  margin-top: 8px;
  margin-bottom: 18px;
}

.pet-activity-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pet-activity-item strong {
  font-size: 13px;
  color: var(--ss-navy);
}

.pet-activity-item p {
  font-size: 12px;
  color: var(--ss-muted);
  margin-top: 2px;
}

.pet-activity-date {
  font-size: 11px;
  color: var(--ss-muted);
  white-space: nowrap;
}

.pet-remove-btn {
  margin-top: 4px;
}

.pet-profile {
  max-width: 560px;
}

.pet-profile-actions {
  margin-top: 8px;
  padding-top: 4px;
}

.pet-card h4 { color: var(--ss-navy); font-size: 15px; }
.pet-card p { font-size: 12px; color: var(--ss-muted); margin-top: 2px; }

.chat-history { gap: 10px; }

.chat-preview {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.chat-preview-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-preview-body { min-width: 0; flex: 1; }
.chat-pet { font-size: 12px; color: var(--ss-navy); font-weight: 600; margin-top: 2px; }
.chat-snippet {
  font-size: 12px;
  color: var(--ss-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-layout {
  display: flex;
  flex-direction: column;
  height: min(520px, calc(100vh - 160px));
  overflow: hidden;
}

.chat-layout .chat-stream {
  flex: 1;
  min-height: 0;
}

.chat-stream-status {
  display: flex;
  justify-content: center;
  padding: 2px 0 6px;
  flex-shrink: 0;
}

.chat-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.chat-status-pill.live {
  background: rgba(58, 127, 120, 0.16);
  color: var(--ss-green-dark);
  box-shadow: inset 0 0 0 1px rgba(58, 127, 120, 0.32);
}

.chat-status-pill.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--ss-green);
  box-shadow: 0 0 0 2px rgba(58, 127, 120, 0.22);
}

.chat-status-pill.ended {
  background: rgba(107, 119, 133, 0.12);
  color: #5c6773;
  box-shadow: inset 0 0 0 1px rgba(107, 119, 133, 0.2);
}

.chat-stream {
  overflow: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ss-bg);
  min-height: 0;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}

.msg-row.user { justify-content: flex-end; }
.msg-row.vet { justify-content: flex-start; }

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bubble {
  max-width: min(78%, 420px);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}

.bubble-text { white-space: pre-wrap; word-break: break-word; }
.bubble .meta { font-size: 10px; opacity: 0.7; margin-top: 4px; }
.bubble img.chat-img {
  display: block;
  width: 100%;
  max-width: 200px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.img-caption { font-size: 12px; margin-bottom: 2px; }

.bubble.vet {
  background: #fff;
  border: 1px solid rgba(58, 127, 120, 0.22);
  color: var(--ss-text);
}

.bubble.user {
  background: var(--ss-teal-bg);
  border: 1px solid rgba(130, 194, 212, 0.5);
  color: var(--ss-text);
}

.bubble.system {
  align-self: center;
  background: transparent;
  color: var(--ss-muted);
  font-size: 11px;
  padding: 0;
  max-width: 90%;
  text-align: center;
}

.chat-compose {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--ss-border);
  background: rgba(249, 249, 249, 0.94);
  flex-shrink: 0;
}

.chat-attach {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(58, 127, 120, 0.12);
  color: var(--ss-green-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.chat-attach:hover {
  background: rgba(58, 127, 120, 0.2);
}

.chat-compose input {
  flex: 1;
  border: 1px solid var(--ss-border);
  border-radius: 20px;
  padding: 10px 14px;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  min-height: 42px;
  height: 42px;
  background: #fff;
  color: var(--ss-text);
}

.chat-compose input::placeholder {
  font-size: 14px;
  font-weight: 400;
  color: #9aa3ad;
}

.chat-compose input:focus { border-color: var(--ss-green); }

.chat-send-btn {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  display: none;
  place-items: center;
  flex-shrink: 0;
  background: var(--ss-green);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease;
}

.chat-send-btn.is-visible {
  display: grid;
}

.chat-send-btn:hover {
  background: var(--ss-green-dark);
  color: #fff;
}

.chat-send-btn:active {
  transform: scale(0.96);
}

.chat-send-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.image-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid var(--ss-border);
  flex-shrink: 0;
}

.image-picker button {
  border: none;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ss-bg);
  aspect-ratio: 1;
}

.image-picker button:hover {
  outline: 2px solid var(--ss-teal);
  outline-offset: 1px;
}

.image-picker img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Request chat — compact flow matching visit booking */
.chat-request-flow {
  max-width: 480px;
}

.chat-request-flow .field textarea {
  min-height: 72px;
}

.page-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-form h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ss-navy);
}

.form-lede {
  font-size: 13px;
  color: var(--ss-muted);
  margin-top: -4px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

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

.plan-bullets {
  margin-top: 8px;
  padding-left: 16px;
  font-size: 12px;
  color: var(--ss-muted);
}

.card-actions { display: flex; gap: 8px; flex-shrink: 0; }

.invoice-like { width: 100%; text-align: left; }

.payment-method-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-method-title h4 {
  margin: 0;
}

.view-more-link {
  display: inline-block;
  margin: 10px 0 0;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ss-green);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.view-more-link:hover {
  color: var(--ss-green-dark);
  text-decoration: underline;
}

.view-more-link:active {
  opacity: 0.75;
}

.invoice-row-right {
  text-align: right;
}

.payments-summary,
.payments-manage {
  max-width: 720px;
}

.invoice-detail { max-width: 640px; }
.invoice-org {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ss-border);
  margin-bottom: 14px;
}
.invoice-org strong {
  display: block;
  font-size: 15px;
  color: var(--ss-navy);
  margin-bottom: 4px;
}
.invoice-org p { font-size: 12px; color: var(--ss-muted); line-height: 1.4; }
.invoice-support { margin-top: 6px !important; color: var(--ss-green-dark) !important; }
.invoice-meta-right { text-align: right; }
.invoice-meta-right h3 { font-size: 16px; color: var(--ss-navy); margin-bottom: 6px; }
.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.invoice-grid .lbl {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ss-muted);
  margin-bottom: 2px;
}
.invoice-grid p { font-size: 13px; color: var(--ss-text); }
.invoice-detail section { margin-top: 12px; }
.invoice-detail h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ss-muted);
  margin-bottom: 6px;
}
.invoice-detail ul {
  padding-left: 16px;
  font-size: 13px;
  color: var(--ss-text);
}
.invoice-totals {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ss-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.invoice-totals .total {
  font-weight: 800;
  color: var(--ss-navy);
  font-size: 15px;
  margin-top: 4px;
}

.contact-support-body { margin-top: 10px; }
.support-hint { font-size: 12px; color: var(--ss-muted); margin-bottom: 10px; }
#contact-support .field textarea,
#contact-support .field input {
  font-size: 13px;
  padding: 9px 11px;
}
#contact-support .field textarea::placeholder {
  font-size: 12px;
  color: #9aa3ad;
}
.support-attach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.support-thumbs { display: flex; gap: 6px; }
.support-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ss-border);
}
.support-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.image-picker.hidden { display: none; }
.image-picker button {
  border: none;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ss-bg);
}
.image-picker img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

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

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.row-between h4 { font-size: 14px; color: var(--ss-navy); }
.row-between p { font-size: 12px; color: var(--ss-muted); margin-top: 2px; }

.faq details {
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ss-navy);
  font-size: 13px;
}

.faq p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ss-muted);
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slot {
  border: 1.5px solid var(--ss-border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ss-navy);
  background: #fff;
}

.slot:hover:not(:disabled) { border-color: var(--ss-teal); }
.slot.active {
  background: var(--ss-green);
  border-color: var(--ss-green);
  color: #fff;
}
.slot:disabled { opacity: 0.35; cursor: not-allowed; }

/* Request visit — multi-step flow */
.visit-flow {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.visit-flow-wide {
  max-width: none;
  width: 100%;
}

.visit-flow-schedule {
  max-width: 560px;
}

.flow-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ss-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ss-border);
}

.flow-step.active {
  color: var(--ss-green-dark);
  border-color: rgba(58, 127, 120, 0.35);
  background: rgba(58, 127, 120, 0.1);
}

.flow-step.done {
  color: var(--ss-muted);
  background: var(--ss-bg);
}

.flow-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ss-navy);
}

.visit-flow .form-lede {
  margin-top: -6px;
  font-size: 13px;
}

.visit-flow .field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ss-muted);
}

.visit-flow .field input,
.visit-flow .field textarea {
  font-size: 14px;
}

.visit-flow .field textarea {
  min-height: 84px;
  resize: vertical;
}

.visit-flow .field textarea::placeholder {
  font-size: 13px;
  color: #9aa3ad;
}

.visit-flow-actions {
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Request visit — scrollable steps with sticky footer */
#panel-request-visit.active {
  min-height: min-content;
}

.visit-booking-step {
  gap: 10px;
  padding-bottom: 8px;
}

.visit-booking-step-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.visit-booking-step-head .flow-steps {
  margin-bottom: 2px;
}

.visit-booking-step-head .flow-title {
  font-size: 16px;
}

.visit-booking-step-head .form-lede {
  margin-top: -2px;
  font-size: 12px;
}

.visit-booking-step-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visit-booking-step-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--ss-border);
  background: linear-gradient(to top, var(--ss-bg) 78%, rgba(245, 247, 249, 0));
  box-shadow: 0 -6px 14px rgba(27, 58, 92, 0.04);
}

.visit-flow-actions-sticky {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 12px 0 4px;
  background: linear-gradient(to top, var(--ss-bg) 78%, rgba(245, 247, 249, 0));
}

.visit-footer-preview {
  flex: 1 1 100%;
  margin: 0;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: var(--ss-muted);
}

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

.visit-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ss-border);
}

.visit-summary-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.visit-summary-row span {
  font-size: 12px;
  color: var(--ss-muted);
}

.visit-summary-row strong {
  font-size: 13px;
  color: var(--ss-navy);
  text-align: right;
}

.visit-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1.5px solid var(--ss-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.payment-option:hover {
  border-color: var(--ss-teal);
}

.payment-option.active {
  border-color: var(--ss-green);
  background: rgba(58, 127, 120, 0.08);
  box-shadow: 0 0 0 3px rgba(58, 127, 120, 0.1);
}

.payment-option input {
  margin-top: 2px;
  accent-color: var(--ss-green);
}

.payment-option strong {
  display: block;
  font-size: 13px;
  color: var(--ss-navy);
}

.payment-option p {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ss-muted);
}

.visit-vet-step .vet-catalog-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.visit-vet-step .vet-top-specialists {
  margin-bottom: 14px;
}

.visit-vet-step .vet-filters-bar {
  margin-bottom: 14px;
  padding: 8px 10px;
  gap: 10px;
}

.visit-vet-step .vet-section-title {
  margin-bottom: 8px;
}

.visit-pet-step,
.visit-book-step {
  max-width: 560px;
}

.visit-schedule-step {
  max-width: 560px;
}

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

.pet-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ss-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ss-navy);
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.pet-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ss-teal-bg);
}

.pet-chip:hover {
  border-color: var(--ss-teal);
}

.pet-chip.active {
  border-color: var(--ss-green);
  background: rgba(58, 127, 120, 0.08);
  box-shadow: 0 0 0 3px rgba(58, 127, 120, 0.12);
}

/* Vet catalog */
.vet-catalog-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.vet-catalog-section.is-ready {
  border-top: none;
  padding-top: 0;
}

.vet-top-specialists {
  margin-bottom: 16px;
}

.vet-top-specialists[hidden] {
  display: none;
}

.vet-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ss-navy);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.vet-top-grid {
  margin-bottom: 0;
}

.vet-results-section {
  margin-top: 2px;
}

.vet-catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.vet-catalog-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ss-navy);
}

.vet-catalog-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--ss-muted);
  white-space: nowrap;
}

.vet-filters-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 10px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: 10px;
}

.vet-filters-bar.is-filters-expanded {
  gap: 10px;
  padding-bottom: 10px;
}

.vet-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.vet-filter-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--ss-border);
  background: var(--ss-bg);
  color: var(--ss-navy);
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.vet-filter-toggle:hover {
  border-color: var(--ss-teal);
  background: #fff;
}

.vet-filter-toggle.is-expanded,
.vet-filter-toggle.has-active {
  border-color: var(--ss-green);
  background: rgba(58, 127, 120, 0.1);
  color: var(--ss-green-dark);
}

.vet-filter-toggle.has-active:not(.is-expanded) {
  box-shadow: 0 0 0 2px rgba(58, 127, 120, 0.12);
}

.vet-filter-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 2px;
  border-top: 1px solid var(--ss-border);
}

.vet-filter-groups[hidden] {
  display: none;
}

.vet-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.vet-filter-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ss-muted);
  min-width: 0;
}

.vet-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
}

.vet-filter-pill {
  border: 1.5px solid var(--ss-border);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ss-navy);
  background: var(--ss-bg);
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.vet-filter-pill:hover {
  border-color: var(--ss-teal);
  background: #fff;
}

.vet-filter-pill.active {
  border-color: var(--ss-green);
  background: rgba(58, 127, 120, 0.1);
  color: var(--ss-green-dark);
  box-shadow: 0 0 0 2px rgba(58, 127, 120, 0.1);
}

.vet-search-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--ss-bg);
  border: 1px solid transparent;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.vet-search-wrap:focus-within {
  border-color: var(--ss-green);
  box-shadow: 0 0 0 2px rgba(58, 127, 120, 0.15);
  background: #fff;
}

.vet-search-icon {
  flex-shrink: 0;
  color: var(--ss-muted);
}

.vet-search-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 7px 0;
  font-size: 12px;
  outline: none;
}

.vet-search-wrap input::placeholder {
  color: #9aa3ad;
}

.vet-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.vet-grid-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  font-size: 12px;
}

.vet-pick-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--ss-border);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
  font-family: inherit;
  color: inherit;
}

.vet-pick-card:hover {
  border-color: var(--ss-teal);
  box-shadow: 0 8px 22px rgba(27, 58, 92, 0.08);
  transform: translateY(-1px);
}

.vet-pick-card:focus-visible {
  outline: 2px solid var(--ss-green);
  outline-offset: 2px;
}

.vet-pick-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vet-pick-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ss-teal-bg);
  margin: 0;
}

.vet-pick-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vet-pick-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ss-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vet-pick-specialty {
  font-size: 11px;
  color: var(--ss-muted);
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vet-pick-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 0;
  line-height: 1;
}

.vet-pick-rating .vet-stars {
  letter-spacing: 1px;
  color: #d4a017;
  font-size: 12px;
  line-height: 1;
}

.vet-pick-bio {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ss-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vet-pick-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 0;
}

.vet-pick-schedule {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(58, 127, 120, 0.08);
  color: var(--ss-green-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.vet-pick-schedule span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ss-muted);
}

.vet-pick-meta {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ss-green-dark);
}

.vet-pick-location,
.vet-pick-profile {
  display: none;
}

/* Vet profile panel (web) */
.visit-vet-profile-flow {
  gap: 12px;
}

.vet-profile-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: inherit;
}

.vet-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ss-green-dark);
  padding: 2px 0;
  align-self: flex-start;
}

.vet-profile-back:hover {
  color: var(--ss-green);
}

.vet-profile-booking-row {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.vet-profile-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vet-profile-main,
.vet-profile-card {
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 4px 14px rgba(27, 58, 92, 0.04);
}

.vet-profile-main {
  text-align: left;
}

.vet-profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 0 10px;
  display: block;
  background: var(--ss-teal-bg);
}

.vet-profile-main h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ss-navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.vet-profile-summary-text {
  font-size: 13px;
  color: var(--ss-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.vet-profile-stats {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.vet-profile-stat {
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbfc, #f2f7f8);
  border: 1px solid rgba(130, 194, 212, 0.35);
}

.vet-profile-stat span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ss-muted);
  margin-bottom: 4px;
}

.vet-profile-stat strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ss-navy);
  line-height: 1.35;
}

.vet-profile-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ss-muted);
}

.vet-profile-meta-row span {
  min-width: 0;
}

.vet-meta-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--ss-green);
}

.vet-profile-rating {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ss-green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.vet-profile-rating .vet-stars,
.vet-review-head .vet-stars,
.vet-stars {
  color: #d4a017;
  letter-spacing: 1px;
  font-size: 12px;
  line-height: 1;
}

.vet-rating-avg {
  font-size: 12px;
  font-weight: 700;
  color: var(--ss-navy);
}

.vet-rating-count {
  font-size: 12px;
  color: var(--ss-muted);
}

.vet-profile-actions {
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vet-profile-footer-preview {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ss-muted);
}

.vet-profile-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vet-profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.vet-profile-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--ss-navy);
  letter-spacing: -0.02em;
}

.calendar-toggle {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(58, 127, 120, 0.08);
  color: var(--ss-green-dark);
  font-size: 11px;
  font-weight: 600;
}

.calendar-toggle:hover {
  background: rgba(58, 127, 120, 0.15);
}

.section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ss-muted);
  margin: 12px 0 6px;
  text-align: left;
}

.vet-profile-bio {
  font-size: 13px;
  color: var(--ss-text);
  line-height: 1.4;
}

.vet-profile-schedule-lede {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ss-muted);
}

.date-carousel {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.date-carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--ss-border);
  background: #f9fbfc;
  text-align: center;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.date-carousel-card:hover {
  border-color: var(--ss-teal);
  background: #fff;
}

.date-carousel-card.active {
  border-color: var(--ss-green);
  background: rgba(58, 127, 120, 0.08);
  box-shadow: 0 0 0 2px rgba(58, 127, 120, 0.12);
}

.date-carousel-day,
.date-carousel-slot {
  font-size: 10px;
  font-weight: 500;
  color: var(--ss-muted);
  line-height: 1.2;
}

.date-carousel-card strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ss-navy);
  line-height: 1.2;
}

.vet-profile-calendar-wrap {
  margin: 0 0 10px;
  max-width: 220px;
}

.vet-profile-calendar-wrap .visit-calendar {
  box-shadow: none;
  width: 100%;
  max-width: 220px;
}

.vet-profile-schedule-card .schedule-slots-label {
  margin-bottom: 6px;
}

.vet-profile-reviews-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.vet-profile-reviews-section > .vet-profile-heading {
  margin: 0;
  padding: 0 2px;
}

.vet-profile-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vet-review-card {
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 0;
  text-align: left;
}

.vet-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.vet-review-head strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ss-navy);
}

.vet-stars {
  font-size: 12px;
  color: #d4a017;
  letter-spacing: 1px;
  line-height: 1;
}

.vet-review-card p {
  font-size: 12px;
  color: var(--ss-muted);
  line-height: 1.4;
}

/* Compact schedule step */
.schedule-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.schedule-slots-col {
  min-width: 0;
}

.schedule-slots-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ss-muted);
  margin-bottom: 8px;
}

.slots-compact {
  gap: 5px;
}

.slots-compact .slot {
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 6px;
}

.field-compact textarea {
  min-height: 56px;
}

.visit-calendar-compact {
  padding: 6px 8px 8px;
  width: 220px;
}

.visit-calendar-compact .calendar-head {
  margin-bottom: 4px;
}

.visit-calendar-compact .calendar-head h4 {
  font-size: 12px;
  font-weight: 700;
}

.visit-calendar-compact .calendar-weekdays {
  font-size: 9px;
  margin-bottom: 2px;
}

.visit-calendar-compact .calendar-grid {
  gap: 1px;
}

.visit-calendar-compact .cal-day {
  width: 26px;
  height: 26px;
  aspect-ratio: auto;
  font-size: 11px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .vet-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vet-profile-booking-row {
    grid-template-columns: 1fr;
  }
  .vet-profile-card-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .vet-pick-grid {
    grid-template-columns: 1fr;
  }
  .schedule-layout {
    grid-template-columns: 1fr;
  }
  .visit-calendar-compact {
    width: 100%;
    max-width: 280px;
  }
  .visit-summary-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .visit-summary-row strong,
  .visit-footer-preview {
    text-align: left;
  }
}

.visit-calendar {
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: var(--radius);
  padding: 12px 14px 14px;
}

.visit-calendar .calendar-head h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ss-navy);
}

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

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: var(--ss-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

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

.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ss-text);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.cal-day:hover:not(.empty):not(.selected) {
  background: rgba(58, 127, 120, 0.1);
}

.cal-day.empty {
  visibility: hidden;
  pointer-events: none;
}

.cal-day.selected {
  background: var(--ss-green);
  color: #fff;
}

.cal-day.selected:hover {
  background: var(--ss-green-dark);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ss-navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.confirm-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirm-modal.show {
  display: flex;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 48, 74, 0.35);
}

.confirm-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: var(--ss-panel);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  font-family: inherit;
  animation: confirm-modal-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes confirm-modal-in {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.confirm-modal-message {
  padding: 24px 20px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ss-navy);
  letter-spacing: -0.02em;
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}

.confirm-modal-actions--single {
  justify-content: stretch;
}

.confirm-modal-actions--single .btn {
  width: 100%;
}

.confirm-modal-actions .btn {
  flex: 1;
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.confirm-modal-actions .btn-ghost {
  border: 1px solid var(--ss-border);
  color: var(--ss-muted);
  background: #fff;
}

.confirm-modal-actions .btn-ghost:hover {
  border-color: var(--ss-teal);
  color: var(--ss-text);
}

.confirm-modal-actions .btn-green {
  background: var(--ss-green);
  color: #fff;
}

.confirm-modal-actions .btn-green:hover {
  background: var(--ss-green-dark);
}

.booking-transition {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.booking-transition.show {
  display: flex;
  opacity: 1;
}

.booking-transition-card {
  text-align: center;
  padding: 32px 28px;
  max-width: 360px;
  animation: booking-card-settle 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes booking-card-settle {
  from { transform: scale(0.96); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

.booking-transition-icon {
  min-height: 52px;
  display: grid;
  place-items: center;
}

.booking-transition-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 18px;
  color: var(--ss-navy);
  letter-spacing: -0.02em;
}

.booking-transition-card p {
  font-size: 14px;
  color: var(--ss-muted);
  margin-top: 8px;
  line-height: 1.45;
}

.booking-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid rgba(15, 76, 92, 0.12);
  border-top-color: var(--ss-green);
  border-radius: 50%;
  animation: booking-spin 0.8s linear infinite;
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

.booking-success-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ss-green);
  display: grid;
  place-items: center;
  animation: booking-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.booking-success-check::after {
  content: "";
  width: 12px;
  height: 22px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -2px);
}

@keyframes booking-pop {
  from { transform: scale(0.55); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.demo-ribbon {
  font-size: 11px;
  color: var(--ss-muted);
  margin-top: 8px;
}

.app-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#screen-app {
  flex-direction: column;
  width: 100%;
  min-height: 0;
  height: 100%;
}

@media (max-width: 720px) {
  .shell { grid-template-columns: 64px 1fr; }
  .side-brand strong,
  .nav-item span,
  .side-user .meta,
  .side-copy { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .visit-card { grid-template-columns: auto 1fr; }
  .visit-card .visit-actions { grid-column: 1 / -1; }
  .invoice-org { flex-direction: column; }
  .invoice-meta-right { text-align: left; }
  .invoice-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* Portfolio iframe embed — cosmetic only; layout uses default responsive rules */
.embed-mode .app {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.embed-mode .chrome-badge {
  display: none;
}

/* Fullscreen website experience on real phones (portfolio overlay) */
.fs-mode,
.fs-mode body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--ss-bg);
}

.fs-mode body {
  overflow: hidden;
}

.fs-mode .chrome {
  display: none !important;
}

.fs-mode .app {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.fs-mode .app-stage,
.fs-mode .screen.active,
.fs-mode #screen-login,
.fs-mode #screen-app {
  min-height: 0;
  height: 100%;
}

.fs-mode .login-layout {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.fs-mode .shell {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.fs-mode .sidebar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: none;
  padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fs-mode .side-brand strong,
.fs-mode .nav-item span,
.fs-mode .side-user .meta,
.fs-mode .side-copy {
  display: none;
}

.fs-mode .side-brand {
  flex: 0 0 auto;
  margin: 0 6px 0 0;
}

.fs-mode .side-nav {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 2px;
  overflow-x: auto;
}

.fs-mode .nav-item {
  justify-content: center;
  padding: 10px;
  flex: 0 0 auto;
}

.fs-mode .side-user {
  display: none;
}

.fs-mode .main,
.fs-mode .content,
.fs-mode .panel.active {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}
