/* Enjoy Endurance V73 - unified iPhone interface. Only active inside Capacitor. */
html.ee-native-ios {
  --ee-ui-blue: #10283f;
  --ee-ui-deep: #0b2034;
  --ee-ui-gold: #f1c44e;
  --ee-ui-paper: #fffdfa;
  --ee-native-nav-h: 64px;
  background: var(--ee-ui-blue);
}
/* A single persistent, accessible bottom navigation: preserve every existing tab and role filter. */
/* Consistent navy page hero on all detail views, without nesting a second visual panel. */
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) {
  box-sizing:border-box;
  width:100%;
  flex:none;
  min-height:calc(100dvh - 62px - var(--ee-native-nav-h) - env(safe-area-inset-bottom,0px));
  max-height:none;
  overflow:visible;
  position:relative;
  padding:21px 13px 32px!important;
  background:#fbfaf7;
  isolation:isolate;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse):not(.ee-has-hero)::before {
  content:'';
  display:block;
  position:absolute;
  top:0;left:0;right:0;
  height:126px;
  z-index:-1;
  pointer-events:none;
  border-bottom:2px solid #d7ae5c;
  border-radius:0 0 36px 11px;
  background:linear-gradient(90deg,rgba(12,32,54,.99) 0%,rgba(16,40,63,.95) 62%,rgba(16,40,63,.72) 100%),url('./assets/hero-horse.jpg') center right/cover no-repeat;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) > .kicker{
  color:#eac46c!important;
  font-size:9px;
  letter-spacing:.14em;
  margin:0 0 5px;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) > h2 {
  font-family:Georgia,serif;
  font-size:clamp(26px,7vw,34px);
  line-height:1.16;
  font-weight:500;
  color:#fff!important;
  margin:1px 0 7px!important;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) > h2 + p {
  position:relative;
  color:#e8ebed!important;
  font-size:12px;
  line-height:1.35;
  margin:0 0 36px;
  max-width:90%;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) > h2:not(:has(+p)) {margin-bottom:55px!important;}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) > h2 + .panel {margin-top:53px;}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) > :is(.panel,.cards,.post,.table-wrap) {
  max-width:100%;
}
/* Flatten redundant nested surfaces while retaining functional components. */
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) .panel,
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) .post,
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) .table-wrap,
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) .horse-card{
  border:1px solid #eee8de;
  border-radius:15px;
  background:#fff;
  box-shadow:0 3px 12px #192f4110;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) .panel .panel,
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) .panel .table-wrap {
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  border-radius:0!important;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) :is(.post,.horse-card,.rider-entry) {margin-bottom:10px;}
/* Calendar: one seamless monthly grid, no bordered card inside another. */
html.ee-native-ios #app #view-calendar {padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))!important;}
html.ee-native-ios #app #view-calendar > section.panel {
  margin-top:0!important;
  padding:11px 8px 16px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html.ee-native-ios #app #view-calendar #stableCalendar,
html.ee-native-ios #app #view-riders .rider-calendar{
  margin:0!important;
  padding:8px 2px 10px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}
html.ee-native-ios #app .rider-cal-head {margin-bottom:15px;gap:8px;}
html.ee-native-ios #app .rider-cal-head strong,
html.ee-native-ios #app .rider-cal-head h3 {font-family:Georgia,serif;color:#10283f;font-weight:600;font-size:19px;}
html.ee-native-ios #app .rider-cal-head button{background:transparent!important;border:0!important;color:#132c47!important;box-shadow:none!important;}
html.ee-native-ios #app .rider-cal-grid{gap:2px;}
html.ee-native-ios #app .rider-cal-weekdays {margin-bottom:8px;color:#687780;}
html.ee-native-ios #app .rider-cal-day {
  min-height:clamp(40px,11vw,50px)!important;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  font-size:13px;
  box-shadow:none!important;
}
html.ee-native-ios #app .rider-cal-day.is-weekend {background:#f6f1e8;}
html.ee-native-ios #app button.rider-cal-day.has-race,
html.ee-native-ios #app button.rider-cal-day.race-weekend {background:#ffd75a!important;border-color:#e4bd48!important;color:#10283f!important;}
html.ee-native-ios #app .rider-cal-day.is-selected {outline:2px solid #10283f;outline-offset:0;}
html.ee-native-ios #app .rider-cal-legend{justify-content:space-around;margin-top:18px;font-size:10px;}
html.ee-native-ios #app .rider-cal-selection {border-top:1px solid #e8e1d3;}
/* Show the existing page's real content and preserve all role-based visibility. */
/* Private login and activation retain their original forms, under the same native navy header. */
html.ee-native-ios #login,html.ee-native-ios #setPassword{margin:15px 12px!important;}
@media(max-width:370px){
}
@media(prefers-reduced-motion:reduce){}


/* V74: typography refinement for native iOS private area; content and permissions unchanged. */
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) {
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) :is(h3,h4) {
  color:#142f47;
  font-weight:700;
  letter-spacing:-.018em;
  line-height:1.26;
  text-wrap:balance;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) h3 {font-size:clamp(17px,4.5vw,21px);}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) h4 {font-size:clamp(14px,3.7vw,17px);}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) :is(p,li) {line-height:1.55;}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) :is(.muted,small,.hint,.help-text) {line-height:1.5;letter-spacing:.006em;}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) :is(label,.label) {font-weight:600;letter-spacing:.008em;}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) :is(button,.btn) {font-weight:650;letter-spacing:.006em;}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) :is(.stat,.metric,.value,.amount) {font-variant-numeric:tabular-nums;}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) > h2 {
  font-size:clamp(27px,7.2vw,35px);
  font-weight:600;
  letter-spacing:-.026em;
  text-wrap:balance;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) > .kicker {
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.19em;
}
html.ee-native-ios #app .view:not(#view-home):not(#view-horse) > h2 + p {font-size:12.5px;line-height:1.5;}
@media(prefers-reduced-motion:no-preference) {
  html.ee-native-ios #app .view:not(#view-home):not(#view-horse) :is(button,.btn) {transition:background-color .16s ease,color .16s ease,border-color .16s ease;}
}
