:root {
  --ink: #17211c;
  --deep: #214a3a;
  --deep-2: #386850;
  --fern: #527f64;
  --mint: #dff1e6;
  --paper: #fffaf3;
  --porcelain: #f7efe3;
  --coral: #e36f3d;
  --brass: #bd8958;
  --sage: #7fa88e;
  --aqua: #dceff1;
  --rose: #ffe4d8;
  --line: rgba(33, 74, 58, 0.14);
  --shadow: 0 22px 52px rgba(20, 41, 32, 0.12), 0 2px 10px rgba(20, 41, 32, 0.05);
  --surface-shadow:
    0 0 0 1px rgba(33, 74, 58, 0.08),
    0 18px 38px rgba(20, 41, 32, 0.08),
    0 2px 8px rgba(20, 41, 32, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --surface-shadow-strong:
    0 0 0 1px rgba(33, 74, 58, 0.1),
    0 24px 54px rgba(20, 41, 32, 0.13),
    0 2px 10px rgba(20, 41, 32, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --radius: 8px;
  --theme-bg:
    radial-gradient(ellipse at 18% 0%, rgba(227, 111, 61, 0.18), transparent 34%),
    radial-gradient(ellipse at 88% 16%, rgba(105, 166, 137, 0.22), transparent 30%),
    linear-gradient(135deg, #fffdf8 0%, #f6efe4 52%, #dceee8 100%);
  --app-surface:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 250, 244, 0.96)),
    repeating-linear-gradient(0deg, rgba(127, 156, 136, 0.05) 0 1px, transparent 1px 34px);
  --member-bg:
    radial-gradient(ellipse at 16% -4%, rgba(227, 111, 61, 0.16), transparent 31%),
    radial-gradient(ellipse at 94% 6%, rgba(127, 168, 142, 0.2), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f7f0e6 52%, #edf6f2 100%);
  --glass-surface: rgba(255, 255, 255, 0.72);
  --glass-surface-strong: rgba(255, 255, 255, 0.86);
  --glass-surface-soft: rgba(255, 250, 244, 0.5);
  --text-muted: rgba(43, 26, 16, 0.66);
  --image-outline: rgba(0, 0, 0, 0.1);
  --metal-ring: rgba(255, 255, 255, 0.68);
  --metal-shadow:
    0 18px 34px rgba(20, 41, 32, 0.16),
    0 2px 7px rgba(20, 41, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(43, 26, 16, 0.12);
  --metal-shadow-hover:
    0 22px 42px rgba(20, 41, 32, 0.2),
    0 4px 12px rgba(20, 41, 32, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(43, 26, 16, 0.12);
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f7f2ea;
  --deep: #89d0af;
  --deep-2: #5fb78e;
  --fern: #9ed2b9;
  --mint: rgba(88, 132, 108, 0.34);
  --paper: #111814;
  --porcelain: #17221d;
  --coral: #ff986c;
  --brass: #d5a77b;
  --sage: #a7d7bc;
  --aqua: rgba(119, 180, 188, 0.22);
  --rose: rgba(255, 152, 108, 0.18);
  --line: rgba(255, 255, 255, 0.1);
  --shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    0 2px 10px rgba(0, 0, 0, 0.22);
  --surface-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --surface-shadow-strong:
    0 0 0 1px rgba(255, 255, 255, 0.11),
    0 28px 62px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  --theme-bg:
    radial-gradient(ellipse at 14% 0%, rgba(255, 152, 108, 0.16), transparent 30%),
    radial-gradient(ellipse at 86% 10%, rgba(137, 208, 175, 0.18), transparent 34%),
    linear-gradient(135deg, #090e0c 0%, #111814 48%, #18231d 100%);
  --app-surface:
    linear-gradient(180deg, rgba(17, 24, 20, 0.98), rgba(13, 19, 16, 0.96)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 34px);
  --member-bg:
    radial-gradient(ellipse at 16% -4%, rgba(255, 152, 108, 0.14), transparent 31%),
    radial-gradient(ellipse at 94% 6%, rgba(137, 208, 175, 0.18), transparent 34%),
    linear-gradient(180deg, #0c120f 0%, #111814 54%, #17241d 100%);
  --glass-surface: rgba(24, 35, 29, 0.66);
  --glass-surface-strong: rgba(31, 44, 37, 0.82);
  --glass-surface-soft: rgba(255, 255, 255, 0.07);
  --text-muted: rgba(247, 242, 234, 0.68);
  --image-outline: rgba(255, 255, 255, 0.1);
  --metal-ring: rgba(255, 255, 255, 0.16);
  --metal-shadow:
    0 18px 36px rgba(0, 0, 0, 0.42),
    0 2px 8px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);
  --metal-shadow-hover:
    0 24px 48px rgba(0, 0, 0, 0.48),
    0 4px 14px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--theme-bg);
  color: var(--ink);
  font-family: Avenir Next, Avenir, Aptos, ui-rounded, Trebuchet MS, Segoe UI, sans-serif;
}

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

button {
  cursor: pointer;
  transition-property: transform, background-color, border-color, box-shadow, color, opacity;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

button:active {
  transform: scale(0.96);
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.device-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.app-screen {
  position: relative;
  width: min(100%, 540px);
  min-height: 100vh;
  background: var(--app-surface);
  overflow-x: hidden;
  box-shadow: var(--shadow);
}

[hidden] {
  display: none !important;
}

.boot-screen {
  display: grid;
  min-height: 100svh;
  align-content: center;
  gap: 22px;
  padding: max(26px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(248, 239, 228, 0.92)),
    repeating-linear-gradient(90deg, rgba(127, 156, 136, 0.09) 0 1px, transparent 1px 58px);
}

.boot-mark {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.boot-mark img {
  width: 100px;
  height: 86px;
  object-fit: contain;
}

.boot-screen h1 {
  max-width: 9ch;
  margin-bottom: 16px;
}

.boot-progress {
  overflow: hidden;
  width: min(100%, 260px);
  height: 7px;
  border-radius: 999px;
  background: rgba(95, 53, 24, 0.1);
}

.boot-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--coral));
  animation: boot-scan 1100ms cubic-bezier(0.2, 0, 0, 1) infinite alternate;
}

.access-screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.98) 0%, rgba(255, 255, 255, 0.98) 38%, rgba(255, 250, 244, 0.96) 100%),
    repeating-linear-gradient(90deg, rgba(185, 117, 63, 0.08) 0 1px, transparent 1px 68px);
}

.access-image,
.access-overlay {
  position: absolute;
  inset: 0;
}

.access-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-overlay {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.78) 0%, rgba(255, 250, 244, 0.88) 52%, rgba(255, 250, 244, 0.96) 100%),
    linear-gradient(90deg, rgba(245, 224, 202, 0.76), rgba(255, 250, 244, 0.26));
}

.access-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  align-content: start;
  gap: 18px;
  padding: max(16px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.access-brand {
  justify-content: space-between;
}

.welcome-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  min-height: 210px;
  overflow: hidden;
  padding: 22px 0 0 20px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 236, 221, 0.96) 0%, rgba(255, 247, 239, 0.98) 52%, rgba(236, 246, 239, 0.92) 100%);
  box-shadow:
    0 24px 54px rgba(135, 67, 25, 0.16),
    0 2px 8px rgba(135, 67, 25, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.welcome-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  padding-bottom: 22px;
}

.welcome-hero-copy h1 {
  max-width: none;
  margin: 2px 0 10px;
  color: #e75b1d;
  font-family: Avenir Next, Avenir, Optima, Candara, Segoe UI, sans-serif;
  font-size: clamp(35px, 8.6vw, 60px);
  font-weight: 950;
  line-height: 0.9;
}

.welcome-hero-copy p:not(.eyebrow) {
  max-width: 22ch;
  margin: 0;
  color: rgba(92, 53, 28, 0.68);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.welcome-hero-media {
  position: relative;
  min-height: 210px;
}

.welcome-image-stack {
  position: absolute;
  right: -28px;
  bottom: 0;
  width: min(230px, 60vw);
  aspect-ratio: 0.9;
  overflow: hidden;
  border-radius: 26px 0 0 0;
  box-shadow:
    -18px 18px 42px rgba(91, 52, 23, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.welcome-image-stack img {
  width: 100%;
  height: 100%;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  object-fit: cover;
  object-position: 50% 48%;
}

.welcome-logo-float {
  position: absolute;
  right: 12px;
  top: 20px;
  display: grid;
  width: 78px;
  height: 68px;
  place-items: center;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.welcome-logo-float img {
  width: 66px;
  height: 54px;
  object-fit: contain;
}

.welcome-section {
  display: grid;
  gap: 12px;
}

.welcome-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 27px;
  font-weight: 950;
  letter-spacing: 0;
}

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

.welcome-category-card {
  display: grid;
  min-height: 98px;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 12px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 16px 32px rgba(72, 39, 17, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.welcome-category-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 239, 227, 0.95), rgba(255, 249, 244, 0.95));
  color: #e75b1d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.welcome-category-card:nth-child(2) .welcome-category-icon {
  background: linear-gradient(145deg, rgba(223, 240, 236, 0.95), rgba(255, 255, 255, 0.96));
  color: var(--sage);
}

.welcome-category-card:nth-child(3) .welcome-category-icon {
  background: linear-gradient(145deg, rgba(244, 222, 216, 0.95), rgba(255, 249, 244, 0.96));
  color: #b83226;
}

.welcome-category-card:nth-child(4) .welcome-category-icon {
  background: linear-gradient(145deg, rgba(241, 223, 199, 0.95), rgba(255, 249, 244, 0.96));
  color: var(--deep);
}

.welcome-category-icon svg {
  width: 24px;
  height: 24px;
}

.welcome-category-card strong {
  color: rgba(43, 26, 16, 0.84);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
}

.welcome-picks {
  gap: 9px;
}

.welcome-pick-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
  overflow-x: auto;
  margin: 0 -18px;
  padding: 0 18px 4px;
  scrollbar-width: none;
}

.welcome-pick-row::-webkit-scrollbar {
  display: none;
}

.welcome-pick-row span {
  display: grid;
  min-height: 64px;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 237, 225, 0.82), rgba(255, 255, 255, 0.9));
  color: #e75b1d;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(72, 39, 17, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
}

.brand-mark,
.brand-logo-tile {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 248, 239, 0.14);
  font-family: Georgia, Times New Roman, serif;
  font-size: 24px;
  font-weight: 700;
  backdrop-filter: blur(18px);
}

.brand-logo-tile {
  overflow: hidden;
  border-color: transparent;
  background: transparent;
}

.brand-logo-tile img {
  width: 39px;
  height: 34px;
  object-fit: contain;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-lockup strong {
  font-family: Georgia, Times New Roman, serif;
  font-size: 17px;
}

.brand-lockup small {
  margin-top: 2px;
  color: rgba(43, 26, 16, 0.6);
  font-size: 12px;
}

.access-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 24px 54px rgba(72, 39, 17, 0.13),
    0 2px 10px rgba(72, 39, 17, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.access-logo {
  display: block;
  width: 116px;
  margin: 0 auto 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.access-panel h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: Georgia, Times New Roman, serif;
  font-size: 30px;
  line-height: 1;
  text-align: center;
  text-wrap: balance;
}

.eyebrow,
.section-heading p {
  margin: 0 0 7px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 16px;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(42px, 11vw, 62px);
  line-height: 0.93;
  letter-spacing: 0;
  text-wrap: balance;
}

h2,
h3,
p {
  text-wrap: pretty;
}

.auth-tabs,
.tabs,
.flow-tabs {
  display: grid;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(95, 53, 24, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.auth-tabs {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
  border-color: rgba(136, 80, 35, 0.14);
  background: rgba(255, 255, 255, 0.5);
}

.flow-tabs {
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 244, 0.7));
  box-shadow: var(--surface-shadow);
}

.auth-tab,
.tab,
.app-tab,
.flow-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(43, 26, 16, 0.66);
  font-size: 13px;
  font-weight: 900;
}

.flow-tab {
  min-height: 44px;
  border-radius: 16px;
  font-size: 12px;
}

.auth-tab {
  color: rgba(43, 26, 16, 0.62);
}

.auth-tab.active,
.tab.active,
.app-tab.active,
.flow-tab.active {
  background: var(--deep);
  color: #fff;
}

.access-form,
.panel-form,
.wall-form {
  display: grid;
  gap: 12px;
}

.panel-form,
.wall-form {
  padding: 16px;
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 244, 0.78)),
    repeating-linear-gradient(90deg, rgba(127, 156, 136, 0.045) 0 1px, transparent 1px 42px);
  box-shadow: var(--surface-shadow);
}

label {
  display: grid;
  gap: 7px;
  color: rgba(43, 26, 16, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.access-form label {
  color: rgba(43, 26, 16, 0.74);
}

.local-credential-card {
  display: grid;
  grid-template-columns: 1fr 1.45fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(127, 156, 136, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(223, 240, 236, 0.86), rgba(255, 255, 255, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.local-credential-card span,
.mobile-metric span {
  display: block;
  color: rgba(43, 26, 16, 0.58);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.local-credential-card strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 3px;
  color: var(--deep);
  font-size: 12px;
}

.verification-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(127, 156, 136, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(223, 240, 236, 0.72), rgba(255, 255, 255, 0.84) 54%, rgba(255, 238, 225, 0.72));
  box-shadow:
    0 14px 30px rgba(72, 39, 17, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.verification-card h3 {
  margin: 7px 0 5px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.verification-card p {
  margin: 0;
  color: rgba(43, 26, 16, 0.64);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.42;
}

.verification-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: end;
}

.verification-code-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.consent-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  color: rgba(43, 26, 16, 0.72);
  font-size: 12px;
  line-height: 1.38;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(95, 53, 24, 0.16);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

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

input[type="file"] {
  height: auto;
  min-height: 46px;
  padding: 11px;
  color: rgba(23, 33, 28, 0.66);
  font-size: 12px;
  font-weight: 850;
}

input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #2f6a50, #214a3a);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(33, 74, 58, 0.16);
}

input:disabled {
  background: rgba(95, 53, 24, 0.06);
  color: rgba(43, 26, 16, 0.58);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--fern);
  box-shadow:
    0 0 0 4px rgba(136, 80, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
}

.primary-button {
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
  box-shadow: 0 14px 24px rgba(95, 53, 24, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.secondary-button {
  background: linear-gradient(135deg, var(--coral), #a95f33);
  box-shadow: 0 14px 24px rgba(180, 107, 43, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.member-app {
  min-height: 100svh;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 1), rgba(255, 255, 255, 0.98) 46%, rgba(248, 239, 228, 0.92)),
    repeating-linear-gradient(90deg, rgba(127, 156, 136, 0.045) 0 1px, transparent 1px 54px);
}

.app-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid rgba(136, 80, 35, 0.1);
  background: rgba(255, 250, 244, 0.88);
  color: var(--deep);
  box-shadow: 0 10px 28px rgba(72, 39, 17, 0.06);
  backdrop-filter: blur(22px);
}

.top-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(136, 80, 35, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  color: currentColor;
  box-shadow: 0 8px 18px rgba(72, 39, 17, 0.08);
}

.notification-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: #b83226;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 16px rgba(120, 30, 18, 0.22);
}

.date-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.date-chip-row:empty {
  display: none;
}

.date-chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(136, 80, 35, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

.date-chip.active {
  border-color: rgba(136, 80, 35, 0.52);
  background: var(--deep);
  color: #fff;
}

.member-welcome {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 1), rgba(255, 255, 255, 0.96));
  scroll-margin-top: 82px;
}

.member-welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  min-height: 226px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 236, 221, 0.96) 0%, rgba(255, 249, 244, 0.98) 50%, rgba(223, 240, 236, 0.86) 100%);
  box-shadow:
    0 24px 54px rgba(72, 39, 17, 0.14),
    0 2px 10px rgba(72, 39, 17, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.member-welcome-copy {
  display: grid;
  align-content: center;
  padding: 20px 0 20px 20px;
}

.member-welcome-copy h1 {
  max-width: 8ch;
  margin: 2px 0 10px;
  color: #e75b1d;
  font-family: Avenir Next, Avenir, Optima, Candara, Segoe UI, sans-serif;
  font-size: clamp(39px, 10vw, 64px);
  font-weight: 950;
  line-height: 0.9;
}

.member-welcome-copy p:not(.eyebrow) {
  max-width: 24ch;
  margin: 0;
  color: rgba(92, 53, 28, 0.7);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.36;
}

.member-welcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.member-welcome-chips span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep);
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.member-welcome-media {
  position: relative;
  min-height: 226px;
}

.member-welcome-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  object-fit: cover;
  object-position: 50% 52%;
}

.member-star-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(170px, calc(100% - 24px));
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow:
    0 16px 32px rgba(72, 39, 17, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.member-star-card span,
.member-star-card small {
  display: block;
  color: rgba(43, 26, 16, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.member-star-card strong {
  display: block;
  overflow: hidden;
  margin: 4px 0 2px;
  color: #e75b1d;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-welcome-logo {
  position: absolute;
  right: 12px;
  top: 18px;
  display: grid;
  width: 78px;
  height: 68px;
  place-items: center;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.member-welcome-logo img {
  width: 66px;
  height: 54px;
  object-fit: contain;
}

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

.member-grooming-grid article {
  min-height: 78px;
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 16px 32px rgba(72, 39, 17, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.member-grooming-grid span,
.member-grooming-grid strong {
  display: block;
  text-align: center;
}

.member-grooming-grid span {
  margin-bottom: 8px;
  color: #e75b1d;
  font-size: 12px;
  font-weight: 950;
}

.member-grooming-grid strong {
  color: rgba(43, 26, 16, 0.82);
  font-size: 12px;
  line-height: 1.18;
}

.home-dashboard {
  display: grid;
  gap: 12px;
}

.home-pet-panel,
.home-recommendation-card,
.home-care-card,
.home-analytics-grid article {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.8)),
    repeating-linear-gradient(90deg, rgba(127, 156, 136, 0.045) 0 1px, transparent 1px 38px);
  box-shadow: var(--surface-shadow);
}

.home-pet-panel {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 13px;
  align-items: center;
  padding: 14px;
}

.home-pet-panel img {
  width: 112px;
  height: 126px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(72, 39, 17, 0.1);
}

.home-pet-panel h2,
.home-recommendation-card h3,
.home-care-card h3 {
  margin: 8px 0 7px;
  color: var(--ink);
  font-family: Georgia, Times New Roman, serif;
  font-size: 23px;
  line-height: 1.02;
  text-wrap: balance;
}

.home-pet-panel p,
.home-recommendation-card p,
.home-care-card p {
  margin-bottom: 0;
  color: rgba(43, 26, 16, 0.66);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.home-pet-facts,
.home-care-tags,
.home-pet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.home-pet-facts span,
.home-care-tags span {
  min-height: 28px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(241, 223, 199, 0.72);
  color: var(--deep);
  font-size: 11px;
  font-weight: 950;
}

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

.home-analytics-grid article {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 7px;
  padding: 12px 8px;
  text-align: center;
}

.home-analytics-grid strong {
  overflow: hidden;
  color: #e75b1d;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.home-analytics-grid span {
  color: rgba(43, 26, 16, 0.62);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-recommendation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 238, 225, 0.96), rgba(255, 253, 249, 0.94) 56%, rgba(223, 240, 236, 0.78)),
    repeating-linear-gradient(135deg, rgba(231, 91, 29, 0.05) 0 1px, transparent 1px 12px);
}

.home-recommendation-card .secondary-button {
  min-width: 118px;
  padding: 0 14px;
  white-space: nowrap;
}

.home-care-card {
  padding: 16px;
}

.account-settings-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.account-form-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}

.account-form-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  text-wrap: balance;
}

.account-form-heading p {
  margin: 0;
  color: rgba(23, 33, 28, 0.66);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.42;
}

.security-form {
  background:
    linear-gradient(135deg, rgba(255, 228, 216, 0.8), rgba(255, 255, 255, 0.88) 54%, rgba(223, 241, 230, 0.72));
}

.hero-compact {
  position: relative;
  display: grid;
  min-height: 245px;
  align-items: end;
  overflow: hidden;
  padding: 20px 18px;
  color: #fff;
}

.hero-compact img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.hero-compact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(72, 39, 17, 0.28), rgba(47, 25, 11, 0.86));
}

.hero-compact > div {
  position: relative;
  z-index: 1;
}

.hero-compact h1 {
  margin-bottom: 8px;
}

.hero-text {
  max-width: 31rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.5;
}

.admin-rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.admin-rule-strip span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.app-tabs {
  position: fixed;
  z-index: 20;
  left: 50%;
  right: auto;
  bottom: 0;
  display: grid;
  width: min(100vw, 540px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 248, 241, 0.96)),
    repeating-linear-gradient(90deg, rgba(127, 156, 136, 0.06) 0 1px, transparent 1px 40px);
  box-shadow:
    0 -18px 44px rgba(72, 39, 17, 0.16),
    0 -1px 0 rgba(95, 53, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
}

.app-tab {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 60px;
  place-items: center;
  gap: 4px;
  padding: 7px 2px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: rgba(43, 26, 16, 0.6);
  font-size: 10px;
  font-weight: 950;
  transition-property: transform, background-color, color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.app-tab::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #e75b1d;
  opacity: 0;
  transform: translateX(-50%) scaleX(0.35);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.app-tab svg {
  width: 21px;
  height: 21px;
}

.app-tab span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-tab.active {
  background:
    linear-gradient(180deg, rgba(139, 87, 47, 0.98), rgba(111, 63, 29, 0.98));
  color: #fff;
  box-shadow:
    0 12px 20px rgba(95, 53, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.app-tab.active::before {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.app-back-button {
  flex: 0 0 auto;
}

.member-app-header .brand-lockup {
  min-width: 0;
  flex: 1 1 auto;
}

.home-route-grid,
.route-choice-grid {
  display: grid;
  gap: 10px;
}

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

.route-choice-grid {
  grid-template-columns: 1fr;
}

.route-card {
  position: relative;
  display: grid;
  min-height: 116px;
  align-content: end;
  gap: 7px;
  overflow: hidden;
  padding: 15px;
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.76)),
    repeating-linear-gradient(135deg, rgba(127, 156, 136, 0.055) 0 1px, transparent 1px 14px);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--surface-shadow);
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sage);
}

.route-card.featured {
  background:
    linear-gradient(135deg, rgba(255, 238, 225, 0.96), rgba(255, 255, 255, 0.9) 52%, rgba(223, 241, 230, 0.82));
}

.route-card.featured::before {
  background: var(--coral);
}

.route-card.support::before {
  background: var(--deep);
}

.route-number {
  display: inline-grid;
  width: fit-content;
  min-width: 34px;
  min-height: 28px;
  place-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(241, 223, 199, 0.74);
  color: var(--deep);
  font-size: 11px;
  font-weight: 950;
}

.route-card strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.route-card small {
  color: rgba(43, 26, 16, 0.66);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.route-menu-panel {
  display: grid;
  gap: 12px;
}

.subflow-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.compact-heading {
  margin-top: 14px;
}

.view {
  display: none;
  padding: 22px 18px calc(132px + env(safe-area-inset-bottom));
  background: transparent;
  scroll-margin-top: 86px;
}

.view.active {
  display: block;
}

.section-heading {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 15px 16px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 238, 225, 0.92), rgba(255, 253, 249, 0.94) 58%, rgba(223, 240, 236, 0.72)),
    repeating-linear-gradient(90deg, rgba(231, 91, 29, 0.05) 0 1px, transparent 1px 34px);
  box-shadow: var(--surface-shadow);
}

.section-heading h2 {
  max-width: 22ch;
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 0.98;
  text-wrap: balance;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.avatar-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: end;
}

.avatar-preview,
.pet-thumb,
.result-thumb {
  width: 104px;
  height: 104px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  box-shadow: 0 14px 30px rgba(72, 39, 17, 0.1);
  object-fit: cover;
}

.privacy-card,
.instagram-card,
.pet-card,
.result-card,
.conversation-card,
.communications-banner,
.compose-recipient-card,
.notification-card,
.message-bubble,
.content-card,
.wall-card,
.service-card,
.schedule-panel,
.reservation-card,
.pricing-card,
.reservation-review-card {
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 244, 0.78));
  box-shadow: var(--surface-shadow);
}

.privacy-card {
  margin-top: 14px;
  padding: 14px;
}

.instagram-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
}

.instagram-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
}

.instagram-button svg {
  width: 18px;
  height: 18px;
}

.instagram-card h3 {
  margin: 6px 0;
}

.member-summary-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 238, 225, 0.92), rgba(255, 253, 249, 0.96) 58%, rgba(223, 240, 236, 0.72));
  box-shadow: var(--surface-shadow);
}

.member-summary-card img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(72, 39, 17, 0.1);
}

.member-summary-card h3 {
  margin: 7px 0 5px;
  font-family: Georgia, Times New Roman, serif;
  font-size: 24px;
  line-height: 1.02;
}

.member-summary-card p {
  margin: 0;
  color: rgba(43, 26, 16, 0.66);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(136, 80, 35, 0.24);
  border-radius: 999px;
  background: var(--mint);
  color: var(--deep);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pet-list,
.search-results,
.conversation-list,
.notification-list,
.message-thread,
.wall-list,
.content-list,
.service-track,
.reservation-list,
.pricing-grid {
  display: grid;
  gap: 12px;
}

.pet-list,
.conversation-list,
.message-thread {
  margin-bottom: 14px;
}

.pet-list:empty,
.conversation-list:empty,
.wall-list:empty,
.content-list:empty {
  display: none;
}

.pet-card,
.result-card,
.conversation-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 13px;
  padding: 14px;
}

.pet-card h3,
.result-card h3,
.conversation-card h3,
.content-card h3,
.wall-card h3,
.service-card h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  line-height: 1.1;
}

.pet-card p,
.result-card p,
.conversation-card p,
.content-card p,
.wall-card p,
.service-card p,
.privacy-card p,
.meta-line {
  margin-bottom: 0;
  color: rgba(43, 26, 16, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.pet-actions,
.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pet-info-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--surface-shadow);
}

.mini-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(136, 80, 35, 0.24);
  border-radius: 12px;
  background: var(--mint);
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
}

.danger-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(150, 44, 32, 0.18);
  border-radius: 12px;
  background: #fff0ee;
  color: #8d281c;
  font-size: 12px;
  font-weight: 900;
}

.search-form,
.message-compose {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--surface-shadow);
}

.send-button {
  border-color: rgba(136, 80, 35, 0.2);
  background: var(--deep);
  color: #fff;
}

.message-panel,
.booking-panel {
  display: grid;
  gap: 14px;
}

.communications-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(223, 240, 236, 0.86), rgba(255, 255, 255, 0.92) 56%, rgba(255, 238, 225, 0.82));
}

.communications-banner.sent {
  grid-template-columns: 1fr;
}

.communications-banner h3,
.compose-recipient-card h3,
.notification-card h3,
.pricing-card h3,
.reservation-review-card h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-family: Georgia, Times New Roman, serif;
  font-size: 22px;
  line-height: 1.04;
}

.communications-banner p,
.compose-recipient-card p,
.notification-card p,
.pricing-card p,
.reservation-review-card p {
  margin: 0;
  color: rgba(43, 26, 16, 0.66);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
}

.inbox-action-stack {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.inbox-action-stack > strong {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  background: #e75b1d;
  color: #fff;
  font-size: 23px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 14px 28px rgba(231, 91, 29, 0.2);
}

.notification-list {
  gap: 10px;
}

.notification-card {
  display: grid;
  width: 100%;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 0;
  color: var(--ink);
  text-align: left;
}

.notification-card.empty {
  grid-template-columns: 1fr;
}

.notification-card.unread {
  background:
    linear-gradient(135deg, rgba(255, 238, 225, 0.96), rgba(255, 255, 255, 0.94) 58%, rgba(223, 240, 236, 0.74));
  box-shadow:
    0 0 0 1px rgba(231, 91, 29, 0.15),
    0 18px 38px rgba(72, 39, 17, 0.1);
}

.notification-card small {
  display: block;
  margin-top: 7px;
  color: rgba(43, 26, 16, 0.52);
  font-size: 11px;
  font-weight: 900;
}

.star-badge {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(241, 223, 199, 0.78);
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
}

.notification-card.unread .star-badge {
  background: #e75b1d;
  color: #fff;
  font-size: 20px;
}

.compose-recipient-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 238, 225, 0.92), rgba(255, 255, 255, 0.94) 56%, rgba(223, 240, 236, 0.72));
}

.compose-recipient-card > img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  object-fit: cover;
}

.conversation-card {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
}

.conversation-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(72, 39, 17, 0.08);
}

.conversation-card.active {
  background:
    linear-gradient(135deg, rgba(255, 242, 230, 0.98), rgba(223, 240, 236, 0.72));
  box-shadow:
    0 0 0 1px rgba(136, 80, 35, 0.32),
    0 18px 38px rgba(72, 39, 17, 0.1);
}

.unread-dot {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.message-thread {
  max-height: 360px;
  overflow-y: auto;
  padding: 12px;
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 239, 228, 0.82), rgba(255, 253, 249, 0.94)),
    repeating-linear-gradient(0deg, rgba(127, 156, 136, 0.06) 0 1px, transparent 1px 32px);
  box-shadow: var(--surface-shadow);
}

.message-bubble {
  width: fit-content;
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 18px 18px 18px 8px;
  box-shadow: 0 0 0 1px rgba(95, 53, 24, 0.07), 0 10px 20px rgba(72, 39, 17, 0.06);
}

.message-bubble.mine {
  margin-left: auto;
  border-radius: 18px 18px 8px 18px;
  background: var(--deep);
  color: #fff;
}

.message-bubble.mine p {
  color: rgba(255, 255, 255, 0.82);
}

.service-track {
  grid-template-columns: repeat(3, minmax(136px, 1fr));
  margin: 0 -18px 16px;
  padding: 0 18px 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.service-track.single-service {
  grid-template-columns: 1fr;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
  overflow: visible;
}

.service-card {
  min-height: 134px;
  padding: 16px;
  scroll-snap-align: start;
  text-align: left;
}

.service-track.single-service .service-card {
  display: grid;
  min-height: 156px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255, 237, 225, 0.96), rgba(255, 255, 255, 0.92) 52%, rgba(223, 240, 236, 0.74)),
    repeating-linear-gradient(135deg, rgba(231, 91, 29, 0.05) 0 1px, transparent 1px 12px);
}

.service-card.active {
  border-color: rgba(136, 80, 35, 0.65);
  background:
    linear-gradient(135deg, #fff7ec, rgba(223, 240, 236, 0.66));
}

.schedule-panel {
  margin-bottom: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 239, 228, 0.82)),
    repeating-linear-gradient(90deg, rgba(127, 156, 136, 0.07) 0 1px, transparent 1px 42px);
}

.schedule-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.schedule-panel-head h3 {
  margin: 8px 0 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: 22px;
}

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

.slot-button {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 4px;
  padding: 9px 8px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #fff9f0),
    repeating-linear-gradient(90deg, rgba(127, 156, 136, 0.05) 0 1px, transparent 1px 26px);
  color: var(--deep);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(95, 53, 24, 0.1),
    0 10px 20px rgba(72, 39, 17, 0.07);
}

.slot-button strong,
.slot-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-button strong {
  font-size: 15px;
}

.slot-button span {
  color: rgba(43, 26, 16, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.slot-button.busy {
  background: rgba(95, 53, 24, 0.07);
  color: rgba(43, 26, 16, 0.5);
  box-shadow: 0 0 0 1px rgba(95, 53, 24, 0.08);
}

.slot-button.yours {
  background: linear-gradient(135deg, rgba(223, 240, 236, 0.9), #fff);
  box-shadow:
    0 0 0 1px rgba(127, 156, 136, 0.44),
    0 10px 20px rgba(72, 39, 17, 0.07);
}

.slot-button.selected {
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(111, 63, 29, 0.66),
    0 14px 24px rgba(95, 53, 24, 0.22);
}

.slot-button.selected span {
  color: rgba(255, 255, 255, 0.78);
}

.reservation-flow-form {
  margin-top: 0;
  margin-bottom: 250px;
}

.reservation-review-card {
  display: grid;
  gap: 13px;
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(223, 240, 236, 0.9), rgba(255, 255, 255, 0.94) 52%, rgba(255, 238, 225, 0.82)),
    repeating-linear-gradient(135deg, rgba(127, 156, 136, 0.06) 0 1px, transparent 1px 14px);
}

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

.review-grid span {
  display: grid;
  gap: 5px;
  min-height: 64px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.review-grid strong {
  color: rgba(43, 26, 16, 0.56);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.review-grid em {
  overflow: hidden;
  color: var(--deep);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pricing-grid {
  grid-template-columns: 1fr;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  padding: 17px;
}

.pricing-card.featured {
  background:
    linear-gradient(135deg, rgba(255, 238, 225, 0.96), rgba(255, 255, 255, 0.94) 54%, rgba(223, 240, 236, 0.8));
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sage);
}

.pricing-card.featured::before {
  background: #e75b1d;
}

.mobile-admin-app {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(248, 239, 228, 0.9)),
    repeating-linear-gradient(90deg, rgba(136, 80, 35, 0.08) 0 1px, transparent 1px 62px);
}

.admin-hero {
  min-height: 246px;
}

.mobile-admin-view {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.mobile-metric {
  min-height: 78px;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(223, 240, 236, 0.86), rgba(255, 255, 255, 0.78));
  box-shadow: var(--surface-shadow);
}

.mobile-metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep);
  font-family: Georgia, Times New Roman, serif;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.compact-field {
  width: min(48%, 180px);
}

.compact-field input {
  height: 38px;
  padding: 0 8px;
  font-size: 12px;
}

.mobile-admin-board {
  display: grid;
  gap: 10px;
}

.mobile-admin-slot {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.78));
  box-shadow: var(--surface-shadow);
}

.mobile-admin-slot::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sage);
}

.mobile-admin-slot.double {
  background:
    linear-gradient(135deg, #fff4e8, rgba(223, 240, 236, 0.68));
  box-shadow:
    0 0 0 1px rgba(136, 80, 35, 0.24),
    0 18px 38px rgba(72, 39, 17, 0.09);
}

.mobile-admin-slot.double::before {
  background: var(--coral);
}

.mobile-admin-slot.inactive {
  opacity: 0.72;
}

.mobile-admin-slot h3 {
  margin: 6px 0;
  color: var(--deep);
  font-family: Georgia, Times New Roman, serif;
  font-size: 24px;
}

.mobile-admin-slot p {
  margin: 0 0 5px;
  color: rgba(43, 26, 16, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.slot-flags,
.slot-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.slot-flags span {
  padding: 6px 8px;
  border: 1px solid rgba(95, 53, 24, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(43, 26, 16, 0.68);
  font-size: 11px;
  font-weight: 900;
}

.reservation-list {
  margin-top: 14px;
}

.reservation-card {
  padding: 14px;
}

.reservation-card h3 {
  margin: 6px 0;
}

.wall-card {
  overflow: hidden;
}

.wall-card img,
.content-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  object-fit: cover;
}

.wall-body,
.content-body {
  padding: 14px;
}

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

.wall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.wall-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 223, 199, 0.72);
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  box-shadow:
    0 0 0 1px rgba(95, 53, 24, 0.08),
    0 8px 18px rgba(72, 39, 17, 0.06);
}

.wall-action svg {
  width: 17px;
  height: 17px;
}

.wall-action.active {
  background: linear-gradient(135deg, var(--coral), #a95f33);
  color: #fff;
}

.wall-action-static {
  background: rgba(255, 255, 255, 0.68);
  color: rgba(43, 26, 16, 0.68);
}

.wall-comments {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wall-comment {
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.86);
  box-shadow: inset 0 0 0 1px rgba(95, 53, 24, 0.08);
}

.wall-comment strong {
  display: block;
  margin-bottom: 4px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
}

.wall-comment p,
.wall-empty-comments {
  margin: 0;
  color: rgba(43, 26, 16, 0.66);
  font-size: 12px;
  line-height: 1.4;
}

.wall-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(95, 53, 24, 0.08);
}

.wall-comment-form input {
  height: 40px;
}

.tabs {
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0 14px;
}

.content-card.no-image {
  padding-top: 0;
  background:
    linear-gradient(135deg, rgba(241, 223, 199, 0.8), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(45deg, rgba(136, 80, 35, 0.12) 0 1px, transparent 1px 10px);
}

.toast,
.popup {
  position: fixed;
  z-index: 10;
  left: 50%;
  width: min(calc(100% - 36px), 500px);
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  box-shadow: 0 18px 34px rgba(72, 39, 17, 0.28);
  font-size: 13px;
  font-weight: 900;
}

.toast {
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.popup {
  top: 16px;
  transform: translateX(-50%);
}

/* Modern pet-first app refresh */
.member-app {
  background:
    radial-gradient(ellipse at 16% -4%, rgba(227, 111, 61, 0.16), transparent 31%),
    radial-gradient(ellipse at 94% 6%, rgba(127, 168, 142, 0.2), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f7f0e6 52%, #edf6f2 100%);
}

.app-header {
  border-bottom: 0;
  background: rgba(255, 253, 248, 0.78);
  box-shadow:
    0 1px 0 rgba(33, 74, 58, 0.07),
    0 16px 36px rgba(20, 41, 32, 0.08);
}

.icon-button {
  border-color: rgba(33, 74, 58, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 10px 22px rgba(20, 41, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.member-welcome {
  gap: 16px;
  padding: 0 14px 18px;
  background: transparent;
}

.member-welcome-card {
  position: relative;
  display: grid;
  min-height: min(74svh, 560px);
  align-items: end;
  padding: 18px;
  border-radius: 34px;
  background: #17211c;
  box-shadow:
    0 32px 70px rgba(20, 41, 32, 0.2),
    0 2px 10px rgba(20, 41, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  isolation: isolate;
}

.member-welcome-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(12, 23, 18, 0.1) 0%, rgba(12, 23, 18, 0.18) 32%, rgba(12, 23, 18, 0.82) 100%),
    linear-gradient(90deg, rgba(12, 23, 18, 0.72), transparent 62%);
  pointer-events: none;
}

.member-welcome-media {
  position: absolute;
  z-index: auto;
  inset: 0;
  min-height: 0;
}

.member-welcome-media > img {
  inset: 0;
  z-index: 0;
  border-radius: 34px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  object-position: 50% 42%;
}

.member-welcome-copy {
  position: relative;
  z-index: 2;
  align-content: end;
  max-width: 32rem;
  padding: 132px 0 0;
  color: #fff;
}

.member-welcome-copy .eyebrow {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.member-welcome-copy h1 {
  max-width: 9ch;
  margin: 10px 0 11px;
  color: #fff;
  font-family: Avenir Next, Avenir, Aptos, ui-rounded, Trebuchet MS, Segoe UI, sans-serif;
  font-size: clamp(42px, 11vw, 68px);
  font-weight: 950;
  line-height: 0.9;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.member-welcome-copy p:not(.eyebrow) {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 850;
}

.member-welcome-chips span {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.member-star-card {
  top: 18px;
  right: auto;
  bottom: auto;
  left: 18px;
  z-index: 3;
  width: min(228px, calc(100% - 126px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
}

.member-star-card span,
.member-star-card small {
  color: rgba(255, 255, 255, 0.72);
}

.member-star-card strong {
  color: #fff;
}

.member-welcome-logo {
  z-index: 3;
  border-radius: 24px;
  background: transparent;
}

.member-grooming-grid article,
.home-pet-panel,
.home-recommendation-card,
.home-care-card,
.home-analytics-grid article,
.pet-info-toolbar,
.panel-form,
.wall-form,
.privacy-card,
.instagram-card,
.pet-card,
.result-card,
.route-card,
.conversation-card,
.communications-banner,
.compose-recipient-card,
.notification-card,
.message-thread,
.content-card,
.wall-card,
.service-card,
.schedule-panel,
.reservation-card,
.pricing-card,
.reservation-review-card {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 243, 0.72)),
    linear-gradient(135deg, rgba(223, 241, 230, 0.38), transparent 44%);
  box-shadow:
    0 0 0 1px rgba(33, 74, 58, 0.08),
    0 22px 46px rgba(20, 41, 32, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.section-heading h2,
.home-pet-panel h2,
.home-recommendation-card h3,
.home-care-card h3,
.member-summary-card h3,
.communications-banner h3,
.compose-recipient-card h3,
.notification-card h3,
.pricing-card h3,
.reservation-review-card h3,
.schedule-panel-head h3 {
  font-family: Avenir Next, Avenir, Aptos, ui-rounded, Trebuchet MS, Segoe UI, sans-serif;
  font-weight: 950;
  letter-spacing: 0;
}

.home-pet-panel {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
}

.home-pet-photo-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #edf6f2;
}

.home-pet-photo-shell img,
.home-pet-panel img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  border-radius: 26px;
  object-fit: cover;
  object-position: 50% 42%;
  box-shadow: none;
}

.home-pet-photo-shell span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--deep);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(20, 41, 32, 0.16);
  backdrop-filter: blur(14px);
}

.home-pet-panel h2 {
  font-size: 30px;
  line-height: 0.96;
}

.home-analytics-grid article {
  min-height: 86px;
}

.home-analytics-grid strong {
  color: var(--coral);
  font-size: 23px;
}

.home-recommendation-card {
  background:
    linear-gradient(135deg, rgba(227, 111, 61, 0.16), rgba(255, 255, 255, 0.9) 52%, rgba(223, 241, 230, 0.82));
}

.app-tabs {
  gap: 5px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.86);
  box-shadow:
    0 -18px 44px rgba(20, 41, 32, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.app-tab {
  min-height: 62px;
  border-radius: 20px;
  color: rgba(23, 33, 28, 0.62);
}

.app-tab::before {
  background: var(--coral);
}

.app-tab.active {
  background: linear-gradient(180deg, #2f6a50, #214a3a);
  color: #fff;
  box-shadow:
    0 14px 26px rgba(33, 74, 58, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.pet-photo-uploader {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(223, 241, 230, 0.9), rgba(255, 255, 255, 0.86) 52%, rgba(255, 228, 216, 0.72));
  box-shadow:
    0 0 0 1px rgba(33, 74, 58, 0.08),
    0 18px 38px rgba(20, 41, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pet-photo-uploader img {
  width: 148px;
  height: 168px;
  border-radius: 22px;
  background: #fff;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  object-fit: cover;
  object-position: 50% 42%;
  box-shadow: 0 16px 32px rgba(20, 41, 32, 0.12);
}

.pet-photo-uploader h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  text-wrap: balance;
}

.pet-photo-uploader p {
  margin: 0 0 12px;
  color: rgba(23, 33, 28, 0.66);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.42;
  text-wrap: pretty;
}

.file-action {
  position: relative;
  display: inline-grid;
  width: fit-content;
  min-height: 42px;
  place-items: center;
  overflow: hidden;
  padding: 0 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2f6a50, #214a3a);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 14px 24px rgba(33, 74, 58, 0.2);
}

.file-action input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.pet-card,
.result-card {
  grid-template-columns: 132px 1fr;
  gap: 14px;
}

.pet-thumb,
.result-thumb {
  width: 132px;
  height: 152px;
  border-radius: 24px;
  object-position: 50% 42%;
}

.pet-actions,
.result-actions {
  flex-wrap: wrap;
}

@media (min-width: 700px) and (orientation: portrait) {
  .app-screen {
    width: min(100%, 720px);
  }

  .app-tabs {
    width: min(100vw, 720px);
  }

  .view,
  .access-content {
    padding-left: 34px;
    padding-right: 34px;
  }

  .hero-compact {
    min-height: 300px;
    padding-left: 34px;
    padding-right: 34px;
  }

  .service-track {
    margin-left: -34px;
    margin-right: -34px;
    padding-left: 34px;
    padding-right: 34px;
  }

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

@media (max-width: 390px) {
  .two-col,
  .avatar-row,
  .home-pet-panel,
  .home-recommendation-card,
  .member-summary-card,
  .pet-photo-uploader,
  .pet-card,
  .instagram-card,
  .result-card {
    grid-template-columns: 1fr;
  }

  .verification-row,
  .review-grid,
  .notification-card,
  .compose-recipient-card {
    grid-template-columns: 1fr;
  }

  .home-pet-panel img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .pet-photo-uploader img,
  .pet-thumb,
  .result-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

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

  .wall-comment-form {
    grid-template-columns: 1fr;
  }

  .home-recommendation-card .secondary-button {
    width: 100%;
  }

  .member-summary-card img {
    width: 84px;
    height: 84px;
  }

  .pet-info-toolbar {
    display: grid;
  }

  .app-header .brand-lockup small {
    max-width: 172px;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (prefers-reduced-motion: no-preference) {
  @keyframes boot-scan {
    from {
      transform: translateX(-18%);
    }
    to {
      transform: translateX(160%);
    }
  }

  .view.active {
    animation: rise-in 180ms ease both;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Theme and glass material pass */
html,
body,
.app-screen,
.access-screen,
.member-app,
.mobile-admin-app,
.app-header,
.app-tabs {
  transition-property: background-color, color, box-shadow, filter;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.boot-screen,
.access-screen {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 96%, transparent), color-mix(in srgb, var(--porcelain) 78%, transparent)),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--sage) 12%, transparent) 0 1px, transparent 1px 68px);
}

.member-app {
  background: var(--member-bg);
}

.mobile-admin-app {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 96%, transparent), color-mix(in srgb, var(--porcelain) 86%, transparent)),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--brass) 10%, transparent) 0 1px, transparent 1px 62px);
}

.member-app > .member-app-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 36;
  width: min(100vw, 540px);
  transform: translateX(-50%);
}

.member-app {
  padding-top: calc(72px + env(safe-area-inset-top));
}

.member-welcome,
.view {
  scroll-margin-top: 104px;
}

.access-brand {
  justify-content: flex-start;
}

.access-brand .theme-toggle {
  margin-left: auto;
}

.boot-mark,
.brand-logo-tile,
.welcome-logo-float,
.member-welcome-logo {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.boot-mark img,
.brand-logo-tile img,
.welcome-logo-float img,
.access-logo,
.member-welcome-logo img {
  filter: drop-shadow(0 14px 22px rgba(72, 39, 17, 0.16));
}

.app-header {
  background: color-mix(in srgb, var(--glass-surface-strong) 84%, transparent);
  color: var(--deep);
  box-shadow:
    0 1px 0 var(--line),
    0 16px 36px color-mix(in srgb, var(--deep) 12%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 62%, transparent);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
}

.top-actions {
  gap: 6px;
}

.icon-button {
  width: 40px;
  height: 40px;
}

:where(.primary-button, .secondary-button, .mini-button, .danger-button, .icon-button, .auth-tab, .tab, .date-chip, .slot-button, .file-action, .wall-action, .route-card, .app-tab) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  box-shadow: var(--metal-shadow);
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  transition-property: transform, box-shadow, background-color, color, opacity, filter;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

:where(.primary-button, .secondary-button, .mini-button, .danger-button, .icon-button, .auth-tab, .tab, .date-chip, .slot-button, .file-action, .wall-action, .route-card)::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.22) 18%, transparent 46%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.42), transparent 48%);
  opacity: 0.74;
  pointer-events: none;
}

.primary-button {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--deep-2) 84%, #fff 16%), var(--deep) 58%, color-mix(in srgb, var(--deep) 70%, #000 30%));
  color: #fff;
}

.secondary-button {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--coral) 86%, #fff 14%), var(--coral) 58%, color-mix(in srgb, var(--coral) 68%, #6f2c18 32%));
  color: #fff;
}

.mini-button,
.date-chip,
.tab,
.auth-tab,
.wall-action {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--glass-surface-strong) 86%, #fff 14%), color-mix(in srgb, var(--glass-surface) 88%, transparent));
  color: var(--deep);
}

.danger-button {
  background:
    linear-gradient(145deg, rgba(255, 234, 229, 0.94), rgba(255, 246, 243, 0.72));
  color: #8d281c;
}

.icon-button,
.app-tab {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--glass-surface-strong) 86%, #fff 14%), color-mix(in srgb, var(--glass-surface) 78%, transparent));
  color: var(--deep);
}

.route-card,
.slot-button {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--glass-surface-strong) 88%, #fff 12%), color-mix(in srgb, var(--glass-surface) 82%, transparent)),
    linear-gradient(315deg, color-mix(in srgb, var(--sage) 12%, transparent), transparent 48%);
}

.route-card.featured,
.service-track.single-service .service-card,
.home-recommendation-card {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--rose) 48%, var(--glass-surface-strong)), color-mix(in srgb, var(--glass-surface) 84%, transparent)),
    linear-gradient(315deg, color-mix(in srgb, var(--sage) 18%, transparent), transparent 52%);
}

.app-tab.active,
.date-chip.active,
.slot-button.selected {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--deep-2) 82%, #fff 18%), var(--deep) 58%, color-mix(in srgb, var(--deep) 68%, #000 32%));
  color: #fff;
  box-shadow: var(--metal-shadow-hover);
}

.auth-tab.active,
.tab.active,
.wall-action.active {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--coral) 86%, #fff 14%), var(--coral) 58%, color-mix(in srgb, var(--coral) 68%, #6f2c18 32%));
  color: #fff;
  box-shadow: var(--metal-shadow-hover);
}

@media (hover: hover) {
  :where(.primary-button, .secondary-button, .mini-button, .danger-button, .icon-button, .auth-tab, .tab, .date-chip, .slot-button, .file-action, .wall-action, .route-card, .app-tab):hover {
    transform: translateY(-1px);
    box-shadow: var(--metal-shadow-hover);
    filter: saturate(1.04);
  }
}

.theme-toggle {
  color: var(--deep);
}

.theme-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25);
  transition-property: opacity, filter, transform;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

html[data-theme="light"] .theme-moon,
html[data-theme="dark"] .theme-sun {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.theme-icon svg {
  width: 20px;
  height: 20px;
}

.member-grooming-grid article,
.home-pet-panel,
.home-recommendation-card,
.home-care-card,
.home-analytics-grid article,
.pet-info-toolbar,
.panel-form,
.wall-form,
.privacy-card,
.instagram-card,
.pet-card,
.result-card,
.route-card,
.conversation-card,
.communications-banner,
.compose-recipient-card,
.notification-card,
.message-thread,
.content-card,
.wall-card,
.service-card,
.schedule-panel,
.reservation-card,
.pricing-card,
.reservation-review-card,
.member-summary-card,
.section-heading {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--glass-surface-strong) 86%, transparent), color-mix(in srgb, var(--glass-surface) 78%, transparent)),
    linear-gradient(135deg, color-mix(in srgb, var(--sage) 12%, transparent), transparent 44%);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.app-tabs {
  background: color-mix(in srgb, var(--glass-surface-strong) 86%, transparent);
  box-shadow:
    0 -18px 44px color-mix(in srgb, var(--deep) 16%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 68%, transparent);
  backdrop-filter: blur(24px) saturate(1.24);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
}

.home-pet-panel p,
.home-recommendation-card p,
.home-care-card p,
.member-summary-card p,
.pet-card p,
.result-card p,
.conversation-card p,
.content-card p,
.wall-card p,
.service-card p,
.privacy-card p,
.instagram-card p,
.communications-banner p,
.compose-recipient-card p,
.notification-card p,
.pricing-card p,
.reservation-review-card p,
.account-form-heading p,
.pet-photo-uploader p,
.meta-line,
.route-card small {
  color: var(--text-muted);
}

.home-pet-photo-shell img,
.home-pet-panel img,
.member-welcome-media > img,
.welcome-image-stack img,
.avatar-preview,
.pet-thumb,
.result-thumb,
.member-summary-card img,
.compose-recipient-card > img,
.conversation-avatar,
.wall-card img,
.content-card img,
.pet-photo-uploader img {
  outline-color: var(--image-outline);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] input:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 242, 234, 0.48);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  box-shadow:
    0 0 0 4px rgba(137, 208, 175, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .badge,
html[data-theme="dark"] .route-number,
html[data-theme="dark"] .home-pet-facts span,
html[data-theme="dark"] .home-care-tags span {
  background: rgba(137, 208, 175, 0.14);
  color: var(--deep);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .notification-card.unread {
  background:
    linear-gradient(135deg, rgba(255, 152, 108, 0.18), rgba(31, 44, 37, 0.78) 58%, rgba(137, 208, 175, 0.13));
}

html[data-theme="dark"] .member-welcome-logo img,
html[data-theme="dark"] .welcome-logo-float img,
html[data-theme="dark"] .brand-logo-tile img,
html[data-theme="dark"] .boot-mark img,
html[data-theme="dark"] .access-logo {
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.36));
}

html[data-theme="dark"] .app-header {
  background: rgba(14, 21, 17, 0.86);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .brand-lockup small {
  color: rgba(247, 242, 234, 0.58);
}

html[data-theme="dark"] .app-tabs {
  background: rgba(14, 21, 17, 0.86);
  box-shadow:
    0 -18px 44px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-tab:not(.active),
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .mini-button,
html[data-theme="dark"] .date-chip,
html[data-theme="dark"] .tab,
html[data-theme="dark"] .auth-tab,
html[data-theme="dark"] .wall-action {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.07));
  color: var(--deep);
}

html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .auth-tab.active,
html[data-theme="dark"] .tab.active,
html[data-theme="dark"] .wall-action.active {
  background:
    linear-gradient(145deg, rgba(137, 208, 175, 0.94), rgba(67, 137, 105, 0.92) 58%, rgba(23, 74, 53, 0.96));
  color: #07100d;
}

html[data-theme="dark"] .app-tab::before,
html[data-theme="dark"] .route-card.featured::before {
  background: var(--deep);
}

html[data-theme="dark"] .member-grooming-grid strong {
  color: rgba(247, 242, 234, 0.76);
}

html[data-theme="dark"] .member-grooming-grid span {
  color: var(--deep);
}

@media (min-width: 500px) {
  .instagram-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 700px) and (orientation: portrait) {
  .member-app > .member-app-header {
    width: min(100vw, 720px);
  }
}
