:root{--bg:#f2f0ea;--brand:#26382d;--red:#b00020;--yellow:#d8a600}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Arial,Helvetica,sans-serif;max-width:520px;margin:auto}
header{position:sticky;top:0;background:var(--brand);color:#fff;padding:12px;display:flex;justify-content:space-between;align-items:center}
button{font-family:inherit}.brand{background:none;border:0;color:#fff;font-weight:900;font-size:22px}.user{border:1px solid #ffffff55;background:#ffffff22;color:#fff;border-radius:18px;padding:8px 10px}
#bell{border:0;border-radius:20px;width:38px;height:38px;margin-right:6px;position:relative}.gray{filter:grayscale(1);opacity:.7}.yellow{background:#fff3c3}.red{background:#ffd6d6}.count{position:absolute;right:-4px;top:-4px;border-radius:20px;padding:2px 6px;background:var(--yellow);font-size:12px;font-weight:900}.red .count{background:var(--red);color:#fff}
main{padding:16px 16px 90px}h1{font-size:24px}.big,.small,.list{width:100%;background:#fff;border:1px solid #bbb;border-radius:16px;box-shadow:0 3px 10px #0002;font-weight:850}.big{min-height:88px;font-size:22px;margin:14px 0}.small{min-height:62px;font-size:17px;margin:10px 0}.list{text-align:left;font-size:17px;margin:8px 0;padding:14px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid .small{min-height:76px;margin:0}.card{background:#fff;border:1px solid #d5d0c7;border-radius:15px;padding:14px;margin:12px 0}.muted{color:#666;font-size:14px}.danger{color:var(--red);font-weight:900}.orange{color:#d87800;font-weight:900}.photo{float:right;width:92px;height:92px;border-radius:14px;background:#ddd;border:1px solid #bbb;display:flex;align-items:center;justify-content:center}.name{font-size:26px;font-weight:900}.row{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding:6px 0}.label{font-size:12px;color:#666;text-transform:uppercase;margin-top:8px}input,select,textarea{width:100%;font-size:17px;padding:12px;border:1px solid #bbb;border-radius:10px;margin:4px 0 10px}textarea{min-height:82px}.check{display:block;font-size:18px;padding:9px 0}.check input{width:22px;height:22px}.floatL{position:fixed;left:16px;bottom:14px;border-radius:999px;background:#fff;border:1px solid #bbb;padding:13px}.floatR{position:fixed;right:16px;bottom:14px;border-radius:50%;width:52px;height:52px;background:#fff;border:1px solid #bbb;font-size:22px}.noticeY{border-left:6px solid var(--yellow)}.noticeR{border-left:6px solid var(--red)}


/* Alpha 0.2 phone-first splash screen */
.home-screen{
  min-height:calc(100svh - 96px);
  display:flex;
  flex-direction:column;
  padding-bottom:54px;
}
.home-status{
  margin-top:auto;
  padding-top:8px;
  text-align:center;
  font-size:11px;
  color:#777;
}
.hero-photo-button,
.animal-photo-button{
  position:relative;
  display:block;
  width:100%;
  overflow:hidden;
  border:1px solid #9a8668;
  background:#e9e1d4;
  color:white;
  text-align:left;
  cursor:pointer;
}
.hero-photo-button{
  height:clamp(205px,32svh,285px);
  border-radius:17px;
  margin:2px 0 26px;
  box-shadow:0 2px 7px rgba(50,35,18,.14);
  background-image:
    linear-gradient(90deg,rgba(18,17,14,.77) 0%,rgba(18,17,14,.47) 30%,rgba(18,17,14,.08) 58%,rgba(18,17,14,.02) 100%),
    url("./events_collage.jpg");
  background-position:center;
  background-size:cover;
}
.hero-copy{
  position:absolute;
  left:17px;
  bottom:16px;
  width:48%;
  text-shadow:0 2px 5px rgba(0,0,0,.55);
}
.hero-title{
  display:block;
  font-size:clamp(35px,11vw,52px);
  line-height:.94;
  font-weight:900;
}
.hero-subtitle{
  display:block;
  margin-top:9px;
  font-size:clamp(13px,3.6vw,17px);
  line-height:1.18;
  color:#ead0a0;
  font-weight:700;
}
.animal-group{
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 2px 7px rgba(50,35,18,.12);
}
.animal-photo-button{
  height:clamp(76px,11.4svh,100px);
  border-radius:0;
  border-bottom-width:0;
  background-size:cover;
  background-position:center;
  box-shadow:none;
}
.animal-photo-button:last-child{border-bottom-width:1px}
.animal-photo-button.cows{background-image:url("./cows_button.jpg")}
.animal-photo-button.calves{background-image:url("./calves_button.jpg")}
.animal-photo-button.bulls{background-image:url("./bulls_button.jpg")}
.hero-photo-button:active,
.animal-photo-button:active{
  filter:brightness(.84);
  transform:translateY(1px);
}
@media(max-height:700px){
  .hero-photo-button{height:185px;margin-bottom:18px}
  .animal-photo-button{height:66px}
}


/* Alpha 0.3: locked artwork and phone-tested proportions */
.brand{
  display:flex;
  align-items:baseline;
  gap:0;
}
.brand-major{
  display:inline-block;
  font-size:1.25em;
  line-height:.8;
  font-weight:900;
}

.home-screen{
  min-height:calc(100svh - 96px);
  display:flex;
  flex-direction:column;
  padding-bottom:58px;
}

.hero-photo-button{
  position:relative;
  height:clamp(220px,32svh,292px);
  margin:2px 0 22px;
  border-radius:17px;
  border:1px solid #9a8668;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(18,17,14,.78) 0%,rgba(18,17,14,.50) 30%,rgba(18,17,14,.10) 57%,rgba(18,17,14,.02) 100%),
    url("./events_collage_approved.jpg") center/cover no-repeat;
  color:white;
  box-shadow:0 2px 7px rgba(50,35,18,.14);
}

.events-icon{
  position:absolute;
  left:18px;
  bottom:126px;
  width:58px;
  height:58px;
  color:white;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.events-icon svg{display:block;width:100%;height:100%}

.hero-copy{
  position:absolute;
  left:18px;
  bottom:18px;
  width:56%;
  text-shadow:0 2px 5px rgba(0,0,0,.6);
}
.hero-title{
  display:block;
  font-size:clamp(38px,12vw,58px);
  line-height:.92;
  font-weight:900;
}
.hero-subtitle{
  display:block;
  margin-top:10px;
  font-size:clamp(13px,3.65vw,17px);
  line-height:1.18;
  color:#ead0a0;
  font-weight:700;
}

.fixed-art-button{
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  line-height:0;
  cursor:pointer;
}
.fixed-art-button img{
  display:block;
  width:100%;
  height:auto;
}
.herd-art{
  margin:0 0 14px;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 2px 7px rgba(50,35,18,.12);
}
.animal-group{
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 2px 7px rgba(50,35,18,.12);
  background:#e9e1d4;
}
.animal-group .fixed-art-button + .fixed-art-button{
  border-top:1px solid #b6a181;
}
.fixed-art-button:active img,
.hero-photo-button:active{
  filter:brightness(.84);
}
.home-status{
  margin-top:auto;
  padding-top:9px;
  text-align:center;
  font-size:11px;
  color:#777;
}

@media(max-height:740px){
  .hero-photo-button{
    height:195px;
    margin-bottom:16px;
  }
  .events-icon{
    width:46px;
    height:46px;
    bottom:105px;
  }
  .hero-title{font-size:40px}
  .hero-subtitle{font-size:13px}
  .herd-art{margin-bottom:10px}
}


/* Alpha 0.4: artwork controls button height */
.fixed-art-button,
.fixed-art-button img{
  width:100%;
}
.fixed-art-button{
  height:auto !important;
  min-height:0 !important;
  overflow:visible;
}
.fixed-art-button img{
  display:block;
  height:auto !important;
  object-fit:contain !important;
}
.herd-art{
  height:auto !important;
  overflow:hidden;
}
.animal-group{
  height:auto !important;
  overflow:hidden;
}
.animal-group .fixed-art-button{
  height:auto !important;
}

/* Alpha 0.5 clean button sizing */
.herd-art{margin-bottom:18px!important}
.fixed-art-button,.fixed-art-button img{width:100%;height:auto!important;min-height:0!important}
.fixed-art-button img{display:block;object-fit:contain!important}
.animal-group{height:auto!important;overflow:hidden}
.animal-group .fixed-art-button + .fixed-art-button{border-top:2px solid #efe7da}


/* Alpha 0.6: all secondary splash buttons use the exact same dimensions */
.herd-art,
.animal-group .fixed-art-button{
  width:100% !important;
  aspect-ratio:1300 / 210 !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  overflow:hidden !important;
}

.herd-art img,
.animal-group .fixed-art-button img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:fill !important;
  margin:0 !important;
  padding:0 !important;
}

.herd-art{
  margin-bottom:18px !important;
}

.animal-group{
  height:auto !important;
  overflow:hidden !important;
}

.animal-group .fixed-art-button + .fixed-art-button{
  border-top:2px solid #efe7da !important;
}


/* Alpha 0.7 layered secondary buttons */
.secondary-photo-button{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  height:82px;
  padding:0;
  overflow:hidden;
  border:0;
  color:#fff;
  text-align:left;
  background-color:#7d6a50;
  background-repeat:no-repeat;
  background-size:cover;
  box-shadow:none;
}
.secondary-photo-button::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,
    rgba(22,18,13,.88) 0%,
    rgba(22,18,13,.75) 25%,
    rgba(22,18,13,.34) 46%,
    rgba(22,18,13,.06) 70%);
}
.herds-button{
  height:122px;
  margin-bottom:18px;
  border:1px solid #9a8668;
  border-radius:16px;
  background-image:url("./herds_photo.jpg");
  background-position:center 52%;
}
.cows-button{
  background-image:url("./cows_photo.jpg");
  background-position:72% center;
}
.calves-button{
  background-image:url("./calves_photo.jpg");
  background-position:88% center;
}
.bulls-button{
  background-image:url("./bulls_photo.jpg");
  background-position:90% center;
}
.secondary-icon{
  position:relative;
  z-index:1;
  flex:0 0 76px;
  width:76px;
  height:54px;
  margin-left:12px;
  padding-right:12px;
  border-right:2px solid rgba(255,255,255,.88);
  display:flex;
  align-items:center;
  justify-content:center;
}
.herds-button .secondary-icon{
  height:72px;
}
.secondary-icon svg{
  width:48px;
  height:48px;
  fill:none;
  stroke:currentColor;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.herds-button .secondary-icon svg{
  width:56px;
  height:56px;
}
.secondary-label{
  position:relative;
  z-index:1;
  margin-left:18px;
  font-size:26px;
  line-height:1;
  font-weight:900;
  letter-spacing:.5px;
  text-shadow:0 2px 4px rgba(0,0,0,.55);
}
.herds-button .secondary-label{
  font-size:32px;
}
.animal-group{
  border:1px solid #9a8668;
  border-radius:16px;
  overflow:hidden;
  background:#e9e1d4;
}
.animal-group .secondary-photo-button + .secondary-photo-button{
  border-top:2px solid #efe7da;
}
.secondary-photo-button:active{
  filter:brightness(.84);
}
@media(max-height:740px){
  .herds-button{height:108px;margin-bottom:14px}
  .secondary-photo-button{height:72px}
  .secondary-label{font-size:23px}
  .herds-button .secondary-label{font-size:29px}
}


/* HerdMark 0.8 — explicit splash-page adjustments */
.herds-button{
  height:154px !important;
  margin-bottom:20px !important;
  background-position:58% 52% !important;
}
.herds-button .secondary-icon{
  width:82px !important;
  flex-basis:82px !important;
  height:84px !important;
}
.herds-button .secondary-icon svg{
  width:60px !important;
  height:60px !important;
}
.herds-button .secondary-label{
  font-size:34px !important;
}
.calves-button{
  background-position:100% center !important;
}
.bulls-button{
  background-position:100% center !important;
}
.secondary-icon{
  width:76px !important;
  flex-basis:76px !important;
  height:56px !important;
  margin-left:12px !important;
  padding-right:12px !important;
}
.secondary-icon svg{
  width:48px !important;
  height:48px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:3 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}


/* HerdMark 0.9 — refined splash controls */
.home-screen{
  min-height:calc(100svh - 82px) !important;
  padding-bottom:48px !important;
}
.hero-photo-button{
  height:clamp(218px,27svh,252px) !important;
  margin-bottom:14px !important;
}
.events-icon{
  width:48px !important;
  height:48px !important;
  bottom:112px !important;
}
.hero-copy{
  bottom:15px !important;
}
.herds-button{
  height:142px !important;
  margin-bottom:12px !important;
  background-position:60% 52% !important;
}
.secondary-photo-button{
  height:76px !important;
}
.secondary-photo-button::before{
  background:linear-gradient(90deg,
    rgba(22,18,13,.82) 0%,
    rgba(22,18,13,.64) 24%,
    rgba(22,18,13,.24) 45%,
    rgba(22,18,13,.03) 66%) !important;
}
.secondary-content{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  height:100%;
  padding-left:14px;
}
.secondary-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 44px !important;
  width:44px !important;
  height:44px !important;
  margin:0 !important;
  padding:0 !important;
  border-right:0 !important;
  color:#fff;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.secondary-icon svg{
  width:40px !important;
  height:40px !important;
  fill:currentColor !important;
  stroke:none !important;
}
.secondary-label{
  margin-left:10px !important;
  font-size:23px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:.4px !important;
}
.herds-button .secondary-content{
  padding-left:16px;
}
.herds-button .secondary-icon{
  flex-basis:52px !important;
  width:52px !important;
  height:52px !important;
}
.herds-button .secondary-icon svg{
  width:50px !important;
  height:50px !important;
}
.herds-button .secondary-label{
  margin-left:12px !important;
  font-size:29px !important;
}
.cows-button{
  background-position:74% center !important;
}
.calves-button{
  background-position:100% center !important;
}
.bulls-button{
  background-position:100% center !important;
}
.home-status{
  padding-top:6px !important;
  font-size:10px !important;
}
.animal-group .secondary-photo-button + .secondary-photo-button{
  border-top:1px solid #e8dfd1 !important;
}
@media(max-height:780px){
  .hero-photo-button{
    height:205px !important;
    margin-bottom:10px !important;
  }
  .herds-button{
    height:124px !important;
    margin-bottom:9px !important;
  }
  .secondary-photo-button{
    height:68px !important;
  }
  .home-status{
    padding-top:4px !important;
  }
}


/* HerdMark 1.0 — authorized portrait-card splash page */
header{
  position:relative;
  background:
    linear-gradient(rgba(24,42,32,.78),rgba(24,42,32,.88)),
    url("./header_subtle.jpg") center/cover no-repeat !important;
}
.wordmark{
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:35px !important;
  font-weight:900 !important;
  letter-spacing:-1px !important;
  text-transform:none !important;
  text-shadow:0 2px 5px rgba(0,0,0,.35);
}
.home-screen{
  min-height:calc(100svh - 82px) !important;
  display:flex !important;
  flex-direction:column !important;
  padding-bottom:44px !important;
}
.hero-photo-button{
  height:190px !important;
  margin:0 0 11px !important;
}
.events-icon{
  width:42px !important;
  height:42px !important;
  bottom:105px !important;
}
.hero-copy{
  bottom:13px !important;
  width:58% !important;
}
.hero-title{
  font-family:Impact,"Arial Narrow",sans-serif !important;
  font-size:46px !important;
  letter-spacing:.4px !important;
}
.hero-subtitle{
  margin-top:7px !important;
  font-size:13px !important;
}
.herds-clean-button{
  position:relative;
  display:block;
  width:100%;
  height:126px;
  margin:0 0 12px;
  padding:0;
  border:1px solid #9a8668;
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  background:
    linear-gradient(90deg,rgba(21,18,13,.70) 0%,rgba(21,18,13,.45) 32%,rgba(21,18,13,.08) 68%),
    url("./herds_photo.jpg") center 52%/cover no-repeat;
  box-shadow:0 2px 7px rgba(50,35,18,.12);
  color:#fff;
}
.herds-clean-label{
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  font-family:Impact,"Arial Narrow",sans-serif;
  font-size:36px;
  letter-spacing:.5px;
  text-shadow:0 2px 4px rgba(0,0,0,.55);
}
.animal-card-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  width:100%;
}
.animal-card{
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  border-radius:13px;
  overflow:hidden;
  background:#1d1a16;
  box-shadow:0 2px 6px rgba(50,35,18,.16);
  cursor:pointer;
  line-height:0;
}
.animal-card img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:0.50 / 1;
  object-fit:cover;
}
.animal-card:active,
.herds-clean-button:active,
.hero-photo-button:active{
  filter:brightness(.84);
}
.home-status{
  margin-top:auto !important;
  padding-top:6px !important;
  font-size:10px !important;
}
footer .db,
footer .database,
footer button:last-child{
  font-family:Georgia,"Times New Roman",serif;
}
footer button:last-child{
  font-size:36px !important;
  line-height:1 !important;
}
@media(max-height:760px){
  .hero-photo-button{height:174px !important}
  .events-icon{bottom:94px !important}
  .herds-clean-button{height:112px !important;margin-bottom:9px !important}
  .animal-card-row{gap:6px}
  .home-status{padding-top:3px !important}
}


/* HerdMark 1.1 — unified visual system */
body{
  overflow-x:hidden;
}
header{
  position:sticky;
  top:0;
  z-index:20;
  height:96px;
  padding:8px 12px !important;
  background:#26382d !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.banner-brand{
  width:min(245px,calc(100vw - 158px));
  height:78px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.banner-brand img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:left center;
  border-radius:8px;
}
.header-actions{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
main{
  padding:12px 16px 74px !important;
}
.home-screen{
  min-height:0 !important;
  padding-bottom:0 !important;
}
.hero-photo-button{
  height:180px !important;
  margin:0 0 10px !important;
}
.hero-copy{
  left:18px !important;
  bottom:13px !important;
  width:64% !important;
}
.hero-title,
.herds-clean-label{
  font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif !important;
  font-weight:400 !important;
  letter-spacing:1px !important;
  color:#f3eadb !important;
  text-shadow:0 2px 5px rgba(0,0,0,.65) !important;
}
.hero-title{
  font-size:44px !important;
  line-height:.9 !important;
}
.hero-subtitle{
  margin-top:7px !important;
  max-width:240px;
  font-size:12px !important;
  line-height:1.16 !important;
  color:#ead0a0 !important;
}
.herds-clean-button{
  height:114px !important;
  margin:0 0 10px !important;
  background:
    linear-gradient(90deg,rgba(21,18,13,.66) 0%,rgba(21,18,13,.40) 34%,rgba(21,18,13,.06) 70%),
    url("./herds_photo_clean.jpg") center 52%/cover no-repeat !important;
}
.herds-clean-label{
  left:18px !important;
  font-size:34px !important;
}
.animal-card-row{
  gap:7px !important;
}
.home-status{
  margin-top:5px !important;
  padding-top:0 !important;
  font-size:10px !important;
}
.database-lasso-button{
  padding:0 !important;
  overflow:hidden;
  background:#171716 !important;
  border-color:#9a8668 !important;
}
.database-lasso-button img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
@media(max-width:380px){
  header{height:90px}
  .banner-brand{height:72px;width:min(220px,calc(100vw - 150px))}
  .hero-photo-button{height:170px !important}
  .herds-clean-button{height:106px !important}
  .hero-title{font-size:40px !important}
  .herds-clean-label{font-size:31px !important}
  .animal-card-row{gap:6px !important}
}


/* HerdMark 1.2 — baked navigation typography */
.hero-photo-button{
  background:
    url("./events_baked.jpg") center/cover no-repeat !important;
}
.hero-copy{
  left:70px !important;
  bottom:20px !important;
  width:250px !important;
}
.hero-title{
  display:none !important;
}
.hero-subtitle{
  margin:0 !important;
  max-width:245px !important;
  font-size:12px !important;
  line-height:1.15 !important;
}
.herds-clean-button{
  background:
    url("./herds_baked.jpg") center/cover no-repeat !important;
}
.herds-clean-label{
  display:none !important;
}
.database-lasso-button{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:7px !important;
}
.database-lasso-button img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}


/* HerdMark 1.3 — exact approved database lasso */
.database-lasso-button{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:5px !important;
  background:#141413 !important;
}
.database-lasso-button img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  border-radius:50% !important;
}


/* HerdMark 1.4 — consolidated approved splash-page corrections */
header{
  height:108px !important;
  padding:6px 10px !important;
  gap:6px !important;
  background:#26382d !important;
}
.banner-brand{
  width:min(276px,calc(100vw - 142px)) !important;
  height:94px !important;
  justify-content:center !important;
}
.banner-brand img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  border-radius:8px !important;
}
.header-actions{
  gap:2px !important;
}
main{
  padding:10px 16px 70px !important;
}
.home-screen{
  min-height:0 !important;
  padding-bottom:0 !important;
}
.hero-photo-button{
  width:100% !important;
  height:auto !important;
  aspect-ratio:1703 / 924 !important;
  margin:0 0 10px !important;
  padding:0 !important;
  background:url("./events_card_approved.jpg") center/100% 100% no-repeat !important;
  border-radius:17px !important;
}
.hero-copy,
.hero-title,
.hero-subtitle{
  display:none !important;
}
.herds-clean-button{
  width:100% !important;
  height:auto !important;
  aspect-ratio:1500 / 470 !important;
  margin:0 0 10px !important;
  padding:0 !important;
  background:url("./herds_card_approved.jpg") center/100% 100% no-repeat !important;
  border-radius:16px !important;
}
.herds-clean-label{
  display:none !important;
}
.animal-card-row{
  gap:7px !important;
}
.home-status{
  margin-top:5px !important;
  padding:0 !important;
  line-height:1 !important;
}
.database-lasso-button{
  width:62px !important;
  height:62px !important;
  padding:2px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#121211 !important;
  border:1px solid #8f7755 !important;
}
.database-lasso-button img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:50% !important;
}
@media(max-width:380px){
  header{
    height:100px !important;
    padding:5px 8px !important;
  }
  .banner-brand{
    width:min(245px,calc(100vw - 132px)) !important;
    height:88px !important;
  }
  main{
    padding:9px 14px 68px !important;
  }
  .animal-card-row{
    gap:6px !important;
  }
}


/* HerdMark 0.11 Phase 1 */
header{
  height:88px !important;
  padding:4px 9px !important;
  gap:6px !important;
}
.banner-brand{
  width:min(286px,calc(100vw - 136px)) !important;
  height:78px !important;
}
.banner-brand img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}
main{
  padding-bottom:92px !important;
}
.database-lasso-button{
  width:94px !important;
  height:66px !important;
  padding:4px !important;
  border-radius:12px !important;
  background:#121211 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.database-lasso-button img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  border-radius:8px !important;
}
.bottom-back{
  position:fixed;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  z-index:35;
  min-width:116px;
  min-height:48px;
  padding:10px 20px;
  border:1px solid #9a8668;
  border-radius:14px;
  background:#26382d;
  color:#f3eadb;
  box-shadow:0 3px 10px rgba(0,0,0,.22);
  font-size:16px;
  font-weight:800;
}
.notifications-overlay{
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.54);
}
.notifications-modal{
  width:min(440px,100%);
  max-height:min(76svh,650px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #9a8668;
  border-radius:18px;
  background:#f2f0ea;
  box-shadow:0 12px 36px rgba(0,0,0,.44);
}
.notifications-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px 10px;
  border-bottom:1px solid #d4cab9;
}
.notifications-head h2{margin:0}
.modal-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#26382d;
  color:#fff;
  font-size:26px;
}
.notifications-list{
  overflow:auto;
  padding:10px;
}
.notification-item{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin:8px 0;
  padding:10px;
  border-radius:12px;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.notification-open{
  border:0;
  background:transparent;
  text-align:left;
  padding:0;
}
.notification-open b,.notification-open span{display:block}
.notification-open span{margin-top:4px;color:#666;font-size:13px}
.notification-ack{
  align-self:center;
  min-height:40px;
  border:1px solid #9a8668;
  border-radius:10px;
  background:#fff;
  font-weight:700;
}
.notification-empty{
  padding:24px 10px;
  text-align:center;
  color:#666;
}
.clear-notifications{
  margin:0;
  min-height:52px;
  border:0;
  border-top:1px solid #d4cab9;
  background:#26382d;
  color:#fff;
  font-size:16px;
  font-weight:800;
}
@media(max-width:380px){
  header{height:82px !important}
  .banner-brand{
    height:72px !important;
    width:min(250px,calc(100vw - 128px)) !important;
  }
  .database-lasso-button{
    width:86px !important;
    height:60px !important;
  }
}


/* HerdMark 0.11 Candidate 2 */
header{
  height:84px !important;
  min-height:84px !important;
  padding:4px 10px !important;
  gap:8px !important;
}
.banner-brand{
  flex:1 1 auto !important;
  width:auto !important;
  max-width:none !important;
  height:74px !important;
  overflow:hidden !important;
}
.banner-brand img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:left center !important;
  border-radius:7px !important;
}
.header-actions{
  flex:0 0 auto !important;
  gap:6px !important;
}
.header-actions .user,
button.user{
  min-width:116px !important;
  max-width:150px !important;
  padding:10px 14px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
#bell{
  min-width:52px !important;
  min-height:52px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:50% !important;
  font-size:23px !important;
  position:relative !important;
}
#bell.gray{
  background:#eee3ca !important;
  color:#746f66 !important;
}
#bell.yellow{
  background:#fff2bd !important;
  color:#8a6300 !important;
}
#bell.red{
  background:#ffd8d5 !important;
  color:#9a241d !important;
}
.footer-nav-button{
  width:170px !important;
  height:62px !important;
  padding:8px 14px !important;
  border:1px solid #b9b6af !important;
  border-radius:31px !important;
  background:#fff !important;
  color:#111 !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;
  font-size:17px !important;
  font-weight:500 !important;
}
.footer-symbol{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:26px !important;
  min-width:26px !important;
  font-size:22px !important;
  line-height:1 !important;
}
.infinity-symbol{
  font-size:29px !important;
  font-family:Arial,Helvetica,sans-serif !important;
}
.floatL.footer-nav-button{
  left:16px !important;
}
.floatR.footer-nav-button{
  right:16px !important;
}
.database-lasso-button{
  display:none !important;
}
@media(max-width:390px){
  header{
    height:80px !important;
    min-height:80px !important;
    padding:4px 8px !important;
  }
  .banner-brand{
    height:70px !important;
  }
  .header-actions .user,
  button.user{
    min-width:104px !important;
    max-width:124px !important;
    padding:9px 10px !important;
  }
  #bell{
    min-width:48px !important;
    min-height:48px !important;
  }
  .footer-nav-button{
    width:150px !important;
    height:58px !important;
    font-size:16px !important;
  }
}


/* HerdMark 0.11 Candidate 2 Hotfix — footer/back-button separation */
main{
  padding-bottom:156px !important;
}
.bottom-back{
  bottom:86px !important;
}
@media(max-width:390px){
  main{
    padding-bottom:148px !important;
  }
  .bottom-back{
    bottom:80px !important;
  }
}


/* HerdMark 0.11 Candidate 2 Hotfix 2 — bell sizing */
#bell{
  min-width:42px !important;
  width:42px !important;
  min-height:42px !important;
  height:42px !important;
  font-size:20px !important;
}
@media(max-width:390px){
  #bell{
    min-width:40px !important;
    width:40px !important;
    min-height:40px !important;
    height:40px !important;
    font-size:19px !important;
  }
}


/* HerdMark 0.11 Candidate 2 Hotfix 3 — icon-only footer controls */
.footer-nav-button{
  display:none !important;
}
.footer-icon-button{
  width:62px !important;
  height:62px !important;
  padding:14px !important;
  border:1px solid #b9b6af !important;
  border-radius:50% !important;
  background:#fff !important;
  color:#26382d !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.footer-icon-button img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
.floatL.footer-icon-button{
  left:16px !important;
}
.floatR.footer-icon-button{
  right:16px !important;
}
@media(max-width:390px){
  .footer-icon-button{
    width:58px !important;
    height:58px !important;
    padding:13px !important;
  }
}


/* HerdMark 0.11 Candidate 2 Hotfix 4 — footer flow and scroll correction */

/* Default subpage behavior */
main{
  padding-bottom:150px !important;
}
.footer-icon-button{
  bottom:18px !important;
}

/* Home screen: footer controls participate in normal flow */
#app:has(.home-screen){
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  column-gap:16px !important;
  align-items:start !important;
}
#app:has(.home-screen) .home-screen{
  grid-column:1 / -1 !important;
}
#app:has(.home-screen) .footer-icon-button{
  position:static !important;
  transform:none !important;
  margin-top:14px !important;
  margin-bottom:10px !important;
  justify-self:start !important;
}
#app:has(.home-screen) .floatR.footer-icon-button{
  justify-self:end !important;
}
#app:has(.home-screen) .bottom-back{
  display:none !important;
}

/* Remove the extra fixed-footer reserve on Home */
main:has(.home-screen){
  padding-bottom:12px !important;
}

/* Status line gets its own breathing room above the controls */
#app:has(.home-screen) .home-status{
  margin-top:10px !important;
  margin-bottom:0 !important;
}

/* Avoid the slight vertical overflow caused by legacy fixed offsets */
html,body{
  min-height:100% !important;
}
body{
  overflow-x:hidden !important;
}

@media(max-width:390px){
  main{
    padding-bottom:144px !important;
  }
  main:has(.home-screen){
    padding-bottom:10px !important;
  }
  #app:has(.home-screen){
    column-gap:12px !important;
  }
  #app:has(.home-screen) .footer-icon-button{
    margin-top:12px !important;
    margin-bottom:8px !important;
  }
}


/* HerdMark 0.11 Candidate 2 Hotfix 5 — icon sizing and notification priority */
.footer-icon-button{
  width:50px !important;
  height:50px !important;
  padding:11px !important;
}
.footer-icon-button[aria-label="Database"]{
  padding:9px !important;
}
#bell{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  padding:8px !important;
  border-radius:50% !important;
  background:#eee3ca !important;
  color:#4f554f !important;
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#bell .bell-svg{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
#bell .count{
  position:absolute !important;
  top:-4px !important;
  right:-5px !important;
  min-width:20px !important;
  height:20px !important;
  padding:0 5px !important;
  border-radius:10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:11px !important;
  font-weight:800 !important;
  line-height:1 !important;
  border:2px solid #26382d !important;
  color:#1c1c1c !important;
}
#bell .count.unread{
  background:#f2c94c !important;
}
#bell .count.urgent{
  background:#d6453d !important;
  color:#fff !important;
}
#bell.none{
  background:#eee3ca !important;
}
@media(max-width:390px){
  .footer-icon-button{
    width:50px !important;
    height:50px !important;
  }
  #bell{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    padding:7px !important;
  }
}
