:root{--blue:#2855c7;--blue-hover:#2249ad;--blue-dark:#1d347f;--blue-darker:#172961;--blue-soft:#e9efff;--blue-soft-2:#f4f7ff;--bg:#f5f7fb;--panel:#ffffff;--panel-muted:#fafbff;--text:#14203a;--text-soft:#3f4c68;--muted:#6d7690;--border:#e3e7f0;--border-strong:#cad5f5;--success:#26845c;--success-soft:#edf8f3;--warning:#b7772b;--warning-soft:#fff7e8;--danger:#c9364e;--danger-dark:#a9293e;--danger-soft:#fff1f3;--shadow-sm:0 4px 14px rgba(31,52,122,0.05);--shadow:0 10px 30px rgba(31,52,122,0.07);--shadow-lg:0 18px 45px rgba(31,52,122,0.11);--radius-sm:9px;--radius-md:12px;--radius-lg:18px;--radius-xl:22px;--sidebar-width:244px;--mobile-nav-height:64px;--mobile-nav-space:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px))}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{color:inherit}img{display:block;max-width:100%}::selection{background:var(--blue-soft);color:var(--blue-dark)}h1,h2,h3,h4,p{margin-top:0}.shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:100vh}.sidebar{position:-webkit-sticky;position:sticky;top:0;height:100vh;padding:24px 16px;display:flex;flex-direction:column;color:white;background:radial-gradient(circle at 20% 0,rgba(255,255,255,.08),transparent 32%),linear-gradient(180deg,#213b8d,#1b3072)}.brand{padding:4px 10px 25px;display:flex;gap:10px;align-items:center;font-size:22px;font-weight:850;letter-spacing:-.03em}.brandMark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:white;color:var(--blue);box-shadow:0 8px 18px rgba(4,16,56,.18)}.navGroup{display:flex;flex-direction:column;gap:4px}.nav{display:flex;gap:11px;align-items:center;min-height:42px;padding:11px 12px;border-radius:11px;color:#edf2ff;font-size:14px;transition:background-color .15s ease,color .15s ease,transform .15s ease}.nav:hover{background:rgba(255,255,255,.09);transform:translateX(1px)}.navActive{background:white;color:var(--blue-dark);font-weight:750;box-shadow:0 8px 20px rgba(8,23,67,.16)}.navIcon{width:20px;text-align:center}.sidebarFooter{margin-top:auto;padding:14px 10px 4px;display:flex;flex-direction:column;gap:10px;align-items:stretch;border-top:1px solid rgba(255,255,255,.14)}.sidebarAccount{display:flex;gap:10px;align-items:center;min-width:0}.sidebarAccount>div:last-child{display:flex;flex-direction:column;min-width:0}.sidebarFooter span{color:#c8d3fa;font-size:11px}.sidebarAccount span,.sidebarAccount strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebarLogout{min-height:44px;padding:0 14px;border:0;border-radius:11px;background:rgba(255,255,255,.12);color:white;font-weight:700;cursor:pointer}.sidebarLogout:hover{background:rgba(255,255,255,.2)}.userAvatar{width:36px;height:36px;flex:0 0 36px;border-radius:50%;display:grid;place-items:center;background:white;color:var(--blue);font-weight:800}.main{width:100%;max-width:1660px;margin:0 auto;padding:34px}.topbar{margin-bottom:25px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.title h1{margin:0 0 7px;font-size:32px;line-height:1.1;letter-spacing:-.7px}.title p{margin:0;color:var(--muted)}.supportModeBanner{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#8a1f1f;color:white;font-weight:800;letter-spacing:.02em;z-index:40}.supportModeBannerActions{display:flex;flex-wrap:wrap;gap:8px}.supportModeBannerActions button{min-height:40px;padding:0 12px;border:1px solid rgba(255,255,255,.4);border-radius:10px;background:rgba(255,255,255,.12);color:white;font-weight:700;cursor:pointer}.lang,.secondaryButton{min-height:42px;padding:10px 13px;border:1px solid var(--border);border-radius:11px;background:white;color:var(--text)}.button,.uiButton{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:12px;font-weight:750;line-height:1;text-decoration:none;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}.button{min-height:42px;padding:11px 15px;background:var(--blue);color:white;box-shadow:0 6px 15px rgba(40,85,199,.18)}.button:hover,.uiButton:hover:not(:disabled){transform:translateY(-1px)}.uiButton:active:not(:disabled){transform:translateY(0)}.uiButton:focus-visible{outline:3px solid var(--blue-soft);outline-offset:2px}.uiButton:disabled{cursor:not-allowed;opacity:.55}.uiButton--small{min-height:34px;padding:8px 11px;font-size:12px}.uiButton--medium{min-height:42px;padding:11px 16px;font-size:14px}.uiButton--large{min-height:48px;padding:13px 19px;font-size:15px}.uiButton--primary{background:var(--blue);color:white;box-shadow:0 7px 18px rgba(40,85,199,.22)}.uiButton--primary:hover:not(:disabled){background:var(--blue-dark);box-shadow:0 10px 24px rgba(40,85,199,.28)}.uiButton--secondary{background:white;color:var(--text);border-color:var(--border)}.uiButton--secondary:hover:not(:disabled){border-color:var(--border-strong);color:var(--blue)}.uiButton--ghost{background:transparent;color:var(--blue)}.uiButton--ghost:hover:not(:disabled){background:var(--blue-soft)}.uiButton--danger{background:var(--danger);color:white}.uiButton--danger:hover:not(:disabled){background:var(--danger-dark)}.uiButton--fullWidth{width:100%}.card,.metricCard,.moduleCard,.uiCard{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.card{padding:20px}.uiCard{overflow:hidden}.uiCard--none{padding:0}.uiCard--small{padding:14px}.uiCard--medium{padding:20px}.uiCard--large{padding:28px}.uiCardHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px}.uiCardHeader h2{margin:0 0 4px;font-size:19px;letter-spacing:-.02em}.uiCardHeader p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.uiCardAction{flex:0 0 auto}.uiCardContent{min-width:0}.sectionHead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:10px}.card h2,.sectionHead h2{margin:0 0 4px;font-size:19px;letter-spacing:-.02em}.sectionHead p{margin:0;color:var(--muted);font-size:13px}.textLink{color:var(--blue);font-size:13px;font-weight:750}.textLink:hover{color:var(--blue-dark)}.statusDot{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:700}.statusDot:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--success)}.search{width:100%;min-height:44px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);outline:none}.search:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}.tag{padding:8px 10px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:12px;font-weight:750}.emptyState{margin-top:18px;padding:55px 20px;text-align:center}.emptyIcon{color:var(--blue);font-size:30px}.emptyState p{max-width:560px;margin:8px auto 0;color:var(--muted)}.barnDash{display:flex;flex-direction:column;gap:18px;min-width:0;overflow-x:hidden}.barnSummary{display:flex;flex-wrap:wrap;gap:8px}.barnSummaryChip{min-height:44px;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:8px 14px;border:1px solid var(--border);border-radius:14px;background:white;text-align:left;cursor:pointer}.barnSummaryChip strong{font-size:18px;letter-spacing:-.03em}.barnSummaryChip span{color:var(--muted);font-size:12px}.barnSummaryChip--health,.barnSummaryChip--overdue{border-color:#f0d3d3}.barnQuickActions{display:flex;flex-wrap:wrap;gap:8px}.barnQuickAction{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:#f7f8fb;color:var(--text);font-size:13px;font-weight:650;text-decoration:none}.barnSection{min-width:0}.barnQuiet{margin:0;color:var(--muted);font-size:14px}.barnMoreHint,.barnReadOnlyHint{margin:12px 0 0;color:var(--muted);font-size:12px}.barnActivityList,.barnAttentionList,.barnCareList,.barnEventList{list-style:none;margin:0;padding:0}.barnActivityItem,.barnAttentionItem,.barnEventItem,.barnHorseCard{display:grid;grid-gap:4px;gap:4px;width:100%;min-width:0;padding:12px 0;border-bottom:1px solid #edf0f6;color:inherit;text-align:left;text-decoration:none;background:transparent}.barnActivityItem:last-child,.barnAttentionItem:last-child,.barnCareRow:last-child,.barnEventItem:last-child,.barnHorseCard:last-child{border-bottom:0}.barnActivityType,.barnAttentionHorse{color:var(--muted);font-size:12px}.barnActivityItem strong,.barnAttentionItem strong,.barnCareRow strong,.barnEventItem strong,.barnHorseCard strong{display:block;overflow-wrap:anywhere}.barnActivityItem small,.barnAttentionItem small,.barnCareRow small,.barnEventItem small,.barnHorseCard small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.barnAttentionItem--urgent .barnAttentionHorse{color:#b42318}.barnCareGroup h3{margin:16px 0 8px;font-size:13px;color:var(--muted)}.barnCareRow{display:grid;grid-template-columns:44px minmax(0,1fr);grid-gap:10px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f6}.barnCareHorse{display:inline-block;min-height:44px;padding:10px 0 2px;color:var(--blue);font-weight:700;text-decoration:none}.barnEventList li{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:8px;gap:8px;align-items:center;border-bottom:1px solid #edf0f6}.barnEventItem{border-bottom:0;cursor:pointer}.barnEventTime{display:block;color:var(--muted);font-size:12px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.barnEventHorse{min-height:44px;display:inline-flex;align-items:center;padding:0 6px;color:var(--blue);font-weight:650;text-decoration:none}.barnHorseSearch{width:100%;min-height:44px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;font-size:16px}.barnHorseGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));grid-gap:8px;gap:8px}.barnHorseCard{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 4px}.barnHorseCard span{display:block;color:var(--muted);font-size:12px}.barnHorseAttention{justify-self:end;padding:6px 8px;border-radius:999px;background:#fff1f0;color:#b42318;font-size:11px;font-weight:700}.barnActivityItem p{margin:0;color:var(--muted);font-size:13px}.barnMoreLink{display:inline-flex;min-height:44px;align-items:center;margin-top:8px}.horseRow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-gap:13px;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0f6}.horseCardImage,.horsePhoto,.ownerHorsePhoto,.profileImage{display:grid;place-items:center;flex:0 0 auto;overflow:hidden;aspect-ratio:1/1;border-radius:50%;background:linear-gradient(145deg,#dfe8ff,#f3f6ff)}.horsePhoto{width:52px;height:52px;min-width:52px;min-height:52px;font-size:22px;line-height:1}.horseCardImage img,.horsePhoto img,.ownerHorsePhoto img,.profileImage img,img.horseCardImage,img.horseCardPhoto,img.horsePhoto,img.ownerHorsePhoto,img.profileImage{max-width:none;aspect-ratio:1/1;object-fit:cover;object-position:center;border-radius:50%}.horseCardImage img,.horsePhoto img,.ownerHorsePhoto img,.profileImage img{width:100%;height:100%}@media (max-width:820px){.barnDash{gap:14px}.barnQuickAction,.barnSummaryChip{flex-grow:1;flex-shrink:1;flex-basis:calc(50% - 8px)}.barnSection--attention{order:1}.barnSection--care{order:2}.barnSection--schedule{order:3}.barnSection--horses{order:4}.barnSection--activity{order:5}.barnSection--billing{order:6}.barnHorseGrid{grid-template-columns:1fr}.barnEventList li{grid-template-columns:minmax(0,1fr)}.horsePhoto{width:46px;height:46px;min-width:46px;min-height:46px;font-size:20px}}.horseCards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));grid-gap:16px;gap:16px}.horseCard{display:flex;align-items:flex-start;gap:14px;min-width:0;padding:16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--panel);box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.horseCard:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#cad5f5}.horseCardImage{width:52px;height:52px;min-width:52px;min-height:52px;font-size:22px;line-height:1}.horseCardBody{min-width:0;flex:1 1}.horseCard p{margin:6px 0 0;color:var(--muted);font-size:13px}.horseCard dl{margin:14px 0;display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.horseCard dl div{display:flex;flex-direction:column;min-width:0}.horseCard dt{font-size:11px;color:var(--muted)}.horseCard dd{margin:3px 0 0;overflow-wrap:anywhere;font-size:13px;font-weight:700}.healthStrip{border-top:1px solid #edf0f6;padding-top:12px;display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px}.horseCardTitle{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.horseCardTitle h3{margin:0;min-width:0;overflow-wrap:anywhere;font-size:18px;letter-spacing:-.02em}.profileHero{display:flex;align-items:center;gap:16px;min-width:0;margin:0 0 18px;padding:18px 20px;background:linear-gradient(120deg,#fff,#eef3ff);border:1px solid var(--border);border-radius:20px}.profileHero .profileImage{width:88px;height:88px;min-width:88px;min-height:88px;font-size:36px;line-height:1}.profileHero>div{min-width:0}.profileHero h2{margin:0 0 4px;overflow-wrap:anywhere;font-size:28px;letter-spacing:-.03em}.profileHero p{margin:0;color:var(--muted)}@media (max-width:820px){.horseCardImage{width:46px;height:46px;min-width:46px;min-height:46px;font-size:20px}.profileHero .profileImage{width:68px;height:68px;min-width:68px;min-height:68px;font-size:28px}.profileHero h2{font-size:22px}.hpGrid{grid-template-columns:1fr}.hpHero{flex-wrap:wrap}.hpHeroActions,.hpHeroActions .button,.hpHeroActions .uiButton{width:100%}.hpRoutineRow{flex-direction:column;align-items:flex-start}.hpTimelineDetails{grid-template-columns:1fr}}.horseFormHeader{margin-bottom:24px}.horseFormHeader h1{margin:0 0 8px;font-size:34px;letter-spacing:-.04em}.horseFormHeader>div>p:last-child{max-width:720px;margin:0;color:var(--muted);line-height:1.6}.horseFormEyebrow{margin:0 0 8px;color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.14em}.horseFormCard{max-width:980px}.horseForm{display:flex;flex-direction:column;gap:24px}.horseFormGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:18px;gap:18px}.horseFormField{display:block}.horseFormField--wide{grid-column:1/-1}.horseFormField>span{display:block;margin-bottom:7px;font-size:13px;font-weight:750}.horseFormField input,.horseFormField select{width:100%;min-height:46px;padding:0 13px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);outline:none}.horseFormField input:focus,.horseFormField select:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.horseFormField input:disabled,.horseFormField select:disabled{background:#f5f7fb;color:var(--text);cursor:not-allowed}.horseFormActions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding-top:4px}.horseFormGrid--single{grid-template-columns:1fr}.horseFormField textarea{width:100%;min-height:96px;padding:12px 13px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);resize:vertical;outline:none}.horseFormField textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.horseFormField textarea:disabled{background:#f5f7fb;cursor:not-allowed}.horseFormHint{margin:0;color:var(--warning);font-size:13px;font-weight:650}.horseFormNotice{margin:0 0 16px;padding:10px 12px;border-radius:12px;background:var(--success-soft);color:var(--success);font-size:13px;font-weight:650}.horseEmptyCopy{margin:0;color:var(--muted);line-height:1.5}.horseHeaderActions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}.directoryTools{display:flex;align-items:center;gap:12px;margin-bottom:18px}.directoryTools .search{flex:1 1 220px;min-width:0}.horseStatusFilter{display:inline-flex;flex:0 0 auto;padding:4px;border:1px solid var(--border);border-radius:12px;background:var(--panel-muted)}.horseStatusFilterButton{min-height:38px;padding:8px 14px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:750;cursor:pointer}.horseStatusFilterButton.is-active{background:white;color:var(--blue-dark);box-shadow:var(--shadow-sm)}.horseStatusFilterButton:focus-visible{outline:3px solid var(--blue-soft);outline-offset:1px}.statusDot--archived{background:var(--warning-soft);color:var(--warning)}.statusDot--archived:before{background:var(--warning)}.profileNav{display:flex;flex-wrap:nowrap;gap:6px;margin:0 0 8px;padding-bottom:4px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.profileNavLink{flex:0 0 auto;min-height:40px;padding:8px 12px;border-radius:999px;color:var(--muted);font-size:13px;font-weight:750;white-space:nowrap}.profileNavLink.is-active{background:var(--blue-soft);color:var(--blue-dark)}.profileNavLink:focus-visible{outline:3px solid var(--blue-soft);outline-offset:2px}.sectionGap{margin-top:18px}#calendar,#care,#details,#documents,#health,#media,#overview,#ownership,#pedigree,#personality,#timeline{scroll-margin-top:16px}.hpHero{align-items:flex-start}.hpHeroBody{min-width:0;flex:1 1}.hpHeroTop{margin-bottom:6px}.hpHeroActions,.hpHeroTop{display:flex;flex-wrap:wrap;gap:8px}.hpHeroActions{justify-content:flex-end;align-items:flex-start}.hpOverview{display:flex;flex-direction:column;gap:16px}.hpGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px}.hpCard{min-width:0}.hpCard .sectionHead{margin-bottom:12px}.hpAlertList,.hpEventList,.hpPlainList,.hpTimelineList{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.hpAlert{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--panel-muted);color:var(--text);font-weight:700;text-align:left;cursor:pointer}.hpAlert--urgent{border-color:#f0c2c2;background:var(--danger-soft,#fff1f1)}.hpAlert--soon{border-color:#f3d9a4;background:var(--warning-soft)}.hpPlainList li,.hpRoutineRow{display:flex;flex-direction:column;gap:2px;min-width:0}.hpEventButton span,.hpPlainList span,.hpRoutineRow span,.hpTimelineMeta{color:var(--muted);font-size:13px}.hpRoutineRow{flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.hpEmpty{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.hpMediaRow{display:flex;gap:8px;overflow-x:auto}.hpMediaThumb{width:72px;height:72px;min-width:72px;min-height:72px;border-radius:12px}.hpEventButton{width:100%;min-height:44px;padding:10px 0;border:0;background:transparent;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px}.hpChip{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:var(--blue-soft);color:var(--blue-dark);font-size:11px;font-weight:800}.hpTimelineGroup{margin-top:18px}.hpHealthGroup h3,.hpTimelineGroup h3{margin:0 0 10px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.hpTimelineList li{padding:12px 0;border-bottom:1px solid #edf0f6}.hpTimelineMeta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}.hpTimelineDetails{display:grid;grid-template-columns:minmax(0,140px) minmax(0,1fr);grid-gap:4px 12px;gap:4px 12px;margin:8px 0 0;min-width:0}.hpTimelineDetails dt{color:var(--muted);font-size:12px}.hpTimelineDetails dd{margin:0;overflow-wrap:anywhere}.hpDetails{display:flex;flex-direction:column}.info{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px;gap:14px}.info.oneColumn{grid-template-columns:1fr}.field{min-width:0}.field span{display:block;color:var(--muted);font-size:11px;font-weight:700}.field strong{display:block;margin-top:4px;overflow-wrap:anywhere}.pedigree{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px}.pedigree div{min-width:0;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--panel-muted)}.pedigree strong{display:block;overflow-wrap:anywhere}.pedigree span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.horseTagPicker,.tags{display:flex;flex-wrap:wrap;gap:8px}.horseTagChip{min-height:36px;padding:8px 12px;border:1px solid var(--border);border-radius:999px;background:white;color:var(--text);font-size:13px;font-weight:700;cursor:pointer}.horseTagChip.is-selected{border-color:var(--blue);background:var(--blue-soft);color:var(--blue-dark)}.horseTagChip:focus-visible{outline:3px solid var(--blue-soft);outline-offset:2px}.horseInlineActions{align-items:center}.horseModalOverlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:rgba(18,28,56,.48);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.horseModal{width:min(480px,100%);padding:22px 22px 18px;border-radius:20px;background:white;border:1px solid var(--border);box-shadow:0 24px 60px rgba(20,32,58,.28)}.horseModalHeader h2{margin:0 0 8px;font-size:22px;letter-spacing:-.03em}.horseModalHeader p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.horseModalError{margin:14px 0 0}.horseModalTyped{display:grid;grid-gap:6px;gap:6px;margin-top:16px}.horseModalTyped span{font-size:13px;color:var(--muted)}.horseModalTyped input{width:100%;min-height:42px;padding:8px 12px;border:1px solid var(--border);border-radius:10px;font:inherit}.horseModalActions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:20px}@media (max-width:820px){.horseHeaderActions{width:100%}.horseHeaderActions .button,.horseHeaderActions .uiButton{flex:1 1 140px}}@media (max-width:700px){.horseFormGrid{grid-template-columns:1fr}.horseFormField--wide{grid-column:auto}.horseFormActions{flex-direction:column-reverse}.horseFormActions .uiButton{width:100%}.info,.pedigree{grid-template-columns:1fr}.horseModalActions{flex-direction:column-reverse}.horseModalActions .uiButton{width:100%}}@media (max-width:390px){.horseFormHeader h1{font-size:28px}.profileHero{gap:12px;padding:14px}.horseStatusFilter{width:100%}.horseStatusFilterButton{flex:1 1}.hpTimelineList li{padding:10px 0}.hpTimelineDetails dd{overflow-wrap:anywhere}}.healthWorkspace{overflow-x:hidden}.healthViewTabs{display:flex;gap:8px;margin:0 0 16px;overflow-x:auto}.healthViewTab{min-height:44px;padding:0 16px;border:1px solid var(--border);border-radius:999px;background:white;color:var(--muted);font-size:14px;font-weight:750;cursor:pointer}.healthViewTab.is-active{background:var(--blue);border-color:var(--blue);color:white}.healthSection{margin-top:18px}.healthFormSection{margin:0 0 14px;padding:0;border:0}.healthFormSection legend{padding:0;margin-bottom:8px;font-size:13px;font-weight:800}.healthEventRow--overdue{background:#fff8f7;margin:0 -12px;padding-left:12px;padding-right:12px;border-radius:12px}.healthOverdueBadge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff1f0;color:#b42318;font-size:11px;font-weight:750}.healthEventDetails{margin-top:6px}.healthEventDetails summary{cursor:pointer;color:var(--blue);font-size:12px;font-weight:700}.healthCareFollowUp,.healthEventNotes{margin:4px 0 0;color:#4b5563;font-size:12px;line-height:1.45}.healthEventActions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.healthToast{margin:0 0 16px;padding:12px 16px;border:1px solid #b7e0cb;border-radius:12px;background:#edf8f3;color:var(--success);font-size:14px;font-weight:700}.healthScopeBanner,.healthScopeNote{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.5}.healthScopeBanner a,.healthScopeNote a{color:var(--blue);font-weight:750}.healthFieldHint{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.4;font-weight:500}.healthFiltersCard{margin-top:18px}.healthFilters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:14px;gap:14px}.healthFilters label{display:flex;flex-direction:column;gap:7px}.healthFilters span{font-size:12px;font-weight:750;color:var(--muted)}.healthFilters select{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);outline:none}.healthFilters select:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.healthLists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:18px;gap:18px;margin-top:18px}.healthEventList{display:flex;flex-direction:column}.healthEventRow{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #edf0f6}.healthEventRow:last-child{border-bottom:0}.healthEventMain{display:flex;flex-direction:column;gap:4px;min-width:0}.healthHorseLink{color:var(--blue);font-size:13px;font-weight:750}.healthHorseLink:hover{text-decoration:underline}.healthEventMain strong{font-size:15px}.healthEventDue,.healthEventMeta{color:var(--muted);font-size:12px}.healthEventSide{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:0 0 auto}.healthShareBox,.healthShareControl{display:flex;flex-direction:column;gap:8px;min-width:0}.healthShareBox>span:first-child{font-size:12px;font-weight:750;color:var(--muted)}.healthShareToggle{display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:700;cursor:pointer}.healthShareToggle input{width:18px;height:18px;margin-top:2px;flex:0 0 auto}.healthShareLabel{color:var(--muted);font-size:12px;font-weight:650}.healthShareError{margin:0;color:#b42318;font-size:12px;font-weight:700}.healthStatusBadge{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:700;background:var(--blue-soft);color:var(--blue)}.healthStatusBadge--completed{background:#edf8f3;color:var(--success)}.healthStatusBadge--active{background:#e9efff;color:var(--blue-dark)}.healthStatusBadge--needs_review,.healthStatusBadge--overdue{background:#fff1f0;color:#b42318}.healthStatusBadge--cancelled{background:#f4f5f7;color:var(--muted)}.healthEmptyInline{padding:18px 0 6px}.healthEmptyInline p{margin:0;color:var(--muted);font-size:14px}.healthModalOverlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px;background:rgba(18,28,56,.48);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.healthModal{width:min(760px,100%);max-height:min(92vh,920px);overflow:auto;border-radius:20px;background:white;border:1px solid var(--border);box-shadow:0 24px 60px rgba(20,32,58,.28)}.healthModalHeader{display:flex;justify-content:space-between;gap:16px;padding:22px 24px 8px;position:-webkit-sticky;position:sticky;top:0;background:linear-gradient(180deg,#fff 70%,rgba(255,255,255,.92));z-index:1}.healthModalEyebrow{margin:0 0 6px;color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.14em}.healthModalHeader h2{margin:0 0 6px;font-size:24px;letter-spacing:-.03em}.healthModalHeader p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.healthModalClose{width:36px;height:36px;border:1px solid var(--border);border-radius:10px;background:white;color:var(--text);font-size:22px;line-height:1;cursor:pointer}.healthModalClose:hover{border-color:#c8d4f5;color:var(--blue)}.healthModalForm{padding:8px 24px 24px;display:flex;flex-direction:column;gap:20px}.healthFormGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px}.healthFormGrid .horseFormField textarea{width:100%;min-height:96px;padding:12px 13px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);resize:vertical;outline:none;font:inherit}.healthFormGrid .horseFormField textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.healthModalActions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}@media (max-width:900px){.healthFilters,.healthLists{grid-template-columns:1fr}}@media (max-width:700px){.healthFormGrid{grid-template-columns:1fr}.healthEventRow{flex-direction:column}.healthEventRow,.healthEventSide{align-items:flex-start}.healthModalActions{flex-direction:column-reverse}.healthModalActions .uiButton{width:100%}}.horseHealthDocuments{margin-top:28px;padding-top:20px;border-top:1px solid #edf0f6}.horseHealthDocuments .sectionHead{margin-bottom:12px}.horseHealthDocuments h3{margin:0;font-size:18px}.horseHealthDocuments .sectionHead p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.healthDocumentList{display:flex;flex-direction:column}.healthDocumentRow{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 0;border-bottom:1px solid #edf0f6}.healthDocumentRow:last-child{border-bottom:0}.healthDocumentMain{min-width:0}.healthDocumentMain strong{font-size:15px}.healthDocumentActions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;flex:0 0 auto}@media (max-width:820px){.healthWorkspace{overflow-x:hidden}.healthViewTabs{margin-bottom:12px}.healthFilters{grid-template-columns:1fr}.healthEventRow,.healthEventRow--overdue{flex-direction:column;align-items:flex-start;margin-left:0;margin-right:0}.healthEventActions,.healthEventSide{align-items:flex-start;justify-content:flex-start;width:100%}.healthDocumentActions .uiButton,.healthEventActions .uiButton,.healthViewTab{min-height:44px}.healthDocumentRow{flex-direction:column}.healthDocumentActions{justify-content:flex-start}.healthModalActions{flex-direction:column-reverse}.healthModalActions .uiButton{width:100%}}.hpHealthGroup{margin-top:18px}.hpHealthGroup h3{margin:0 0 8px;font-size:16px}.healthEmptyInline{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.staffToast{border:1px solid #b7e0cb;border-radius:12px;background:#edf8f3;color:var(--success)}.staffErrorBanner,.staffToast{margin:0 0 16px;padding:12px 16px;font-size:14px;font-weight:700}.staffErrorBanner{border:1px solid #f3c1bd;border-radius:12px;background:#fff1f0;color:#b42318}.staffSummaryGrid{margin-bottom:18px}.staffSection{margin-top:18px}.staffEmptyInline{margin:8px 0 0;color:var(--muted);font-size:14px}.staffTableWrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}.staffTable{width:100%;border-collapse:collapse}.staffTable td,.staffTable th{text-align:left;padding:12px 10px;border-bottom:1px solid #edf0f6;vertical-align:middle;font-size:14px}.staffTable th{color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.02em;text-transform:uppercase}.staffTable td strong{font-size:14px}.staffRoleSelect{min-height:36px;max-width:100%;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:white;color:var(--text)}.staffStatusBadge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700;text-transform:capitalize;background:var(--blue-soft);color:var(--blue)}.staffStatusBadge--active,.staffStatusBadge--pending{background:#edf8f3;color:var(--success)}.staffStatusBadge--expired,.staffStatusBadge--revoked,.staffStatusBadge--suspended{background:#fff1f0;color:#b42318}.staffRowActions{display:flex;flex-wrap:wrap;gap:8px}.staffMutedAction{color:var(--muted);font-size:13px}.staffModalOverlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:rgba(17,24,39,.45)}.staffModal{width:min(520px,100%);max-height:min(90vh,760px);overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.staffModalHeader{display:flex;justify-content:space-between;gap:16px;padding:20px 20px 0}.staffModalEyebrow{margin:0 0 6px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.08em}.staffModalHeader h2{margin:0 0 6px;font-size:22px;letter-spacing:-.03em}.staffModalHeader p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.staffModalClose{width:36px;height:36px;border:1px solid var(--border);border-radius:10px;background:white;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}.staffModalClose:hover{color:var(--text)}.staffModalForm{display:flex;flex-direction:column;gap:14px;padding:18px 20px 20px}.staffModalForm label{display:flex;flex-direction:column;gap:7px}.staffModalForm span{font-size:12px;font-weight:750;color:var(--muted)}.staffModalForm input,.staffModalForm select{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);outline:none}.staffModalForm input:focus,.staffModalForm select:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.staffModalActions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.staffFormError{color:#b42318}.staffFormError,.staffFormNotice{margin:0;font-size:13px;font-weight:650}.staffFormNotice{color:var(--success)}.staffInviteSuccess{display:flex;flex-direction:column;gap:12px}.staffInviteSuccess p{margin:0;font-size:14px;line-height:1.5}.staffInviteLinkField input{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px}.invitePage{min-height:100vh;display:grid;place-items:center;padding:28px 16px;background:radial-gradient(circle at top left,rgba(40,85,199,.12),transparent 42%),linear-gradient(180deg,#f7f9fc,#eef2f8)}.inviteCard{width:min(520px,100%);padding:28px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.inviteBrand{display:inline-flex;align-items:center;gap:10px;margin-bottom:18px;font-weight:800;letter-spacing:-.02em}.inviteCard h1{margin:0 0 8px;font-size:28px;letter-spacing:-.03em}.inviteLead{margin:0 0 18px;color:var(--muted);font-size:14px;line-height:1.5}.inviteDetails{display:grid;grid-gap:12px;gap:12px;margin-bottom:18px}.inviteDetails>div{display:flex;flex-direction:column;gap:4px;padding-bottom:12px;border-bottom:1px solid #edf0f6}.inviteDetails span{color:var(--muted);font-size:12px;font-weight:750}.inviteDetails strong{font-size:15px}.inviteMuted{margin:0;color:var(--muted);font-size:14px;line-height:1.5}.inviteActions{display:flex;flex-direction:column;gap:10px;margin-top:8px}.inviteActions a.uiButton{text-decoration:none}.inviteActions .textLink{text-align:center}@media (max-width:720px){.staffModalActions{flex-direction:column-reverse}.staffModalActions .uiButton{width:100%}.staffTable td:nth-child(4),.staffTable th:nth-child(4){display:none}}.inviteBrandRow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.inviteBrandRow .inviteBrand{margin-bottom:0}.inviteCard--setup{width:min(720px,100%)}.inviteSetupTitle{margin:0;font-size:20px;letter-spacing:-.03em}.inviteSetupGrid{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px}.inviteSetupForm{margin-top:8px}.platformAdminPage{width:min(1100px,100%);padding:28px 16px 64px}.platformAdminHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.platformAdminHeader h1{margin:0 0 8px;font-size:clamp(28px,4vw,40px);letter-spacing:-.04em}.platformAdminHeader p{margin:0;color:var(--muted)}.platformAdminHeaderActions{display:flex;align-items:center;gap:12px}.platformAdminCard{padding:20px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.platformAdminLinkField{display:flex;flex-direction:column;gap:8px;margin-top:16px}.platformAdminLinkField input{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px}.welcomeNewStableHelp{margin:6px 0 0;font-weight:600}@media (max-width:720px){.inviteSetupGrid{grid-template-columns:1fr}.authFormHeadingRow,.inviteBrandRow,.platformAdminHeader{flex-direction:column;align-items:flex-start}}.visuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.platformAdminShell{min-height:100vh;overflow-x:hidden;background:#e8edf5;color:var(--text)}.platformAdminSidebar{display:none}.platformAdminTopbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;color:white;background:#10182d}.platformAdminBrand{margin:0;font-size:20px;font-weight:850;letter-spacing:-.03em}.platformAdminEyebrow{margin:4px 0 0;color:#c5d0ef;font-size:11px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.platformAdminTopbarActions{display:flex;align-items:center;gap:10px}.platformAdminAvatar,.platformAdminMenuItem,.platformAdminSideAction{display:flex;width:100%;min-height:40px;align-items:center;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;font-weight:700;text-align:left;cursor:pointer}.platformAdminAvatar{width:40px;justify-content:center;padding:0;background:#2a3a68;color:white}.platformAdminNavLink{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 10px;border-radius:10px;color:inherit;font-size:13px;font-weight:700;text-decoration:none}.platformAdminNavLink--active{background:var(--blue-soft);color:var(--blue-dark)}.platformAdminAccountMenu{position:absolute;top:72px;right:16px;z-index:20;width:min(280px,calc(100% - 32px));padding:12px;background:white;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-lg)}.platformAdminAccountIdentity{display:flex;flex-direction:column;gap:2px;padding:8px 12px 12px;border-bottom:1px solid var(--border)}.platformAdminAccountIdentity span,.platformAdminMenuItem{color:var(--muted);font-size:13px}.platformAdminMenuItem{color:var(--text)}.platformAdminMainColumn{position:relative}.platformAdminBody,.platformAdminPage{width:min(1180px,100%);margin:0 auto}.platformAdminPage{padding:24px 16px calc(88px + env(safe-area-inset-bottom, 0px))}.platformAdminPageHeader{margin-bottom:20px}.platformAdminPageHeader h1{margin:0 0 8px;font-size:clamp(26px,3vw,36px);letter-spacing:-.04em}.platformAdminPageHeader p{margin:0;color:var(--muted)}.platformAdminReadOnlyBanner{display:inline-block;margin:0 0 8px;padding:4px 10px;border-radius:999px;background:#efe7d6;color:#6d5417;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.platformAdminMeta{margin:8px 0 12px!important}.platformAdminSectionHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.platformAdminSectionHead h2{margin:0}.platformAdminMetrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px;margin-bottom:18px}.platformAdminMetrics--billing,.platformAdminMetrics--detail{grid-template-columns:repeat(3,minmax(0,1fr))}.platformAdminMetric{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.platformAdminMetric strong{overflow-wrap:anywhere}.platformAdminSplit{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px}.platformAdminList{list-style:none;margin:12px 0 0;padding:0}.platformAdminList li+li{border-top:1px solid #edf0f6}.platformAdminList a,.platformAdminList div{display:flex;flex-direction:column;gap:4px;padding:12px 0;color:inherit;text-decoration:none}.platformAdminList strong{overflow-wrap:anywhere}.platformAdminList span{color:var(--muted);font-size:13px}.platformAdminFilters{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px;margin-bottom:16px}.platformAdminFilters input,.platformAdminFilters select{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:white}.platformAdminAccountForm{margin-top:12px}.platformAdminMemberships{list-style:none;margin:0;padding:0}.platformAdminMemberships li+li{margin-top:6px}.platformAdminClickRow{cursor:pointer}.platformAdminClickRow:hover{background:#f4f7fb}.platformAdminStablePicker{list-style:none;margin:16px 0;padding:0}.platformAdminStablePicker button{width:100%;min-height:44px;margin-bottom:8px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:white;text-align:left;font-weight:700}.platformAdminMobileNav{position:-webkit-sticky;position:sticky;bottom:0;z-index:15;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:4px;gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom, 0px));background:#10182d}.platformAdminMobileNav .platformAdminNavLink{color:#d5def5}.platformAdminMobileNav .platformAdminNavLink--active{background:#2a3a68;color:white}.paMobileCards{display:none}.paMobileCard{display:flex;flex-direction:column;gap:6px;padding:14px;background:var(--panel);border:1px solid var(--border);border-radius:14px;color:inherit;text-decoration:none;overflow-wrap:anywhere}.paMobileCard span{color:var(--muted);font-size:13px}.staffStatusBadge--accepted,.staffStatusBadge--trial{background:var(--blue-soft);color:var(--blue-dark)}.staffStatusBadge--past_due{background:var(--warning-soft);color:var(--warning)}.staffStatusBadge--cancelled{background:#eef0f5;color:var(--muted)}.staffStatusBadge--deactivated,.staffStatusBadge--deleted{background:#fde8e8;color:#8a1f1f}.platformAdminActionRow{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.platformAdminDangerZone{border-color:#f1c4c4;background:#fff8f8}.platformAdminDangerNote{margin:0 0 12px;color:#8a1f1f;font-weight:700}.platformAdminPendingDeletion{border-color:#f0c36d;background:#fff8eb}.platformAdminPendingDeletion h2{margin:0 0 8px;color:#8a5a00}.platformAdminRetentionMeta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px;margin:16px 0}.platformAdminRetentionMeta dt{font-size:12px;font-weight:700;color:var(--muted,#667085)}.platformAdminRetentionMeta dd{margin:4px 0 0;font-weight:700}.staffStatusBadge--pending_deletion{background:#fff1d6;color:#8a5a00}@media (max-width:760px){.platformAdminRetentionMeta{grid-template-columns:1fr}}.platformAdminLogoPreview{width:72px;height:72px;object-fit:cover;border-radius:16px;border:1px solid var(--border);margin-bottom:8px}.platformAdminInviteForm{margin-top:18px}.platformAdminInviteForm h3{margin:0 0 10px;font-size:16px}.platformAdminStatusFilters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.platformAdminFilterChip{min-height:36px;padding:0 12px;border:1px solid var(--border);border-radius:999px;background:white;font-weight:700;cursor:pointer}.platformAdminFilterChip--active{background:#1b3072;border-color:#1b3072;color:white}@media (min-width:900px){.platformAdminShell{display:grid;grid-template-columns:240px minmax(0,1fr)}.platformAdminSidebar{display:flex;position:-webkit-sticky;position:sticky;top:0;flex-direction:column;height:100vh;padding:24px 16px;color:white;background:#10182d}.platformAdminBrandBlock{padding:4px 8px 24px}.platformAdminSideNav{display:flex;flex-direction:column;gap:4px}.platformAdminSideNav .platformAdminNavLink{justify-content:flex-start;color:#edf2ff}.platformAdminSideNav .platformAdminNavLink--active{background:white;color:#10182d}.platformAdminSideFooter{display:flex;flex-direction:column;gap:6px;margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.14)}.platformAdminSideAction{color:#d5def5}.platformAdminMobileNav,.platformAdminTopbar{display:none}.platformAdminPage{padding:28px 20px 64px}}@media (max-width:1100px){.platformAdminMetrics{grid-template-columns:repeat(3,minmax(0,1fr))}.platformAdminFilters{grid-template-columns:1fr 1fr}}@media (max-width:820px){.platformAdminFilters,.platformAdminMetrics,.platformAdminMetrics--billing,.platformAdminMetrics--detail,.platformAdminSplit{grid-template-columns:1fr 1fr}.paDesktopTable{display:none}.paMobileCards{display:grid;grid-gap:12px;gap:12px;margin-top:12px}}@media (max-width:520px){.platformAdminFilters,.platformAdminMetrics,.platformAdminMetrics--billing,.platformAdminMetrics--detail,.platformAdminSplit{grid-template-columns:1fr}.platformAdminPage{padding:16px 12px calc(88px + env(safe-area-inset-bottom, 0px))}}.staffCompactSummary{margin:0 0 18px;color:var(--muted);font-size:14px;line-height:1.5}.staffAssignmentList,.staffChipRow,.staffDirectoryList,.staffHorseGrid,.staffInviteList{list-style:none;margin:0;padding:0}.staffDirectoryList{display:grid;grid-gap:10px;gap:10px}.staffDirectoryRow{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--border);border-radius:16px;background:var(--panel);text-decoration:none;color:inherit;min-height:44px}.staffDirectoryBody{display:grid;grid-gap:2px;gap:2px;min-width:0;flex:1 1}.staffDirectoryBody strong{font-size:16px}.staffDirectoryContact,.staffDirectoryHorses,.staffDirectoryMeta{color:var(--muted);font-size:13px}.staffDirectoryAction{color:var(--blue);font-size:13px;font-weight:700;white-space:nowrap}.staffAvatar{display:inline-grid;place-items:center;flex:0 0 auto;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-weight:800;overflow:hidden}.staffAvatar img{width:100%;height:100%;object-fit:cover}.staffAvatar--sm{width:36px;height:36px;font-size:12px}.staffAvatar--md{width:48px;height:48px;font-size:14px}.staffAvatar--lg{width:84px;height:84px;font-size:28px}.staffInviteRow{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.staffInviteRow span,.staffInviteRow strong{display:block}.staffInviteActions{display:flex;flex-wrap:wrap;gap:8px}.staffBackRow{margin:0 0 12px}.staffBackLink{color:var(--blue);font-weight:700;text-decoration:none}.staffProfileHero{display:flex;gap:18px;align-items:center;margin-bottom:24px}.staffProfileHero h1{margin:0 0 4px;font-size:28px;letter-spacing:-.03em}.staffHelp,.staffProfileMeta,.staffProfileTitle{margin:0;color:var(--muted);font-size:14px}.staffPhotoActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.staffPhotoUpload{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid var(--border);border-radius:10px;cursor:pointer;font-size:13px;font-weight:700}.staffPhotoUpload input{display:none}.staffProfileSection{margin:0 0 22px;padding:18px 0 0;border-top:1px solid var(--border)}.staffProfileSection h2{margin:0 0 10px;font-size:18px}.staffDefinitionList{display:grid;grid-template-columns:minmax(120px,160px) 1fr;grid-gap:8px 16px;gap:8px 16px;margin:0}.staffDefinitionList dt{color:var(--muted);font-size:13px}.staffDefinitionList dd{margin:0}.staffHorseGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));grid-gap:10px;gap:10px}.staffHorseCard{display:grid;grid-gap:8px;gap:8px;padding:10px;border:1px solid var(--border);border-radius:14px;text-decoration:none;color:inherit;min-height:44px}.staffHorseThumb{width:100%;height:88px;object-fit:cover;border-radius:10px;background:var(--blue-soft)}.staffChipRow{display:flex;flex-wrap:wrap;gap:8px}.staffChip,.staffChipToggle{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;background:var(--blue-soft);font-size:13px;font-weight:700}.staffAssignmentPanel,.staffProfileForm{display:grid;grid-gap:12px;gap:12px}.staffManagement label,.staffProfileForm label{display:grid;grid-gap:6px;gap:6px;font-size:13px;font-weight:700}.staffManagement select,.staffProfileForm input,.staffProfileForm textarea{min-height:40px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;font-weight:500}.staffFormActions{display:flex;flex-wrap:wrap;gap:8px}.staffManagement{padding-top:20px}.staffAssignmentList label{display:flex;align-items:center;gap:8px;min-height:40px}@media (max-width:720px){.staffDirectoryRow,.staffInviteRow,.staffProfileHero{flex-wrap:wrap}.staffDirectoryAction{width:100%}.staffDefinitionList{grid-template-columns:1fr}.staffInviteActions{width:100%}}@media (max-width:390px){.staffChipRow,.staffDirectory,.staffDirectoryList,.staffDirectoryRow,.staffHorseGrid,.staffManagement,.staffProfileHero,.staffProfileSection{overflow-x:hidden;max-width:100%}.staffHorseGrid{grid-template-columns:1fr}.staffAssignmentList label,.staffChipToggle,.staffDirectoryRow,.staffPhotoUpload{min-height:44px}}.careToast{border:1px solid #b7e0cb;border-radius:12px;background:#edf8f3;color:var(--success)}.careErrorBanner,.careToast{margin:0 0 16px;padding:12px 16px;font-size:14px;font-weight:700}.careErrorBanner{border:1px solid #f3c1bd;border-radius:12px;background:#fff1f0;color:#b42318}.careFiltersCard{margin-bottom:18px}.careFilters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:14px;gap:14px}.careFilters label{display:flex;flex-direction:column;gap:7px}.careFilters span,.careModalForm span{font-size:12px;font-weight:750;color:var(--muted)}.careFilters input,.careFilters select,.careModalForm input,.careModalForm select,.careModalForm textarea{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);outline:none}.careModalForm textarea{padding:12px;min-height:96px;resize:vertical}.careFilters input:focus,.careFilters select:focus,.careModalForm input:focus,.careModalForm select:focus,.careModalForm textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.careSummaryGrid{margin-bottom:18px}.careSection{margin-top:18px}.careEmptyInline{margin:0;color:var(--muted);font-size:14px}.careTaskList{display:flex;flex-direction:column}.careWorkspace{overflow-x:hidden}.careViewTabs{display:flex;gap:8px;margin:0 0 16px;overflow-x:auto}.careViewTab{min-height:44px;padding:0 16px;border:1px solid var(--border);border-radius:999px;background:white;color:var(--muted);font-size:14px;font-weight:750;cursor:pointer}.careViewTab.is-active{background:var(--blue);border-color:var(--blue);color:white}.careDateNav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px}.careDateNav input[type=date]{min-height:44px;min-width:160px}.careFormHint,.careQuiet{margin:0 0 14px;color:var(--muted);font-size:13px;line-height:1.45}.careFormSection{margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:12px}.careFormSection legend{padding:0;margin-bottom:4px;font-size:13px;font-weight:800}.careHorsePicker{display:flex;flex-wrap:wrap;gap:8px}.careHorseChip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:white;font-size:13px;font-weight:650}.careHorseChip input{width:auto;min-height:auto}.careRoutineList{list-style:none;margin:0;padding:0}.careRoutineRow{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #edf0f6}.careRoutineRow:last-child{border-bottom:0}.careRoutineRow p,.careRoutineRow small{display:block;margin:4px 0 0}.careRoutineActions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.careHistoryDate{margin:12px 0 4px;color:var(--muted);font-size:12px;font-weight:750}.careTaskNotesDetails{margin-top:6px}.careTaskNotesDetails summary{cursor:pointer;color:var(--blue);font-size:12px;font-weight:700}.careHorseThumb{width:44px;height:44px;border-radius:10px;object-fit:cover;background:#eef2f7}.careTaskRow{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-gap:14px;gap:14px;align-items:start;padding:14px 0;border-bottom:1px solid #edf0f6}.careTaskRow--horse{grid-template-columns:44px 44px minmax(0,1fr) auto}.careTaskRow:last-child{border-bottom:0}.careTaskRow--done{opacity:.72}.careTaskRow--done .careTaskHorse,.careTaskRow--done .careTaskTitle{color:var(--muted)}.careCheck{width:44px;height:44px;margin-top:2px;border:1px solid var(--border);border-radius:8px;background:white;display:grid;place-items:center;cursor:pointer;color:white;font-weight:800}.careCheck.done{border-color:var(--blue);background:var(--blue)}.careCheck:disabled{opacity:.55;cursor:not-allowed}.careTaskTitleRow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.careTaskHorse{margin:0;font-size:16px;font-weight:800}.careTaskTitle{margin:0 0 2px;font-size:14px;font-weight:700}.careTaskMeta,.careTaskNotes{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.careTaskNotes{color:#4b5563}.careOverdueBadge,.carePriorityBadge,.careStatusBadge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:750;text-transform:capitalize}.carePriorityBadge{background:#fff4e5;color:#b54708}.careOverdueBadge,.careStatusBadge--pending.careOverdueBadge,.careTaskRow--overdue .careOverdueBadge{background:#fff1f0;color:#b42318}.careStatusBadge{background:var(--blue-soft);color:var(--blue)}.careStatusBadge--completed{background:#edf8f3;color:var(--success)}.careStatusBadge--cancelled,.careStatusBadge--skipped{background:#f4f5f7;color:var(--muted)}.careTaskSide{display:flex;flex-direction:column;align-items:flex-end;gap:8px;text-align:right}.careTaskSide small{color:var(--muted);font-size:12px;line-height:1.4}.careModalOverlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:rgba(17,24,39,.45)}.careModal{width:min(640px,100%);max-height:min(92vh,860px);overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.careModalHeader{display:flex;justify-content:space-between;gap:16px;padding:20px 20px 0}.careModalEyebrow{margin:0 0 6px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.08em}.careModalHeader h2{margin:0 0 6px;font-size:22px;letter-spacing:-.03em}.careModalHeader p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.careModalClose{width:36px;height:36px;border:1px solid var(--border);border-radius:10px;background:white;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}.careModalForm{display:flex;flex-direction:column;gap:14px;padding:18px 20px 20px}.careModalForm label{display:flex;flex-direction:column;gap:7px}.careModalGrid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px}.careWeekdayFieldset{margin:0;padding:12px;border:1px solid var(--border);border-radius:12px}.careWeekdayFieldset legend{padding:0 6px;font-size:12px;font-weight:750;color:var(--muted)}.careWeekdayRow{display:flex;flex-wrap:wrap;gap:8px}.careWeekdayChip{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:white;font-size:13px;font-weight:650}.careCheckbox{display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important}.careCheckbox input{width:auto;min-height:auto}.careMedicationBlock{display:flex;flex-direction:column;gap:8px}.careMedicationContext{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.careFormError{margin:0;color:#b42318;font-size:13px;font-weight:650}.careModalActions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}@media (max-width:960px){.careFilters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:820px){.careWorkspace{overflow-x:hidden}.careFilters,.careModalGrid2{grid-template-columns:1fr}.careViewTabs{margin-bottom:12px}.careCheck{width:48px;height:48px;border-radius:12px;font-size:18px}.careTaskRow{grid-template-columns:48px minmax(0,1fr)}.careTaskRow--horse{grid-template-columns:48px 40px minmax(0,1fr)}.careTaskSide{grid-column:2/-1;align-items:flex-start;text-align:left}.careHorseThumb{width:40px;height:40px}.careRoutineRow{flex-direction:column}.careModalActions{flex-direction:column-reverse}.careModalActions .uiButton{width:100%}.careModal{width:100%;max-height:100vh;border-radius:16px 16px 0 0}}.calendar-page{display:flex;flex-direction:column;gap:16px}.calErrorBanner{margin:0;padding:12px 16px;border:1px solid #f3c1bd;border-radius:12px;background:#fff1f0;color:#b42318;font-size:14px;font-weight:700}.calMigrationHint{margin:0;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2,#f7f9fc);color:var(--muted);font-size:13px}.calMigrationHint code{font-size:12px}.calToolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px}.calViewTabs{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:var(--blue-soft,#e8eefc)}.calViewTab{min-height:36px;padding:0 14px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-weight:700;cursor:pointer}.calViewTab.is-active{background:white;color:var(--blue);box-shadow:0 1px 2px rgba(15,23,42,.08)}.calNav{display:flex;align-items:center;gap:8px}.calNavTitle{margin:0;min-width:180px;text-align:center;font-size:18px;font-weight:800;color:var(--text)}.calNavArrow{width:36px;height:36px;border:1px solid var(--border);border-radius:10px;background:white;color:var(--text);font-size:22px;line-height:1;cursor:pointer}.calNavArrow:hover{border-color:var(--blue);color:var(--blue)}.calControls{padding:16px}.calFilters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:14px;gap:14px;margin-bottom:14px}.calFilters label{display:flex;flex-direction:column;gap:7px}.calFilters span,.calModalForm span{font-size:12px;font-weight:750;color:var(--muted)}.calFilters select,.calModalForm input,.calModalForm select,.calModalForm textarea{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);outline:none}.calModalForm textarea{padding:12px;min-height:96px;resize:vertical}.calFilters select:focus,.calModalForm input:focus,.calModalForm select:focus,.calModalForm textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.calLayers{display:flex;flex-wrap:wrap;gap:12px 18px;padding-top:4px;border-top:1px solid var(--border)}.calLayer{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--text);cursor:pointer}.calLayer--sub,.calLoading{color:var(--muted);font-weight:650}.calLoading{padding:28px 8px}.calEmpty{padding:36px 24px;text-align:center}.calEmpty h3{margin:0 0 8px;font-size:20px}.calEmpty p{margin:0 0 18px;color:var(--muted)}.calEmptyInline{padding:24px;text-align:center}.calMonth{padding:12px;overflow:hidden}.calMonthGrid,.calMonthWeekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-gap:6px;gap:6px}.calMonthWeekday{padding:6px 4px;text-align:center;font-size:12px;font-weight:750;color:var(--muted)}.calMonthCell{min-height:110px;padding:8px;border:1px solid var(--border);border-radius:12px;background:white;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:6px}.calMonthCell.is-outside{background:#f8fafc;opacity:.72}.calMonthCell.is-today{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}.calMonthDaynum{font-size:13px;font-weight:800;color:var(--text)}.calMonthChips{display:flex;flex-direction:column;gap:4px;min-width:0}.calMonthCount{display:none}.calMonthMore{color:var(--muted)}.calEventChip,.calMonthMore{font-size:11px;font-weight:700}.calEventChip{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 7px;border-radius:8px;border:0;text-align:left;cursor:pointer;background:#e8eefc;color:#1e3a8a}.calEventChip--block{width:100%;white-space:normal;padding:8px 10px;display:flex;flex-direction:column;gap:2px}.calEventChipTime{font-size:11px;opacity:.85}.calEventChipTitle{font-size:13px}.calEventChipMeta{font-size:11px;opacity:.8}.calType--vet,.calTypeChip.calType--vet{background:#e8eefc;color:#1e3a8a}.calType--farrier,.calTypeChip.calType--farrier{background:#f3eee8;color:#6b4f2a}.calType--training,.calTypeChip.calType--training{background:#eaf5f0;color:#1f6b4a}.calType--competition,.calTypeChip.calType--competition{background:#eef0f8;color:#334155}.calType--transport,.calTypeChip.calType--transport{background:#eef2f7;color:#475569}.calType--staff,.calTypeChip.calType--staff{background:#e9edf5;color:#1f3b6d}.calType--care,.calType--health,.calTypeChip.calType--care,.calTypeChip.calType--health{background:#f1f5f9;color:#334155}.calType--other,.calTypeChip.calType--other{background:#f1f5f9;color:#475569}.calWeek{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-gap:10px;gap:10px}.calWeekCol{padding:10px;min-height:220px}.calWeekHead{width:100%;margin-bottom:10px;padding:0;border:0;background:transparent;text-align:left;font-size:13px;font-weight:800;color:var(--text);cursor:pointer}.calWeekList{display:flex;flex-direction:column;gap:8px}.calDay{padding:8px}.calDayList{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.calDayItem{width:100%;display:grid;grid-template-columns:120px 1fr;grid-gap:14px;gap:14px;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:white;text-align:left;cursor:pointer}.calDayItem:hover{border-color:var(--blue)}.calDayWhen{display:flex;flex-direction:column;gap:4px}.calDayWhen strong{font-size:14px}.calDayBody span,.calDayWhen span{font-size:12px;color:var(--muted);font-weight:650}.calDayBody{display:flex;flex-direction:column;gap:4px;min-width:0}.calDayBody strong{font-size:15px;color:var(--text)}.calStaffNote,.calTzNote{margin:0;font-size:12px;color:var(--muted)}.calQuickLinks{display:flex;gap:16px}.calMuted{color:var(--muted);font-size:13px}.calModalOverlay{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.45)}.calModal{width:min(640px,100%);max-height:min(90vh,900px);overflow:auto;border-radius:18px;background:white;box-shadow:0 24px 60px rgba(15,23,42,.22)}.calModal--details{width:min(520px,100%)}.calModalHeader{display:flex;justify-content:space-between;gap:12px;padding:20px 22px 8px}.calModalEyebrow{margin:0 0 4px;font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--blue)}.calModalHeader h2{margin:0;font-size:22px}.calModalHeader p{margin:6px 0 0;color:var(--muted);font-size:13px}.calModalClose{width:36px;height:36px;border:0;border-radius:10px;background:#f1f5f9;color:var(--text);font-size:22px;cursor:pointer}.calDetailsBody,.calModalForm{padding:12px 22px 8px;display:flex;flex-direction:column;gap:14px}.calModalGrid2{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px}.calModalForm label{gap:7px}.calModalForm label,.calShareBox{display:flex;flex-direction:column}.calShareBox{gap:8px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f8fafc;min-width:0}.calShareBox>span{font-weight:750}.calShareBox>span,.calShareHint{font-size:12px;color:var(--muted)}.calShareHint{margin:0;font-weight:500;line-height:1.45}.calCheckbox{flex-direction:row!important;align-items:center;gap:10px!important;font-weight:700}.calMultiFieldset{margin:0;padding:12px;border:1px solid var(--border);border-radius:12px}.calMultiFieldset legend{padding:0 6px;font-size:12px;font-weight:750;color:var(--muted)}.calChipGrid{display:flex;flex-wrap:wrap;gap:8px}.calChip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:999px;background:#f8fafc;font-size:13px;font-weight:650;cursor:pointer}.calFormError{margin:0;color:#b42318;font-size:13px;font-weight:700}.calModalActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:12px 22px 22px}.calDetailsMeta{display:flex;flex-wrap:wrap;gap:8px}.calPriorityChip,.calStatusChip,.calTypeChip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:750}.calStatusChip{background:#eef2ff;color:#3730a3}.calPriorityChip{background:#fff7ed;color:#9a3412}.calDetailsList{margin:0;display:flex;flex-direction:column;gap:10px}.calDetailsList div{display:grid;grid-template-columns:100px 1fr;grid-gap:10px;gap:10px}.calDetailsList dt{font-size:12px;font-weight:750;color:var(--muted)}.calDetailsList dd{margin:0;font-size:14px;color:var(--text)}@media (max-width:1100px){.calFilters{grid-template-columns:repeat(2,minmax(0,1fr))}.calWeek{grid-template-columns:1fr}}@media (max-width:760px){.calToolbar{flex-direction:column;align-items:stretch}.calNav{justify-content:space-between}.calNavTitle{min-width:0;flex:1 1;font-size:16px}.calFilters{grid-template-columns:1fr}.calMonthCell{min-height:52px;padding:4px 3px;gap:4px;border-radius:8px}.calMonthChips{display:none}.calMonthCount{display:inline-flex;min-width:18px;height:18px;padding:0 5px;align-items:center;justify-content:center;border-radius:999px;background:var(--blue-soft,#e8eefc);color:var(--blue-dark,#1e3a8a);font-size:11px;font-weight:800}.calMonthWeekday{font-size:11px;padding:4px 0}.calDayItem,.calModalGrid2{grid-template-columns:1fr}}.calendarWorkspace{overflow-x:hidden}.calWorkspaceTabs{display:flex;gap:8px;margin:0;overflow-x:auto}.calWorkspaceTab{min-height:44px;padding:0 16px;border:1px solid var(--border);border-radius:999px;background:white;color:var(--muted);font-size:14px;font-weight:750;cursor:pointer;white-space:nowrap}.calWorkspaceTab.is-active{background:var(--blue);border-color:var(--blue);color:white}.calStack{display:flex;flex-direction:column;gap:16px}.calGroup{padding:16px}.calGroup h2{margin:0 0 12px;font-size:16px}.calMonthLayout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);grid-gap:16px;gap:16px;align-items:start}.calAgenda{min-width:0;padding:16px}.calMonthCell.is-selected{border-color:var(--blue);background:var(--blue-soft,#e8eefc)}.calEventCard{display:flex;align-items:stretch;gap:10px;min-width:0;border:1px solid var(--border);border-radius:14px;background:white}.calEventCardButton{flex:1 1;min-width:0;display:grid;grid-template-columns:88px minmax(0,1fr) auto;grid-gap:10px;gap:10px;padding:12px 14px;border:0;background:transparent;text-align:left;cursor:pointer}.calEventCardBody,.calEventCardWhen{display:flex;flex-direction:column;gap:4px;min-width:0}.calEventCardBody strong,.calEventCardWhen strong{color:var(--text)}.calEventCardMeta,.calEventCardWhen span{color:var(--muted);font-size:12px;font-weight:650}.calEventCardWrap{color:var(--muted)}.calEventCardHorse,.calEventCardWrap{overflow-wrap:anywhere;font-size:12px}.calEventCardHorse{display:inline-flex;align-items:center;min-width:72px;max-width:120px;padding:0 12px;border-left:1px solid var(--border);color:var(--blue);font-weight:750}.calEventCardHorse--empty{color:var(--muted);font-weight:650}.calStatusChip--completed{background:#ecfdf3;color:#067647}.calStatusChip--cancelled{background:#fef3f2;color:#b42318}.calStatusChip--scheduled{background:#eef2ff;color:#3730a3}@media (max-width:1100px){.calMonthLayout{grid-template-columns:1fr}}@media (max-width:390px){.calEventCardButton{grid-template-columns:1fr}.calEventCardHorse{max-width:none;min-width:0;border-left:0;border-top:1px solid var(--border);padding:10px 12px}.calEventCardButton,.calMonthCell,.calNavArrow,.calWorkspaceTab{min-height:44px}.calModalOverlay{align-items:flex-end;padding:0}.calModal,.calModal--details{width:100%;max-height:92vh;border-radius:18px 18px 0 0}}.billingToast{border:1px solid #b7e0cb;border-radius:12px;background:#edf8f3;color:var(--success)}.billingErrorBanner,.billingToast{margin:0 0 16px;padding:12px 16px;font-size:14px;font-weight:700}.billingErrorBanner{border:1px solid #f3c1bd;border-radius:12px;background:#fff1f0;color:#b42318}.billingHeaderActions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.billingReadOnlyBadge{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:999px;background:#eef2ff;color:var(--blue);font-size:13px;font-weight:750}.billingReadOnlyHelp{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.5}.billingSection{margin-top:18px}.billingTableWrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}.billingTable{width:100%;border-collapse:collapse}.billingTable td,.billingTable th{text-align:left;padding:12px 10px;border-bottom:1px solid #edf0f6;vertical-align:middle;font-size:14px}.billingTable th{color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.02em;text-transform:uppercase}.billingEmptyInline{margin:8px 0 0;color:var(--muted);font-size:14px}.billingPayerEmpty{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid #e4e9f4;border-radius:12px;background:#f7f9fd}.billingPayerEmpty span{color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.02em;text-transform:uppercase}.billingPayerEmpty p{margin:0;color:var(--navy);font-size:14px;font-weight:650}.billingStatus{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:750}.billingStatus,.billingStatus--draft{background:#eef2fb;color:var(--blue)}.billingStatus--issued{background:#e8f1ff;color:var(--blue)}.billingStatus--paid{background:#edf8f3;color:var(--success)}.billingStatus--overdue{background:#fff1f0;color:#b42318}.billingStatus--void{background:#f3f4f6;color:#6b7280}.billingStatus--partial{background:#fff7e8;color:#9a6700}.billingStatus--active{background:#edf8f3;color:var(--success)}.billingStatus--archived,.billingStatus--cancelled,.billingStatus--ended,.billingStatus--unbilled{background:#eef2fb;color:var(--blue)}.billingMoneyStrip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:10px;gap:10px;margin:16px 0 8px}.billingMoneyStrip>div{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #edf0f6;border-radius:14px;background:#f7f9fd}.billingMoneyStrip dt,.billingMoneyStrip span{color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.billingMoneyStrip dd,.billingMoneyStrip strong{margin:0;font-size:18px;font-weight:800;color:var(--navy)}.billingMoneyStripOutstanding{background:#fff7e8!important;border-color:#f3d7a3!important}.billingMoneyStripOutstanding dd,.billingMoneyStripOutstanding strong{color:#9a6700}.billingMoneyStrip--compact{margin:12px 0}.billingMoneyStrip--compact dd,.billingMoneyStrip--compact strong{font-size:15px}.billingOutstandingCell,.billingOutstandingValue{font-weight:800;color:#9a6700}.billingPayerBalances{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-gap:8px;gap:8px}.billingPayerBalances li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;padding:12px 14px;border:1px solid #edf0f6;border-radius:14px;background:#f7f9fd}.billingPayerBalances strong{color:var(--navy)}.billingPayerBalances span{font-weight:800;color:#9a6700}.billingInvoiceHorse{margin-top:4px;color:var(--muted);font-size:12px;font-weight:600}.billingInvoiceActions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-end}.billingMarkPaidButton{min-height:40px;padding:8px 12px;border:0;border-radius:999px;background:#143c2b;color:white;font-size:13px;font-weight:750;cursor:pointer}.billingMarkPaidButton:hover{background:#1c513a}.billingInvoiceCards{display:none;list-style:none;margin:12px 0 0;padding:0;gap:12px}.billingInvoiceCard{display:grid;grid-gap:10px;gap:10px;padding:14px;border:1px solid #edf0f6;border-radius:16px;background:white;overflow-wrap:anywhere}.billingInvoiceCardTop{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.billingPaymentHistory{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-gap:10px;gap:10px}.billingPaymentHistory li{display:grid;grid-gap:4px;gap:4px;padding:12px 14px;border:1px solid #edf0f6;border-radius:14px;background:#f7f9fd}.billingPaymentHistoryDate{color:var(--muted);font-size:12px;font-weight:750}.billingFieldHint,.billingPaymentHelp{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.billingPaymentSummary{display:grid;grid-gap:8px;gap:8px;margin:0}.billingPaymentSummary>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf0f6}.billingPaymentSummary dt{color:var(--muted);font-size:12px;font-weight:750}.billingPaymentSummary dd{margin:0;font-weight:750;text-align:right}.billingMarkAmount{margin:0;padding:14px;border-radius:14px;background:#edf8f3;color:var(--success);font-size:22px;font-weight:800;text-align:center}.billingModal--payment{width:min(520px,100%);max-height:min(92vh,760px);overflow:auto}.billingModalOverlay{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-start;justify-content:center;padding:32px 16px;background:rgba(20,32,67,.45);overflow:auto}.billingModal{width:min(640px,100%);margin:auto;border-radius:20px;background:white;box-shadow:0 24px 80px rgba(20,32,67,.18)}.billingModalHeader{display:flex;justify-content:space-between;gap:16px;padding:22px 22px 0}.billingModalHeader h2{margin:4px 0 0;font-size:22px}.billingModalEyebrow{color:var(--blue);font-size:12px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.billingModalClose{border:0;background:transparent;color:var(--muted);font-size:22px;cursor:pointer}.billingModalForm{display:grid;grid-gap:14px;gap:14px;padding:18px 22px 22px}.billingModalForm label{display:flex;flex-direction:column;gap:7px}.billingModalForm span{font-size:12px;font-weight:750;color:var(--muted)}.billingModalForm input,.billingModalForm select,.billingModalForm textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);outline:none}.billingModalForm textarea{min-height:88px;resize:vertical}.billingModalForm input:focus,.billingModalForm select:focus,.billingModalForm textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.billingModalGrid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px}.billingCheckRow{display:flex;align-items:center;gap:10px;font-size:14px}.billingCheckRow input{width:18px;min-height:18px}.billingModalActions{display:flex;justify-content:flex-end;gap:10px;padding-top:8px}.billingDetailGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px}.billingTotals{margin-left:auto;width:min(320px,100%);display:grid;grid-gap:8px;gap:8px;padding:12px 0 0}.billingTotals div{display:flex;justify-content:space-between;gap:16px;font-size:14px}.billingTotals .billingGrand{font-weight:800;font-size:16px}@media (max-width:800px){.billingDetailGrid,.billingHeaderActions,.billingModalGrid2,.billingMoneyStrip{grid-template-columns:1fr}.billingHeaderActions{display:grid}.billingModalActions{flex-direction:column-reverse}.billingMarkPaidButton,.billingModalActions .uiButton{width:100%}.billingModal--payment{max-height:min(92vh,100%)}}@media (max-width:640px){.billingInvoiceTable{display:none}.billingInvoiceCards{display:grid}.billingInvoiceActions{justify-content:stretch}.billingInvoiceActions .textLink{min-height:40px;display:inline-flex;align-items:center}}@media (max-width:390px){.billingWorkspace{overflow-x:hidden}.billingMarkPaidButton,.billingModalForm input,.billingModalForm select,.billingModalForm textarea,.billingSearchField input,.careViewTab{min-height:44px}.billingPayerBalances li{flex-direction:column}}.billingWorkspace{overflow-x:hidden;max-width:1120px}.billingFilterTabs,.billingViewTabs{flex-wrap:nowrap;margin-bottom:18px;overflow-x:auto;-webkit-overflow-scrolling:touch}.billingWorkspaceBody{display:grid;grid-gap:16px;gap:16px}.billingMetricGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:12px;gap:12px}.billingMetricGrid .metricCard p{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.4;font-weight:600;text-transform:none;letter-spacing:0}.billingQuiet{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.billingInlineActions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.billingInlineActions .textLink,.billingInlineActions .uiButton{min-height:44px}.billingToolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center}.billingToolbarStat{margin:0;color:var(--muted);font-size:13px;font-weight:700}.billingSearchField{flex:1 1;min-width:min(100%,280px)}.billingSearchField input{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px}.billingAttentionList{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-gap:8px;gap:8px}.billingAttentionItem{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;padding:12px 14px;border:1px solid #edf0f6;border-radius:14px;background:#f7f9fd}.billingAttentionItem--urgent{background:#fff7e8;border-color:#f3d7a3}.billingStackList{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-gap:10px;gap:10px}.billingStackRow{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px;border:1px solid #edf0f6;border-radius:16px;background:white;overflow-wrap:anywhere}.billingStackMoney{display:grid;grid-gap:8px;gap:8px;justify-items:end;text-align:right}.billingInvoiceCards--always{display:grid}.billingDocumentHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.billingDocument--void{background:#f7f8fb}.billingDetailGrid dt{color:var(--muted);font-size:12px;font-weight:750}.billingDetailGrid dd{margin:4px 0 0;font-weight:750}.billingSrOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.billingQuietCheck{color:var(--muted);font-size:13px}.billingMobileList{display:none}.billingDesktopOnly{display:block}@media (max-width:1100px){.billingMetricGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:800px){.billingDetailGrid,.billingMetricGrid{grid-template-columns:1fr}.billingHeaderActions,.billingInlineActions,.billingToolbar{display:grid}.billingInlineActions .textLink,.billingInlineActions .uiButton,.billingToolbar .uiButton{width:100%}}@media (max-width:640px){.billingWorkspace{overflow-x:hidden}.billingDesktopOnly,.billingInvoiceTable{display:none}.billingInvoiceCards,.billingMobileList{display:grid}.billingInvoiceCard,.billingStackRow{align-items:stretch}.billingStackMoney{justify-items:stretch;text-align:left}.billingInvoiceCard .textLink,.billingStackRow .uiButton,.careViewTab{min-height:44px}}