:root {
  color-scheme: light;
  --bg: #f7efe7;
  --surface: #fffdf9;
  --surface-muted: #f5e9df;
  --text: #3b2923;
  --muted: #796158;
  --subtle: #a0877c;
  --line: #ead8ca;
  --line-strong: #dcc2b2;
  --primary: #c76343;
  --primary-hover: #aa4e33;
  --primary-soft: #f7ded1;
  --danger: #b74646;
  --danger-soft: #fae4e1;
  --warning: #a36a2d;
  --warning-soft: #fbecd1;
  --success: #627a55;
  --success-soft: #e5eddf;
  --shadow-sm: 0 2px 8px rgba(92, 54, 38, .055);
  --shadow-md: 0 18px 50px rgba(92, 54, 38, .11);
  --radius-lg: 24px;
  --content: 1100px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent); outline-offset: 2px; }

.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar-inner { width: min(calc(100% - 32px), var(--content)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--text); font-size: 20px; font-weight: 780; letter-spacing: -.035em; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--primary); color: #fff; box-shadow: 0 7px 16px color-mix(in srgb, var(--primary) 22%, transparent); }
.brand-mark svg { width: 20px; height: 20px; }
.desktop-nav { display: none; align-items: center; gap: 4px; margin-left: 10px; }
.desktop-nav a { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 680; transition: background .16s ease, color .16s ease; }
.desktop-nav a:hover, .desktop-nav a.active { background: var(--primary-soft); color: var(--primary); }
.top-actions { min-width: 0; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.signed-in-user { min-width: 0; display: grid; justify-items: end; line-height: 1.2; }
.signed-in-email { max-width: 220px; overflow: hidden; color: var(--text); font-size: 12px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.signed-in-role { color: var(--subtle); font-size: 10px; font-weight: 650; }
.account-entry {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 4px;
  border-radius: 12px;
  color: var(--text);
  transition: background .16s ease, color .16s ease;
}
.account-entry:hover, .account-entry.active { background: var(--primary-soft); color: var(--primary); }
.account-entry:hover .signed-in-email, .account-entry.active .signed-in-email { color: var(--primary); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.container { width: min(calc(100% - 32px), var(--content)); min-height: calc(100vh - 140px); margin: 0 auto; padding: 38px 0 112px; }
.page-head, .dashboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head h1, .dashboard-hero h1 { margin-bottom: 6px; }
.page-head p, .dashboard-hero p { max-width: 620px; margin: 0; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--text); letter-spacing: -.035em; }
h1, h2, h3, .brand { font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", sans-serif; }
h1 { margin-bottom: 22px; font-size: clamp(30px, 6vw, 44px); line-height: 1.08; font-weight: 780; }
h2 { margin-bottom: 10px; font-size: 21px; line-height: 1.2; font-weight: 740; }
h3 { margin-bottom: 8px; font-size: 17px; }
p { margin: 0 0 12px; color: var(--muted); }
strong { color: var(--text); }
small, .field-help { color: var(--muted); font-size: 13px; }
.section-title { margin: 34px 0 14px; color: var(--muted); font-size: 14px; font-weight: 780; letter-spacing: .02em; text-transform: uppercase; }
.summary-pet-type { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 32px 0 14px; }
.section-heading h2, .section-heading p { margin: 0; }

.card { position: relative; margin-bottom: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.card:hover { border-color: var(--line-strong); }
.card.compact { padding: 18px; }
.card.danger { border-color: color-mix(in srgb, var(--danger) 26%, var(--line)); background: linear-gradient(180deg, var(--danger-soft), var(--surface) 70%); }
.card.warning { border-color: color-mix(in srgb, var(--warning) 28%, var(--line)); background: linear-gradient(180deg, var(--warning-soft), var(--surface) 70%); }
.card.success { border-color: color-mix(in srgb, var(--success) 25%, var(--line)); }
.card.in-progress { border-left: 4px solid var(--warning); }
.empty { padding: 32px 22px; text-align: center; }
.empty p { margin: 0; }
.meta { display: grid; gap: 5px; margin-top: 14px; }
.meta p { margin: 0; }
.meta p + p { padding-top: 5px; border-top: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; }
.actions form { display: block; margin: 0; }

button, .button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 720; line-height: 1.2; cursor: pointer; transition: transform .14s ease, background .14s ease, border-color .14s ease; }
button:hover, .button:hover { background: var(--primary-hover); transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); }
.button.secondary, button.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.button.secondary:hover, button.secondary:hover { background: var(--surface-muted); border-color: var(--primary); color: var(--primary); }
.button.danger, button.danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 34%, var(--line)); color: var(--danger); }
.button.danger:hover, button.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.back-button { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 680; }
.back-button:hover { color: var(--primary); }
.page-actions { margin-bottom: 18px; }

form { display: grid; gap: 16px; }
.form-card { max-width: 700px; padding: 24px; }
label { display: grid; gap: 7px; color: var(--text); font-size: 14px; font-weight: 680; }
input, textarea, select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
[hidden] { display: none !important; }

.notice { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface); color: var(--text); }
.notice.error { border-color: color-mix(in srgb, var(--danger) 38%, var(--line)); background: var(--danger-soft); color: var(--danger); }
.notice.success { border-color: color-mix(in srgb, var(--success) 38%, var(--line)); background: var(--success-soft); color: var(--success); }
.status { display: inline-flex; align-items: center; width: fit-content; margin-bottom: 10px; padding: 5px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; }
.status.danger { background: var(--danger-soft); color: var(--danger); }
.status.warning { background: var(--warning-soft); color: var(--warning); }
.status.success { background: var(--success-soft); color: var(--success); }
.status-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.status-row .status { margin: 0; }
.due-note { color: var(--warning); font-size: 13px; font-weight: 750; }
.danger-text { color: var(--danger); }

.dashboard-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-width: 0; min-height: 170px; margin: 0; display: flex; flex-direction: column; }
.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stat-label { color: var(--muted); font-size: 14px; font-weight: 720; }
.stat-number { color: var(--text); font-size: 38px; line-height: .95; font-weight: 790; letter-spacing: -.06em; }
.stat-card p { margin-top: 12px; font-size: 13px; }
.stat-card .card-link { margin-top: auto; }
.compact-actions { display: flex; gap: 7px; margin-top: auto; }
.compact-actions .button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.treatment-summary-grid, .dog-grid, .history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.treatment-summary-card { min-width: 0; min-height: 190px; margin: 0; display: flex; flex-direction: column; }
.summary-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.summary-card-head h2 { margin-bottom: 0; }
.count-badge { display: inline-grid; flex: 0 0 auto; min-width: 28px; height: 28px; padding: 0 8px; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 800; }
.summary-items { display: grid; gap: 8px; margin: 14px 0; }
.summary-item { min-width: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.summary-item:first-child { padding-top: 0; border-top: 0; }
.summary-item strong, .summary-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-item strong { font-size: 14px; }
.summary-item span { color: var(--muted); font-size: 12px; }
.card-link { display: inline-flex; width: fit-content; align-items: center; gap: 4px; margin-top: auto; color: var(--primary); font-size: 13px; font-weight: 760; }
.card-link::after { content: "→"; transition: transform .15s ease; }
.card-link:hover::after { transform: translateX(3px); }

.dog-grid > .card, .history-grid > .card { min-width: 0; margin: 0; display: flex; flex-direction: column; }
.dog-grid .actions, .history-grid .actions { margin-top: auto; padding-top: 18px; }
.treatment-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.treatment-card-grid > .card { min-width: 0; height: 100%; margin: 0; display: flex; flex-direction: column; }
.treatment-card-grid > .card > .actions { margin-top: auto; padding-top: 18px; }
.treatment-filter { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.filter-chip { display: inline-flex; min-height: 38px; padding: 8px 14px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 720; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

.admin-tools-section { margin-top: 38px; }
.admin-tools-grid, .medicine-type-grid, .user-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-tool-card { min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text); box-shadow: none; transition: transform .16s ease, border-color .16s ease; }
.admin-tool-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.admin-tool-card span { color: var(--muted); font-size: 13px; }
.medicine-type-card, .compact-user-card { min-width: 0; margin: 0; }
.medicine-type-card.is-inactive { opacity: .65; }
.medicine-type-card .actions form { display: block; }
.compact-user-card h2 { overflow-wrap: anywhere; font-size: 16px; }
.compact-user-card p { margin: 4px 0; font-size: 13px; }
.admin-user-actions { display: grid; grid-template-columns: 1fr 1fr; }
.admin-user-actions button { width: 100%; }
.inline-admin-form { align-items: end; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.login-card { width: min(100%, 430px); margin: 0; padding: 30px; box-shadow: var(--shadow-md); }
.brand-lockup { margin-bottom: 26px; text-align: center; }
.brand-lockup .auth-mark { margin: 0 auto 14px; }
.brand-lockup h1 { margin-bottom: 6px; }
.login-card > h2 { margin-bottom: 18px; font-size: 18px; text-align: center; }
.login-card button[type="submit"] { width: 100%; }
.auth-footer { margin-top: 20px; color: var(--muted); text-align: center; font-size: 14px; }
.captcha-question { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; width: fit-content; margin: 4px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); color: var(--text); font-size: 17px; font-weight: 750; user-select: none; }

.mobile-nav { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 60; width: min(calc(100% - 20px), 480px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 91%, transparent); box-shadow: 0 14px 38px rgba(18, 40, 25, .18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.mobile-nav a { display: grid; min-height: 52px; place-items: center; align-content: center; gap: 2px; border-radius: 13px; color: var(--muted); font-size: 11px; font-weight: 720; }
.mobile-nav a:hover, .mobile-nav a.active { background: var(--primary-soft); color: var(--primary); }
.nav-icon { font-size: 18px; line-height: 1; }
.footer { display: none; }

@media (min-width: 760px) {
  .desktop-nav { display: flex; }
  .container { padding: 48px 0 70px; }
  .mobile-nav { display: none; }
  .footer { display: block; padding: 0 16px 28px; color: var(--subtle); text-align: center; font-size: 12px; }
  .inline-admin-form { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 759px) {
  .topbar-inner { width: min(calc(100% - 24px), var(--content)); min-height: 62px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .signed-in-email { max-width: 36vw; }
  .container { width: min(calc(100% - 24px), var(--content)); padding-top: 28px; }
  .page-head, .dashboard-hero { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-head .button { width: 100%; }
  .dashboard-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-stats-grid .stat-card:first-child { grid-column: 1 / -1; }
  .stat-card { min-height: 145px; padding: 17px; }
  .stat-number { font-size: 32px; }
  .treatment-summary-grid, .dog-grid, .history-grid, .treatment-card-grid, .admin-tools-grid, .medicine-type-grid, .user-admin-grid { grid-template-columns: 1fr; }
  .actions > .button, .actions > button { flex: 1 1 auto; }
  .form-card { padding: 18px; }
}
@media (max-width: 420px) {
  .signed-in-user { display: none; }
  .card { padding: 18px; border-radius: 18px; }
  h1 { font-size: 31px; }
  .compact-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions { align-items: stretch; }
  .actions form { flex: 1 1 100%; }
  .actions form button { width: 100%; }
  .admin-user-actions { grid-template-columns: 1fr; }
  .login-card { padding: 24px 20px; }
}
/* ===== Warm PetDB redesign ===== */
.topbar {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 5px 24px rgba(92, 54, 38, .045);
}
.topbar-inner { min-height: 76px; }
.brand { gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px 13px 16px 12px;
  background: linear-gradient(145deg, #d87856, var(--primary));
  box-shadow: 0 9px 22px color-mix(in srgb, var(--primary) 27%, transparent);
  transform: rotate(-2deg);
}
.brand-mark svg { width: 23px; height: 23px; transform: rotate(2deg); }
.brand-copy { display: grid; gap: 1px; line-height: 1; }
.brand-copy strong { color: var(--text); font-size: 20px; font-weight: 850; letter-spacing: -.045em; }
.brand-copy small { color: var(--subtle); font-size: 9px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.desktop-nav { margin-left: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-muted) 58%, transparent); }
.desktop-nav a { padding: 8px 13px; border-radius: 10px; }
.desktop-nav a:hover, .desktop-nav a.active { background: var(--surface); box-shadow: var(--shadow-sm); }
.header-logout { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 750; }
.header-logout:hover { border-color: var(--primary); color: var(--primary); }

.container { padding-top: 42px; }
.page-head, .dashboard-hero { margin-bottom: 28px; }
.eyebrow { color: var(--primary); font-size: 11px; letter-spacing: .13em; }
h1 { font-weight: 850; }
h2 { font-weight: 800; }
.section-title { color: var(--text); font-size: 15px; letter-spacing: -.01em; text-transform: none; }
.section-title::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); vertical-align: 1px; }

.warm-hero {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 34px 38px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255,255,255,.52), transparent 11rem),
    linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--warning-soft) 70%, var(--surface)));
  box-shadow: var(--shadow-md);
}
.warm-hero::after { content: ""; position: absolute; right: -55px; bottom: -80px; width: 230px; height: 230px; border: 34px solid color-mix(in srgb, var(--primary) 10%, transparent); border-radius: 50%; }
.warm-hero > div:first-child { position: relative; z-index: 1; }
.warm-hero h1 { margin-bottom: 8px; }
.warm-hero p { color: color-mix(in srgb, var(--text) 70%, var(--muted)); font-size: 16px; }
.hero-paw { position: relative; z-index: 1; display: grid; width: 104px; height: 104px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 36px 30px 38px 28px; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: 0 18px 40px rgba(92,54,38,.10); font-size: 48px; transform: rotate(5deg); }

.card {
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 12px 30px rgba(92,54,38,.075); transform: translateY(-2px); }
.form-card:hover, .login-card:hover, .card.empty:hover { transform: none; box-shadow: var(--shadow-sm); }
.card.danger { background: linear-gradient(160deg, var(--danger-soft), var(--surface) 72%); }
.card.warning { background: linear-gradient(160deg, var(--warning-soft), var(--surface) 72%); }

.dashboard-stats-grid { gap: 16px; }
.stat-card { min-height: 184px; padding: 24px; overflow: hidden; }
.stat-card::after { position: absolute; right: 15px; bottom: -9px; color: color-mix(in srgb, var(--primary) 12%, transparent); font-size: 72px; line-height: 1; transform: rotate(-8deg); pointer-events: none; }
.stat-card:nth-child(1)::after { content: "●"; }
.stat-card:nth-child(2)::after { content: "!"; font-weight: 900; }
.stat-card:nth-child(3)::after { content: "◆"; }
.stat-card:nth-child(1) { background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--primary-soft) 56%, var(--surface))); }
.stat-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.stat-number { color: var(--primary); font-size: 44px; }
.stat-card.danger .stat-number { color: var(--danger); }
.stat-card.warning .stat-number { color: var(--warning); }

button, .button { min-height: 46px; padding: 11px 18px; border-radius: 14px; box-shadow: 0 7px 16px color-mix(in srgb, var(--primary) 16%, transparent); }
.button.secondary, button.secondary { box-shadow: none; background: var(--surface); }
.button.danger, button.danger { box-shadow: none; }
input, textarea, select { min-height: 50px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 82%, var(--surface-muted)); }
input:focus, textarea:focus, select:focus { background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-soft) 85%, transparent); }
.form-card { max-width: 760px; padding: 28px; }
.notice { border-radius: 16px; }
.status { padding: 6px 10px; }
.filter-chip { border-radius: 13px; background: color-mix(in srgb, var(--surface) 90%, transparent); }
.filter-chip.active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent); }

.dog-profile-card { overflow: hidden; padding: 24px; }
.dog-profile-card::after { content: ""; position: absolute; top: -42px; right: -44px; width: 130px; height: 130px; border-radius: 50%; background: var(--primary-soft); opacity: .55; }
.dog-card-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.dog-avatar { display: grid; flex: 0 0 50px; width: 50px; height: 50px; place-items: center; border-radius: 18px 15px 18px 14px; background: var(--primary-soft); font-size: 23px; transform: rotate(-3deg); }
.dog-card-label { display: block; margin-bottom: 1px; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dog-card-head h2 { margin: 0; }
.treatment-entry { overflow: hidden; }
.treatment-entry::before { position: absolute; top: 18px; right: 19px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--surface-muted); color: var(--primary); font-size: 17px; font-weight: 900; }
.treatment-vaccine::before { content: "+"; }
.treatment-medicine::before { content: "●"; font-size: 12px; }
.treatment-entry .status-row { padding-right: 46px; }
.meta p { padding: 7px 0; }

.login-shell { position: relative; overflow: hidden; background: radial-gradient(circle at 50% -10%, var(--primary-soft), transparent 30rem); }
.login-shell::before, .login-shell::after { content: ""; position: fixed; z-index: 0; color: color-mix(in srgb, var(--primary) 9%, transparent); font-size: 150px; pointer-events: none; }
.login-shell::before { left: -35px; bottom: -30px; transform: rotate(18deg); }
.login-shell::after { right: -28px; top: 30px; transform: rotate(-22deg); }
.login-card { position: relative; z-index: 1; width: min(100%, 460px); padding: 34px; border-radius: 28px; box-shadow: var(--shadow-md); }
.brand-lockup .auth-mark { width: 54px; height: 54px; border-radius: 20px 17px 21px 16px; }
.auth-footer { padding-top: 18px; border-top: 1px solid var(--line); }

.mobile-nav { border-color: var(--line-strong); border-radius: 22px; background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: 0 16px 42px rgba(92,54,38,.18); }
.mobile-nav a { border-radius: 16px; }
.nav-icon { color: var(--primary); }
.footer { color: var(--subtle); }

@media (min-width: 760px) { .header-logout { display: inline-flex; align-items: center; } }
@media (max-width: 759px) {
  .topbar-inner { min-height: 66px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 14px 11px 14px 10px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { display: none; }
  .warm-hero { min-height: 170px; padding: 27px 24px; }
  .hero-paw { position: absolute; right: 20px; bottom: 20px; width: 76px; height: 76px; border-radius: 26px 22px 28px 20px; font-size: 34px; opacity: .72; }
  .warm-hero > div:first-child { padding-right: 66px; }
  .stat-card { min-height: 155px; }
}
@media (max-width: 420px) {
  .warm-hero { padding: 24px 20px; border-radius: 24px; }
  .warm-hero p { font-size: 14px; }
  .hero-paw { opacity: .45; }
  .login-card { padding: 28px 20px 24px; border-radius: 24px; }
  .dog-profile-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* ===== Áttekinthető, kisállatonként tagolt értesítések ===== */
.dashboard-intro { margin-bottom: 32px; }
.dashboard-intro h1 { margin-bottom: 8px; }
.dashboard-intro p { margin: 0; font-size: 15px; }

.alert-section { margin-top: 34px; }
.alert-section + .alert-section { margin-top: 44px; }
.alert-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.alert-section-heading > div { display: flex; align-items: center; gap: 10px; }
.alert-section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.section-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 900;
}
.danger-heading .section-icon { background: var(--danger-soft); color: var(--danger); }
.warning-heading .section-icon { background: var(--warning-soft); color: var(--warning); }
.neutral-heading .section-icon { background: var(--success-soft); color: var(--success); }
.section-total { color: var(--muted); font-size: 13px; font-weight: 750; }

.pet-alert-list { display: grid; gap: 16px; }
.pet-alert-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pet-alert-card.alert-danger { border-left-color: var(--danger); }
.pet-alert-card.alert-warning { border-left-color: var(--warning); }
.pet-alert-card.alert-neutral { border-left-color: var(--success); }
.pet-alert-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}
.alert-danger .pet-alert-header { background: color-mix(in srgb, var(--danger-soft) 62%, var(--surface)); }
.alert-warning .pet-alert-header { background: color-mix(in srgb, var(--warning-soft) 68%, var(--surface)); }
.pet-alert-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  font-size: 20px;
}
.pet-alert-identity { min-width: 0; }
.pet-alert-label { display: block; color: var(--subtle); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.pet-alert-identity h3 { overflow: hidden; margin: 1px 0 0; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.pet-alert-identity p { margin: 1px 0 0; font-size: 12px; }
.pet-alert-count {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.alert-danger .pet-alert-count { color: var(--danger); }
.alert-warning .pet-alert-count { color: var(--warning); }

.pet-alert-events { padding: 0 20px; }
.pet-alert-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.pet-alert-event-main { min-width: 0; }
.pet-alert-event-main strong { display: block; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.event-kind { display: block; margin-bottom: 2px; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pet-alert-date { min-width: 125px; text-align: right; }
.pet-alert-date span { display: block; color: var(--subtle); font-size: 10px; }
.pet-alert-date time { display: block; color: var(--text); font-size: 13px; font-weight: 800; }
.alert-danger .pet-alert-date time { color: var(--danger); }
.alert-warning .pet-alert-date time { color: var(--warning); }
.pet-alert-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 20px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}
.pet-alert-link:hover { background: var(--primary-soft); }
.pet-alert-link span { font-size: 18px; }
.secondary-alert-section { margin-top: 52px; }

@media (max-width: 620px) {
  .dashboard-intro { margin-bottom: 26px; }
  .alert-section { margin-top: 28px; }
  .alert-section + .alert-section { margin-top: 36px; }
  .pet-alert-header { grid-template-columns: auto minmax(0, 1fr); padding: 15px 16px; }
  .pet-alert-count { grid-column: 2; width: fit-content; margin-top: -7px; }
  .pet-alert-events { padding: 0 16px; }
  .pet-alert-event { grid-template-columns: 1fr; gap: 7px; padding: 14px 0; }
  .pet-alert-date { min-width: 0; text-align: left; }
  .pet-alert-date span, .pet-alert-date time { display: inline; }
  .pet-alert-date span::after { content: ": "; }
  .pet-alert-link { padding-right: 16px; padding-left: 16px; }
}

/* ===== Kezelések fontossági sorrendben ===== */
.treatment-priority-list { display: grid; gap: 42px; margin-top: 28px; }
.treatment-priority-section { min-width: 0; }
.treatment-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.treatment-section-heading > div { display: flex; align-items: center; gap: 10px; }
.treatment-section-heading h2 { margin: 0; font-size: 20px; }
.priority-danger .section-icon { background: var(--danger-soft); color: var(--danger); }
.priority-warning .section-icon { background: var(--warning-soft); color: var(--warning); }
.priority-neutral .section-icon, .priority-completed .section-icon { background: var(--success-soft); color: var(--success); }
.priority-empty {
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.priority-empty p { margin: 0; font-size: 13px; }
.priority-danger .treatment-card-grid, .priority-warning .treatment-card-grid { grid-template-columns: 1fr; }
.priority-card { border-left-width: 5px; box-shadow: none; }
.priority-card::before { display: none; }
.priority-card .status-row { padding-right: 0; }
.priority-card-danger { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger-soft) 44%, var(--surface)); }
.priority-card-warning { border-left-color: var(--warning); background: color-mix(in srgb, var(--warning-soft) 48%, var(--surface)); }
.priority-card-neutral { border-left-color: var(--success); }
.priority-card-completed { border-left-color: var(--line-strong); opacity: .9; }
.priority-card h3 { margin-bottom: 10px; font-size: 19px; }
.treatment-kind { color: var(--subtle); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.priority-card-danger .meta strong { color: var(--danger); }
.priority-card-warning .meta strong { color: var(--warning); }

@media (max-width: 620px) {
  .treatment-priority-list { gap: 34px; margin-top: 24px; }
  .treatment-section-heading h2 { font-size: 18px; }
}

/* ===== Pet dashboard referencia alapján egységesített világos felület ===== */
:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-muted: #f1f7f5;
  --text: #171d1b;
  --muted: #65716d;
  --subtle: #8b9692;
  --line: #e3ebe8;
  --line-strong: #d3dfdb;
  --primary: #54a99a;
  --primary-hover: #438f82;
  --primary-soft: #d9f3ec;
  --danger: #c85d60;
  --danger-soft: #f9dddd;
  --warning: #a67b2e;
  --warning-soft: #fbf0ce;
  --success: #4f8b73;
  --success-soft: #dff2e9;
  --shadow-sm: 0 2px 8px rgba(35, 64, 55, .07);
  --shadow-md: 0 8px 26px rgba(35, 64, 55, .10);
  --radius-lg: 14px;
  --content: 1080px;
}

body {
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
h1, h2, h3, .brand { font-family: inherit; letter-spacing: -.025em; }
h1 { font-size: clamp(29px, 4vw, 38px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 780; }
h3 { font-size: 17px; font-weight: 760; }

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.topbar-inner { min-height: 72px; }
.brand { gap: 9px; }
.brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: none;
  transform: none;
}
.brand-mark svg { width: 21px; height: 21px; transform: none; }
.brand-copy strong { font-size: 20px; color: var(--text); }
.brand-copy small { color: var(--primary); }
.desktop-nav {
  gap: 5px;
  margin-left: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}
.desktop-nav a { padding: 9px 14px; border-radius: 8px; color: var(--text); font-weight: 650; }
.desktop-nav a:hover, .desktop-nav a.active { background: var(--primary-soft); color: var(--text); box-shadow: none; }
.signed-in-role { color: var(--primary); }
.header-logout { border-color: var(--primary); border-radius: 9px; background: var(--primary); color: #fff; }
.header-logout:hover { background: var(--primary-hover); color: #fff; }

.container { padding-top: 30px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 5px; }
.eyebrow { color: var(--primary); font-size: 10px; }

.card {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: none; }
.card.danger { background: var(--danger-soft); }
.card.warning { background: var(--warning-soft); }
.card.compact { padding: 17px; }

button, .button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 9px;
  background: var(--primary);
  box-shadow: 0 3px 8px rgba(84, 169, 154, .22);
  font-size: 14px;
}
button:hover, .button:hover { background: var(--primary-hover); }
.button.secondary, button.secondary { border-color: var(--line-strong); background: #fff; box-shadow: none; }
.button.danger, button.danger { box-shadow: none; }

input, textarea, select {
  min-height: 46px;
  border-radius: 9px;
  background: #fff;
}
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px var(--primary-soft); }
.form-card { padding: 24px; }
.filter-chip { min-height: 36px; border-radius: 8px; background: #fff; }
.filter-chip.active { background: var(--primary-soft); color: var(--text); box-shadow: none; }

.dashboard-intro { margin-bottom: 16px; }
.dashboard-intro h1 { margin: 0; font-size: 34px; }
.dashboard-welcome-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 170px;
  padding: 28px 32px;
  border-radius: 15px;
  background: linear-gradient(105deg, #c9f2e6 0%, #dff6ef 52%, #f6d7d8 100%);
  box-shadow: var(--shadow-sm);
}
.welcome-copy { position: relative; z-index: 2; }
.welcome-copy h2 { max-width: 510px; margin-bottom: 5px; font-size: 25px; }
.welcome-copy p { margin-bottom: 16px; color: #42534d; }
.welcome-copy .button { min-height: 40px; }
.welcome-pets {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  align-self: stretch;
  padding-right: 18px;
  font-size: 68px;
  line-height: 1;
  filter: saturate(.82);
}
.welcome-pets span:nth-child(1) { transform: translate(12px, -4px) rotate(-3deg); font-size: 59px; }
.welcome-pets span:nth-child(2) { position: relative; z-index: 2; font-size: 82px; }
.welcome-pets span:nth-child(3) { transform: translate(-11px, -1px) rotate(3deg); font-size: 54px; }

.alert-section { margin-top: 30px; }
.alert-section + .alert-section { margin-top: 34px; }
.alert-section-heading, .treatment-section-heading {
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom-color: var(--line);
}
.alert-section-heading h2, .treatment-section-heading h2 { font-size: 19px; }
.section-icon { width: 27px; height: 27px; border-radius: 8px; font-size: 13px; }
.section-total { padding: 4px 8px; border-radius: 999px; background: var(--surface-muted); font-size: 11px; }

.pet-alert-list { gap: 12px; }
.pet-alert-card {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.pet-alert-header { padding: 13px 16px; background: #fff; }
.alert-danger .pet-alert-header { background: #fff4f4; }
.alert-warning .pet-alert-header { background: #fffaf0; }
.pet-alert-avatar { width: 39px; height: 39px; border-radius: 10px; background: var(--primary-soft); font-size: 18px; }
.pet-alert-identity h3 { font-size: 19px; }
.pet-alert-count { border: 0; border-radius: 7px; background: #fff; }
.pet-alert-events { padding: 8px 15px; }
.pet-alert-event {
  min-height: 62px;
  margin: 6px 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-muted);
}
.alert-danger .pet-alert-event { background: var(--danger-soft); }
.alert-warning .pet-alert-event { background: var(--warning-soft); }
.pet-alert-link { min-height: 43px; padding: 8px 16px; border-top: 1px solid var(--line); }
.pet-alert-link:hover { background: var(--primary-soft); }

.dog-grid, .history-grid { gap: 12px; }
.dog-profile-card { padding: 18px; }
.dog-profile-card::after { display: none; }
.dog-card-head { margin-bottom: 10px; }
.dog-avatar { width: 46px; height: 46px; flex-basis: 46px; border-radius: 11px; transform: none; }
.dog-grid .dog-profile-card:nth-child(3n + 2) .dog-avatar { background: #f8dddd; }
.dog-grid .dog-profile-card:nth-child(3n) .dog-avatar { background: #eee4fb; }
.meta { margin-top: 10px; }
.meta p { font-size: 13px; }

.treatment-priority-list { gap: 34px; }
.priority-empty { background: #fff; }
.priority-card { border-left-width: 4px; border-radius: 13px; }
.priority-card-danger { background: #fff7f7; }
.priority-card-warning { background: #fffaf0; }
.priority-card h3 { font-size: 18px; }
.status { border-radius: 7px; }

.login-shell { background: var(--bg); }
.login-shell::before, .login-shell::after { display: none; }
.login-card { border-radius: 16px; box-shadow: var(--shadow-md); }
.brand-lockup .auth-mark { border-radius: 13px; }

.mobile-nav { border-color: var(--line); border-radius: 14px; background: rgba(255, 253, 249, .68); box-shadow: var(--shadow-md); }
.mobile-nav a { border-radius: 9px; }
.footer { color: var(--subtle); }

@media (max-width: 759px) {
  .container { padding-top: 24px; }
  .dashboard-intro h1 { font-size: 29px; }
  .dashboard-welcome-card { min-height: 160px; padding: 23px 20px; }
  .welcome-copy { max-width: 75%; }
  .welcome-copy h2 { font-size: 21px; }
  .welcome-copy p { font-size: 13px; }
  .welcome-pets { position: absolute; right: -22px; bottom: 15px; padding: 0; opacity: .75; }
  .welcome-pets span { display: none; }
  .welcome-pets span:nth-child(2) { display: block; font-size: 70px; }
  .page-head { align-items: stretch; }
  .page-head > .button { width: 100%; }
}

/* ===== Referenciakép szerinti dashboard-elrendezés ===== */
.user-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-soft), #f4d8d9);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}
.dashboard-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.dashboard-top-grid .dashboard-welcome-card { min-height: 164px; }
.dashboard-mini-panel, .dashboard-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading > span { color: var(--text); font-size: 17px; }
.panel-heading > a { color: var(--primary); font-size: 12px; font-weight: 750; }
.mini-empty { display: grid; min-height: 96px; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.mini-event-list { display: grid; gap: 7px; }
.mini-event {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 9px;
  color: var(--text);
}
.mini-event.is-expired { background: var(--danger-soft); }
.mini-event.is-soon { background: #dceff8; }
.mini-event-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 900;
}
.mini-event-copy { min-width: 0; }
.mini-event-copy strong, .mini-event-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-event-copy strong { font-size: 11px; }
.mini-event-copy small { color: var(--muted); font-size: 9px; }
.mini-event time { color: var(--text); font-size: 11px; font-weight: 800; }

.dashboard-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 15px;
  align-items: stretch;
}
.dashboard-panel { padding: 13px; }
.dashboard-pet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dashboard-pet-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.dashboard-pet-photo {
  display: grid;
  height: 88px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #c9f2e6, #daf6ee);
  font-size: 50px;
}
.dashboard-pet-card:nth-child(2n) .dashboard-pet-photo { background: linear-gradient(145deg, #f4d2d3, #f8e2df); }
.dashboard-pet-title { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.dashboard-pet-title strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-pet-title span { color: var(--text); font-size: 10px; white-space: nowrap; }
.dashboard-pet-card > p { overflow: hidden; margin: 0 0 8px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pet-quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pet-quick-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 76px;
  padding: 9px 3px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-muted) 55%, #fff);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}
.pet-quick-links a:hover { background: var(--surface-muted); }
.pet-quick-links span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--primary-soft); font-size: 19px; font-weight: 900; line-height: 1; }
.pet-quick-links a:first-child span { font-family: Georgia, serif; font-style: italic; }
.pet-quick-links a:nth-child(2) span { background: #f8dddd; }
.pet-quick-links a:nth-child(3) span { background: #e8dff8; }

.reference-reminders, .reference-actions { display: grid; gap: 8px; }
.reference-reminder {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 55px;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--text);
}
.reminder-color-1 { background: var(--warning-soft); }
.reminder-color-2 { background: #dceff8; }
.reminder-color-3 { background: #eee3fa; }
.reminder-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.58); }
.reference-reminder strong, .reference-reminder small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-reminder strong { font-size: 11px; }
.reference-reminder small { color: var(--muted); font-size: 9px; }
.reference-reminder time { font-size: 11px; font-weight: 800; }
.quick-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--text);
}
.quick-action span { display: grid; width: 30px; height: 30px; place-items: center; font-size: 17px; }
.quick-action strong { font-size: 11px; }
.action-mint { background: var(--primary-soft); }
.action-pink { background: var(--danger-soft); }
.action-yellow { background: var(--warning-soft); }
.action-purple { background: #e8dff8; }

@media (max-width: 980px) {
  .signed-in-user { display: none; }
  .desktop-nav { margin-left: 14px; }
  .desktop-nav a { padding-right: 9px; padding-left: 9px; }
  .dashboard-reference-grid { grid-template-columns: 1fr 1fr; }
  .pets-panel { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .dashboard-top-grid, .dashboard-reference-grid { grid-template-columns: 1fr; }
  .pets-panel { grid-column: auto; }
  .dashboard-top-grid .dashboard-welcome-card { min-height: 178px; }
  .dashboard-pet-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .dashboard-pet-grid { grid-template-columns: 1fr; }
  .dashboard-pet-photo { height: 105px; }
}

/* ===== Nagy felbontású referencia finomhangolás ===== */
body { font-family: ui-rounded, "SF Pro Rounded", "Trebuchet MS", "Segoe UI", sans-serif; }
.brand-copy strong { font-size: 23px; font-weight: 900; letter-spacing: -.055em; }
.brand-copy strong span { color: var(--primary); }
.brand-mark { width: 43px; height: 43px; background: transparent; color: #3d8f80; }
.brand-mark svg { width: 38px; height: 38px; }
.desktop-nav a { font-size: 15px; font-weight: 760; }
.dashboard-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  margin-bottom: 14px;
}
.dashboard-intro h1 { font-size: 38px; font-weight: 900; letter-spacing: -.045em; }
.dashboard-toolbar { display: flex; align-items: center; gap: 24px; }
.notification-button {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  background: var(--warning-soft);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-size: 21px;
}
.dashboard-search { position: relative; display: block; width: min(320px, 36vw); }
.dashboard-search input { height: 44px; min-height: 44px; padding: 9px 50px 9px 17px; border-radius: 999px; }
.dashboard-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 21px;
}
.dashboard-welcome-card { border: 1px solid rgba(84,169,154,.14); box-shadow: none; }
.welcome-copy h2 { font-size: 27px; font-weight: 900; }
.welcome-copy p { font-size: 15px; }
.dashboard-mini-panel, .dashboard-panel { box-shadow: 0 2px 4px rgba(20, 40, 34, .12); }
.panel-heading h2 { font-weight: 900; }
.search-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--muted);
  font-size: 13px;
}
.search-result-bar a { font-weight: 750; }

@media (max-width: 759px) {
  .dashboard-intro { align-items: flex-start; flex-direction: column; min-height: 0; }
  .dashboard-toolbar { width: 100%; gap: 10px; }
  .dashboard-search { width: 100%; }
  .dashboard-intro h1 { font-size: 31px; }
}

/* ===== Külön emlékeztető naptár ===== */
.mobile-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content minmax(0, 1fr); }
.mobile-nav a { min-width: 0; overflow-wrap: anywhere; text-align: center; line-height: 1.2; }
.mini-calendar-title { margin: -2px 0 8px; color: var(--text); font-size: 12px; font-weight: 850; text-align: center; }
.mini-calendar-weekdays, .mini-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.mini-calendar-weekdays { margin-bottom: 4px; }
.mini-calendar-weekdays span { color: var(--subtle); font-size: 8px; font-weight: 800; text-align: center; }
.mini-calendar-day {
  position: relative;
  display: grid;
  min-width: 0;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  color: var(--text);
  font-size: 9px;
  font-style: normal;
}
.mini-calendar-day:hover { background: var(--surface-muted); }
.mini-calendar-day.is-empty { pointer-events: none; }
.mini-calendar-day.is-today { background: var(--primary); color: #fff; font-weight: 850; }
.mini-calendar-day.has-event:not(.is-today) { background: var(--primary-soft); font-weight: 850; }
.mini-calendar-day i {
  position: absolute;
  top: -2px;
  right: -1px;
  display: grid;
  width: 11px;
  height: 11px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 6px;
  font-style: normal;
}
.mini-calendar-add { display: block; margin-top: 8px; color: var(--primary); font-size: 10px; font-weight: 800; text-align: center; }
.dashboard-reminder-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: stretch; }
.dashboard-calendar-block { min-width: 0; }
.dashboard-reminder-block { min-width: 0; padding-left: 14px; border-left: 1px solid var(--line); }
.dashboard-reminder-block h3 { margin: 0 0 8px; font-size: 15px; }
.dashboard-reminder-list { display: grid; gap: 6px; }
.dashboard-reminder-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
}
.dashboard-reminder-item.type-grooming { border-left-color: #d78a8b; }
.dashboard-reminder-item.type-vet { border-left-color: #70aeca; }
.dashboard-reminder-item.type-appointment { border-left-color: #c6a557; }
.dashboard-reminder-date { display: grid; place-items: center; line-height: 1; }
.dashboard-reminder-date strong { font-size: 16px; }
.dashboard-reminder-date small { margin-top: 3px; font-size: 8px; }
.dashboard-reminder-copy { min-width: 0; }
.dashboard-reminder-copy strong, .dashboard-reminder-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-reminder-copy strong { font-size: 11px; }
.dashboard-reminder-copy small { font-size: 9px; }
.reminder-empty { display: grid; min-height: 150px; place-items: center; color: var(--muted); font-size: 13px; text-align: center; }

.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .7fr); gap: 18px; align-items: stretch; }
.calendar-card { overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.calendar-navigation { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-navigation h2 { margin: 0; }
.calendar-navigation a { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--surface-muted); color: var(--text); font-size: 19px; }
.calendar-navigation a:hover { background: var(--primary-soft); }
.calendar-weekdays, .calendar-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { gap: 4px; margin-bottom: 5px; }
.calendar-weekdays span { padding: 5px; color: var(--subtle); font-size: 10px; font-weight: 850; text-align: center; }
.calendar-month-grid { gap: 5px; }
.calendar-day {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.calendar-day:hover { border-color: var(--primary); background: var(--surface-muted); }
.calendar-day.is-empty { border-color: transparent; background: transparent; pointer-events: none; }
.calendar-day-number { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.calendar-day.is-today .calendar-day-number { background: var(--primary); color: #fff; }
.calendar-day.has-event { border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); }
.calendar-event-dot { display: block; overflow: hidden; margin-top: 4px; padding: 3px 5px; border-radius: 5px; background: var(--primary-soft); color: var(--text); font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-dot.type-grooming { background: var(--danger-soft); }
.calendar-event-dot.type-vet { background: #dceff8; }
.calendar-event-dot.type-appointment { background: var(--warning-soft); }
.calendar-more { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.calendar-form-card { min-width: 0; width: 100%; margin: 0; padding: 20px; }
.calendar-form-card h2 { margin-bottom: 14px; }
.calendar-form-card form { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.calendar-form-card label { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.calendar-form-card input:not([type="hidden"]), .calendar-form-card select, .calendar-form-card textarea {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.calendar-form-card button[type="submit"] { width: 100%; min-height: 50px; margin: 0; }
.calendar-form-row { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 901px) {
  .calendar-form-row { grid-template-columns: minmax(0, 1fr); }
}
.calendar-event-list-section { margin-top: 30px; }
.calendar-event-list { display: grid; gap: 10px; }
.calendar-list-event { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.calendar-list-event.type-grooming { border-left-color: #d78a8b; }
.calendar-list-event.type-vet { border-left-color: #70aeca; }
.calendar-list-event.type-appointment { border-left-color: #c6a557; }
.calendar-list-date { display: grid; width: 52px; height: 52px; place-items: center; align-content: center; border-radius: 11px; background: var(--surface-muted); }
.calendar-list-date strong { font-size: 20px; line-height: 1; }
.calendar-list-date span { color: var(--muted); font-size: 8px; }
.calendar-list-event h3, .calendar-list-event p { margin: 0; }
.calendar-list-event p { font-size: 12px; }
.calendar-list-event form { display: block; }
.calendar-list-event button { min-height: 38px; padding: 8px 12px; }

@media (max-width: 900px) {
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-form-card { grid-row: 1; }
}
@media (max-width: 620px) {
  .calendar-card { padding: 12px 8px; }
  .calendar-month-grid { gap: 2px; }
  .calendar-day { min-height: 48px; padding: 4px; border-radius: 7px; }
  .calendar-day-number { width: 20px; height: 20px; font-size: 9px; }
  .calendar-event-dot { width: 5px; height: 5px; margin: 3px auto 0; padding: 0; border-radius: 50%; color: transparent; }
  .calendar-more { display: none; }
  .calendar-form-row { grid-template-columns: 1fr; }
  .calendar-list-event { grid-template-columns: 48px minmax(0, 1fr); }
  .calendar-list-event form { grid-column: 1 / -1; }
  .calendar-list-event button { width: 100%; }
}

/* ===== Nagyobb, könnyebben olvasható elemek ===== */
body { font-size: 17px; }
p { font-size: 15px; }
small, .field-help { font-size: 14px; }
label { font-size: 15px; }
input, textarea, select { font-size: 16px; }
button, .button { min-height: 46px; padding: 11px 17px; font-size: 15px; }
.desktop-nav a { font-size: 16px; }
.signed-in-email { font-size: 13px; }
.signed-in-role { font-size: 11px; }

.dashboard-top-grid .dashboard-welcome-card { min-height: 210px; }
.dashboard-mini-panel, .dashboard-panel { padding: 17px; }
.panel-heading { margin-bottom: 13px; }
.panel-heading h2 { font-size: 21px; }
.panel-heading > span { font-size: 21px; }
.panel-heading > a { font-size: 14px; }
.welcome-copy h2 { font-size: 29px; }
.welcome-copy p { font-size: 16px; }

.mini-event-list { gap: 9px; }
.mini-event {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 53px;
  padding: 8px 10px;
  border-radius: 11px;
}
.mini-event-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 17px; }
.mini-event-copy strong { font-size: 14px; }
.mini-event-copy small { font-size: 11px; }
.mini-event time { font-size: 14px; }
.mini-event { transition: background-color .16s ease, box-shadow .16s ease; }
.mini-event:hover, .mini-event:focus-visible { box-shadow: inset 0 0 0 1px rgba(23, 29, 27, .14), 0 3px 8px rgba(35, 64, 55, .08); }
.mini-event.is-expired:hover, .mini-event.is-expired:focus-visible { background: #f3caca; }
.mini-event.is-soon:hover, .mini-event.is-soon:focus-visible { background: #cbe4f1; }
.mini-event.is-expired .mini-event-icon { color: #800020; font-size: 26px; font-weight: 900; }
@media (prefers-reduced-motion: reduce) {
  .mini-event { transition: none; }
}

.dashboard-pet-card { padding: 11px; }
.dashboard-pet-photo { height: 104px; font-size: 58px; }
.dashboard-pet-title strong { font-size: 18px; }
.dashboard-pet-title span { font-size: 12px; }
.dashboard-pet-card > p { font-size: 12px; }
.pet-quick-links a { gap: 7px; min-height: 90px; padding: 10px 4px; font-size: 12px; line-height: 1.3; }
.pet-quick-links span { width: 40px; height: 40px; font-size: 20px; }

.quick-action {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  min-height: 59px;
  padding: 9px 13px;
  border-radius: 12px;
}
.quick-action span { width: 40px; height: 40px; font-size: 23px; }
.quick-action strong { font-size: 14px; }

.mini-calendar-title { margin-bottom: 10px; font-size: 15px; }
.mini-calendar-weekdays { margin-bottom: 6px; }
.mini-calendar-weekdays span { font-size: 10px; }
.mini-calendar-weekdays, .mini-calendar-grid { gap: 4px; }
.mini-calendar-day { height: 31px; border-radius: 8px; font-size: 12px; }
.mini-calendar-day i { top: -2px; right: -2px; width: 14px; height: 14px; font-size: 8px; }
.mini-calendar-add { margin-top: 11px; font-size: 13px; }

.calendar-navigation h2 { font-size: 24px; }
.calendar-navigation a { width: 42px; height: 42px; font-size: 22px; }
.calendar-weekdays span { font-size: 12px; }
.calendar-day { min-height: 104px; padding: 9px; }
.calendar-day-number { width: 29px; height: 29px; font-size: 13px; }
.calendar-event-dot { padding: 4px 6px; font-size: 10px; }
.calendar-more { font-size: 10px; }
.calendar-form-card h2 { font-size: 23px; }
.calendar-list-date { width: 58px; height: 58px; }
.calendar-list-date strong { font-size: 23px; }
.calendar-list-date span { font-size: 10px; }
.calendar-list-event h3 { font-size: 19px; }
.calendar-list-event p { font-size: 14px; }
.event-kind { font-size: 11px; }
.status { font-size: 13px; }
.filter-chip { font-size: 14px; }
.mobile-nav a { font-size: 12px; }
.mobile-nav a:nth-child(3) > span:last-child { white-space: nowrap; font-size: 11px; padding: 0 3px; }
.nav-icon { font-size: 21px; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .dashboard-top-grid .dashboard-welcome-card { min-height: 190px; }
  .panel-heading h2 { font-size: 19px; }
  .mini-calendar-day { height: 29px; font-size: 11px; }
  .calendar-day { min-height: 56px; padding: 4px; }
  .calendar-day-number { width: 23px; height: 23px; font-size: 11px; }
}

.account-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.account-settings-form { height: 100%; margin: 0; }
.account-settings-form h2 { margin-bottom: 5px; }
.account-settings-form p { overflow-wrap: anywhere; }
.account-settings-form button { width: 100%; margin-top: auto; }
.activation-card .button { width: 100%; }
@media (min-width: 760px) and (max-width: 980px) {
  .dashboard-reference-grid .pets-panel { grid-column: auto; }
}
@media (max-width: 759px) {
  .account-settings-grid { grid-template-columns: 1fr; }
  .account-entry { gap: 6px; }
  .account-entry .signed-in-user { display: grid; }
  .account-entry .signed-in-role { display: none; }
  .account-entry .signed-in-email { max-width: 27vw; font-size: 11px; }
  .dashboard-reminder-layout { grid-template-columns: 1fr; }
  .dashboard-reminder-block { padding: 13px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .reminder-empty { min-height: 70px; }
}

/* A hosszabb menü címétől sem szorulnak ki a fejléc további elemei. */
@media (min-width: 760px) and (max-width: 1190px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 14px; padding: 10px 0; }
  .desktop-nav { order: 3; flex-basis: 100%; margin-left: 0; justify-content: center; }
  .desktop-nav a { padding: 8px; font-size: 14px; }
}

/* Átlátszó PetDB logó a közös fejlécben és a belépési felületeken. */
.petdb-logo { display: block; width: 174px; max-width: 100%; height: auto; object-fit: contain; }
.brand-lockup .petdb-auth-logo { display: block; width: min(100%, 260px); height: auto; margin: 0 auto 16px; }
.petdb-logo, .petdb-auth-logo { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.logout-confirmation { width: min(calc(100% - 32px), 360px); padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); }
.logout-confirmation::backdrop { background: rgba(23, 29, 27, .38); }
.logout-confirmation h2 { margin: 0 0 20px; text-align: center; }
.logout-confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logout-confirmation-actions form { margin: 0; }
.logout-confirmation-actions button { width: 100%; }
@media (max-width: 759px) {
  .brand .petdb-logo { width: 130px; }
}

/* Lábléc és az adminisztrátor bejelentési postaládája. */
.admin-medicine-form { max-width: 700px; }
.admin-medicine-form button { justify-self: start; }
.nebih-import-summary p { max-width: 850px; overflow-wrap: anywhere; }
.nebih-search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.nebih-search-form label { flex: 1 1 250px; min-width: 0; }
.nebih-preview-list { display: grid; gap: 10px; }
.nebih-preview-item { margin: 0; padding: 16px; }
.nebih-preview-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.nebih-preview-item summary > span:first-child { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.nebih-preview-item .status { margin: 0; flex-shrink: 0; }
.nebih-preview-item li { margin-top: 10px; overflow-wrap: anywhere; }
[data-medicine-fields] { display: grid; gap: 16px; min-width: 0; }
.medicine-name-group { display: grid; gap: 7px; min-width: 0; }
.petdb-icon { display: inline-block; width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }
.petdb-icon .icon-tint { fill: currentColor; fill-opacity: .1; }
.petdb-icon .icon-accent { fill: #d68f79; stroke: #d68f79; }
.petdb-icon-cat, .petdb-icon-dog, .petdb-icon-rabbit, .petdb-icon-bird, .petdb-icon-paw { color: #986047; }
.petdb-icon-cat .icon-tint, .petdb-icon-dog .icon-tint, .petdb-icon-rabbit .icon-tint, .petdb-icon-bird .icon-tint { fill: #fff5e5; fill-opacity: 1; }
.nav-icon { display: grid; place-items: center; }
.nav-icon .petdb-icon { width: 25px; height: 25px; }
.mobile-nav .petdb-icon { color: inherit; }
.panel-symbol { display: grid; place-items: center; color: var(--primary-hover); }
.panel-symbol .petdb-icon { width: 26px; height: 26px; }
.mini-event-icon .petdb-icon { width: 24px; height: 24px; }
.mini-event.is-expired .petdb-icon-alert { width: 28px; height: 28px; }
.section-icon .petdb-icon { width: 21px; height: 21px; }
.pet-quick-links span .petdb-icon { width: 27px; height: 27px; }
.dashboard-pet-photo .petdb-icon { width: 76px; height: 76px; }
.dog-avatar .petdb-icon, .pet-alert-avatar .petdb-icon { width: 34px; height: 34px; }
.dashboard-search button { display: grid; place-items: center; }
.button .petdb-icon, .mini-calendar-add .petdb-icon { width: 19px; height: 19px; }
.mini-calendar-add { display: inline-flex; align-items: center; gap: 5px; }
.welcome-copy { flex: 1 1 auto; min-width: 0; }
.welcome-pets { flex: 0 0 136px; width: 136px; padding-right: 0; margin-left: 8px; filter: none; }
.welcome-pets span { display: grid; place-items: center; flex-shrink: 0; }
.welcome-pets span .petdb-icon { width: 40px; height: 40px; }
.welcome-pets span:nth-child(2) .petdb-icon { width: 56px; height: 56px; }
@media (max-width: 759px) {
  .welcome-pets { right: 14px; bottom: 18px; width: 56px; margin-left: 0; opacity: .8; }
  .welcome-pets span { display: none; }
  .welcome-pets span:nth-child(2) { display: grid; }
  .welcome-copy { max-width: calc(100% - 58px); }
}
[data-vaccine-fields] { display: grid; gap: 7px; min-width: 0; }
.name-autocomplete { position: relative; min-width: 0; }
.name-suggestions, .name-no-results { position: absolute; z-index: 50; top: calc(100% + 5px); left: 0; right: 0; margin: 0; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); }
.name-suggestions { max-height: 285px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.name-suggestions li { padding: 12px 14px; border-radius: 8px; color: var(--text); cursor: pointer; font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.name-suggestions li:hover, .name-suggestions li.is-active { background: var(--primary-soft); color: var(--primary-hover); }
.name-no-results { padding: 14px; color: var(--subtle); font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.footer.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; padding: 0 16px 110px; color: var(--subtle); font-size: 14px; }
.site-footer a { color: var(--primary-hover); font-weight: 650; }
.site-footer a:hover { text-decoration: underline; }
.admin-entry { display: inline-flex; align-items: center; gap: 6px; }
.unread-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: #800020; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.admin-tabs .is-current { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); }
.bug-report-form { width: 100%; max-width: 760px; }
.bug-report-form textarea { min-height: 190px; resize: vertical; }
.field-hint, .report-sender { color: var(--subtle); font-size: 14px; font-weight: 400; }
.report-sender { margin: 0; overflow-wrap: anywhere; }
.report-list { display: grid; gap: 12px; }
.report-open-form { min-width: 0; margin: 0; }
button.report-list-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-width: 0; padding: 20px; background: var(--surface); color: var(--text); text-align: left; font-weight: 400; white-space: normal; }
button.report-list-item.is-unread { border-left: 4px solid #800020; background: #fff7f8; }
button.report-list-item:hover { background: var(--primary-soft); border-color: var(--primary); }
.report-list-text { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.report-list-title { font-size: 18px; font-weight: 750; }
.report-list-sender { color: var(--subtle); font-size: 14px; }
.report-list-info { display: grid; justify-items: end; gap: 8px; flex-shrink: 0; }
.report-list-info time { font-size: 13px; color: var(--subtle); }
.report-detail h2 { margin-top: 14px; overflow-wrap: anywhere; }
.report-meta { display: grid; gap: 12px; margin: 22px 0; }
.report-meta div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.report-meta dt { color: var(--subtle); }
.report-meta dd { margin: 0; overflow-wrap: anywhere; }
.report-message { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); line-height: 1.7; overflow-wrap: anywhere; }
.report-actions { margin-top: 22px; }
.report-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) {
  .footer.site-footer { padding-bottom: 28px; }
  .site-footer .footer-admin { display: none; }
}
@media (max-width: 620px) {
  button.report-list-item { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px; }
  .report-list-info { display: flex; flex-wrap: wrap; align-items: center; justify-items: start; }
  .report-meta div { grid-template-columns: 1fr; gap: 3px; }
  .admin-tabs .button { flex: 1 1 auto; }
}

/* Lágyabb, meleg pasztell felület és a Flaticon Animal csomag képei. */
:root {
  --bg: #fbf7f2;
  --surface: #fffdf9;
  --surface-muted: #f5eee6;
  --text: #363c37;
  --muted: #677169;
  --subtle: #727d74;
  --line: #e8e5dc;
  --line-strong: #d9dfd4;
  --primary: #527e6d;
  --primary-hover: #406754;
  --primary-soft: #e5f0e8;
  --danger: #9b515c;
  --danger-soft: #fae9e8;
  --warning: #8b7042;
  --warning-soft: #faf1dd;
  --success: #59775e;
  --success-soft: #e8f1e6;
  --shadow-sm: 0 2px 9px rgba(76, 81, 65, .045);
  --shadow-md: 0 8px 26px rgba(76, 81, 65, .075);
}
.topbar { background: rgba(255, 253, 249, .97); }
.dashboard-mini-panel, .dashboard-panel { background: var(--surface); box-shadow: var(--shadow-sm); }
.dashboard-welcome-card { background: linear-gradient(110deg, #eaf2e8, #f4efe4 62%, #f8e8e3); border-color: #e2e8db; }
.welcome-copy p { color: var(--muted); }
button:not(.secondary):not(.danger):not(.report-list-item), .button:not(.secondary):not(.danger), .header-logout {
  background: #cfe1d5;
  border-color: #b9d1c1;
  color: #304c40;
}
button:not(.secondary):not(.danger):not(.report-list-item):hover, .button:not(.secondary):not(.danger):hover, .header-logout:hover { background: #bed6c8; color: #304c40; }
.button.secondary, button.secondary { background: var(--surface); }
.user-avatar { background: linear-gradient(145deg, #e5f0e8, #f6e1df); }
.mini-event.is-soon { background: #eaf0f6; }
.mini-event.is-soon:hover, .mini-event.is-soon:focus-visible { background: #dfe9f2; }
.mini-event.is-expired:hover, .mini-event.is-expired:focus-visible { background: #f4dddd; }
.mini-event.is-expired .mini-event-icon { color: #800020; }
.pet-quick-links a:nth-child(2) span { background: #fae9e8; }
.card.priority-card-danger, .card.priority-card-danger:hover { background: #fff6f5; border-left-color: #800020; }
.priority-card-warning { background: #fffbf2; }
.petdb-animal-icon { display: block; width: 76px; height: 76px; object-fit: contain; flex-shrink: 0; }
.dashboard-pet-photo.pet-colored-avatar, .dog-avatar.pet-colored-avatar, .pet-alert-avatar.pet-colored-avatar { background: var(--pet-color, #e5f0e8); }
.dog-avatar .petdb-animal-icon, .pet-alert-avatar .petdb-animal-icon { width: 34px; height: 34px; }
.welcome-pets span .petdb-animal-icon { width: 40px; height: 40px; }
.welcome-pets span:nth-child(2) .petdb-animal-icon { width: 56px; height: 56px; }
.icon-credit { font-size: 12px; color: var(--muted); }
.icon-credit a { color: var(--primary-hover); }

/* Egységes választómező és saját, pasztell lenyíló lista. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  border-radius: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23527e6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 21px;
}
.styled-select { position: relative; min-width: 0; width: 100%; }
.styled-select.is-open { z-index: 15; }
.styled-select select.styled-select-native {
  position: absolute;
  top: 24px;
  left: 12px;
  width: 1px !important;
  height: 1px !important;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
button.styled-select-trigger:not(.secondary):not(.danger) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefb, #faf7f1);
  color: var(--text);
  box-shadow: 0 2px 5px rgba(76, 81, 65, .025);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  transform: none;
}
button.styled-select-trigger:not(.secondary):not(.danger):hover {
  border-color: #b8cfc0;
  background: #f4f8f1;
  color: var(--text);
  transform: none;
}
.styled-select.is-open button.styled-select-trigger { border-color: #a5c4b2; box-shadow: 0 0 0 3px var(--primary-soft); }
.styled-select-value { min-width: 0; overflow-wrap: anywhere; }
.styled-select.is-placeholder .styled-select-value { color: var(--muted); font-weight: 400; }
.styled-select-arrow { width: 9px; height: 9px; justify-self: center; margin-top: -4px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .15s ease; }
.styled-select.is-open .styled-select-arrow { margin-top: 4px; transform: rotate(225deg); }
.styled-select-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(55, 76, 57, .13);
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #bfd2c3 transparent;
}
.styled-select.opens-up .styled-select-list { top: auto; bottom: calc(100% + 7px); }
.styled-select-list li { position: relative; min-height: 44px; margin: 0; padding: 11px 37px 11px 13px; border-radius: 9px; color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; }
.styled-select-list li + li { margin-top: 3px; }
.styled-select-list li.is-selected { background: var(--primary-soft); color: var(--primary-hover); font-weight: 700; }
.styled-select-list li.is-selected::after { content: ""; position: absolute; top: 50%; right: 15px; width: 6px; height: 11px; margin-top: -7px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); }
.styled-select-list li:hover:not([aria-disabled="true"]), .styled-select-list li.is-active { background: #edf4e9; box-shadow: inset 0 0 0 1px #dbe6d6; }
.styled-select-list li[aria-disabled="true"] { color: var(--subtle); cursor: default; opacity: .55; }
button.styled-select-trigger[aria-invalid="true"] { border-color: var(--danger); }
.styled-select-error { display: block; margin-top: 7px; color: var(--danger); font-size: 13px; font-weight: 500; }
button.styled-select-trigger:disabled { opacity: .6; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .styled-select-arrow { transition: none; } }

/* Közelebbi esedékesség: pasztell narancs, a 8–30 napos tételek pasztell kékek. */
.mini-event.is-week { background: #fbe7d0; }
.mini-event.is-week:hover, .mini-event.is-week:focus-visible { background: #f5dbbb; }
.mini-event.is-week .mini-event-copy small { color: #88572c; }
.priority-card-warning.is-week { background: #fbe7d0; border-left-color: #d89b60; }
.priority-card-warning.is-week .status { background: #f6d9b8; color: #805029; }
.priority-card-warning.is-soon { background: #eaf0f6; border-left-color: #a7bed1; }
.priority-card-warning.is-soon .status { background: #dde8f2; color: #526c83; }
.priority-card-warning.is-soon .meta strong { color: #526c83; }
.petdb-uploaded-icon { object-fit: contain; }
.mini-event.is-expired .petdb-uploaded-icon { width: 24px; height: 24px; }
.treatment-kind { display: inline-flex; align-items: center; gap: 7px; }
.treatment-kind .petdb-icon { width: 24px; height: 24px; }
.status .petdb-icon { width: 19px; height: 19px; margin-right: 6px; }

/* Admin: állatikonok és a hozzájuk tartozó elnevezések. */
.animal-icon-editor { margin-bottom: 30px; scroll-margin-top: 24px; }
.animal-icon-editor-heading, .animal-icon-card-heading { display: flex; align-items: center; gap: 20px; min-width: 0; }
.animal-icon-editor-heading { margin-bottom: 22px; }
.animal-icon-editor-heading h2, .animal-icon-card-heading h3 { margin: 0 0 8px; overflow-wrap: anywhere; }
.animal-icon-editor-heading p { margin: 0; color: var(--muted); }
.animal-icon-preview { display: grid; place-items: center; flex-shrink: 0; width: 96px; height: 96px; border-radius: 24px; background: #eaf2e8; }
.animal-icon-preview img { display: block; width: 72px; height: 72px; object-fit: contain; }
.animal-icon-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.animal-icon-form > div { min-width: 0; }
.animal-icon-form input, .animal-icon-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.animal-icon-form label { display: block; margin-bottom: 8px; }
.animal-icon-form input + label { margin-top: 20px; }
.animal-icon-form input[type="file"] { padding: 12px; background: #faf7f1; }
.animal-icon-form input[type="file"]::file-selector-button { margin: 0 12px 6px 0; padding: 10px 14px; border: 1px solid #b9d1c1; border-radius: 10px; background: #e5f0e8; color: #304c40; font: inherit; cursor: pointer; }
.animal-icon-help { margin: 9px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.animal-icon-form-actions { grid-column: 1 / -1; }
.animal-icon-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.animal-icon-search label { flex: 1 1 260px; margin: 0; }
.animal-icon-search input { margin-bottom: 0; }
.animal-icon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.animal-icon-card { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.animal-icon-card-heading { gap: 14px; }
.animal-icon-card-heading h3 { font-size: 20px; margin: 0; }
.animal-icon-card .animal-icon-preview { width: 80px; height: 80px; border-radius: 20px; }
.animal-icon-card .animal-icon-preview img { width: 60px; height: 60px; }
.animal-icon-caption { margin: 18px 0 10px; color: var(--muted); font-size: 15px; }
.animal-icon-aliases { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; flex: 1; margin: 0 0 20px; padding: 0; list-style: none; }
.animal-icon-aliases li { max-width: 100%; padding: 6px 11px; border-radius: 11px; background: #f3efe7; color: var(--text); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.animal-icon-card > .button { align-self: flex-start; }
@media (max-width: 1000px) { .animal-icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .animal-icon-form, .animal-icon-grid { grid-template-columns: minmax(0, 1fr); }
  .animal-icon-editor-heading { align-items: flex-start; gap: 14px; }
  .animal-icon-editor-heading .animal-icon-preview { width: 68px; height: 68px; border-radius: 18px; }
  .animal-icon-editor-heading .animal-icon-preview img { width: 52px; height: 52px; }
  .animal-icon-search > button { flex: 1; }
}

/* A görgetősáv megjelenése és a menüpontok állapota nem mozdítja el a fejlécet. */
html { overflow-y: scroll; }
@supports (scrollbar-gutter: stable) { html { overflow-y: auto; scrollbar-gutter: stable; } }
.topbar-inner { display: grid; grid-template-columns: 174px minmax(0, 1fr) auto; gap: 16px; min-height: 76px; padding: 0; }
.topbar .brand { min-width: 0; }
.topbar .petdb-logo { width: 174px; height: 65px; object-fit: contain; }
.topbar .desktop-nav { min-width: 0; margin: 0; justify-content: center; flex-wrap: nowrap; gap: 3px; }
.topbar .desktop-nav a { flex-shrink: 0; padding: 9px 10px; white-space: nowrap; }
.topbar .top-actions { margin: 0; justify-self: end; flex-shrink: 0; }
.topbar .account-entry { width: 46px; height: 46px; }
.topbar .header-logout { white-space: nowrap; }
@media (min-width: 760px) and (max-width: 1190px) {
  .topbar-inner { grid-template-columns: 174px minmax(0, 1fr); gap: 4px 16px; padding: 6px 0 10px; }
  .topbar .desktop-nav { grid-column: 1 / -1; grid-row: 2; min-height: 42px; }
  .topbar .desktop-nav a { padding: 9px 10px; font-size: 15px; }
  .topbar .top-actions { grid-column: 2; grid-row: 1; }
}
@media (max-width: 759px) {
  .topbar-inner { grid-template-columns: 130px minmax(0, 1fr); min-height: 72px; gap: 10px; }
  .topbar .petdb-logo { width: 130px; height: 49px; }
}

/* Pasztell emlékeztető naptár. */
.calendar-layout { gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
.calendar-card, .calendar-form-card { border-radius: 24px; border-color: #e2e6db; background: var(--surface); padding: 24px; }
.calendar-card { display: flex; flex-direction: column; min-width: 0; background: linear-gradient(155deg, #f1f6ec 0%, #fffdf9 45%); }
.calendar-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 17px; font-weight: 750; }
.calendar-heading-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; color: #527660; background: #e0ecdc; }
.calendar-today-link { margin-left: auto; padding: 8px 16px; border: 1px solid #d7e1cf; border-radius: 12px; background: #fffdf9; color: #527660; font-size: 15px; }
.calendar-today-link:hover { background: #e5efdf; }
.calendar-navigation { gap: 10px; margin-bottom: 20px; }
.calendar-navigation h2 { font-size: 24px; text-align: center; }
.calendar-navigation a { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #e0e5d8; border-radius: 14px; background: #f5f7ef; color: #527660; }
.calendar-navigation a:hover { background: #e4eedb; }
.calendar-weekdays { gap: 7px; margin-bottom: 8px; }
.calendar-weekdays span { padding: 5px 0; color: #73816c; font-size: 14px; }
.calendar-weekdays .is-weekend { color: #a27c64; }
.calendar-month-grid { flex: 1; gap: 7px; grid-auto-rows: minmax(90px, 1fr); }
.calendar-day { min-width: 0; min-height: 90px; padding: 7px; border: 1px solid #e7e9df; border-radius: 14px; background: #fffefb; }
.calendar-day.is-weekend, .calendar-day.is-holiday { background: #faf3eb; }
.calendar-day:hover, .calendar-day:focus-visible { background: #edf3e6; border-color: #b7cdaa; }
.calendar-day.is-empty { background: transparent; }
.calendar-day.has-event { border-color: #d0dfc4; }
.calendar-day.is-selected { border-color: #a2bb93; box-shadow: inset 0 0 0 1px #a2bb93; }
.calendar-day-number { width: 30px; height: 30px; font-size: 16px; }
.calendar-day.is-today .calendar-day-number { background: #dae8ce; color: #405d38; }
.calendar-event-dot { width: auto; height: auto; margin: 5px 0 0; padding: 4px 6px; border-radius: 7px; color: #52634a; background: #e4eddc; font-size: 11px; line-height: 1.35; }
.calendar-event-dot.type-grooming { background: #f5ddd9; color: #855e58; }
.calendar-event-dot.type-vet { background: #e6dff3; color: #706187; }
.calendar-event-dot.type-appointment { background: #dfeaf4; color: #566e83; }
.calendar-more { font-size: 12px; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e3e8db; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.calendar-legend i { width: 10px; height: 10px; flex-shrink: 0; border-radius: 4px; background: #c8dab8; }
.calendar-legend .type-grooming i { background: #e7bcb3; }
.calendar-legend .type-vet i { background: #c5b5dd; }
.calendar-legend .type-appointment i { background: #afc9df; }
.calendar-form-card { background: linear-gradient(160deg, #fff6ed, #fffdf9 40%); }
.calendar-form-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.calendar-form-heading .calendar-heading-icon { background: #f5e4d4; color: #9a7350; }
.calendar-form-heading h2 { margin: 0 0 4px; font-size: 23px; }
.calendar-form-heading p { margin: 0; font-size: 15px; }
.calendar-form-card form { gap: 16px; }
.calendar-form-card input:not([type="hidden"]), .calendar-form-card textarea { border-radius: 14px; background: #fffefb; }
.calendar-form-card button[type="submit"] { border-radius: 14px; }
.calendar-form-row { grid-template-columns: minmax(0, 1fr); }
.calendar-event-list { gap: 16px; }
.calendar-list-event { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; padding: 20px; border-radius: 20px; border-color: #e0e6d8; border-left: 5px solid #bad0a5; background: #f7faf2; }
.calendar-list-event.type-grooming { background: #fdf2ef; border-color: #efdbd5; border-left-color: #e1b4a9; }
.calendar-list-event.type-vet { background: #f5f1fa; border-color: #e4dced; border-left-color: #c5b5dd; }
.calendar-list-event.type-appointment { background: #f0f6fb; border-color: #dce7f0; border-left-color: #afc9df; }
.calendar-list-date { width: 68px; height: 76px; border-radius: 18px; background: rgba(255, 253, 249, .9); gap: 7px; }
.calendar-list-date strong { font-size: 27px; }
.calendar-list-date span { font-size: 12px; }
.calendar-list-copy { min-width: 0; overflow-wrap: anywhere; }
.calendar-list-copy .event-kind { color: var(--muted); font-size: 14px; }
.calendar-list-copy h3 { margin: 5px 0 10px; font-size: 21px; }
.calendar-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.calendar-pet-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border-radius: 12px; background: var(--pet-color, #eaf2e8); color: var(--text); font-size: 15px; font-weight: 700; }
.calendar-pet-chip .petdb-animal-icon, .calendar-pet-chip .petdb-icon { width: 26px; height: 26px; }
.calendar-event-time { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.calendar-event-time .petdb-icon { width: 20px; height: 20px; }
.calendar-list-copy .calendar-event-notes { margin-top: 10px; font-size: 15px; }
@media (max-width: 900px) {
  .calendar-layout { grid-template-columns: minmax(0, 1fr); }
  .calendar-form-card { grid-row: auto; }
  .calendar-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .calendar-card, .calendar-form-card { padding: 18px 14px; border-radius: 20px; }
  .calendar-navigation h2 { font-size: 21px; }
  .calendar-weekdays, .calendar-month-grid { gap: 4px; }
  .calendar-weekdays span { font-size: 12px; }
  .calendar-month-grid { grid-auto-rows: minmax(64px, 1fr); }
  .calendar-day { min-height: 64px; padding: 4px 2px; border-radius: 10px; }
  .calendar-day-number { width: 26px; height: 26px; margin: 0 auto; font-size: 15px; }
  .calendar-event-dot { display: inline-block; width: 7px; height: 7px; margin: 5px 1px 0; padding: 0; color: transparent; border-radius: 50%; }
  .calendar-day { text-align: center; }
  .calendar-legend { gap: 10px 14px; }
  .calendar-legend span { font-size: 12px; }
  .calendar-form-row { grid-template-columns: minmax(0, 1fr); }
  .calendar-list-event { grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px; }
  .calendar-list-date { width: 54px; height: 65px; border-radius: 14px; }
  .calendar-list-date span { font-size: 11px; }
  .calendar-list-copy h3 { font-size: 19px; }
  .calendar-list-event form { grid-column: 1 / -1; }
}

/* A főoldali naptár a nagy naptár pasztell színeit és lekerekítéseit használja. */
.dashboard-panel.reminders-panel { padding: 20px; border-color: #e2e6db; border-radius: 24px; background: linear-gradient(155deg, #f1f6ec 0%, #fffdf9 55%); }
.reminders-panel .panel-heading { margin-bottom: 20px; }
.reminders-panel .panel-symbol { width: 40px; height: 40px; border-radius: 14px; background: #e0ecdc; color: #527660; }
.reminders-panel .dashboard-reminder-layout { gap: 16px; }
.reminders-panel .dashboard-reminder-block { padding-left: 16px; border-color: #e3e8db; }
.reminders-panel .mini-calendar-title { margin: 0 0 14px; font-size: 17px; }
.reminders-panel .mini-calendar-weekdays { margin-bottom: 8px; }
.reminders-panel .mini-calendar-weekdays span { color: #73816c; font-size: 11px; }
.reminders-panel .mini-calendar-weekdays .is-weekend { color: #a27c64; }
.reminders-panel .mini-calendar-day { height: 38px; border: 1px solid #e7e9df; border-radius: 10px; background: #fffefb; color: var(--text); font-size: 14px; }
.reminders-panel .mini-calendar-day.is-weekend, .reminders-panel .mini-calendar-day.is-holiday { background: #faf3eb; }
.reminders-panel .mini-calendar-day.is-empty { border-color: transparent; background: transparent; }
.reminders-panel .mini-calendar-day.has-event { border-color: #c3d5b4; background: #edf3e6; font-weight: 800; }
.reminders-panel .mini-calendar-day.is-today { border-color: #bbd0aa; background: #dae8ce; color: #405d38; font-weight: 850; }
.reminders-panel .mini-calendar-day:hover, .reminders-panel .mini-calendar-day:focus-visible { border-color: #a2bb93; background: #e4eedb; }
.reminders-panel .mini-calendar-day i { top: -4px; right: -3px; width: 15px; height: 15px; border: 1px solid #fffdf9; background: #bfd4af; color: #405d38; font-size: 9px; }
.reminders-panel .dashboard-reminder-block h3 { margin-bottom: 12px; font-size: 17px; }
.reminders-panel .dashboard-reminder-list { gap: 10px; }
.reminders-panel .dashboard-reminder-item { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 10px 8px; border: 1px solid #e0e6d8; border-left: 4px solid #bad0a5; border-radius: 14px; background: #f7faf2; }
.reminders-panel .dashboard-reminder-item.type-grooming { border-color: #efdbd5; border-left-color: #e1b4a9; background: #fdf2ef; }
.reminders-panel .dashboard-reminder-item.type-vet { border-color: #e4dced; border-left-color: #c5b5dd; background: #f5f1fa; }
.reminders-panel .dashboard-reminder-item.type-appointment { border-color: #dce7f0; border-left-color: #afc9df; background: #f0f6fb; }
.reminders-panel .dashboard-reminder-item:hover, .reminders-panel .dashboard-reminder-item:focus-visible { border-color: #b7cdaa; box-shadow: var(--shadow-sm); }
.reminders-panel .dashboard-reminder-date { min-height: 46px; padding: 7px 3px; border-radius: 11px; background: rgba(255, 253, 249, .9); }
.reminders-panel .dashboard-reminder-date strong { font-size: 20px; }
.reminders-panel .dashboard-reminder-date small { font-size: 10px; }
.reminders-panel .dashboard-reminder-copy strong, .reminders-panel .dashboard-reminder-copy small { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.reminders-panel .dashboard-reminder-copy strong { font-size: 14px; line-height: 1.35; }
.reminders-panel .dashboard-reminder-copy small { margin-top: 5px; font-size: 12px; line-height: 1.4; }
.reminders-panel .reminder-empty { min-height: 150px; padding: 16px; border: 1px dashed #d3dfc8; border-radius: 16px; background: #f7faf2; font-size: 15px; }
.reminders-panel .mini-calendar-add { justify-content: center; width: 100%; min-height: 44px; margin-top: 20px; padding: 10px; border: 1px solid #d7e1cf; border-radius: 14px; background: #edf3e6; color: #527660; font-size: 14px; }
.reminders-panel .mini-calendar-add:hover { background: #e4eedb; border-color: #b7cdaa; }
@media (max-width: 900px) {
  .reminders-panel .dashboard-reminder-layout { grid-template-columns: minmax(0, 1fr); }
  .reminders-panel .dashboard-reminder-block { padding: 16px 0 0; border-top: 1px solid #e3e8db; border-left: 0; }
}
@media (max-width: 759px) {
  .dashboard-panel.reminders-panel { padding: 18px; border-radius: 20px; }
  .reminders-panel .dashboard-reminder-block { padding: 16px 0 0; border-top-color: #e3e8db; border-left: 0; }
  .reminders-panel .mini-calendar-day { height: 42px; font-size: 15px; }
  .reminders-panel .mini-calendar-weekdays span { font-size: 12px; }
  .reminders-panel .reminder-empty { min-height: 90px; }
}

/* Egymás mellett a kisállatok tartalma adja a kártyák magasságát,
   így a naptár nem hoz létre üres sávot a kisállatok alatt. */
@media (min-width: 760px) {
  .dashboard-reference-grid:has(.dashboard-pet-grid) .reminders-panel {
    contain: size;
    display: flex;
    flex-direction: column;
    padding: 17px;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .reminders-panel .panel-heading {
    flex: 0 0 auto;
    margin-bottom: 13px;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .dashboard-reminder-layout {
    flex: 1 1 0;
    min-height: 0;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 14px;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .dashboard-calendar-block,
  .dashboard-reference-grid:has(.dashboard-pet-grid) .dashboard-reminder-block {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .dashboard-reminder-block {
    padding: 0 0 0 14px;
    border-top: 0;
    border-left: 1px solid #e3e8db;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .mini-calendar-title {
    flex: 0 0 auto;
    margin-bottom: 8px;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .mini-calendar-weekdays {
    flex: 0 0 auto;
    margin-bottom: 6px;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .mini-calendar-grid {
    flex: 1 1 0;
    min-height: 0;
    grid-auto-rows: minmax(0, 1fr);
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .mini-calendar-day {
    height: auto;
    min-height: 0;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .dashboard-reminder-block h3 {
    flex: 0 0 auto;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .dashboard-reminder-list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    align-content: start;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: #c4d5b8 transparent;
  }
  .dashboard-reference-grid:has(.dashboard-pet-grid) .mini-calendar-add {
    flex: 0 0 auto;
    min-height: 40px;
    margin-top: 12px;
    padding: 8px 10px;
  }
}
@media (min-width: 760px) and (max-width: 1000px) {
  .dashboard-reference-grid:has(.dashboard-pet-grid) .mini-calendar-title,
  .dashboard-reference-grid:has(.dashboard-pet-grid) .dashboard-reminder-block h3 {
    font-size: 15px;
  }
}

/* Regisztráció és meghívók az admin felületen. */
.registration-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; }
.registration-admin-grid > .card { min-width: 0; display: flex; flex-direction: column; }
.registration-admin-grid h2 { margin-top: 0; }
.registration-admin-grid form { margin-top: auto; }
.registration-admin-grid input, .registration-admin-grid select { max-width: 100%; box-sizing: border-box; }
.invitation-card h2 { overflow-wrap: anywhere; font-size: 20px; }
.invitation-card .actions { flex-wrap: wrap; }
.invitation-card .actions form { flex: 1 1 auto; }
.invitation-card .actions button { width: 100%; }
@media (max-width: 900px) { .registration-admin-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* A Safari dátummezőinek belső szélessége ne feszítse szét az űrlaprácsot. */
.form-card, .calendar-form-card form { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.form-card label, .calendar-form-card label { min-width: 0; grid-template-columns: minmax(0, 1fr); }
input[type="date"], input[type="time"], input[type="datetime-local"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit { min-width: 0; padding: 0; }

/* Kisállat profilkártya és belépés nélkül megnyitható megosztás. */
.pet-record, .pet-share-panel { max-width: 900px; margin: 24px auto; }
.pet-record { padding: clamp(20px, 4vw, 40px); overflow: hidden; }
.pet-record-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.pet-record-head > div { flex: 1; min-width: 150px; }
.pet-record-head h1 { margin: 4px 0; overflow-wrap: anywhere; font-size: clamp(26px, 5vw, 38px); }
.pet-record-head p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.pet-record-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.pet-record-facts dt { color: var(--muted); font-size: 13px; }
.pet-record-facts dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.pet-record-section { margin-top: 32px; }
.pet-record-section h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.pet-record-notes, .pet-record-footnote { overflow-wrap: anywhere; }
.pet-record-notes h2 { font-size: 18px; }
.pet-record-timeline { list-style: none; margin: 20px 0 0 8px; padding: 0 0 0 24px; border-left: 2px solid var(--line); }
.pet-record-timeline li { position: relative; display: flex; align-items: center; gap: 16px; padding: 0 0 24px; }
.pet-record-timeline li::before { content: ''; position: absolute; left: -31px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); box-sizing: content-box; }
.pet-record-treatment { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.pet-record-treatment time { color: var(--primary); font-size: 13px; font-weight: 750; }
.pet-record-treatment h3 { margin: 4px 0; font-size: 17px; }
.pet-record-treatment p { margin: 4px 0; color: var(--muted); font-size: 14px; }
.pet-record-empty { color: var(--muted); padding: 16px; background: var(--surface-muted); border-radius: 12px; }
.pet-record-footnote { border-top: 1px solid var(--line); padding-top: 20px; margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.pet-share-panel { padding: 24px; scroll-margin-top: 100px; }
.pet-share-panel input { width: 100%; }
.pet-shared-container { max-width: 940px; margin: 0 auto; padding: 24px 16px 48px; }
.pet-shared-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.pet-shared-brand img { width: 156px; height: auto; }
.pet-shared-page { padding-bottom: 0; }
.pet-print-actions { justify-content: center; }
@media (max-width: 560px) {
  .pet-record-head { gap: 12px; }
  .pet-record-head > .button { width: 100%; }
  .pet-record-facts { gap: 18px 12px; }
  .pet-record-timeline li { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pet-shared-brand { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media print {
  .pet-shared-page { background: white; color: black; }
  .pet-shared-container { max-width: none; padding: 0; }
  .pet-print-actions { display: none !important; }
  .pet-record { box-shadow: none; border: 1px solid #ddd; margin: 12px 0; overflow: visible; }
  .pet-record-timeline li, .pet-record-facts { break-inside: avoid; }
}
