/* Bankhar — warm, approachable care. Shared by public pages and both workspaces. */
:root { --shadow: 0 2px 3px rgb(71 40 24 / .025), 0 12px 32px rgb(71 40 24 / .045); }
:root[data-theme="dark"] { --shadow: 0 8px 28px rgb(0 0 0 / .18); }
body { letter-spacing: -.012em; }
::selection { background: var(--primary-soft); color: var(--text); }
button, input, select, textarea { accent-color: var(--primary); }
.btn { min-height: 44px; border-radius: 999px; padding: .7em 1.25em; }
.btn.sm { min-height: 36px; }
.btn:where(:not(.ghost, .danger)), .nav .btn:where(:not(.ghost, .danger)) { color: var(--on-primary); }
.card { box-shadow: var(--shadow); }
input, select, textarea { transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--primary-soft); }
.brand { letter-spacing: -.04em; }
img.brand-logo { width: 36px; height: 36px; border-radius: 11px; }
.site-header { backdrop-filter: blur(18px); }
.site-header .container { min-height: 80px; height: auto; padding-top: 12px; padding-bottom: 12px; }
.container { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
.theme-control { display: inline-flex; align-items: center; gap: 8px; margin: 0; flex-shrink: 0; }
.theme-control > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.theme-control select { width: auto; min-height: 36px; padding: 7px 10px; border-radius: 999px; font-size: .78rem; background: var(--surface); cursor: pointer; }
.theme-control-floating { position: fixed; right: 16px; bottom: 16px; z-index: 35; box-shadow: var(--shadow); border-radius: 999px; }
.landing-hero { padding: 80px 0 88px; overflow: hidden; }
.landing-hero .container { gap: 64px; grid-template-columns: 1.1fr 1fr; }
.landing-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); line-height: 1.12; letter-spacing: -.045em; max-width: 12em; }
.landing-hero h1 span { display: block; }
.eyebrow { font-size: .75rem; letter-spacing: .1em; margin-bottom: 20px; }
.landing-hero .lead { font-size: 1.05rem; line-height: 1.8; max-width: 33em; margin-top: 24px; }
.hero-actions { margin-top: 30px; }
.landing-hero .pet-portrait { position: relative; border: 0; border-radius: 48% 48% 32px 32px; background: var(--surface-2); isolation: isolate; margin: 12px 0 24px; }
.hero-pets { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pet-note { position: absolute; bottom: -20px; left: -24px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 18px; padding: 16px 22px; font-size: .85rem; }
.pet-note b, .pet-note span:not(.pet-note-icon) { display: block; }
.pet-note span:not(.pet-note-icon) { color: var(--muted); font-size: .75rem; margin-top: 3px; }
.pet-note-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--primary-soft); color: var(--primary); border-radius: 50%; font-size: 1.7rem; }
section.block { padding: 72px 0; }
section.block.alt { background: var(--surface-2); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.dir-search { max-width: 640px; gap: 8px; }
.dir-search input { border-radius: 999px; min-height: 50px; padding-left: 22px; }
.dir-grid, .feature-grid { gap: 22px; }
.dir-card, .feature { padding: 28px; }
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .f-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); }
.feature h3 { margin: 18px 0 10px; }
.feature p { line-height: 1.75; }
.steps li { border-style: solid; background: var(--surface); padding-top: 24px; padding-bottom: 24px; }
.cta-band { padding: 32px; background: var(--primary-soft); }
.site-footer { padding-top: 40px; padding-bottom: 40px; }
.login-wrap { background: radial-gradient(ellipse at 15% 15%, var(--primary-soft), transparent 55%), var(--bg); padding-top: 64px; padding-bottom: 72px; }
.login-card { padding: 32px; border-radius: 26px; }
.adm-login-title, .pf-login-title { font-size: 1.6rem; letter-spacing: -.035em; margin-bottom: 22px; }
.adm-header, .pf-header { backdrop-filter: blur(18px); }
.adm-tabs, .pf-tabs { gap: 6px; }
.adm-tab, .pf-tab { border-radius: 12px 12px 0 0; }
.adm-table th, .pf-table th { font-size: .76rem; letter-spacing: .035em; }
.adm-table td, .pf-table td { padding-top: 14px; padding-bottom: 14px; }
@media (max-width: 1000px) { .nav { gap: 10px; } .landing-hero .container { gap: 32px; } }
@media (max-width: 760px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .site-header .container { min-height: 68px; flex-wrap: wrap; }
  .site-header .brand { font-size: 1.1rem; }
  .nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .nav .btn.sm { font-size: .75rem; padding: .4em .7em; }
  .theme-control select { font-size: .72rem; padding: 5px 6px; }
  .landing-hero { padding: 40px 0 54px; }
  .landing-hero .container { grid-template-columns: 1fr; gap: 28px; }
  .landing-hero h1 { font-size: clamp(2.3rem, 8vw, 3.2rem); max-width: 15em; }
  .landing-hero .pet-portrait { width: min(100%, 400px); justify-self: center; }
  .pet-note { left: 8px; padding: 12px 16px; }
  section.block { padding: 48px 0; }
  .login-card { padding: 24px; }
}
@media print { .theme-control { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 24px 16px; }
.adm-nav a { border-radius: 12px; padding: 12px 14px; }
.adm-nav a.active { background: var(--primary-soft); color: var(--primary); }
.main { background: var(--bg); }
.adm-top { padding-bottom: 20px; margin-bottom: 24px; }
@media (max-width: 860px) { .sidebar { padding: 12px; } .adm-nav a { padding: 10px 12px; } }
.slot.selected, .slot[aria-pressed="true"], .dl-tag { color: var(--on-primary); }
/* One consistent, theme-aware icon family for the clinic workspace. */
.ui-icon { display: inline-block; width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -.22em; color: inherit; }
.sidebar .nav-item .ui-icon { width: 21px; height: 21px; opacity: .8; }
.sidebar .nav-item.active .ui-icon, .sidebar .nav-item:hover .ui-icon { opacity: 1; }
.btn .ui-icon { width: 1.15em; height: 1.15em; }
/* Theme control inside /admin and /platform (data-theme-slot, theme.js): in the flow, never over the content. */
.theme-slot { display: flex; justify-content: center; }
.login-card > .theme-slot, .adm-picker > .theme-slot { margin-top: 18px; }
.adm-top-actions .theme-slot, .pf-user .theme-slot { display: contents; }
