:root {
  --tk9-blue: #174ea6;
  --tk9-blue-dark: #0b2e6d;
  --tk9-yellow: #f7c948;
  --tk9-ink: #101828;
  --tk9-muted: #667085;
  --tk9-line: #d0d5dd;
  --tk9-bg: #f7f9fc;
  --tk9-success: #027a48;
  --tk9-danger: #b42318;
}

.tallyk9-profile-shell {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 14px;
  color: var(--tk9-ink);
}

.tallyk9-profile-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(16, 24, 40, .09);
  padding: clamp(22px, 5vw, 42px);
}

.tallyk9-profile-card *,
.tallyk9-profile-card *::before,
.tallyk9-profile-card *::after { box-sizing: border-box; }

.tallyk9-profile-eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf0ff;
  color: var(--tk9-blue-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}


.tallyk9-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 6px 11px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #f8fafc;
  color: #475467 !important;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.tallyk9-profile-back:hover,
.tallyk9-profile-back:focus-visible {
  border-color: #98a2b3;
  background: #eef2f6;
  color: var(--tk9-blue-dark) !important;
  transform: translateX(-1px);
}
.tallyk9-profile-back:focus-visible { outline: 3px solid rgba(23, 78, 166, .22); outline-offset: 2px; }

.tallyk9-profile-card h2 {
  margin: 12px 0 8px;
  color: var(--tk9-blue-dark) !important;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.03;
}

.tallyk9-profile-intro { color: var(--tk9-muted) !important; margin: 0 0 24px; }
.tallyk9-profile-small { color: var(--tk9-muted) !important; font-size: .86rem; }

.tallyk9-profile-alert {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
}
.tallyk9-profile-alert.is-error { color: #912018; background: #fee4e2; border: 1px solid #fda29b; }
.tallyk9-profile-alert.is-success { color: #05603a; background: #dcfae6; border: 1px solid #6ce9a6; }

.tallyk9-profile-form { display: grid; gap: 18px; }
.tallyk9-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tallyk9-profile-form label { display: grid; gap: 7px; color: var(--tk9-ink) !important; font-weight: 800; }
.tallyk9-profile-form label > span { color: var(--tk9-danger); }

.tallyk9-profile-form input[type="text"],
.tallyk9-profile-form input[type="email"],
.tallyk9-profile-form input[type="tel"],
.tallyk9-profile-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #98a2b3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--tk9-ink) !important;
  padding: 12px 13px !important;
  font: inherit;
  box-shadow: none !important;
}
.tallyk9-profile-form textarea { resize: vertical; line-height: 1.45; }

.tallyk9-profile-form .tallyk9-birthday-age {
  display: block;
  color: var(--tk9-muted) !important;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
}

.tallyk9-profile-form input:focus,
.tallyk9-profile-form textarea:focus { border-color: var(--tk9-blue) !important; outline: 3px solid rgba(23, 78, 166, .14); }

.tallyk9-photo-upload,
.tallyk9-document-upload {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px !important;
  padding: 18px;
  border: 2px dashed #98a2b3;
  border-radius: 16px;
  background: var(--tk9-bg);
}
.tallyk9-upload-copy,
.tallyk9-document-upload > span:first-child { display: grid; gap: 3px; color: var(--tk9-ink) !important; }
.tallyk9-upload-copy small,
.tallyk9-document-upload small { color: var(--tk9-muted) !important; font-weight: 500; }
.tallyk9-photo-upload input,
.tallyk9-document-upload input { position: absolute; opacity: 0; pointer-events: none; }
.tallyk9-upload-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--tk9-blue) !important;
  color: #fff !important;
  font-weight: 900;
  cursor: pointer;
}
#tallyk9-dog-photo-preview {
  grid-column: 1 / -1;
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid #fff;
  box-shadow: 0 7px 18px rgba(16,24,40,.15);
}
.tallyk9-file-list { grid-column: 1 / -1; color: var(--tk9-muted) !important; font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }

.tallyk9-profile-primary,
.tallyk9-profile-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
}
.tallyk9-profile-primary { background: var(--tk9-blue) !important; color: #fff !important; }
.tallyk9-profile-primary:hover { background: var(--tk9-blue-dark) !important; color: #fff !important; }
.tallyk9-profile-secondary { background: #fff !important; color: var(--tk9-blue-dark) !important; border: 1px solid var(--tk9-line); }
.tallyk9-profile-honeypot { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

.tallyk9-review-topbar,
.tallyk9-review-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tallyk9-review-bottom-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tk9-line); }
.tallyk9-review-topbar form,
.tallyk9-review-bottom-actions form { margin: 0; }

.tallyk9-dog-profile-display {
  overflow: hidden;
  border: 1px solid var(--tk9-line);
  border-radius: 20px;
  background: #fff;
}
.tallyk9-profile-hero {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  background: linear-gradient(135deg, var(--tk9-blue-dark), var(--tk9-blue));
}
.tallyk9-profile-photo-wrap { padding: 24px; display: flex; align-items: center; justify-content: center; }
.tallyk9-profile-photo,
.tallyk9-profile-photo-placeholder {
  width: 210px;
  height: 210px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 5px solid var(--tk9-yellow);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.tallyk9-profile-photo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.tallyk9-profile-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 12px; padding: 26px; }
.tallyk9-profile-summary div { padding: 14px; border-radius: 13px; background: rgba(255,255,255,.12); }
.tallyk9-profile-summary span { display: block; color: var(--tk9-yellow) !important; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tallyk9-profile-summary strong { display: block; margin-top: 5px; color: #fff !important; font-size: 1.08rem; overflow-wrap: anywhere; }

.tallyk9-profile-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; background: var(--tk9-bg); }
.tallyk9-profile-detail { min-height: 130px; padding: 18px; border: 1px solid var(--tk9-line); border-radius: 15px; background: #fff; }
.tallyk9-profile-detail.is-wide { grid-column: 1 / -1; min-height: auto; }
.tallyk9-profile-detail h3 { margin: 0 0 9px; color: var(--tk9-blue-dark) !important; font-size: 1rem; }
.tallyk9-profile-detail p { margin: 0; color: #344054 !important; line-height: 1.55; overflow-wrap: anywhere; }
.tallyk9-vaccine-status.has-documents { border-color: #6ce9a6; background: #ecfdf3; }
.tallyk9-vaccine-status.needs-documents { border-color: #fdb022; background: #fff4e5; }
.tallyk9-vaccine-status ul { margin: 8px 0 0 20px; color: #344054; }

@media (max-width: 720px) {
  .tallyk9-profile-grid,
  .tallyk9-profile-detail-grid,
  .tallyk9-profile-summary { grid-template-columns: 1fr; }
  .tallyk9-profile-hero { grid-template-columns: 1fr; }
  .tallyk9-profile-detail.is-wide { grid-column: auto; }
  .tallyk9-review-topbar,
  .tallyk9-review-bottom-actions { align-items: stretch; flex-direction: column; }
  .tallyk9-review-topbar form,
  .tallyk9-review-topbar button,
  .tallyk9-review-bottom-actions form,
  .tallyk9-review-bottom-actions button { width: 100%; }
  .tallyk9-photo-upload,
  .tallyk9-document-upload { grid-template-columns: 1fr; }
  .tallyk9-upload-button { width: 100%; }
}

@media print {
  body * { visibility: hidden !important; }
  .tallyk9-dog-profile-display,
  .tallyk9-dog-profile-display * { visibility: visible !important; }
  .tallyk9-dog-profile-display { position: absolute; inset: 0; border: 0; }
}

.tallyk9-submission-success {
  width: min(100%, 590px);
  margin: 14px auto;
  padding: 0 6px;
  text-align: center;
}
.tallyk9-submission-success .tallyk9-profile-alert {
  margin: 0;
  padding: 14px 12px;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.tallyk9-submitted-profile-document {
  display: grid;
  gap: 10px;
  width: min(100%, 540px);
  margin: 10px auto 0;
}
.tallyk9-submitted-profile-document iframe {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 612 / 792;
  border: 1px solid var(--tk9-line);
  border-radius: 10px;
  background: var(--tk9-bg);
  box-shadow: 0 5px 16px rgba(16, 24, 40, .12);
}
.tallyk9-submitted-profile-document .tallyk9-profile-secondary {
  justify-self: center;
  min-height: 42px;
  padding: 8px 15px;
}

@media (max-width: 720px) {
  .tallyk9-submission-success {
    width: 100%;
    margin: 8px auto;
    padding: 0 4px;
  }
  .tallyk9-submitted-profile-document {
    width: 100%;
    gap: 8px;
    margin-top: 8px;
  }
  .tallyk9-submitted-profile-document iframe {
    border-radius: 8px;
  }
}

/* Front-end Dog Profiles Admin */
.tallyk9-profile-admin-shell { max-width: 1180px; }
.tallyk9-profile-admin-card { padding: clamp(18px, 3vw, 32px); }
.tallyk9-profile-admin-login { max-width: 520px; margin: 0 auto; }
.tallyk9-profile-admin-login-form { display: grid; gap: 16px; }
.tallyk9-profile-admin-login-form label,
.tallyk9-profile-admin-search label { display: grid; gap: 7px; color: var(--tk9-ink) !important; font-weight: 800; }
.tallyk9-profile-admin-login-form input,
.tallyk9-profile-admin-search input,
.tallyk9-profile-admin-search select {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--tk9-line) !important;
  border-radius: 11px; background: #fff !important; color: var(--tk9-ink) !important; font: inherit;
}
.tallyk9-profile-admin-login-form input:focus,
.tallyk9-profile-admin-search input:focus,
.tallyk9-profile-admin-search select:focus { border-color: var(--tk9-blue) !important; outline: 3px solid rgba(23,78,166,.14); }
.tallyk9-profile-admin-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.tallyk9-profile-admin-topbar h2 { margin-bottom: 5px; }
.tallyk9-profile-admin-search {
  display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) auto auto;
  gap: 12px; align-items: end; padding: 16px; margin-bottom: 22px; border: 1px solid var(--tk9-line);
  border-radius: 15px; background: var(--tk9-bg);
}
.tallyk9-profile-admin-results { display: grid; gap: 16px; }
.tallyk9-profile-admin-result { overflow: hidden; border: 1px solid var(--tk9-line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(16,24,40,.06); }
.tallyk9-profile-admin-result-summary { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 16px; }
.tallyk9-profile-admin-thumb { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 15px; background: #eaf0ff; font-size: 3rem; }
.tallyk9-profile-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tallyk9-profile-admin-result-main h3 { margin: 6px 0 8px; color: var(--tk9-blue-dark) !important; font-size: 1.45rem; }
.tallyk9-profile-admin-result-main p { margin: 4px 0; color: #344054 !important; overflow-wrap: anywhere; }
.tallyk9-profile-admin-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.tallyk9-profile-admin-status,
.tallyk9-profile-admin-vaccine { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border-radius: 999px; font-size: .76rem; font-weight: 900; }
.tallyk9-profile-admin-status.is-submitted,
.tallyk9-profile-admin-vaccine.has-documents { background: #dcfae6; color: #05603a; }
.tallyk9-profile-admin-status.is-review { background: #fef0c7; color: #93370d; }
.tallyk9-profile-admin-vaccine.needs-documents { background: #fee4e2; color: #912018; }
.tallyk9-profile-admin-result-actions { display: grid; min-width: 155px; gap: 8px; }
.tallyk9-profile-admin-details { border-top: 1px solid var(--tk9-line); background: #f8fafc; }
.tallyk9-profile-admin-details > summary { padding: 13px 16px; color: var(--tk9-blue-dark); font-weight: 900; cursor: pointer; user-select: none; }
.tallyk9-profile-admin-details > summary:hover { background: #eef4ff; }
.tallyk9-profile-admin-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 16px 16px; }
.tallyk9-profile-admin-detail { padding: 14px; border: 1px solid var(--tk9-line); border-radius: 12px; background: #fff; }
.tallyk9-profile-admin-detail.is-wide { grid-column: 1 / -1; }
.tallyk9-profile-admin-detail h4 { margin: 0 0 7px; color: var(--tk9-blue-dark) !important; font-size: .9rem; }
.tallyk9-profile-admin-detail p { margin: 0; color: #344054 !important; line-height: 1.5; overflow-wrap: anywhere; }
.tallyk9-profile-admin-detail ul { margin: 8px 0 0 20px; }
.tallyk9-profile-vaccine-needed { color: #b54708 !important; }
.tallyk9-profile-vaccine-received { color: #027a48 !important; }
.tallyk9-profile-admin-empty { padding: 32px; text-align: center; border: 1px dashed var(--tk9-line); border-radius: 15px; background: var(--tk9-bg); color: #344054; }
.tallyk9-profile-admin-pagination { margin-top: 22px; display: flex; justify-content: center; }
.tallyk9-profile-admin-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; margin: 3px; padding: 5px 9px; border: 1px solid var(--tk9-line); border-radius: 9px; background: #fff; color: var(--tk9-blue-dark) !important; text-decoration: none; font-weight: 800; }
.tallyk9-profile-admin-pagination .page-numbers.current { background: var(--tk9-blue); color: #fff !important; border-color: var(--tk9-blue); }

@media (max-width: 820px) {
  .tallyk9-profile-admin-search { grid-template-columns: 1fr 1fr; }
  .tallyk9-profile-admin-result-summary { grid-template-columns: 90px minmax(0,1fr); }
  .tallyk9-profile-admin-thumb { width: 90px; height: 90px; }
  .tallyk9-profile-admin-result-actions { grid-column: 1 / -1; min-width: 0; }
}
@media (max-width: 560px) {
  .tallyk9-profile-admin-topbar { flex-direction: column; }
  .tallyk9-profile-admin-search { grid-template-columns: 1fr; }
  .tallyk9-profile-admin-result-summary { grid-template-columns: 72px minmax(0,1fr); gap: 12px; padding: 12px; }
  .tallyk9-profile-admin-thumb { width: 72px; height: 72px; border-radius: 12px; }
  .tallyk9-profile-admin-result-main h3 { font-size: 1.2rem; }
  .tallyk9-profile-admin-detail-grid { grid-template-columns: 1fr; padding: 0 12px 12px; }
  .tallyk9-profile-admin-detail.is-wide { grid-column: auto; }
}


/* Compact searchable profile directory with expandable edit controls. */
.tallyk9-profile-admin-results { gap: 9px; }
.tallyk9-profile-admin-result {
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(16,24,40,.055);
}
.tallyk9-profile-admin-result-summary {
  grid-template-columns: 62px minmax(0,1fr) auto;
  gap: 12px;
  min-height: 82px;
  padding: 9px 11px;
}
.tallyk9-profile-admin-thumb {
  width: 62px;
  height: 62px;
  border-radius: 11px;
  font-size: 1.9rem;
}
.tallyk9-profile-admin-result-main { min-width: 0; }
.tallyk9-profile-admin-result-main h3 {
  margin: 3px 0 4px;
  font-size: 1.16rem;
  line-height: 1.05;
}
.tallyk9-profile-admin-badges { gap: 5px; }
.tallyk9-profile-admin-status,
.tallyk9-profile-admin-vaccine {
  min-height: 22px;
  padding: 2px 7px;
  font-size: .66rem;
  font-weight: 800;
}
.tallyk9-profile-admin-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: #475467;
  font-size: .82rem;
  line-height: 1.25;
}
.tallyk9-profile-admin-compact-meta span { min-width: 0; overflow-wrap: anywhere; }
.tallyk9-profile-admin-result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 7px;
}
.tallyk9-profile-admin-pdf,
.tallyk9-profile-admin-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 2px solid var(--tk9-blue-dark) !important;
  border-radius: 9px;
  background: #fff !important;
  color: var(--tk9-blue-dark) !important;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
}
.tallyk9-profile-admin-toggle {
  gap: 6px;
  background: var(--tk9-yellow) !important;
  box-shadow: 3px 3px 0 var(--tk9-blue-dark);
}
.tallyk9-profile-admin-toggle:hover,
.tallyk9-profile-admin-pdf:hover { transform: translateY(-1px); }
.tallyk9-profile-admin-toggle-icon {
  display: inline-block;
  font-size: 1rem;
  transition: transform .18s ease;
}
.tallyk9-profile-admin-result.is-expanded .tallyk9-profile-admin-toggle-icon { transform: rotate(180deg); }
.tallyk9-profile-admin-result-body { border-top: 1px solid var(--tk9-line); }
.tallyk9-profile-admin-result-body[hidden] { display: none !important; }
.tallyk9-profile-admin-expanded-contact {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px 16px;
  padding: 12px 16px;
  background: #f8fafc;
  color: #344054;
  font-size: .86rem;
  border-bottom: 1px solid var(--tk9-line);
}
.tallyk9-profile-admin-expanded-contact span { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .tallyk9-profile-admin-result-summary { grid-template-columns: 56px minmax(0,1fr) auto; }
  .tallyk9-profile-admin-thumb { width: 56px; height: 56px; }
  .tallyk9-profile-admin-result-actions { grid-column: auto; }
  .tallyk9-profile-admin-pdf { display: none; }
}
@media (max-width: 560px) {
  .tallyk9-profile-admin-result-summary {
    grid-template-columns: 50px minmax(0,1fr) auto;
    gap: 9px;
    min-height: 70px;
    padding: 8px;
  }
  .tallyk9-profile-admin-thumb { width: 50px; height: 50px; border-radius: 9px; }
  .tallyk9-profile-admin-result-main h3 { font-size: 1.02rem; }
  .tallyk9-profile-admin-compact-meta { font-size: .74rem; gap: 1px 9px; }
  .tallyk9-profile-admin-compact-meta span:nth-child(3) { display: none; }
  .tallyk9-profile-admin-badges .tallyk9-profile-admin-status { display: none; }
  .tallyk9-profile-admin-toggle {
    min-width: 39px;
    min-height: 39px;
    padding: 6px;
    box-shadow: 2px 2px 0 var(--tk9-blue-dark);
  }
  .tallyk9-profile-admin-toggle [data-toggle-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tallyk9-profile-admin-expanded-contact { grid-template-columns: 1fr; padding: 10px 12px; }
}

/* Vaccine review states and actions */
.tallyk9-vaccine-status.vaccine-approved { border-color: #6ce9a6; background: #ecfdf3; }
.tallyk9-vaccine-status.vaccine-under-review { border-color: #84caff; background: #eff8ff; }
.tallyk9-vaccine-status.vaccine-needs-update,
.tallyk9-vaccine-status.vaccine-needed { border-color: #fec84b; background: #fff4e5; }

.tallyk9-profile-admin-vaccine.vaccine-approved { background: #dcfae6; color: #05603a; }
.tallyk9-profile-admin-vaccine.vaccine-under-review { background: #d1e9ff; color: #175cd3; }
.tallyk9-profile-admin-vaccine.vaccine-needs-update,
.tallyk9-profile-admin-vaccine.vaccine-needed { background: #fef0c7; color: #93370d; }

.tallyk9-profile-vaccine-current { margin: 0 0 10px !important; font-weight: 800; }
.tallyk9-profile-vaccine-current.vaccine-approved { color: #027a48 !important; }
.tallyk9-profile-vaccine-current.vaccine-under-review { color: #175cd3 !important; }
.tallyk9-profile-vaccine-current.vaccine-needs-update,
.tallyk9-profile-vaccine-current.vaccine-needed { color: #b54708 !important; }

.tallyk9-profile-vaccine-review-form {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--tk9-line);
}
.tallyk9-vaccine-action {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.tallyk9-vaccine-action.is-review { background: #d1e9ff; color: #175cd3; border-color: #84caff; }
.tallyk9-vaccine-action.is-approved { background: #dcfae6; color: #05603a; border-color: #6ce9a6; }
.tallyk9-vaccine-action.is-needs-update { background: #fef0c7; color: #93370d; border-color: #fec84b; }
.tallyk9-vaccine-action:disabled { opacity: .55; cursor: default; }


.tallyk9-vaccine-intake-choice {
  margin: 0;
  padding: 0;
  border: 0;
}
.tallyk9-vaccine-intake-choice legend {
  margin-bottom: 10px;
  color: var(--tk9-ink);
  font-weight: 900;
}
.tallyk9-vaccine-intake-choice legend span { color: var(--tk9-danger); }
.tallyk9-vaccine-choice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tallyk9-vaccine-choice-option {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #98a2b3;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  box-shadow: none;
}
.tallyk9-vaccine-choice-option:has(input:checked) {
  border-color: var(--tk9-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23,78,166,.14);
}
.tallyk9-vaccine-choice-option input { margin-top: 4px; }
.tallyk9-vaccine-choice-option span { display: grid; gap: 3px; color: var(--tk9-ink) !important; }
.tallyk9-vaccine-choice-option small { color: var(--tk9-muted) !important; font-weight: 500; line-height: 1.35; }
[data-vaccine-upload-panel][hidden] { display: none !important; }

@media (max-width: 680px) {
  .tallyk9-vaccine-choice-options { grid-template-columns: 1fr; }
}


/* Always-visible vaccine review controls in the protected profile directory */
.tallyk9-profile-quick-vaccine-review {
  margin: 0 16px 16px;
  padding: 15px;
  border: 1px solid var(--tk9-line);
  border-radius: 14px;
  background: #f8fafc;
}
.tallyk9-profile-quick-vaccine-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.tallyk9-profile-quick-vaccine-heading h4 { margin: 0 0 4px; }
.tallyk9-profile-quick-vaccine-docs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tallyk9-profile-quick-vaccine-docs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--tk9-line);
  border-radius: 9px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}
.tallyk9-profile-vaccine-missing { color: #b54708; font-weight: 800; }
.tallyk9-profile-vaccine-review-form-visible { margin-top: 12px; }
@media (max-width: 560px) {
  .tallyk9-profile-quick-vaccine-review { margin: 0 10px 12px; padding: 12px; }
  .tallyk9-profile-quick-vaccine-heading { flex-direction: column; }
  .tallyk9-profile-quick-vaccine-docs { justify-content: flex-start; }
  .tallyk9-profile-vaccine-review-form-visible .tallyk9-vaccine-action { width: 100%; }
}

/* Client dog-profile login and self-service portal */
.tallyk9-profile-existing-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 28px;
  padding: 18px 20px;
  border: 2px solid var(--tk9-blue-dark);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff9d8 0%, #fff 70%);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .10);
}
.tallyk9-profile-existing-login-copy {
  display: grid;
  gap: 4px;
}
.tallyk9-profile-existing-login-copy strong {
  color: var(--tk9-blue-dark) !important;
  font-size: 1.08rem;
  line-height: 1.2;
}
.tallyk9-profile-existing-login-copy span {
  color: var(--tk9-muted) !important;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.45;
}
.tallyk9-profile-login-button {
  display: inline-flex;
  min-width: 160px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid var(--tk9-blue-dark);
  border-radius: 10px;
  background: #f8c900;
  color: var(--tk9-blue-dark) !important;
  box-shadow: 0 6px 0 var(--tk9-blue-dark);
  font-weight: 950;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.tallyk9-profile-login-button:hover,
.tallyk9-profile-login-button:focus-visible {
  transform: translateY(2px);
  background: var(--tk9-blue-dark);
  color: #fff !important;
  box-shadow: 0 3px 0 #f8c900;
}
@media (max-width: 680px) {
  .tallyk9-profile-existing-login {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }
  .tallyk9-profile-login-button { width: 100%; }
}
.tallyk9-client-login-card { max-width: 620px; margin: 0 auto; }
.tallyk9-client-login-form { margin-top: 22px; }
.tallyk9-create-account-prompt {
  margin-top: 15px;
  color: var(--tk9-muted) !important;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}
.tallyk9-create-account-prompt a {
  margin-left: 3px;
  color: var(--tk9-blue-dark) !important;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.tallyk9-create-account-prompt a:hover,
.tallyk9-create-account-prompt a:focus-visible {
  color: #d2a900 !important;
}
.tallyk9-client-portal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.tallyk9-client-portal-topbar h2 { margin-bottom: 6px; }
.tallyk9-client-portal-topbar form { margin: 0; }
.tallyk9-client-trip-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}
.tallyk9-client-trip-stats > div {
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--tk9-line);
  border-radius: 16px;
  background: var(--tk9-bg);
}
.tallyk9-client-trip-stats span,
.tallyk9-client-trip-stats small {
  display: block;
  color: var(--tk9-muted) !important;
  font-weight: 700;
}
.tallyk9-client-trip-stats strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--tk9-blue-dark) !important;
  font-size: 1.65rem;
  line-height: 1.15;
}
.tallyk9-client-trip-stats strong.vaccine-approved { color: #027a48 !important; font-size: 1rem; }
.tallyk9-client-trip-stats strong.vaccine-under-review { color: #175cd3 !important; font-size: 1rem; }
.tallyk9-client-trip-stats strong.vaccine-needs-update,
.tallyk9-client-trip-stats strong.vaccine-needed { color: #b54708 !important; font-size: 1rem; }
.tallyk9-client-profile-form {
  margin-top: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--tk9-line);
}
.tallyk9-client-profile-form .tallyk9-photo-upload img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(16,24,40,.14);
}
.tallyk9-client-vaccine-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--tk9-line);
}
.tallyk9-client-vaccine-section h3 { margin: 0 0 8px; color: var(--tk9-blue-dark) !important; }
.tallyk9-client-vaccine-list { margin: 12px 0 18px 20px; }
.tallyk9-client-vaccine-list a { overflow-wrap: anywhere; }
.tallyk9-client-vaccine-form { display: grid; gap: 14px; }
.tallyk9-client-profile-pdf { margin-top: 22px; display: flex; justify-content: flex-end; }

@media (max-width: 700px) {
  .tallyk9-client-portal-topbar { flex-direction: column; }
  .tallyk9-client-trip-stats { grid-template-columns: 1fr; }
  .tallyk9-client-trip-stats > div { min-height: 0; }
  .tallyk9-client-profile-pdf { justify-content: stretch; }
  .tallyk9-client-profile-pdf .tallyk9-profile-secondary { width: 100%; }
}

/* Client portal navigation and live DROOLBUS tracking. */
.tallyk9-client-live-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 18px 20px;
  border: 2px solid var(--tk9-yellow);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tk9-blue-dark), #174ea6);
  box-shadow: 0 8px 0 rgba(11,46,109,.16);
}
.tallyk9-client-live-track-copy { display: grid; gap: 3px; min-width: 0; }
.tallyk9-client-live-track-copy span {
  color: var(--tk9-yellow) !important;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.tallyk9-client-live-track-copy strong { color: #fff !important; font-size: 1.25rem; }
.tallyk9-client-live-track-copy small { color: rgba(255,255,255,.82) !important; font-weight: 600; }
.tallyk9-profile-track-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: var(--tk9-yellow) !important;
  color: var(--tk9-blue-dark) !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 5px 0 #fff;
}
.tallyk9-profile-track-button:hover { transform: translateY(-1px); color: var(--tk9-blue-dark) !important; }

.tallyk9-client-profile-section {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--tk9-line);
  border-radius: 16px;
  background: #fff;
}
.tallyk9-client-profile-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 15px 18px;
  background: #f7f9fc;
  color: var(--tk9-blue-dark) !important;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.tallyk9-client-profile-section > summary::-webkit-details-marker { display: none; }
.tallyk9-client-profile-section > summary span { display: grid; gap: 3px; min-width: 0; }
.tallyk9-client-profile-section > summary strong { color: var(--tk9-blue-dark) !important; font-size: 1.05rem; }
.tallyk9-client-profile-section > summary small { color: var(--tk9-muted) !important; font-weight: 600; line-height: 1.35; }
.tallyk9-client-profile-section > summary b {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--tk9-blue-dark);
  color: var(--tk9-yellow) !important;
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .18s ease;
}
.tallyk9-client-profile-section[open] > summary { background: #eef4ff; border-bottom: 1px solid var(--tk9-line); }
.tallyk9-client-profile-section[open] > summary b { transform: rotate(45deg); }
.tallyk9-client-profile-section-body { padding: 18px; }
.tallyk9-client-profile-section-body .tallyk9-client-trip-stats { margin: 0; }
.tallyk9-client-profile-section-body .tallyk9-client-vaccine-section { margin: 0; padding: 0; border: 0; }
.tallyk9-client-profile-pdf { margin-top: 18px; }

@media (max-width: 720px) {
  .tallyk9-client-live-track { align-items: stretch; flex-direction: column; padding: 16px; }
  .tallyk9-profile-track-button { width: 100%; }
  .tallyk9-client-profile-section > summary { min-height: 64px; padding: 13px 14px; }
  .tallyk9-client-profile-section-body { padding: 14px; }
}


.tallyk9-profile-legal-documents-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--tk9-line);
}
.tallyk9-profile-legal-documents-link > span { display: grid; gap: 3px; min-width: 0; }
.tallyk9-profile-legal-documents-link strong { color: var(--tk9-blue-dark) !important; font-size: .95rem; }
.tallyk9-profile-legal-documents-link small { color: var(--tk9-muted) !important; font-weight: 600; line-height: 1.35; }
.tallyk9-profile-legal-documents-link a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #98a2b3;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--tk9-blue-dark) !important;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.tallyk9-profile-legal-documents-link a:hover,
.tallyk9-profile-legal-documents-link a:focus-visible {
  border-color: var(--tk9-blue);
  background: #eef4ff;
}

@media (max-width: 560px) {
  .tallyk9-profile-legal-documents-link { align-items: stretch; flex-direction: column; gap: 11px; }
  .tallyk9-profile-legal-documents-link a { width: 100%; }
}

/* v1.3.12 — shared front-end admin navigation. */
.tallyk9-profile-admin-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.tallyk9-profile-admin-top-actions form{margin:0}@media(max-width:700px){.tallyk9-profile-admin-top-actions{justify-content:flex-start;width:100%}.tallyk9-profile-admin-top-actions>a,.tallyk9-profile-admin-top-actions form,.tallyk9-profile-admin-top-actions button{width:100%}}


/* v1.3.13 — yellow large non-link text on dark-blue surfaces. */
.tallyk9-profile-summary strong,
.tallyk9-client-live-track-copy strong{color:var(--tk9-yellow)!important}
