#app .ee-section-hero{
 position:relative;isolation:isolate;display:flex;align-items:center;
 box-sizing:border-box;min-block-size:60px;padding:6px 14px;
 overflow:hidden;margin:0 0 8px;border-radius:12px;background:#002b4d;
}
#app .ee-section-hero img{
 position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
 opacity:.5;pointer-events:none;
}
#app .ee-section-hero::after{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 background:linear-gradient(90deg,#002b4dbc,#002b4d20);
}
#app .ee-section-hero h2{
 position:relative;z-index:1;margin:0!important;color:#ffe372!important;
 font:700 clamp(1.125rem,4.6vw,1.375rem)/1.1 system-ui,sans-serif;
 text-shadow:0 1px 2px #002b4d;
}
#app .ee-section-intro{margin:0 0 12px;color:#334155}
html.ee-native-ios #app .view.ee-has-hero{padding-top:8px!important}
html[dir=rtl] #app .ee-section-hero::after{background:linear-gradient(270deg,#002b4dbc,#002b4d20)}
@media(max-height:560px) and (orientation:landscape){
 #app .ee-section-hero{min-block-size:48px;padding-block:4px}
}

#app .ee-breeding-category{align-self:start}
#app .ee-breeding-category h3{display:flex;align-items:center;min-height:44px;margin:0 0 8px;padding:6px 12px;border-radius:10px;background:#facc15;color:#002b4d;font-size:1rem}
#app .ee-breeding-entry{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:48px;margin:0;padding:8px 12px;border:1px solid #e2e8f0;border-inline-start:4px solid #facc15;border-radius:10px;background:#f8fafc;color:#002b4d;font:600 .95rem/1.2 system-ui,sans-serif;text-align:start;overflow-wrap:anywhere}
#app summary.ee-breeding-entry{cursor:pointer;list-style:none}
#app summary.ee-breeding-entry::-webkit-details-marker{display:none}
#app summary.ee-breeding-entry::after{content:"";width:8px;height:8px;flex-shrink:0;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
#app details[open]>summary.ee-breeding-entry::after{transform:rotate(225deg)}
#app .ee-breeding-entry:is(button,summary):hover{background:#fff8d7}
#app .ee-breeding-entry-body{padding:8px 10px}
#app .ee-assigned-trainer-card{display:flex;align-items:stretch;min-width:0;min-height:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:.75rem;background:white;box-shadow:0 1px 2px #002b4d12}
#app .ee-assigned-trainer-card>[data-ee-horse-screen]{flex:1;min-width:0;border:0;box-shadow:none;margin:0}
#app .ee-assigned-trainer-card>[data-ee-trainer-contact]:not(.hidden){display:flex;align-items:center;padding-inline-end:4px}
#app .ee-trainer-whatsapp{display:inline-grid;place-items:center;box-sizing:border-box;width:40px;height:40px;padding:4px;margin:0;border:0;border-radius:10px;background:#e8fff0;text-decoration:none}
#app .ee-trainer-whatsapp:focus-visible{outline:2px solid #002b4d;outline-offset:-2px}
#app .ee-horse-profile .horse-request-row,
#app .ee-horse-profile-trainer,
#app .ee-horse-profile-notes,
#app .ee-horse-profile :is(.fei-record-box,.record,.ee-training-tab,.ee-training-entry,.ee-training-form),
#app #ee79-care > details{padding:10px 12px;border:1px solid #e2e8f0;border-inline-start:4px solid #facc15;border-radius:12px;background:#fff;color:#002b4d}
#app .ee-horse-profile .horse-request-row,
#app .ee-horse-profile-trainer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#app .ee-horse-profile :is(p,h3){margin:0}
#app .ee-horse-profile-notes p{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}

.ee-whatsapp-dialog{box-sizing:border-box;width:min(420px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid #d8e3ed;border-radius:18px;background:#fff;color:#002b4d;box-shadow:0 14px 40px #002b4d45;overflow:auto}
.ee-whatsapp-dialog::backdrop{background:#002b4d99}
.ee-whatsapp-heading{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:3px solid #facc15;background:#002b4d;color:#ffe372}
.ee-whatsapp-heading h2{flex:1;margin:0;color:inherit;font-size:1.12rem;line-height:1.25}
.ee-whatsapp-dialog svg{flex:none}
.ee-whatsapp-dialog .ee-whatsapp-close{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:10px;background:#facc15;color:#002b4d;font-size:1.5rem;line-height:1}
.ee-whatsapp-contacts{display:grid;gap:8px;padding:12px 14px 14px}
.ee-whatsapp-contacts p{margin:0;font-size:.875rem}
.ee-whatsapp-dialog .ee-whatsapp-contact{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border:1px solid #d8e3ed;border-inline-start:4px solid #facc15;border-radius:12px;background:#f3f7fb;color:#002b4d;font-weight:650;text-decoration:none;overflow-wrap:anywhere}
.ee-whatsapp-contact span{flex:1;min-width:0}
.ee-whatsapp-contact::after{content:"";flex:none;width:8px;height:8px;border:solid currentColor;border-width:2px 2px 0 0;transform:rotate(45deg)}
[dir=rtl] .ee-whatsapp-contact::after{transform:rotate(-135deg)}
.ee-whatsapp-dialog .ee-whatsapp-contact:hover{background:#fff4b8}
.ee-whatsapp-dialog :is(a,button):focus-visible{outline:2px solid #0872a8;outline-offset:2px}

/* Shared horse profile cards and compact notification screens. */
#app .ee-horse-profile .ee-training-head{margin-top:0;padding-top:0;border:0}
#app .ee-horse-profile .ee-training-tab{margin:0}
#app .ee-horse-profile .record dl{margin:8px 0}
#app .ee-breeding-category h3{background:#facc15!important;color:#002b4d!important}
#app .ee-breeding-category .ee-breeding-entry{background:#f8fafc!important;color:#002b4d!important;letter-spacing:normal;box-shadow:none;transform:none}
#app .ee-breeding-category .ee-breeding-entry:is(button,summary):hover{background:#fff8d7!important}
html #app #view-notifications.view.ee-has-hero{height:var(--ee-main-height,75vh);min-height:0;overflow:hidden;padding-bottom:6px!important}
#app #view-notifications:not(.hidden){display:flex;flex-direction:column;gap:6px}
#app #view-notifications .ee-section-hero{flex-shrink:0}
#app #view-notifications > .panel{min-height:0;margin:0;padding:8px}
#app #notificationOverview{overflow:auto}
#app #notificationOverview h3{margin:0 0 5px}
#app #notificationOverview button{margin:2px}
#app #notificationOverview .message:empty,#app #notificationMsg:empty{display:none}
#app #openNotificationHistory{display:block;margin-bottom:6px}
#app #notificationHistory:not(.hidden){display:flex;flex:1;flex-direction:column;gap:6px}
#app #notificationList{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}
#app #notificationList .record{margin:0 0 6px;padding:8px;overflow-wrap:anywhere}
#app #notificationList .record p{margin:2px 0;font-size:.8rem}
#app .ee-notice-actions:not(.hidden){display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px}
#app .ee-notice-actions h3{margin:0}
#app .ee-notice-actions button,#app #notificationList button{margin:0;padding:6px 8px;font-size:.8rem;min-height:36px}
#app #notificationMsg{margin:0}

#app .ee-horse-followup :is(details,.record){color:#002b4d}
#app .ee-horse-followup .ee-medication-logbook{margin:8px 0;padding:10px 12px;border:1px solid #e2e8f0;border-inline-start:4px solid #facc15;border-radius:12px;background:#fff}
#app .ee-horse-followup details>summary{cursor:pointer;font-weight:700}
#app .ee-medication-logbook[open]>summary{margin-bottom:8px}
#app .ee-medication-logbook dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 10px;margin:8px 0 0}
#app .ee-medication-logbook dd{margin:0;overflow-wrap:anywhere}
#app .ee-medication-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:8px;margin-block:8px}
#app .ee-medication-form label{margin:0}
#app .ee-medication-form :is(button,[role=status]){grid-column:1/-1}
