: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}*{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)}.headerActions{display:flex;gap:10px;align-items:center}.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;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)}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:16px;gap:16px}.metricCard{padding:20px}.metricCard span{display:block;color:var(--muted);font-size:13px}.metricCard strong{display:block;margin:7px 0 4px;font-size:30px;letter-spacing:-.04em}.metricCard small{color:var(--success)}.grid2{display:grid;grid-template-columns:1.35fr 1fr;grid-gap:18px;gap:18px;margin-top:18px}.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}.horseRow:last-child{border-bottom:0}.horseRow:hover strong{color:var(--blue)}.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%}.horseRow strong{display:block;overflow-wrap:anywhere}.horseRow div span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.taskRow{display:grid;grid-template-columns:30px minmax(0,1fr) auto;grid-gap:10px;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0f6}.taskRow:last-child{border-bottom:0}.taskRow div{display:flex;flex-direction:column}.taskRow small,.taskRow>span:last-child{color:var(--muted);font-size:12px}.check{width:25px;height:25px;border:1px solid var(--border);border-radius:8px;display:grid;place-items:center}.check.done{border-color:var(--blue);background:var(--blue);color:white}@media (max-width:820px){.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}}.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}#documents,#health,#media,#overview,#ownership,#pedigree,#personality{scroll-margin-top:16px}.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}.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}}.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%}}.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%);margin:0 auto;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}}.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}.careTaskRow{display:grid;grid-template-columns:36px minmax(0,1fr) auto;grid-gap:14px;gap:14px;align-items:start;padding:14px 0;border-bottom:1px solid #edf0f6}.careTaskRow:last-child{border-bottom:0}.careTaskRow--done .careTaskMain strong{text-decoration:line-through;color:var(--muted)}.careCheck{width:28px;height:28px;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}.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:720px){.careFilters,.careModalGrid2{grid-template-columns:1fr}.careTaskRow{grid-template-columns:28px minmax(0,1fr)}.careTaskSide{grid-column:2;align-items:flex-start;text-align:left}.careModalActions{flex-direction:column-reverse}.careModalActions .uiButton{width:100%}}.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}}.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--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}.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){.billingMarkPaidButton,.billingModalForm input,.billingModalForm select{min-height:44px}.billingPayerBalances li{flex-direction:column}}.authPage{min-height:100vh;display:grid;grid-template-columns:minmax(360px,1fr) minmax(440px,.9fr);background:white}.authBrandPanel{min-height:100vh;padding:42px;color:white;display:flex;flex-direction:column;background:radial-gradient(circle at 80% 20%,rgba(255,255,255,.16),transparent 32%),linear-gradient(145deg,var(--blue) 0,var(--blue-darker) 100%)}.authBrand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:850;letter-spacing:-.03em}.authBrandMark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:white;color:var(--blue);font-size:22px;box-shadow:0 10px 25px rgba(5,19,62,.2)}.authBrandContent{max-width:610px;margin:auto 0;padding:70px 4vw 90px}.authEyebrow{margin:0 0 22px;color:#d8e2ff;font-size:12px;font-weight:800;letter-spacing:.14em}.authBrandContent h1{max-width:670px;margin:0;font-size:clamp(42px,5vw,70px);line-height:1.02;letter-spacing:-.055em}.authBrandContent>p:last-child{max-width:580px;margin:26px 0 0;color:#dbe4ff;font-size:17px;line-height:1.7}.authFormPanel{min-height:100vh;padding:38px;display:grid;place-items:center;background:#fbfcff}.authFormCard{width:min(440px,100%)}.authFormHeading{margin-bottom:30px}.authFormHeading h2{margin:0 0 9px;font-size:34px;letter-spacing:-.04em}.authFormHeading p{margin:0;color:var(--muted)}.authForm{display:flex;flex-direction:column;gap:18px}.authForm label>span{display:block;margin-bottom:7px;color:var(--text);font-size:13px;font-weight:750}.authForm input:not([type=checkbox]),.authForm select,.authForm textarea{width:100%;min-height:48px;padding:0 14px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text);outline:none;transition:border-color .16s ease,box-shadow .16s ease}.authForm textarea{min-height:110px;padding-top:13px;resize:vertical}.authForm input:not([type=checkbox]):focus,.authForm select:focus,.authForm textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.authFormOptions{display:flex;justify-content:flex-end;margin-top:-6px}.authFooterText a,.authFormOptions a{color:var(--blue);font-size:13px;font-weight:750}.authFooterText a:hover,.authFormOptions a:hover{color:var(--blue-dark)}.authError,.authSuccess{margin:0;padding:11px 13px;border-radius:11px;font-size:13px;line-height:1.5}.authError{border:1px solid #f4c9d0;background:var(--danger-soft);color:var(--danger-dark)}.authSuccess{border:1px solid #bfe3d2;background:var(--success-soft);color:var(--success)}.authFooterText{margin:24px 0 0;text-align:center}.authFooterText,.authHint{color:var(--muted);font-size:13px}.authHint{margin:-8px 0 0;line-height:1.45}.authFormHeadingRow{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.authCheckbox{display:grid;grid-template-columns:18px 1fr;grid-gap:10px;gap:10px;align-items:start;cursor:pointer}.authCheckbox input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--blue)}.authCheckbox span{margin:0!important;color:var(--muted)!important;font-weight:500!important;line-height:1.5}@media (max-width:1100px){.grid4,.horseCards,.moduleGrid{grid-template-columns:repeat(2,1fr)}}@media (max-width:900px){.authPage{grid-template-columns:1fr}.authBrandPanel{min-height:auto;padding:28px}.authBrandContent{padding:70px 0 55px}.authBrandContent h1{font-size:clamp(38px,10vw,58px)}.authFormPanel{min-height:auto;padding:60px 24px}}@media (max-width:820px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:16px 12px 12px}.navGroup{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:6px;gap:6px}.nav{min-height:40px;padding:8px 10px;align-items:flex-start;gap:8px}.nav>span:last-child{white-space:normal;line-height:1.25;font-size:13px}.sidebarFooter{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin-top:12px;padding:12px 8px 2px;gap:10px 12px}.sidebarAccount{flex:1 1 160px}.sidebarLogout{flex:0 0 auto;min-width:96px;margin-left:auto}.main{padding:20px;overflow-x:hidden}.grid2,.horseCards,.info,.pedigree{grid-template-columns:1fr}.topbar{flex-direction:column}.headerActions{width:100%;justify-content:flex-end;flex-wrap:wrap}}@media (max-width:520px){.grid4,.moduleGrid{grid-template-columns:1fr}.directoryTools{flex-direction:column}.profileHero{align-items:flex-start}.healthStrip{flex-direction:column}.main{padding:16px}.authFormPanel{padding:44px 18px}.sidebarFooter{gap:8px}.sidebarLogout{min-height:40px}}.ownerShell .ownerNav .nav{min-height:48px}.ownerFooter{flex-direction:column;align-items:stretch;gap:10px}.ownerFooter .lang{width:100%}.ownerLogout{min-height:44px;border:0;border-radius:11px;background:rgba(255,255,255,.12);color:white;font-weight:700;cursor:pointer}.ownerCardGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));grid-gap:16px;gap:16px}.ownerHorseCard{display:flex;flex-direction:row;align-items:flex-start;gap:14px;padding:16px}.ownerHorsePhoto{width:52px;height:52px;min-width:52px;min-height:52px;font-size:22px;line-height:1}.ownerHorseCardBody{min-width:0;flex:1 1;display:flex;flex-direction:column;gap:6px}.ownerHorseCard h3{margin:0;overflow-wrap:anywhere;font-size:18px}.ownerHorseIdentity{display:flex;align-items:center;gap:14px;min-width:0;margin:0 0 16px}.ownerHorseIdentity .ownerHorsePhoto{width:72px;height:72px;min-width:72px;min-height:72px;font-size:30px}.ownerHorseIdentity>div{min-width:0}.ownerHorseIdentity h2{margin:0 0 4px;overflow-wrap:anywhere;font-size:22px;letter-spacing:-.02em}.ownerMeta{color:var(--muted);font-size:13px}.ownerTabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.ownerTab{min-height:44px;padding:0 14px;border:1px solid #e4e9f4;border-radius:999px;background:white;color:var(--navy);font-weight:700;cursor:pointer}.ownerTabActive{background:var(--blue);border-color:var(--blue);color:white}.ownerInviteRow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ownerStatus{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:750;background:#eef2fb;color:var(--blue)}.ownerStatus--active{background:#edf8f3;color:var(--success)}.ownerStatus--invited{background:#fff7e8;color:#b54708}.ownerStatus--not_invited{background:#f3f4f6;color:#6b7280}.ownerInviteList{display:flex;flex-direction:column;gap:12px;margin-top:16px}.ownerInviteList .ownerInviteRow{justify-content:space-between}@media (max-width:820px){.ownerHorsePhoto{width:46px;height:46px;min-width:46px;min-height:46px;font-size:20px}.ownerHorseIdentity .ownerHorsePhoto{width:64px;height:64px;min-width:64px;min-height:64px;font-size:26px}.ownerShell .ownerNav{display:grid;grid-template-columns:repeat(3,1fr)}.ownerShell .sidebarFooter{display:flex}.ownerMain{padding:16px}.ownerTabs{overflow-x:auto;flex-wrap:nowrap}.ownerShell .billingTableWrap{overflow-x:auto;-webkit-overflow-scrolling:touch}}.docFilters{align-items:end;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.docFilters input{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:white;color:var(--text)}.docActions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.docCardList{display:none}.docCard{display:flex;flex-direction:column;gap:8px;margin-top:12px}.docCard h3{margin:0;font-size:18px}.docCard .docActions{justify-content:flex-start;margin-top:8px}.docCard .docActions .uiButton{min-height:44px}@media (max-width:820px){.docTableWrap{display:none}.docCardList{display:block}.docFilters{grid-template-columns:1fr}}.mediaGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));grid-gap:16px;gap:16px}.mediaTile{display:flex;flex-direction:column;overflow:hidden;padding:0}.mediaTilePreview{display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;background:#edf1f7;cursor:pointer}.mediaTileImage,.mediaTileVideo{width:100%;height:100%;object-fit:cover}.mediaTileVideo{display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--muted)}.mediaTileBody{display:flex;flex-direction:column;gap:8px;padding:14px}.mediaTileBody h3{margin:0;font-size:16px}.mediaBadges{display:flex;flex-wrap:wrap;gap:6px}.mediaTileBody .docActions{justify-content:flex-start}.mediaTileBody .docActions .uiButton{min-height:44px}.mediaViewerOverlay{align-items:center}.mediaViewer{width:min(960px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:16px;border-radius:16px;background:white}.mediaViewerImage,.mediaViewerVideo{display:block;width:100%;max-height:min(70vh,720px);margin-top:12px;background:#111;object-fit:contain}.ownerMediaGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));grid-gap:12px;gap:12px;margin-top:12px}@media (max-width:820px){.mediaGrid,.ownerMediaGrid{grid-template-columns:1fr}}.settingsCard{margin-top:18px}.settingsCard .sectionHead{margin-bottom:16px}.settingsForm{display:flex;flex-direction:column;gap:16px}.settingsLogoRow{display:flex;align-items:center;gap:16px;margin-bottom:18px}.settingsLogoPreview{width:72px;height:72px;min-width:72px;min-height:72px;border-radius:18px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#dfe8ff,#f3f6ff);font-size:28px;color:var(--blue)}.settingsLogoPreview img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}.settingsLogoActions{min-width:0;display:flex;flex-direction:column;gap:8px}.settingsLogoButtons{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.settingsLogoButtons .uiButton,.settingsLogoButtons label.uiButton{min-height:44px;cursor:pointer}.settingsReadOnly{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#eef2fb;color:var(--blue);font-size:12px;font-weight:750}.settingsHint{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.settingsInlineError{margin:0;color:#b42318;font-size:13px;font-weight:700}.settingsInlineSuccess{margin:0;color:var(--success);font-size:13px;font-weight:700}.settingsFacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px 18px;gap:12px 18px;margin:0 0 14px}.settingsFacts div{min-width:0}.settingsFacts dt{color:var(--muted);font-size:12px;font-weight:750}.settingsFacts dd{margin:4px 0 0;font-weight:750}.brandMark img{width:100%;height:100%;object-fit:cover;border-radius:11px}.sidebarFooter strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:820px){.settingsLogoPreview{width:64px;height:64px;min-width:64px;min-height:64px}.settingsFacts{grid-template-columns:1fr}.settingsCard .horseFormActions .uiButton{width:100%;min-height:44px}}