:root {
  --ink: #183f38;
  --teal: #116b5c;
  --line: #dce5da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f8f1;
  color: var(--ink);
  font: 15px system-ui;
}
header {
  padding: 24px 4%;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 25px;
}
main {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 80vh;
}
aside {
  background: white;
  padding: 30px 20px;
  border-right: 1px solid var(--line);
}
aside button {
  margin: 6px 0;
  width: 100%;
  text-align: left;
  background: #edf3e5;
  color: var(--ink);
}
aside p {
  font-size: 12px;
  line-height: 2;
  color: #526b5c;
  margin-top: 40px;
}
section {
  padding: 35px;
  max-width: 1300px;
  width: 100%;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
h2 {
  font-size: 20px;
}
p {
  line-height: 1.7;
  color: #5f776a;
}
button {
  font: inherit;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--teal);
  color: white;
  cursor: pointer;
}
button.secondary {
  background: #eef3e7;
  color: var(--ink);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  font: inherit;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  max-width: 100%;
}
label {
  display: block;
  margin: 15px 0;
  font-size: 13px;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 6px;
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
  display: inline;
}
.notice {
  background: #e9f0dd;
  padding: 12px 4%;
  font-size: 12px;
  line-height: 1.7;
}
.panel {
  background: white;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin: 20px 0;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.badge {
  background: #edf3e4;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.warn {
  background: #fff0d5;
  color: #94681a;
}
.red {
  background: #fce8e3;
  color: #9b4638;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  padding: 15px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 11px;
  color: #516957;
}
small {
  color: #526b5c;
}
dialog {
  border: 0;
  border-radius: 16px;
  max-width: 540px;
  width: 95%;
  padding: 30px;
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #163d3877;
}
.close {
  float: right;
  background: #edf3e5;
  color: var(--ink);
  padding: 7px 12px;
}
.entry {
  background: #f6f8f1;
  border-radius: 9px;
  padding: 16px;
  margin: 15px 0;
}
.token {
  overflow-wrap: anywhere;
  background: #edf3e5;
  padding: 16px;
  font: 12px monospace;
}
#status {
  color: #9b4638;
  min-height: 20px;
}
form > button {
  margin: 10px 5px 0 0;
}
.checkrow {
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (max-width: 750px) {
  main {
    grid-template-columns: 1fr;
  }
  aside {
    display: flex;
    padding: 10px;
    gap: 10px;
  }
  aside p {
    display: none;
  }
  aside button {
    width: auto;
  }
  section {
    padding: 20px 14px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  header {
    flex-wrap: wrap;
  }
  .brand {
    font-size: 21px;
  }
  td,
  th {
    padding: 10px 3px;
    font-size: 11px;
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 750px) {
  aside {
    flex-wrap: wrap;
  }
  aside button {
    font-size: 12px;
    padding: 9px;
  }
}
.auth-layout {
  display: block;
  max-width: 720px;
  margin: 32px auto;
  padding: 0 20px;
}
.auth-panel {
  max-width: 520px;
  margin: auto;
}
.auth-layout nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.auth-layout .token {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.auth-layout h1 {
  margin-top: 0;
}

[aria-invalid="true"] {
  border: 2px solid #b42318;
  outline-color: #b42318;
}
.vaccination-error {
  color: #b42318;
  font-size: 0.9rem;
  margin: 0.3rem 0;
  font-weight: 500;
}

.source-proof {
  border: 2px solid #10695c;
  font-weight: 600;
}
.source-proof:hover:not(:disabled) {
  background: #095448;
  text-decoration: underline;
}
.source-proof:focus-visible {
  outline: 3px solid #b47c12;
  outline-offset: 3px;
}
#boardingGuide input:disabled {
  opacity: 1;
  accent-color: #10695c;
}

.facility-banner {
  display: block;
  width: 100%;
  height: clamp(120px, 20vw, 260px);
  object-fit: cover;
  border-radius: 16px;
  margin: 0 0 24px;
}
.pet-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #10695c;
}
aside button[aria-current="page"] {
  background: #10695c;
  color: #fff;
  box-shadow: inset 4px 0 #b7d886;
}
aside button:hover:not(:disabled) {
  background: #dbe8d0;
  color: #17483e;
}
button[aria-busy="true"] {
  cursor: progress;
}
.queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}
.queue-grid button {
  text-align: left;
}
.queue-grid strong {
  display: block;
  font-size: 26px;
  margin-top: 6px;
}
.queue-grid [aria-pressed="true"] {
  background: var(--teal);
  color: white;
}
.table-scroll {
  overflow-x: auto;
}

.unread-notification {
  border-left: 5px solid var(--teal);
}

#notifications::before {
  content: "🔔 ";
}

/* Warm, readable surfaces for owners and care teams. */
:root {
  --ink: #243f38;
  --teal: #276955;
  --line: #e4dfd3;
}
body {
  background: #f6f3eb;
  background-image: radial-gradient(
    ellipse at top right,
    #eee7d7 0,
    transparent 48%
  );
}
header {
  background: #fffdf7;
  padding: 22px 4%;
  box-shadow: 0 3px 18px #3e493609;
}
.brand small {
  color: #657568;
  font-size: 12px;
}
h1,
h2,
h3 {
  color: var(--ink);
}
p {
  color: #5c6d61;
}
button {
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 3px 8px #244c3812;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:hover:not(:disabled) {
  background: #205846;
  box-shadow: 0 4px 12px #244c3826;
}
button.secondary {
  background: #eee9de;
}
button.secondary:hover:not(:disabled) {
  background: #e2dacb;
}
button:disabled {
  cursor: not-allowed;
}
button[aria-busy="true"] {
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a15a40;
  outline-offset: 3px;
}
input,
select,
textarea {
  border-radius: 10px;
  border-color: #d5dacc;
}
.panel {
  background: #fffdf8;
  border-radius: 20px;
  box-shadow: 0 5px 20px #564e3710;
}
.entry {
  background: #f3f4eb;
  border: 1px solid #e8e9df;
  border-radius: 14px;
}
aside {
  background: #ebeede;
  border-color: #dce1ce;
}
aside button {
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
}
aside button:hover:not(:disabled) {
  background: #dce5ce;
  color: var(--ink);
}
aside button[aria-current="page"] {
  background: #276955;
  color: white;
  box-shadow: 0 4px 10px #27695522;
}
.notice {
  background: #eee8d8;
  color: #58684f;
}
.dashboard-welcome {
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(115deg, #e5ecd7, #f4ead7);
  border: 1px solid #dbe2ce;
  box-shadow: 0 6px 24px #52603b0c;
  margin-bottom: 24px;
}
.dashboard-welcome h1 {
  margin-top: 10px;
}
.dashboard-welcome p {
  max-width: 650px;
  margin-bottom: 0;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #526847;
}
.pet-card-title {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.pet-card-title h2 {
  margin: 0;
}
.pet-card-title p {
  margin: 6px 0 0;
}
.pet-avatar {
  display: grid;
  place-items: center;
  background: #e6ead6;
  color: #426344;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  font-size: 25px;
  font-weight: 700;
  flex-shrink: 0;
}
.pet-dashboard-card:nth-of-type(3n) .pet-avatar {
  background: #f2dfcf;
  color: #89563f;
}
.queue-grid button {
  background: #f1ede2;
  color: var(--ink);
  border: 1px solid #e4dfd2;
  border-radius: 16px;
  padding: 18px;
}
.queue-grid button strong {
  color: #946b3a;
}
.queue-grid button[aria-pressed="true"] {
  background: #276955;
  border-color: #276955;
  color: white;
}
.queue-grid button[aria-pressed="true"] strong {
  color: white;
}
dialog {
  background: #fffdf8;
  border-radius: 22px;
  box-shadow: 0 24px 80px #183f3840;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1120px;
  margin: 52px auto;
  padding: 0 24px;
  align-items: start;
}
.welcome-story {
  padding: 34px 20px;
}
.welcome-story h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 18px 0;
}
.welcome-story p {
  max-width: 410px;
  font-size: 16px;
}
.welcome-story img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px auto;
}
.welcome-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.welcome-tags span {
  font-size: 12px;
  color: #4b624a;
  border: 1px solid #d4ddc8;
  padding: 8px 12px;
  border-radius: 30px;
  background: #f9f9ed;
}
.auth-panel {
  width: 100%;
  padding: 32px;
  border-top: 5px solid #ca795d;
  margin: 0;
  box-shadow: 0 16px 40px #594d3410;
}
.auth-panel h1 {
  font-size: 30px;
}
#localInbox {
  grid-column: 1 / -1;
}
@media (max-width: 750px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 24px auto;
    padding: 0 16px;
  }
  .welcome-story {
    padding: 10px 8px;
  }
  .welcome-story h2 {
    font-size: 32px;
  }
  .welcome-story img {
    width: 200px;
    margin: 0 auto;
  }
  .welcome-story p {
    margin-bottom: 0;
  }
  .welcome-tags {
    display: none;
  }
  .auth-panel {
    padding: 24px;
  }
  .dashboard-welcome {
    padding: 22px;
  }
  .pet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  aside {
    border-bottom: 1px solid #dce1ce;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}

.proof-preview {
  width: min(1100px, 94vw);
  max-width: 94vw;
  max-height: 94vh;
}
.proof-preview-content iframe {
  width: 100%;
  height: 60vh;
  border: 1px solid #dce5da;
  border-radius: 12px;
  background: white;
}
.proof-preview-content img {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  margin: auto;
  object-fit: contain;
}
.proof-download {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: #276955;
  color: white;
  font-weight: 600;
}
.proof-download:focus-visible {
  outline: 3px solid #a15a40;
  outline-offset: 3px;
}

.app-update-notice {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 24px;
  background: #fff2da;
  border-bottom: 1px solid #dac298;
  color: #183f38;
}
.app-update-notice p {
  margin: 0;
}
.app-update-notice button {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .app-update-notice {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }
}

.auth-form-feedback:not([hidden]) {
  padding: 14px;
  border: 1px solid #d4b18f;
  border-radius: 12px;
  background: #fff2da;
  color: #483c2f;
}
.auth-form-feedback,
#authStatus,
#status {
  overflow-wrap: anywhere;
}

.account-starts {
  margin: 24px 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #d9dfce;
  background: #fffdf8;
}
.account-starts h3 {
  margin: 10px 0;
}
.account-starts p {
  font-size: 16px;
}
.registration-guide {
  padding: 12px;
  border-left: 4px solid #276955;
}

.setup-step {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e2e6dc;
}
.setup-step > span {
  font-size: 28px;
  color: #276955;
}
.setup-step > div {
  flex: 1;
}
.setup-step p {
  margin: 4px 0;
}

.setup-step > input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: #276955;
  opacity: 1;
}

.pricing-page main.pricing-main {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
}
.pricing-hero {
  max-width: 800px;
  margin: 0 auto 36px;
  text-align: center;
}
.pricing-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  margin: 14px 0;
}
.pricing-preview {
  padding: 16px;
  border-radius: 14px;
  background: #fff2da;
  font-size: 15px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.pricing-grid .panel {
  margin: 0;
}
.pricing-card {
  border-top: 5px solid #276955;
}
.plan-price {
  font-size: 44px;
  font-weight: 750;
  color: #183f38;
  margin: 12px 0;
}
.plan-price span {
  font-size: 16px;
  font-weight: 400;
}
.pricing-card ul {
  padding-left: 22px;
  line-height: 1.9;
  margin-bottom: 24px;
}
.plan-prepaid {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #dce5da;
}
.plan-scope {
  font-size: 14px;
  color: #52675c;
}
.founding-plan {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #eef3e7;
}
.founding-plan > div {
  flex: 1;
}
.founding-plan > a {
  white-space: nowrap;
}
.pricing-next li {
  margin: 10px 0;
}
.pricing-main footer {
  font-size: 14px;
  color: #52675c;
  text-align: center;
  margin: 24px 0;
}
@media (max-width: 750px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .founding-plan {
    display: block;
  }
  .pricing-page main.pricing-main {
    padding: 28px 16px;
  }
}

.authenticator-qr {
  padding: 16px;
  background: white;
  border: 1px solid #dce5da;
  border-radius: 16px;
  margin: 16px 0;
}
.authenticator-qr canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}
#manualSetup {
  padding: 14px;
  border: 1px solid #dce5da;
  border-radius: 12px;
  margin: 16px 0;
}
#manualSetup summary {
  cursor: pointer;
  font-weight: 600;
}

/* A welcoming workspace masthead; decorative elements never block controls. */
.app-masthead {
  position: relative;
  background:
    radial-gradient(ellipse at 48% 0%, #dfead780, transparent 65%), #fffdf7;
  border-bottom: 3px solid #b9d49b;
  padding: 20px 4%;
  min-height: 124px;
  gap: 28px;
}
.app-masthead .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.app-masthead .brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px 18px 18px 6px;
  background: #1d594b;
  color: #f2dfba;
  font-size: 36px;
  box-shadow: 4px 4px 0 #dce8cb;
}
.app-masthead .brand small {
  margin: 3px 0 0;
}
.brand-caption {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15px;
  font-weight: 450;
  color: #69745f;
  margin-top: 9px;
}
.workspace-page #account {
  background: #ffffffb8;
  border: 1px solid #dce5d6;
  border-radius: 18px;
  padding: 12px 16px;
  max-width: 510px;
  width: 100%;
  box-shadow: 0 4px 16px #26463808;
}
.workspace-page #account label {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
}
.workspace-page #account select {
  margin-top: 5px;
  width: 100%;
  background: #f6f9f0;
}
.clinic-note {
  border-left: 4px solid #78987b;
}
@media (max-width: 750px) {
  .app-masthead {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .app-masthead .brand {
    font-size: 23px;
  }
  .workspace-page #account {
    max-width: none;
  }
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid #cad8c1;
  border-radius: 12px;
  background: #f0f5e8;
  color: #245346;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s;
}
.header-nav a:hover {
  background: #e2edd6;
}
.header-nav a.nav-primary {
  background: #1d594b;
  color: #fffdf7;
  border-color: #1d594b;
}
.header-nav a.nav-primary:hover {
  background: #164739;
}
.header-nav a:focus-visible {
  outline: 3px solid #bb6f50;
  outline-offset: 4px;
}
@media (max-width: 750px) {
  .header-nav a {
    flex: 1;
  }
}

.note-date-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.note-date-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.foldable-record > summary {
  cursor: pointer;
  padding: 8px 0;
  color: var(--ink);
}
.foldable-record > summary strong {
  margin-left: 6px;
}
.fold-hint {
  display: inline-block;
  margin-left: 14px;
  font-size: 12px;
  color: #426b58;
  font-weight: 600;
}
.foldable-record .fold-open {
  display: none;
}
.foldable-record[open] > summary .fold-open {
  display: inline;
}
.foldable-record[open] > summary .fold-closed {
  display: none;
}
.foldable-record > summary:focus-visible {
  outline: 3px solid #bb6f50;
  outline-offset: 4px;
  border-radius: 6px;
}
.foldable-record > button {
  margin-top: 10px;
  margin-right: 8px;
}

.note-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 20px 0 8px;
}
.note-tools label {
  flex: 1 1 180px;
  margin: 0;
}
.note-tools input,
.note-tools select {
  width: 100%;
}
.note-tools button {
  margin-bottom: 0;
}
.note-saved-date {
  display: inline-block;
  margin-left: 12px;
  color: #5c6d61;
  font-size: 12px;
}

[data-record-kind][hidden] {
  display: none !important;
}

.notification-target {
  outline: 3px solid #b6ce8e;
  outline-offset: 3px;
  background: #f2f7e8;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.text-limit-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #52695f;
}
.text-limit-hint.at-limit {
  color: #8b452d;
  font-weight: 600;
}

#modal textarea[aria-invalid="true"],
#modal input[aria-invalid="true"] {
  border-color: #a94e35;
  outline: 2px solid #a94e35;
  outline-offset: 2px;
}

.service-bulletin {
  padding: 1rem 2rem;
  background: #fff0cd;
  color: #513c20;
  border-bottom: 2px solid #d9aa55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

#serviceBulletin {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.pet-section-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}
.pet-section-shortcuts button {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}
#view .panel h2 {
  scroll-margin-top: 1rem;
}

.back-pet-overview {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid #d5ddcc;
  background: #e8efdf;
  color: #203f36;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand {
  font-size: 1.35rem;
  font-weight: 750;
  text-decoration: none;
}
.site-footer a,
.site-footer a:visited {
  color: #1d594b;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer a:focus-visible,
.site-footer summary:focus-visible {
  outline: 3px solid #c67559;
  outline-offset: 5px;
}
.site-footer p {
  max-width: 42rem;
  margin: 0.6rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-content: start;
  padding-top: 0.4rem;
}
.footer-top nav a {
  font-weight: 650;
}
.footer-details {
  margin-top: 1.25rem;
}
.footer-details summary {
  cursor: pointer;
  font-weight: 650;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #cdd8c3;
  font-size: 0.85rem;
}
@media (max-width: 700px) {
  .footer-top {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-top nav a {
    padding: 0.4rem 0;
  }
}

/* Service names stay visible; descriptions and management actions fold. */
.service-browser {
  margin: 16px 0 24px;
}
.service-browser-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
}
.service-browser-tools label {
  flex: 1 1 190px;
  margin: 0;
}
.service-browser-tools button {
  font-size: 13px;
  padding: 10px 12px;
  margin: 0;
}
.service-browser-tools input,
.service-browser-tools select {
  font-size: 15px;
  min-height: 42px;
}
.service-match-count {
  font-size: 13px;
  margin: 12px 0;
}
.service-offerings {
  display: grid;
  gap: 10px;
  align-items: start;
}
.service-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #f4f5ec;
  min-width: 0;
}
.service-list-row[hidden] {
  display: none;
}
.service-list-row details {
  min-width: 0;
}
.service-list-row summary {
  cursor: pointer;
  display: block;
  padding: 2px 0 2px 18px;
  position: relative;
}
.service-list-row summary::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #286657;
}
.service-list-row details[open] > summary::before {
  content: "▾";
}
.service-list-name {
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.service-list-row summary small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.service-list-row details[open] .service-details-hint {
  display: none;
}
.service-detail-body p {
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.service-list-row > button,
.service-row-actions button {
  font-size: 13px;
  padding: 10px 13px;
  margin: 0;
}
.service-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.service-offerings-manage .service-list-row {
  grid-template-columns: minmax(0, 1fr);
}
.service-availability {
  display: inline-block;
  font-size: 12px;
  margin-left: 10px;
  border: 1px solid #c8d6bd;
  border-radius: 20px;
  padding: 2px 8px;
}
@media (min-width: 1100px) {
  .service-offerings:not(.service-offerings-manage) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .service-browser-tools button {
    flex: 1 1 auto;
  }
  .service-list-name {
    font-size: 16px;
  }
}

/* Shared section headers keep familiar labels while giving each workflow a home. */
.section-heading {
  --heading-bg: #edf3e5;
  --heading-ink: #254d3a;
  --heading-line: #cbdcbb;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 20px;
  margin: 0 0 18px;
  border: 1px solid var(--heading-line);
  border-left: 4px solid var(--heading-ink);
  border-radius: 18px;
  background: var(--heading-bg);
  color: var(--heading-ink);
}
.section-heading[data-tone="amber"] {
  --heading-bg: #fbefd9;
  --heading-ink: #70481c;
  --heading-line: #ead5af;
}
.section-heading[data-tone="blue"] {
  --heading-bg: #eaf0f7;
  --heading-ink: #2f4e6d;
  --heading-line: #ccd9e6;
}
.section-heading[data-tone="teal"] {
  --heading-bg: #e4f0ec;
  --heading-ink: #205a50;
  --heading-line: #bcd8cf;
}
.section-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--heading-line);
  background: #ffffffb8;
}
.section-heading-icon svg {
  width: 25px;
  height: 25px;
}
.section-heading-copy {
  flex: 1 1 180px;
  min-width: 0;
}
.section-heading-eyebrow {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.section-heading h2,
.section-heading h3 {
  color: inherit;
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.35px;
  overflow-wrap: anywhere;
}
.section-heading h3 {
  font-size: 19px;
}
.section-heading-meta {
  flex: 0 1 auto;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
  border: 1px solid var(--heading-line);
  background: #ffffffb8;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .section-heading {
    gap: 10px;
    padding: 14px;
    border-radius: 15px;
  }
  .section-heading-copy {
    flex-basis: 130px;
  }
  .section-heading h2,
  .section-heading h3 {
    font-size: 19px;
  }
  .section-heading-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .section-heading-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* A shared, welcoming starting point for owners, care teams and operations. */
.workspace-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 3vw, 42px);
  margin-bottom: 26px;
  border-radius: 28px;
  background: linear-gradient(125deg, #204e42 0%, #183f38 68%, #2d6251 100%);
  color: #fff7e8;
  border: 1px solid #295a4b;
  box-shadow: 0 14px 30px #183f3815;
}
.workspace-welcome-copy {
  min-width: 0;
}
.workspace-welcome-eyebrow {
  display: block;
  color: #e5cf9f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.workspace-welcome h1 {
  color: #fff7e8;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  margin: 13px 0 16px;
  overflow-wrap: anywhere;
}
.workspace-welcome p {
  color: #e0e9dd;
  max-width: 580px;
  margin: 0;
  line-height: 1.65;
}
.workspace-welcome-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.workspace-welcome-stats span {
  border: 1px solid #779c8470;
  border-radius: 20px;
  background: #ffffff0a;
  padding: 6px 12px;
  color: #f6edd9;
  font-size: 12px;
}
.workspace-welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.workspace-welcome-actions button {
  background: #f5d3a0;
  color: #183f38;
  border: 1px solid #f5d3a0;
  box-shadow: none;
  margin: 0;
}
.workspace-welcome-actions button.secondary {
  background: #ffffff0a;
  color: #fff4df;
  border: 1px solid #87a590;
}
.workspace-welcome-actions button:hover {
  background: #ffe4bc;
  color: #183f38;
}
.workspace-welcome-actions button.secondary:hover {
  background: #365f50;
  color: white;
}
.workspace-welcome button:focus-visible {
  outline: 3px solid #f6d494;
  outline-offset: 4px;
}
.workspace-welcome-art {
  background: #fff3dc;
  border-radius: 32px 32px 52px 32px;
  padding: 8px 8px 20px;
  transform: rotate(3deg);
  box-shadow: 8px 8px 0 #ffffff0c;
  text-align: center;
}
.workspace-welcome-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.workspace-welcome-art span {
  display: block;
  color: #315449;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  padding: 0 8px;
}
#mode {
  font-size: 12px;
  border-bottom: 1px solid #dedfce;
}
@media (max-width: 1050px) {
  .workspace-welcome {
    grid-template-columns: minmax(0, 1fr) 175px;
    gap: 22px;
  }
}
@media (max-width: 700px) {
  .workspace-welcome {
    grid-template-columns: 1fr;
  }
  .workspace-welcome-art {
    display: none;
  }
  .workspace-welcome-actions {
    gap: 8px;
  }
  .workspace-welcome-actions button {
    padding: 11px 14px;
  }
}

.form-working-notice {
  padding: 12px 15px;
  border: 1px solid #b8cfaa;
  border-left: 4px solid #276955;
  border-radius: 12px;
  background: #edf4e5;
  color: #21483b;
  line-height: 1.5;
}
.form-working-notice:focus {
  outline: 2px solid #276955;
  outline-offset: 3px;
}

.breed-field {
  min-width: 0;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #d6e1ca;
  border-radius: 16px;
  background: #f3f6eb;
}
.breed-field legend {
  font-weight: 750;
  padding: 0 6px;
}
.breed-field p {
  font-size: 13px;
  line-height: 1.6;
}
.breed-field select,
.breed-field input {
  max-width: 100%;
}
[data-pet-breed] {
  font-size: 14px;
  color: #536d5f;
  overflow-wrap: anywhere;
}

/* Distinct disclosure controls with native keyboard/open-state semantics. */
.foldable-record > summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c3d4b9;
  border-radius: 12px;
  background: #edf3e5;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.foldable-record > summary::-webkit-details-marker {
  display: none;
}
.foldable-record > summary::before {
  content: "›";
  display: inline-block;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  color: #1d594b;
  transform: rotate(0deg);
}
.foldable-record[open] > summary::before {
  transform: rotate(90deg);
}
.foldable-record[open] > summary {
  background: #e3eed9;
  border-color: #789769;
}
.foldable-record > summary:hover {
  background: #dcebcf;
  border-color: #527852;
}
.foldable-record > summary:active {
  background: #cfdfc1;
}
.foldable-record > summary strong {
  margin-left: 0;
  overflow-wrap: anywhere;
}
.foldable-record > summary .fold-hint {
  margin-left: auto;
  border-radius: 20px;
  padding: 5px 10px;
  background: #fffdf4;
  color: #215646;
}
.secondary-panel > summary {
  font-size: 19px;
}
.section-fold-meta {
  flex-basis: 100%;
  margin-left: 20px;
  font-size: 13px;
  color: #4d6354;
}
.section-fold-content {
  padding-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
  .foldable-record > summary {
    transition: none;
  }
}

.snapshot-status {
  padding: 12px 16px;
  border: 1px solid #c4d5b9;
  border-radius: 12px;
  background: #edf3e5;
  color: #285944;
  font-size: 14px;
}
.snapshot-status[data-snapshot-state="stale"],
.snapshot-status[data-snapshot-state="unknown"] {
  background: #fff1d0;
  color: #74501a;
  border-color: #d9b96b;
}

.privacy-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.privacy-hero {
  background: linear-gradient(120deg, #e8efda, #fff1d9);
  border-top: 5px solid var(--teal);
}
.privacy-hero h1 {
  margin-top: 12px;
}
.offboarding-guide,
.offboarding-progress {
  padding: clamp(16px, 3vw, 24px);
  margin: 20px 0;
  border: 1px solid #c8d7ba;
  border-left: 5px solid var(--teal);
  border-radius: 16px;
  background: #f3f6eb;
}
.offboarding-guide h4:focus {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}
.offboarding-guide [role="alert"] {
  color: #9c3e2c;
}
.offboarding-timeline {
  padding-left: 22px;
}
.offboarding-timeline li {
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.offboarding-progress fieldset {
  min-width: 0;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 8px;
  background: #1d594b;
  color: #fff;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #e7c385;
  outline-offset: 2px;
}

/* Touch, keyboard and reflow checks: keep disclosures usable across all pages. */
summary {
  min-height: 44px;
  padding-block: 10px;
  line-height: 1.5;
  cursor: pointer;
}
summary:focus-visible {
  outline: 3px solid #a15a40;
  outline-offset: 3px;
  border-radius: 6px;
}
button {
  min-height: 44px;
}
main > *,
.auth-layout > *,
.row > * {
  min-width: 0;
}
@media (max-width: 700px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

[data-download-fallback] { max-width: 38rem; }
[data-download-fallback] a { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1rem; border: 2px solid #276653; border-radius: .7rem; color: #174f40; font-weight: 700; }
[data-download-fallback] p { overflow-wrap: anywhere; }

/* Feedback remains beside the action, including on touch screens. */
.operation-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.action-feedback { padding: .75rem 1rem; border: 1px solid #bfd3c2; border-left: 4px solid #276653; border-radius: .65rem; background: #edf4e7; color: #204a40; overflow-wrap: anywhere; }
.action-feedback[hidden] { display: none; }
.action-feedback[data-feedback-state="busy"] { background: #f5efdf; border-color: #c8af73; color: #59461e; }
.action-feedback[data-feedback-state="error"] { background: #fff0e9; border-color: #ae4f37; color: #803624; }
.workspace-welcome .action-feedback { color: #204a40; }
.workspace-welcome .action-feedback[data-feedback-state="busy"] { color: #59461e; }
.workspace-welcome .action-feedback[data-feedback-state="error"] { color: #803624; }
button:hover:not(:disabled) { box-shadow: 0 0 0 2px #27665360, 0 5px 12px #244c3826; }
button:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 4px #143c4033; }
@media (prefers-reduced-motion: reduce) { button { transition: none; } button:active:not(:disabled) { transform: none; } }
.action-feedback[data-feedback-state="info"] { background: #eef3f1; border-color: #9bb6ad; color: #204a40; }
.action-feedback[data-feedback-state="warning"] { background: #fff3d8; border-color: #b18b35; color: #59461e; }

.clinic-care-workspace { border: 1px solid #b8d7ce; border-radius: 1rem; padding: clamp(1rem, 2vw, 1.5rem); margin-block: 1rem 1.5rem; background: #f3f8f5; }
.clinic-care-tools { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-block: 1rem; }
.clinic-care-tools label { flex: 1 1 12rem; }
.clinic-care-workspace dl, #modal dl { overflow-wrap: anywhere; }
.clinic-care-workspace dt { font-weight: 650; margin-top: .5rem; }
.clinic-care-workspace dd { margin-left: 0; }

#careItemForm fieldset { min-inline-size: 0; margin: 1rem 0; border: 1px solid #b8d7ce; border-radius: .75rem; }
.clinic-care-workspace select { max-width: 100%; }
.clinic-patient { border-left: 4px solid #266a57; padding: .7rem; background: #fffdf6; }

/* Guided clinic navigation: visual grouping without hiding clinical information. */
.clinic-flow { border-top: 5px solid #286858; }
.clinic-flow-patient { padding: .8rem 1rem; border-radius: .8rem; background: #edf3e6; }
.clinic-flow-steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1rem; margin: 1.2rem 0; }
.clinic-flow-steps li { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border: 1px solid #d8dfd0; border-radius: 1rem; background: #f7f8f1; min-width: 0; }
.clinic-flow-steps h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.clinic-flow-steps p { margin: .4rem 0; }
.clinic-flow-number { flex: 0 0 1.8rem; min-height: 1.8rem; border-radius: 50%; background: #245d50; color: #fff; display: grid; place-items: center; font-weight: 700; }
.clinic-flow-privacy { display: block; font-size: .9rem; font-weight: 700; color: #255c50; margin: .7rem 0; }
.clinic-flow-steps button { margin: .3rem 0 0; max-width: 100%; }
.clinic-flow :focus-visible { outline: 3px solid #98660e; outline-offset: 4px; }
@media (max-width: 520px) { .clinic-flow-steps { grid-template-columns: minmax(0,1fr); } .clinic-flow-steps li { padding: .8rem; } }

.clinic-chart-summary { border-top: 5px solid #286858; }
.clinic-chart-grid, .clinic-queue-columns { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:1rem; }
.clinic-chart-grid > section, .clinic-queue-stage { min-width:0; padding:1rem; border:1px solid #d8dfd0; border-radius:1rem; background:#f7f8f1; overflow-wrap:anywhere; }
.clinic-chart-grid h3, .clinic-queue-stage h2 { margin-top:0; }
.clinic-chart-grid dd { margin:0 0 .8rem; }
.clinic-chart-grid button, .clinic-queue-stage button { max-width:100%; white-space:normal; }
.clinic-chart-grid :focus-visible, .clinic-queue-columns :focus-visible { outline:3px solid #98660e; outline-offset:4px; }

.terms-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; max-width: 100%; }

.production-status { padding: 12px 24px; background: #e9eddb; color: #24483e; text-align: center; border-bottom: 1px solid #b8ccb0; }
