
:root{
  --green:#5E7350;
  --green-dark:#304B38;
  --green-soft:#EEF2E9;
  --gold:#C5921A;
  --amber:#E59200;
  --red:#E23B33;
  --bg:#F8F7F3;
  --paper:#FFFFFF;
  --text:#243028;
  --muted:#737C76;
  --line:#EAE9E3;
  --header:58px;
  --nav:66px;
  --safe:max(4px,env(safe-area-inset-bottom));
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#F2F0EA;color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app{width:100%;max-width:393px;min-height:100dvh;margin:0 auto;position:relative;background:#FBFAF7;overflow:hidden}

/* HEADER */
.topbar{
  position:fixed!important;
  top:0!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  z-index:3000!important;
  width:min(100vw,393px)!important;
  height:var(--header)!important;
  display:grid;
  grid-template-columns:48px 1fr 48px;
  align-items:center;
  padding:0 6px;
  background:rgba(251,250,247,.985);
  border-bottom:0;
}
.brand{
  display:flex;align-items:center;justify-content:center;gap:5px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;font-weight:700;color:#31583A;
}
.brand-hive{display:grid;place-items:center}
.brand-hive .icon{width:20px;height:20px}
.pagebar-title{text-align:center;font-size:14px;font-weight:800;color:#1E2822}
.iconbtn{width:40px;height:40px;border:0;background:transparent;color:#304B38;display:grid;place-items:center;position:relative;font-size:24px}
.iconbtn .icon{width:18px;height:18px}
.plusbtn{font-size:24px}
.badge{position:absolute;right:3px;top:4px;min-width:16px;height:16px;border-radius:999px;background:#F04A3F;color:#fff;display:grid;place-items:center;font-size:8px;font-weight:800}

/* CONTENT */
.view{min-height:100dvh;padding:calc(var(--header) + 8px) 9px calc(var(--nav) + var(--safe) + 10px)}
.view.secondary{padding-bottom:18px}
.screen{display:flex;flex-direction:column;gap:8px}

/* BOTTOM NAV */
.bottomnav{
  position:fixed!important;left:50%!important;bottom:0!important;transform:translateX(-50%)!important;
  width:min(100vw,393px)!important;height:calc(var(--nav) + var(--safe));z-index:3000!important;
  display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:var(--safe);
  background:rgba(255,254,251,.99);border-top:1px solid #E8E7E1;box-shadow:0 -5px 18px rgba(43,54,47,.03)
}
.bottomnav.hidden{display:none}
.navitem{position:relative;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#737B76;font-size:7px}
.navitem .icon{width:17px;height:17px}
.navitem.active{color:#315A36;font-weight:800}
.navitem.active:after{content:"";position:absolute;bottom:5px;width:23px;height:2.5px;border-radius:999px;background:#315A36}
.nav-badge{position:absolute;top:5px;left:54%;width:14px;height:14px;border-radius:50%;display:grid;place-items:center;background:#F04A3F;color:#fff;font-size:7px;font-style:normal}

/* HOME MASTER */
.home-overview-master,.master-block,.quick-master{
  background:#fff;border:1px solid #EFEEE9;border-radius:10px;box-shadow:none
}
.home-overview-master{padding:9px 10px 0;overflow:hidden;position:relative}
.master-section-title{font-size:11px;font-weight:800;color:#172018}
.mini-info{display:inline-grid;place-items:center;width:11px;height:11px;border:1px solid #AEB4B0;border-radius:50%;font-size:6px;color:#8C938E}

.overview-grid-master{position:relative;display:grid;grid-template-columns:50% 50%;min-height:170px;margin-top:1px;overflow:hidden}
.overview-grid-master>.landscape-master{position:absolute!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:68px!important;z-index:0!important;overflow:hidden}
.overview-grid-master>.landscape-master img{width:100%;height:100%;display:block;object-fit:cover;object-position:center bottom}
.overview-left-master{position:relative;z-index:2;height:150px}
.health-donut-master{position:relative;width:113px;height:113px;margin:3px auto 0;z-index:4}
.health-donut-master svg{width:113px;height:113px;transform:rotate(-90deg)}
.donut-track{fill:none;stroke:#E4E8DF;stroke-width:8}
.donut-progress{fill:none;stroke:var(--green);stroke-width:8;stroke-linecap:round}
.donut-label{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.donut-label strong{font-size:30px;line-height:.9;letter-spacing:-1.2px;color:#214B2C}
.donut-label strong small{font-size:15px}
.donut-label b{margin-top:5px;font-size:10px;color:#3E703D}
.donut-label span{margin-top:2px;font-size:6px;color:#6F7973}
.overview-stats-master{position:relative;z-index:3}
.overview-stats-master button{height:35px;padding:0;display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:4px;border:0;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9);text-align:left;color:var(--text)}
.overview-stats-master button:last-child{border-bottom:0}
.overview-stats-master span{font-size:7px}
.overview-stats-master b{font-size:11px}
.stat-icon{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:#315A36}
.stat-icon .icon{width:12px;height:12px}
.stat-dot{width:7px;height:7px;border-radius:50%;margin-left:8px}
.stat-dot.green{background:#34733C}.stat-dot.amber{background:#F09B00}.stat-dot.red{background:#F22222}
.overview-stats-master b.green{color:#3B743F}.overview-stats-master b.amber{color:#EA8B00}.overview-stats-master b.red{color:#E82020}

.view-hives-master{width:calc(100% + 20px);margin-left:-10px;height:44px;padding:5px 9px;display:grid;grid-template-columns:31px 1fr auto;align-items:center;gap:7px;border:0;border-top:1px solid var(--line);background:#fff;text-align:left;color:var(--text)}
.view-hives-master i{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:#315A36}
.view-hives-master i .icon{width:15px;height:15px}.view-hives-master b{display:block;font-size:8px}.view-hives-master small{display:block;margin-top:2px;font-size:5.8px;color:#707A74}.view-hives-master em{font-style:normal;font-size:15px;color:#667069}

.master-block{padding:8px 9px}
.master-title-action{display:flex;align-items:center;justify-content:space-between}
.master-title-action button{border:0;background:transparent;color:#35613C;font-size:6.7px;font-weight:700;padding:0}
.action-main-master{height:46px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:6px;margin-top:2px}
.action-icon-master{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:var(--green-soft);color:#315A36}.action-icon-master .icon{width:17px;height:17px}
.action-main-master span b{display:block;font-size:8px}.action-main-master span small{display:block;margin-top:2px;font-size:5.7px;color:#747D77}
.action-main-master button{height:31px;padding:0 10px;border:0;border-radius:8px;background:linear-gradient(135deg,#D4A014,#EC9A00);color:#fff;font-size:7px;font-weight:800}
.action-foot-master{height:27px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:4px;font-size:5.5px;color:#6D7770}.action-foot-master b{color:#D88400}.action-foot-master button{border:0;background:transparent;color:#D88400;font-size:5.5px;font-weight:700}

.risk-scroll-master{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:5px -9px 0;padding:0 9px}
.risk-scroll-master::-webkit-scrollbar{display:none}
.risk-card-master{flex:0 0 24%;height:84px;padding:6px 5px;position:relative;display:grid;grid-template-columns:22px 1fr;grid-template-rows:auto 1fr auto;gap:2px 3px;scroll-snap-align:start;border:1px solid #F2DDD8;border-radius:9px;background:#FFFDFC;text-align:left;color:var(--text)}
.risk-card-master>i{grid-row:1/3;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:10px;font-weight:900}.risk-card-master>i.risk-red{background:#FFF0ED;color:#E1332C}.risk-card-master>i.risk-amber{background:#FFF5E5;color:#DB8500}
.risk-card-master span b{display:block;font-size:6.8px}.risk-card-master span small{display:block;margin-top:2px;font-size:5px;line-height:1.2}.risk-card-master strong{grid-column:2;justify-self:start;padding:2px 4px;border-radius:999px;font-size:4.8px}.risk-card-master strong.risk-red{background:#FFF0ED;color:#D62F28}.risk-card-master strong.risk-amber{background:#FFF5E5;color:#D88300}.risk-card-master em{position:absolute;right:4px;bottom:4px;font-style:normal;font-size:10px}
.dots-master{height:9px;display:flex;justify-content:center;align-items:end;gap:4px}.dots-master i{width:3.5px;height:3.5px;border-radius:50%;background:#E0DED8}.dots-master i.on{background:#35673B}

.season-scroll-master{display:flex;gap:0;overflow-x:auto;scrollbar-width:none;margin:4px -9px 0;padding:0 9px}
.season-scroll-master::-webkit-scrollbar{display:none}
.season-scroll-master button{flex:0 0 25%;height:84px;padding:5px;border:0;border-right:1px solid #ECEAE4;background:transparent;text-align:left;color:var(--text);display:flex;flex-direction:column;align-items:flex-start}
.season-scroll-master i{height:18px;color:#315A36;font-size:12px;font-style:normal;display:grid;place-items:center}.season-scroll-master i .icon{width:13px;height:13px}.season-scroll-master b{font-size:6px}.season-scroll-master span{margin-top:2px;padding:2px 4px;border-radius:999px;background:#EEF3E9;color:#42703F;font-size:4.8px}.season-scroll-master span.amber{background:#FFF3DF;color:#D27D00}.season-scroll-master small{margin-top:3px;font-size:4.8px;line-height:1.2}.season-scroll-master em{margin-top:auto;font-size:4.8px;color:#315A36;font-style:normal;font-weight:700}

.quick-master{padding:7px 5px 3px}.quick-grid-master{display:grid;grid-template-columns:repeat(5,1fr);margin-top:3px}.quick-grid-master button{height:63px;padding:3px;border:0;border-right:1px solid #ECEAE4;background:transparent;text-align:center;color:var(--text)}.quick-grid-master button:last-child{border-right:0}.quick-grid-master i{width:26px;height:26px;margin:0 auto 2px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:#315A36;font-style:normal;font-size:11px}.quick-grid-master i .icon{width:14px;height:14px}.quick-grid-master b{display:block;font-size:5.8px}.quick-grid-master small{display:block;margin-top:1px;font-size:4.2px;line-height:1.2;color:#737D77}

/* HIVES - EXACT MASTER DIRECTION: NO PHOTOS */
.hives-master-locked{gap:9px}
.search-master-locked{height:36px;display:flex;align-items:center;gap:6px;padding:0 10px;border-radius:8px;background:#F0F1ED}
.search-master-locked input{width:100%;height:34px;border:0;background:transparent;outline:0;font-size:8px;color:var(--text)}
.filter-master-locked{display:flex;gap:6px;overflow:auto;scrollbar-width:none}.filter-master-locked::-webkit-scrollbar{display:none}
.filter-master-locked button{white-space:nowrap;height:27px;padding:0 9px;border:0;border-radius:8px;background:#F0F1ED;color:#68716B;font-size:6.3px}.filter-master-locked button.active{background:#5E7350;color:#fff}
.hive-list-master-locked{display:grid;gap:8px}
.hive-card-master-locked{position:relative;height:94px;padding:11px 38px 10px 10px;display:grid;grid-template-columns:48px 1fr;gap:9px;border:1px solid #EBE9E3;border-radius:11px;background:#fff;text-align:left;color:var(--text)}
.hive-score-ring-locked{--ring:#5E7350;width:45px;height:45px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(var(--ring) calc(var(--p)*1%),#E7EBE4 0)}
.hive-score-ring-locked:after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}
.hive-score-ring-locked span{position:relative;z-index:1;font-size:8.5px;font-weight:800}
.hive-score-ring-locked.good{--ring:#5E7350}.hive-score-ring-locked.attention{--ring:#F0A000}.hive-score-ring-locked.critical{--ring:#E63B35}
.hive-info-locked>b{display:block;font-size:8px}.hive-info-locked>small{display:block;margin-top:3px;font-size:5.6px;color:#737D77}
.hive-mini-metrics-locked{display:flex;gap:12px;margin-top:5px;font-size:5.2px}
.hive-status-locked{position:absolute;right:10px;top:10px;font-size:6px}.hive-status-locked.good{color:#47723E}.hive-status-locked.attention{color:#DA8400}.hive-status-locked.critical{color:#DD312A}
.hive-menu-locked{position:absolute;right:10px;bottom:9px;font-size:10px;font-weight:800}

/* GENERIC EXISTING SCREENS */
.h1{font-size:16px;font-weight:800}.h2{font-size:11px;font-weight:800}.h3{font-size:9px;font-weight:800}.small{font-size:8px}.tiny{font-size:6px}.muted{color:#737D77}
.card,.setting{background:#fff;border:1px solid #EAE9E3;border-radius:10px;box-shadow:none}.pad,.setting{padding:9px}
.btn{min-height:34px;border:0;border-radius:8px;padding:7px 10px;font-size:7px;font-weight:800}.primary{background:#315A36;color:#fff}.secondarybtn{background:#EDF2E8;color:#315A36}.goldbtn{background:#C5921A;color:#fff}.dangerbtn{background:#FFF0ED;color:#B43A32}.block{width:100%}
.pill{min-height:20px;padding:3px 6px;border-radius:999px;background:#EDF2E8;border:0;color:#315A36;font-size:6px}.pill.warn{background:#FFF4DF;color:#C77700}.pill.danger{background:#FFF0ED;color:#C43830}
.row{display:flex;align-items:center;gap:6px}.between{justify-content:space-between}.grow{flex:1}.chev{font-size:13px}
input,select,textarea{width:100%;min-height:37px;border:1px solid #DDE0DA;border-radius:8px;padding:7px 8px;background:#fff;color:var(--text);font-size:9px;outline:none}textarea{min-height:70px}.formgroup{margin-bottom:7px}label{display:block;margin-bottom:3px;font-size:6px;font-weight:700;color:#6F7973}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;border-radius:8px;background:#ECEDE8}.tab{height:30px;border:0;border-radius:6px;background:transparent;color:#657069;font-size:6.5px}.tab.active{background:#5E7350;color:#fff}
.modal{position:fixed;inset:0;z-index:4000;display:grid;place-items:end center;background:rgba(31,40,35,.45)}.modalpanel{width:min(393px,100%);max-height:94vh;overflow:auto;background:#FFFDF9;border-radius:15px 15px 0 0;padding:11px}
.toast{position:fixed;left:50%;bottom:78px;z-index:5000;transform:translateX(-50%);opacity:0;padding:7px 10px;border-radius:999px;background:#26312A;color:#fff;font-size:7px}.toast.show{opacity:1}

/* AUTH */
.auth-page{max-width:350px;margin:18px auto}.auth-card{padding:13px;background:#fff;border:1px solid #EAE9E3;border-radius:12px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:#ECEDE8;border-radius:8px;margin-bottom:10px}.auth-tab{height:34px;border:0;border-radius:6px;background:transparent;font-size:8px}.auth-tab.active{background:#fff;color:#315A36}
.social-btn{width:100%;height:40px;border-radius:9px;border:1px solid #DADDD8;background:#fff;display:flex;align-items:center;justify-content:center;gap:6px;font-size:8px;font-weight:700}
.auth-link,.legal-link{color:#315A36}

@media(max-width:393px){
  .topbar,.bottomnav{left:0!important;transform:none!important;width:100%!important}
}


/* ===== V36 CLEAN SELECTOR COMPLETION ===== */
.body{display:block}
.home-master,.master-screen{display:flex;flex-direction:column;gap:9px}
.empty-master{padding:16px;border:1px dashed var(--line);border-radius:10px;text-align:center;color:#747D77;font-size:6px}
.searchrow{height:38px;display:flex;align-items:center;gap:6px;padding:0 10px;border-radius:9px;background:#F1F2EF}
.searchrow input{border:0;background:transparent}
.modalhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.modalhead b{font-size:10px}.modalhead button{border:0;background:transparent;font-size:18px;color:#315A36}
.sectionlabel{margin:2px 2px 5px;font-size:5px;letter-spacing:.08em;color:#7B837E;font-weight:800;text-transform:uppercase}
.card-button{cursor:pointer}

/* Auth */
.auth-brand{text-align:center;margin-bottom:10px}.auth-logo{width:54px;height:54px;margin:0 auto 7px;border-radius:16px;display:grid;place-items:center;background:#EEF3E9;color:#315A36}.auth-logo .icon{width:28px;height:28px}.auth-title{font-size:18px;font-weight:800;color:#315A36}.auth-security{margin-top:8px;font-size:5.5px;color:#737D77;text-align:center}.auth-divider{display:flex;align-items:center;gap:8px;margin:10px 0;color:#8A918C;font-size:5px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#ECEAE4}.auth-legal{margin-top:10px;font-size:5px;line-height:1.5;color:#737D77;text-align:center}.social-icon,.google-mark,.microsoft-mark{width:18px;height:18px;display:grid;place-items:center}.google,.microsoft,.apple{display:flex;align-items:center;justify-content:center}.other-login{margin-top:8px}.other-login-toggle{width:100%;height:34px;border:1px solid #DDE1DA;border-radius:8px;background:#fff;color:#315A36;font-size:6px}.toggle-chevron{font-size:10px;margin-left:4px}

/* Actions */
.actions-screen{gap:9px}.actionlist,.upcoming-list{display:grid;gap:8px}.actioncard{padding:9px;border:1px solid #ECEAE4;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(43,54,47,.018)}.actioncard.high{background:#FFF7F5}.actioncard.medium{background:#FFFBF2}.action-title{font-size:7.5px;font-weight:800}.action-reason{font-size:5.2px;color:#737D77;margin-top:2px}.actions-summary-master{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.action-master{padding:8px;border:1px solid #ECEAE4;border-radius:10px;background:#fff}.action-button{height:31px;padding:0 10px;border:0;border-radius:8px;background:#C5921A;color:#fff;font-size:6px;font-weight:800}

/* Hives */
.mini-ring-master{--ring:#5E7350;width:45px;height:45px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(var(--ring) calc(var(--p)*1%),#E7EBE4 0)}.mini-ring-master:after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.mini-ring-master span{position:relative;z-index:1;font-size:8.5px;font-weight:800}.mini-ring-master.good{--ring:#5E7350}.mini-ring-master.attention{--ring:#F0A000}.mini-ring-master.critical{--ring:#E63B35}.score{font-weight:800;color:#315A36}.hives-subnav-master{display:none}

/* Detail */
.detail-master{gap:0}.detail-hero-master{position:relative;height:112px;overflow:hidden;border-radius:9px}.detail-photo-master,.detail-photo-master svg{width:100%;height:100%}.detail-name-master{position:absolute;left:112px;top:38px}.detail-name-master b{display:block;font-size:7.2px}.detail-name-master small{font-size:5.1px;color:#5D665F}.detail-ring-master{position:absolute;right:15px;top:12px;width:47px;height:47px}.detail-status-master{position:absolute;right:23px;top:63px;font-size:5px;color:#47723E}.detail-dates-master{height:31px;display:flex;align-items:center;justify-content:space-between;padding:0 4px;border-bottom:1px solid #ECEAE4;font-size:4.7px;color:#737D77}.detail-metrics-master{display:grid;grid-template-columns:repeat(5,1fr);padding:8px 0;border-bottom:1px solid #ECEAE4}.detail-metrics-master div{text-align:center}.detail-metrics-master i{display:block;font-style:normal;color:#52744A;font-size:12px}.detail-metrics-master b{display:block;font-size:5.1px}.detail-metrics-master small{display:block;margin-top:2px;font-size:4.6px;color:#47723E}.detail-section-master{padding:9px 0;border-bottom:1px solid #ECEAE4}.detail-actions-master{display:flex;gap:6px}.trend-master{width:100%;height:95px}.photos-master{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px}.photos-master>div,.photos-master>button{height:50px;border:0;border-radius:7px}.record-master{width:100%;display:grid;grid-template-columns:24px 1fr auto;gap:6px;align-items:center;padding:7px 0;border:0;background:transparent;text-align:left;color:#263129}

/* Form / inspection */
.form-master{display:flex;flex-direction:column;gap:8px}.form-header-master{padding-bottom:7px;border-bottom:1px solid #ECEAE4}.form-hive-master{padding:8px;border:1px solid #ECEAE4;border-radius:9px;background:#F8F8F4}.fields-master{display:grid;gap:0}.fields-master>div{min-height:38px;border-bottom:1px solid #ECEAE4}.quick-entry-master{padding:8px;border-radius:9px;background:#F7F8F4}.quick{color:#315A36;font-weight:700}.qbtn{height:28px;padding:0 8px;border:0;border-radius:7px;background:#EEF3E9;color:#315A36;font-size:5.5px}.emo{font-style:normal}
.inspection-screen{gap:8px}.inspection-hive-summary{padding:8px 9px}.inspection-hive-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#EEF3E9;color:#315A36}.inspection-hive-icon .icon{width:15px;height:15px}.quick-entry-card{padding:8px 9px}.inspection-mic{font-size:13px;color:#315A36}.inspection-fields{padding:0 9px}.inspection-field-row,.inspection-slider-row{min-height:37px;display:grid;align-items:center;border-bottom:1px solid #ECEAE4;color:#263129}.inspection-field-row{grid-template-columns:1fr auto 12px}.inspection-slider-row{grid-template-columns:88px 1fr 38px 12px;gap:7px}.inspection-field-row span,.inspection-slider-row span{font-size:5.8px}.inspection-field-row b,.inspection-slider-row b{font-size:5.5px;color:#315A36;font-weight:700;text-align:right}.inspection-field-row em,.inspection-slider-row em{font-size:9px;color:#707973;font-style:normal;text-align:right}.inspection-slider{position:relative;height:1px;background:#D7DBD5}.inspection-slider i{position:absolute;top:-3px;width:7px;height:7px;border-radius:50%;background:#315A36}.inspection-save-btn{margin-top:2px}

/* Timeline */
.timeline-master-screen{gap:7px}.timeline-search-master{height:34px;display:flex;align-items:center;gap:5px;padding:0 9px;border-radius:7px;background:#F1F2EF}.timeline-search-master input{height:32px;min-height:32px;border:0;background:transparent;padding:0}.timeline-filter-master{display:flex;gap:5px;overflow:auto}.timeline-filter-master button{height:25px;padding:0 8px;border:0;border-radius:7px;background:#F1F2EF;color:#68716B;font-size:5px;white-space:nowrap}.timeline-filter-master button.active{background:#5E7350;color:#fff}.timeline-list-master{display:grid;gap:0}.timeline-row-master{position:relative;display:grid;grid-template-columns:34px 15px 1fr;min-height:78px}.timeline-date-master{font-size:5px;padding-top:4px;color:#5E6761}.timeline-line-master{position:relative}.timeline-line-master:before{content:"";position:absolute;left:7px;top:0;bottom:0;width:1px;background:#DDE2DC}.timeline-line-master i{position:absolute;left:3.5px;top:7px;width:8px;height:8px;border-radius:50%;background:#315A36}.timeline-line-master i.amber{background:#E79200}.timeline-event-master{padding:4px 0 9px;border:0;border-bottom:1px solid #ECEAE4;background:transparent;text-align:left;color:#263129}.timeline-event-head{display:flex;justify-content:space-between;gap:8px}.timeline-event-head b{font-size:5.8px}.timeline-event-head span{font-size:4.7px;color:#6E7771}.timeline-event-master>small{display:block;margin-top:2px;font-size:4.8px;color:#315A36}.timeline-event-master p{margin:3px 0 0;font-size:4.6px;line-height:1.35;color:#737D77}

/* Harvest */
.harvest-master{gap:7px}.year-master button{height:27px;padding:0 9px;border:0;border-radius:7px;background:#F1F2EF;color:#58625C;font-size:5.5px}.harvest-stats-master{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.harvest-stats-master>div{height:54px;border-radius:9px;background:#F7F7F3;display:grid;place-content:center;text-align:center}.harvest-stats-master small{font-size:4.5px;color:#737D77}.harvest-stats-master b{font-size:10px;margin-top:3px}.harvest-chart-master{padding-top:6px}.bar-master{height:130px;display:grid;grid-template-columns:repeat(12,1fr);gap:3px;align-items:end}.bar-master div{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.bar-master i{width:56%;min-height:2px;background:#315A36}.bar-master span{font-size:4px;margin-top:3px;color:#737D77}.batch-master{display:grid;gap:0}.batch-master>div{height:33px;display:grid;grid-template-columns:1.3fr 1fr auto auto;gap:7px;align-items:center;border-bottom:1px solid #ECEAE4;font-size:4.8px}.floating-add-master{position:fixed;right:calc(50% - 180px);bottom:78px;width:34px;height:34px;border:0;border-radius:50%;background:#315A36;color:#fff;z-index:2000}

/* Map */
.map-master-screen{gap:7px}.map-tabs-master{display:flex;gap:5px}.map-tabs-master button{height:25px;padding:0 9px;border:0;border-radius:7px;background:#F1F2EF;color:#68716B;font-size:5px}.map-tabs-master button.active{background:#EEF3E9;color:#315A36;font-weight:700}.map-canvas-master{position:relative;height:297px;overflow:hidden;border-radius:8px;border:1px solid #ECEAE4;background:#EEF1E9}.map-bg-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.6) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.6) 1px,transparent 1px);background-size:28px 28px}.map-pin-master{position:absolute;transform:translate(-50%,-50%);padding:5px 7px;border:1px solid #DDE5D9;border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 4px 12px rgba(47,59,51,.08);text-align:left;color:#263129}.map-pin-master b{display:block;font-size:6px}.map-pin-master small{display:block;font-size:5px;color:#737D77}.map-locate-master{position:absolute;right:10px;bottom:10px;width:30px;height:30px;border:0;border-radius:50%;background:#fff;color:#315A36;box-shadow:0 3px 10px rgba(47,59,51,.1)}.map-list-master{display:grid;gap:6px}.map-list-master>button{min-height:50px;padding:7px 8px;display:grid;grid-template-columns:29px 1fr auto auto;gap:6px;align-items:center;border:1px solid #ECEAE4;border-radius:9px;background:#fff;text-align:left;color:#263129}.map-list-icon{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#EEF3E9;color:#315A36}.map-list-icon .icon{width:14px;height:14px}

/* Insights */
.insights-master{gap:7px}.insight-tabs-master{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.insight-tabs-master button{height:25px;border:0;border-radius:7px;background:#F1F2EF;color:#68716B;font-size:5px}.insight-tabs-master button.active{background:#fff;border-bottom:2px solid #315A36;border-radius:0;color:#315A36;font-weight:700}.insight-card-master{padding:9px;border:1px solid #ECEAE4;border-radius:10px;background:#fff}.insight-health-master{display:grid;grid-template-columns:105px 1fr;gap:12px;align-items:center}.insight-donut-master{width:88px;height:88px;border-radius:50%;background:conic-gradient(#5E7350 0 50%,#E79200 50% 75%,#E43B33 75% 100%);position:relative}.insight-donut-master:after{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff}.legend-master{display:grid;gap:9px}.legend-master span{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:5px;font-size:5.3px}.legend-master i{width:6px;height:6px;border-radius:50%}.legend-master i.green{background:#5E7350}.legend-master i.amber{background:#E79200}.legend-master i.red{background:#E43B33}.legend-master b{font-size:5.3px}

/* Settings / notifications */
.srow{min-height:48px;padding:8px 0;border-bottom:1px solid #ECEAE4;display:flex;align-items:center;justify-content:space-between;gap:8px}.scopy{flex:1}.srow b{font-size:6.7px}.srow .tiny{margin-top:2px}.switch{position:relative;width:34px;height:20px;border-radius:999px;background:#D9DED7}.switch.on{background:#5E7350}.switch:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff}.switch.on:after{left:16px}.slider{width:100%;appearance:none;height:3px;border-radius:999px;background:#D7DBD5}.slider::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#315A36}.progress{height:7px;border-radius:999px;background:#E8ECE5;overflow:hidden}.progress>i{display:block;height:100%;background:#5E7350}.track{height:1px;background:#D7DBD5}.notice{padding:8px 9px;border:1px solid #ECEAE4;border-radius:10px;background:#fff}.shop{color:#315A36;font-weight:700}

/* =========================================================
   V37 — READABILITY FIX
   Scope: typography + necessary height/spacing adaptations only.
   No routes, content blocks, or functionality changed.
   ========================================================= */

/* Global readable floor */
body,button,input,select,textarea{
  font-size:14px;
  line-height:1.35;
}

/* Header / navigation */
.pagebar-title{font-size:17px!important}
.brand{font-size:21px!important}
.navitem{font-size:11px!important;gap:4px!important}
.navitem .icon{width:20px!important;height:20px!important}
.nav-badge{font-size:9px!important;width:16px!important;height:16px!important}

/* General text hierarchy */
.h1{font-size:22px!important}
.h2{font-size:17px!important}
.h3{font-size:15px!important}
.small{font-size:13px!important}
.tiny{font-size:11px!important}
.sectionlabel{font-size:11px!important;letter-spacing:.05em!important}
label{font-size:12px!important}
.btn{font-size:13px!important;min-height:40px!important}
.pill{font-size:11px!important;min-height:24px!important}
.tab{font-size:12px!important;height:36px!important}

/* Home */
.master-section-title{font-size:16px!important}
.donut-label strong{font-size:31px!important}
.donut-label strong small{font-size:16px!important}
.donut-label b{font-size:13px!important}
.donut-label span{font-size:11px!important}
.overview-stats-master span{font-size:12px!important}
.overview-stats-master b{font-size:14px!important}
.overview-stats-master button{height:44px!important}
.view-hives-master{height:54px!important}
.view-hives-master b{font-size:13px!important}
.view-hives-master small{font-size:11px!important}
.action-main-master{height:60px!important}
.action-main-master span b{font-size:13px!important}
.action-main-master span small{font-size:11px!important}
.action-main-master button{font-size:12px!important;height:38px!important}
.action-foot-master{height:36px!important;font-size:11px!important}
.action-foot-master button{font-size:11px!important}
.risk-card-master{
  height:112px!important;
  flex-basis:31%!important;
}
.risk-card-master span b{font-size:12px!important}
.risk-card-master span small{font-size:10px!important;line-height:1.35!important}
.risk-card-master strong{font-size:10px!important;padding:3px 5px!important}
.risk-card-master em{font-size:14px!important}
.season-scroll-master button{height:118px!important}
.season-scroll-master b{font-size:12px!important}
.season-scroll-master span{font-size:10px!important;padding:3px 5px!important}
.season-scroll-master small{font-size:10px!important;line-height:1.3!important}
.season-scroll-master em{font-size:10px!important}
.quick-grid-master button{height:82px!important}
.quick-grid-master b{font-size:11px!important}
.quick-grid-master small{font-size:9.5px!important;line-height:1.25!important}

/* Hives */
.search-master-locked{height:44px!important}
.search-master-locked input{font-size:13px!important;height:42px!important;min-height:42px!important}
.filter-master-locked button{font-size:11px!important;height:34px!important;min-height:34px!important;padding:0 11px!important}
.hive-card-master-locked{
  height:118px!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  padding:14px 42px 12px 12px!important;
}
.hive-score-ring-locked{width:54px!important;height:54px!important}
.hive-score-ring-locked span{font-size:12px!important}
.hive-info-locked>b{font-size:14px!important}
.hive-info-locked>small{font-size:11px!important;margin-top:4px!important}
.hive-mini-metrics-locked{font-size:11px!important;gap:14px!important;margin-top:8px!important}
.hive-status-locked{font-size:11px!important}
.hive-menu-locked{font-size:15px!important}

/* Detail */
.detail-name-master b{font-size:14px!important}
.detail-name-master small{font-size:11px!important}
.detail-status-master{font-size:11px!important}
.detail-dates-master{height:42px!important;font-size:11px!important}
.detail-metrics-master{padding:12px 0!important}
.detail-metrics-master b{font-size:11px!important}
.detail-metrics-master small{font-size:10px!important}
.detail-section-master{padding:12px 0!important}
.record-master{min-height:48px!important;font-size:12px!important}

/* Inspection */
.inspection-hive-summary .h2{font-size:15px!important}
.inspection-hive-summary .tiny{font-size:11px!important}
.quick-entry-card .h3{font-size:14px!important}
.quick-entry-card .tiny{font-size:11px!important}
.inspection-field-row,.inspection-slider-row{min-height:48px!important}
.inspection-field-row span,.inspection-slider-row span{font-size:12px!important}
.inspection-field-row b,.inspection-slider-row b{font-size:12px!important}
.inspection-field-row em,.inspection-slider-row em{font-size:14px!important}

/* Timeline */
.timeline-search-master{height:42px!important}
.timeline-search-master input{font-size:12px!important}
.timeline-filter-master button{font-size:11px!important;height:32px!important}
.timeline-row-master{min-height:96px!important}
.timeline-date-master{font-size:11px!important}
.timeline-event-head b{font-size:13px!important}
.timeline-event-head span{font-size:10px!important}
.timeline-event-master>small{font-size:11px!important}
.timeline-event-master p{font-size:11px!important;line-height:1.4!important}

/* Harvest */
.year-master button{font-size:11px!important;height:34px!important}
.harvest-stats-master>div{height:72px!important}
.harvest-stats-master small{font-size:11px!important}
.harvest-stats-master b{font-size:17px!important}
.bar-master span{font-size:9px!important}
.batch-master>div{height:46px!important;font-size:11px!important}
.floating-add-master{width:44px!important;height:44px!important;font-size:20px!important}

/* Map */
.map-tabs-master button{font-size:11px!important;height:32px!important}
.map-pin-master b{font-size:11px!important}
.map-pin-master small{font-size:10px!important}
.map-list-master>button{min-height:62px!important;font-size:11px!important}

/* Insights */
.insight-tabs-master button{font-size:11px!important;height:32px!important}
.legend-master span{font-size:11px!important}
.legend-master b{font-size:11px!important}

/* Actions */
.action-title{font-size:13px!important}
.action-reason{font-size:11px!important}
.actioncard{padding:12px!important}

/* Settings / notifications / subscription */
.srow{min-height:58px!important}
.srow b{font-size:13px!important}
.srow .tiny{font-size:11px!important}
.notice{font-size:12px!important}

/* Forms / modals / auth */
input,select,textarea{font-size:13px!important;min-height:42px!important}
.modalhead b{font-size:16px!important}
.auth-title{font-size:22px!important}
.auth-security{font-size:11px!important}
.auth-legal{font-size:10px!important}
.other-login-toggle{font-size:12px!important;height:40px!important}

/* =========================================================
   V38 — Inspection hive switcher
   Functional addition only; existing Inspection layout retained.
   ========================================================= */
.inspection-hive-switcher{
  min-height:74px!important;
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) 18px!important;
  gap:9px!important;
  align-items:center!important;
}
.inspection-hive-select-wrap{
  min-width:0;
}
.inspection-hive-select-wrap label{
  margin:0 0 3px!important;
  font-size:10px!important;
  color:#7A827D!important;
  font-weight:600!important;
}
.inspection-hive-select{
  width:100%!important;
  height:30px!important;
  min-height:30px!important;
  padding:0 22px 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#263129!important;
  font-size:15px!important;
  font-weight:800!important;
  outline:0!important;
  appearance:auto!important;
  -webkit-appearance:auto!important;
}
.inspection-switch-chevron{
  font-size:16px;
  color:#315A36;
  text-align:right;
}

/* V39 — Hive Detail real hive/apiary hero photos. Top hero only. */
.detail-photo-master{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
  background:#D9DFD1!important;
}
.detail-photo-master img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
}
.detail-photo-master:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.05) 0%,rgba(255,255,255,.10) 42%,rgba(255,255,255,.42) 100%);
  pointer-events:none;
}
.detail-name-master,
.detail-ring-master,
.detail-status-master{
  z-index:2!important;
}
.detail-name-master b{
  color:#162119!important;
  text-shadow:0 1px 2px rgba(255,255,255,.85)!important;
}
.detail-name-master small,
.detail-status-master{
  text-shadow:0 1px 2px rgba(255,255,255,.9)!important;
}

/* =========================================================
   V41 — Hero aspect-ratio fix + functional Hive photo gallery
   ========================================================= */

/* Hero: never stretch. Crop only. */
.detail-hero-master{
  height:126px!important;
}
.detail-photo-master{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
}
.detail-photo-master img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
}

/* Photo section */
.photo-actions-master{
  display:flex;
  align-items:center;
  gap:12px;
}
.photo-actions-master button{
  border:0!important;
  background:transparent!important;
  padding:0!important;
  color:#315A36!important;
  font-size:11px!important;
  font-weight:700!important;
}
.hive-photo-input{
  display:none!important;
}
.photos-master{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;
  margin-top:9px!important;
}
.detail-photo-thumb,
.add-photo-empty,
.photo-count-master{
  position:relative!important;
  width:100%!important;
  height:68px!important;
  padding:0!important;
  border:0!important;
  border-radius:8px!important;
  overflow:hidden!important;
  background:#F3F4F0!important;
}
.detail-photo-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.add-photo-empty{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  color:#315A36!important;
  font-size:20px!important;
  border:1px dashed #C9D2C5!important;
}
.add-photo-empty small{
  display:block;
  margin-top:2px;
  font-size:10px;
  color:#657069;
}
.photo-count-master{
  display:grid!important;
  place-items:center!important;
  font-size:14px!important;
  color:#263129!important;
}

/* Full gallery */
.hive-gallery-modal{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.gallery-photo{
  position:relative;
  border-radius:9px;
  overflow:hidden;
  background:#F3F4F0;
}
.gallery-photo img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.gallery-photo button{
  position:absolute;
  right:5px;
  bottom:5px;
  border:0;
  border-radius:999px;
  padding:5px 8px;
  background:rgba(255,255,255,.92);
  color:#B73C35;
  font-size:10px;
  font-weight:700;
}

/* V42 — functional history modals for every View All control */
.history-list-master{
  display:grid;
  gap:7px;
}
.history-row-master{
  min-height:58px;
  padding:8px 9px;
  display:grid;
  grid-template-columns:28px 1fr auto;
  gap:8px;
  align-items:center;
  border:1px solid #ECEAE4;
  border-radius:9px;
  background:#fff;
}
.history-row-master>i{
  width:27px;height:27px;border-radius:50%;
  display:grid;place-items:center;
  background:#EEF3E9;color:#315A36;font-style:normal;
}
.history-row-master b{display:block;font-size:12px}
.history-row-master small{display:block;margin-top:3px;font-size:10px;color:#737D77}
.history-row-master em{font-size:10px;color:#315A36;font-style:normal}
