:root{
  --bg:#f5f1e7;
  --card:rgba(255,253,247,.05);
  --text:#172117;
  --muted:#667060;
  --line:#e2dccb;
  --accent:#d89422;
  --accent-dark:#6b4a0f;
  --accent-soft:#fff4cf;
  --green:#2f7d4b;
  --green-soft:#edf7ed;
  --shadow:0 12px 30px rgba(88,64,25,.10);
  --r:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(216,148,34,.16), transparent 340px),
    linear-gradient(180deg, #fbf7ed 0%, var(--bg) 44%, #eef3ea 100%);
  color:var(--text);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:url("assets/hivecast-background.png");
  background-repeat:no-repeat;
  background-position:center top;
  background-size:100% auto;
  opacity:.88;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,253,247,.56), rgba(255,253,247,.22) 34%, rgba(245,241,231,.08) 62%),
    linear-gradient(180deg, rgba(251,247,237,.2) 0%, rgba(238,243,234,.28) 100%);
}

body > *{
  position:relative;
  z-index:2;
}

.brood-break-wrap{
  max-width:1320px;
}

.brood-workflow-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(330px, 420px);
  gap:16px;
  align-items:start;
  margin-top:16px;
}

.brood-workflow-form,
.brood-workflow-output{
  display:grid;
  gap:14px;
}

.brood-workflow-output{
  position:sticky;
  top:12px;
  max-height:calc(100vh - 24px);
  overflow:auto;
}

.brood-step{
  margin-top:0;
}

.brood-preview{
  margin-top:0;
}

.brood-preview-heading{
  margin-top:18px;
}

.brood-hive-picker{
  grid-column:1/-1;
}

.brood-hive-checks{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
}

.brood-hive-check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,253,247,.72);
  color:var(--text);
  font-weight:800;
}

.brood-hive-check input{
  width:auto;
  min-height:0;
}

.brood-inspection-context{
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,253,247,.72);
}

.brood-inspection-context strong{
  display:block;
  color:var(--accent-dark);
  font-size:1.05rem;
}

.brood-choice-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-top:10px;
}

.brood-choice{
  min-height:42px;
  white-space:normal;
}

.brood-choice.active{
  border-color:rgba(47,125,75,.55);
  background:var(--green-soft);
  color:#1f5133;
}

.brood-timeline{
  display:grid;
  gap:10px;
  margin:10px 0 0;
  padding:0;
  list-style:none;
}

.brood-timeline li{
  display:grid;
  grid-template-columns:80px minmax(0, 1fr);
  gap:4px 10px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}

.brood-timeline li:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.brood-timeline strong{
  color:var(--accent-dark);
}

.brood-timeline span{
  font-weight:800;
}

.brood-timeline em{
  grid-column:2;
  color:var(--muted);
  font-style:normal;
  font-size:.9rem;
}

.brood-prediction-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin-top:10px;
}

.brood-prediction-grid div{
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:rgba(255,253,247,.74);
}

.brood-prediction-grid span{
  display:block;
  color:var(--muted);
  font-size:.82rem;
  font-weight:800;
}

.brood-prediction-grid strong{
  display:block;
  margin-top:4px;
  font-size:1.1rem;
}

.brood-next-date{
  margin-top:10px;
  padding:10px;
  border-radius:8px;
  background:var(--green-soft);
  color:#1f5133;
  font-weight:800;
}

.brood-calendar-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin-top:10px;
}

.brood-cycle-panel{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.brood-progress-bar{
  height:12px;
  border-radius:999px;
  background:rgba(52, 83, 61, .14);
  overflow:hidden;
  margin:8px 0 10px;
}

.brood-progress-bar span{
  display:block;
  height:100%;
  width:0;
  border-radius:999px;
  background:var(--green);
  transition:width .2s ease;
}

.brood-rotation-actions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin-top:10px;
}

.brood-rotation-actions .btn{
  white-space:normal;
  min-height:40px;
}

@media (max-width:960px){
  .brood-workflow-grid{
    grid-template-columns:1fr;
  }

  .brood-workflow-output{
    position:static;
  }
}

@media (max-width:720px){
  .brood-choice-grid,
  .brood-hive-checks,
  .brood-prediction-grid,
  .brood-calendar-grid,
  .brood-rotation-actions{
    grid-template-columns:1fr;
  }
}

.flowering-page .flowering-wrap{
  width:min(96vw, 1280px);
}

.flowering-title-row,
.flowering-actions,
.flowering-tabs{
  flex-wrap:wrap;
}

.developer-corner-btn{
  position:absolute;
  top:12px;
  right:14px;
  border:1px solid rgba(47,125,75,.28);
  border-radius:8px;
  background:rgba(237,247,237,.9);
  color:#1f5133;
  font-weight:800;
  padding:8px 12px;
  cursor:pointer;
  box-shadow:var(--shadow);
}

.developer-corner-btn:hover,
.developer-corner-btn:focus{
  border-color:rgba(47,125,75,.55);
  background:#edf7ed;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.pressure-map-page{
  background:#f5f6f0;
}

.pressure-map-page .topbar.centered{
  padding:10px 0 4px;
}

.pressure-map-page .logo{
  height:86px;
}

.pressure-map-page::before,
.pressure-map-page::after{
  display:none;
}

.pressure-map-app{
  width:min(100vw, 1920px);
  margin:0 auto;
  padding:0 18px 18px;
}

.pressure-auth-panel{
  max-width:1600px;
  margin:0 auto 10px;
  border-color:rgba(198,207,192,.86);
  background:rgba(255,255,250,.94);
  box-shadow:0 10px 28px rgba(57,67,49,.08);
}

.pressure-auth-panel.authcard--hero{
  max-width:1600px;
  margin:0 auto 10px;
  border-color:rgba(198,207,192,.86);
  background:rgba(255,255,250,.94);
  box-shadow:0 10px 28px rgba(57,67,49,.08);
  padding:12px 18px;
}

.pressure-shell{
  margin:0 auto;
  max-width:1600px;
}

.pressure-map-frame{
  position:relative;
  height:clamp(500px, calc(100vh - 338px), 740px);
  min-height:500px;
  border:1px solid rgba(198,207,192,.92);
  border-radius:8px;
  overflow:hidden;
  background:#edf3ea;
  box-shadow:0 16px 34px rgba(57,67,49,.14);
}

.pressure-controls{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
}

.pressure-map{
  position:relative;
  height:100%;
  min-height:100%;
  margin-top:0;
  border:0;
  border-radius:0;
  overflow:hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(142,190,198,.42), transparent 38%),
    linear-gradient(135deg, #dce9df, #eef3ea 55%, #f5f1e7);
}

.pressure-map::before{
  display:none;
}

.pressure-map__empty{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  text-align:center;
  color:var(--muted);
  font-weight:700;
}

.pressure-cell{
  position:absolute;
  width:54px;
  height:48px;
  border:0;
  transform:translate(-50%, -50%);
  clip-path:polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  opacity:.9;
  cursor:pointer;
}

.pressure-cell.low{background:rgba(47,125,75,.48)}
.pressure-cell.elevated{background:rgba(216,148,34,.58)}
.pressure-cell.high{background:rgba(190,18,60,.66)}
.pressure-cell.biosecurity{background:rgba(180,83,9,.7)}
.pressure-cell.insufficient{background:rgba(226,220,203,.06)}

.pressure-cell:hover,
.pressure-cell:focus{
  outline:2px solid rgba(23,33,23,.35);
  opacity:1;
}

.pressure-stat-grid{
  display:none;
}

.pressure-stat{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdf7;
  padding:10px 12px;
}

.pressure-stat span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.pressure-stat strong{
  display:block;
  margin-top:4px;
  font-size:22px;
}

.pressure-legend{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}

.pressure-map-brand{
  position:absolute;
  z-index:700;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  color:rgba(23,33,23,.58);
  text-shadow:0 1px 0 rgba(255,255,255,.86);
  display:flex;
  gap:8px;
  align-items:baseline;
  font-size:18px;
  pointer-events:none;
}

.pressure-map-brand span{
  font-size:12px;
  color:rgba(23,33,23,.42);
}

.pressure-map-topbar{
  position:absolute;
  z-index:710;
  top:14px;
  left:14px;
  right:72px;
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.pressure-search input{
  width:min(330px, 32vw);
  height:44px;
  border:1px solid rgba(205,214,199,.88);
  border-radius:999px;
  background:rgba(255,255,250,.95);
  color:#172117;
  padding:0 18px;
  font-size:15px;
  box-shadow:0 8px 18px rgba(38,48,35,.16);
}

.pressure-map-topbar .pressure-controls{
  padding:8px;
  border-radius:8px;
  background:rgba(255,255,250,.95);
  border:1px solid rgba(205,214,199,.88);
  box-shadow:0 8px 18px rgba(38,48,35,.14);
  backdrop-filter:blur(8px);
}

.pressure-map-topbar .field span{
  color:#52614f;
}

.pressure-map-topbar select,
.pressure-map-topbar .btn{
  min-height:34px;
}

.pressure-map-stats{
  position:absolute;
  z-index:705;
  left:14px;
  bottom:66px;
  display:grid;
  grid-template-columns:repeat(4,minmax(88px,1fr));
  gap:8px;
  width:min(520px, calc(100% - 420px));
}

.pressure-map-stats div{
  border:1px solid rgba(205,214,199,.88);
  border-radius:8px;
  background:rgba(255,255,250,.94);
  color:#172117;
  padding:9px 10px;
  box-shadow:0 8px 18px rgba(38,48,35,.14);
  backdrop-filter:blur(8px);
}

.pressure-map-stats span{
  display:block;
  font-size:11px;
  color:#697666;
  font-weight:800;
}

.pressure-map-stats strong{
  display:block;
  margin-top:3px;
  font-size:19px;
}

.pressure-map-status{
  position:absolute;
  z-index:706;
  left:14px;
  bottom:18px;
  max-width:min(620px, calc(100% - 430px));
  border:1px solid rgba(205,214,199,.88);
  border-radius:8px;
  background:rgba(255,255,250,.94);
  color:#52614f;
  padding:8px 10px;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  box-shadow:0 8px 18px rgba(38,48,35,.14);
  backdrop-filter:blur(8px);
}

.pressure-detail-panel{
  position:absolute;
  z-index:720;
  right:14px;
  bottom:66px;
  width:min(380px, calc(100vw - 42px));
  max-height:230px;
  overflow:auto;
  border:1px solid rgba(205,214,199,.88);
  border-radius:8px;
  background:rgba(255,255,250,.96);
  color:#172117;
  padding:14px;
  box-shadow:0 14px 30px rgba(38,48,35,.18);
  backdrop-filter:blur(10px);
}

.pressure-detail__head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-weight:800;
}

.pressure-detail__meta{
  margin-top:6px;
  color:#52614f;
  font-size:13px;
  line-height:1.4;
}

.pressure-detail__meta ul{
  margin:8px 0 0;
  padding-left:18px;
}

.pressure-map-legend{
  position:absolute;
  z-index:710;
  right:14px;
  bottom:18px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,250,.94);
  color:#52614f;
  border:1px solid rgba(205,214,199,.88);
  box-shadow:0 8px 18px rgba(38,48,35,.14);
  backdrop-filter:blur(8px);
}

.pressure-timeline{
  position:absolute;
  z-index:710;
  left:14px;
  right:430px;
  bottom:18px;
  display:grid;
  grid-template-columns:repeat(3, minmax(88px, 1fr));
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px;
  overflow:hidden;
  background:rgba(19,24,22,.58);
  backdrop-filter:blur(10px);
}

.pressure-timeline button{
  border:0;
  border-right:1px solid rgba(255,255,255,.16);
  background:transparent;
  color:rgba(255,255,255,.72);
  padding:10px;
  font-weight:800;
  cursor:pointer;
}

.pressure-timeline button:last-child{
  border-right:0;
}

.pressure-timeline button.active{
  color:#172117;
  background:rgba(255,199,95,.92);
}

.leaflet-container{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

.pressure-leaflet-cell{
  transition:fill-opacity .16s ease, opacity .16s ease;
}

.pressure-leaflet-cell:hover{
  fill-opacity:.76;
}

@media (max-width: 820px){
  .pressure-map-page .topbar.centered{
    padding:8px 0 2px;
  }

  .pressure-map-page .logo{
    height:64px;
  }

  .pressure-map-app{
    padding:0 8px 10px;
  }

  .pressure-auth-panel.authcard--hero{
    padding:10px 12px;
  }

  .pressure-map-frame{
    height:560px;
    min-height:560px;
  }

  .pressure-map-topbar{
    right:14px;
    flex-direction:column;
  }

  .pressure-search input{
    width:calc(100vw - 44px);
  }

  .pressure-map-stats{
    grid-template-columns:repeat(2, minmax(88px, 1fr));
    width:calc(100% - 28px);
    bottom:118px;
  }

  .pressure-detail-panel{
    left:14px;
    right:14px;
    bottom:56px;
    width:auto;
    max-height:120px;
  }

  .pressure-timeline{
    right:14px;
  }

  .pressure-map-status{
    display:none;
  }

  .pressure-map-legend{
    display:none;
  }
}

.pressure-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.pressure-legend i{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
}

.pressure-legend .low{background:#2f7d4b}
.pressure-legend .elevated{background:#ffeca4}
.pressure-legend .high{background:#fecaca}
.pressure-legend .biosecurity{background:#b45309}
.pressure-legend .insufficient{background:#e2dccb}

.flowering-panel{
  margin-top:16px;
}

.flowering-tabs{
  margin-top:16px;
  gap:8px;
}

.flowering-filters{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  margin:14px 0;
}

.flowering-glossary-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}

.flowering-now-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:14px;
}

.flowering-next-list{
  display:grid;
  gap:8px;
  margin-top:14px;
}

.flowering-next-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,253,247,.78);
  cursor:pointer;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.flowering-next-item:hover,
.flowering-next-item:focus{
  transform:translateY(-1px);
  border-color:rgba(47,125,75,.35);
  box-shadow:0 8px 18px rgba(88,64,25,.1);
  outline:none;
}

.flowering-next-item h3{
  margin:0;
  font-size:17px;
}

.flowering-next-item strong{
  flex:0 0 auto;
  white-space:nowrap;
  padding:5px 8px;
  border-radius:999px;
  background:#fff8df;
  border:1px solid rgba(107,74,15,.16);
  color:#5f4614;
  font-size:12px;
}

.flowering-plant-card{
  display:grid;
  grid-template-columns:170px minmax(0, 1fr);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,253,247,.76);
  box-shadow:0 8px 22px rgba(88,64,25,.08);
}

.flowering-plant-card--compact{
  grid-template-columns:140px minmax(0, 1fr);
}

.flowering-plant-card--now{
  display:block;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.flowering-plant-card--now .flowering-plant-body{
  padding:12px 14px;
}

.flowering-plant-card--now:hover,
.flowering-plant-card--now:focus{
  transform:translateY(-1px);
  border-color:rgba(47,125,75,.35);
  box-shadow:0 10px 24px rgba(88,64,25,.12);
  outline:none;
}

.flowering-plant-card--now h3{
  margin-bottom:2px;
}

.flowering-now-title{
  display:flex;
  align-items:center;
  gap:8px;
}

.flowering-forage-symbol{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(31,41,55,.12);
  font-size:14px;
  line-height:1;
  font-weight:900;
  background:#f3f4f6;
  color:#4b5563;
}

.flowering-forage-symbol--nectar{
  background:#fef3c7;
  border-color:#facc15;
  color:#a16207;
}

.flowering-forage-symbol--pollen{
  background:#ffe4e6;
  border-color:#fb7185;
  color:#be123c;
}

.flowering-forage-symbol--both{
  background:#dcfce7;
  border-color:#22c55e;
  color:#15803d;
}

.flowering-forage-key{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.flowering-forage-key span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.flowering-forage-key .flowering-forage-symbol{
  width:18px;
  height:18px;
  flex-basis:18px;
  font-size:11px;
}

.flowering-plant-card--now .flowering-report-signal{
  width:auto;
  margin-top:8px;
}

.flowering-plant-card--modal{
  margin-top:14px;
  box-shadow:none;
}

.flowering-photo-strip{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(96px, 1fr));
  gap:10px;
  margin-top:14px;
}

.flowering-photo-strip figure{
  min-width:0;
  margin:0;
}

.flowering-photo-strip img{
  display:block;
  width:100%;
  aspect-ratio:1;
  min-height:0;
  height:auto;
  border-radius:8px;
  border:1px solid rgba(88,64,25,.16);
  object-fit:cover;
}

.flowering-photo-strip figcaption{
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  line-height:1.25;
}

.flowering-plant-modal__panel{
  width:min(760px, calc(100vw - 32px));
}

.flowering-plant-card--now .flowering-value-row,
.flowering-plant-card--now .flowering-colour-row{
  gap:6px;
}

.flowering-plant-card--now .flowering-value-row span,
.flowering-plant-card--now .flowering-colour-row span{
  padding:4px 7px;
}

.flowering-plant-card img{
  width:100%;
  height:100%;
  min-height:190px;
  object-fit:cover;
  background:#f8f3e6;
}

.flowering-plant-body{
  min-width:0;
  padding:14px;
}

.flowering-plant-body h3{
  margin:0;
  font-size:18px;
  line-height:1.2;
}

.flowering-science{
  margin-top:3px;
  color:var(--muted);
  font-size:13px;
  font-style:italic;
}

.flowering-confidence{
  flex:0 0 auto;
  min-width:54px;
  padding:7px 9px;
  border-radius:999px;
  background:#edf7ed;
  color:#1f6b3c;
  border:1px solid rgba(47,125,75,.24);
  font-weight:800;
  text-align:center;
}

.flowering-value-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.flowering-value-row span{
  padding:5px 8px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:999px;
  background:#fff8df;
  color:#4b3a13;
  font-size:12px;
}

.flowering-colour-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.flowering-colour-row span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  border:1px solid rgba(47,125,75,.16);
  border-radius:999px;
  background:rgba(237,247,237,.7);
  color:#33412f;
  font-size:12px;
}

.flowering-swatch{
  display:inline-block;
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(88,64,25,.24);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);
}

.flowering-swatch--pollen{
  background:linear-gradient(135deg, #fff3b0, #e5a42b);
}

.flowering-swatch--honey{
  background:linear-gradient(135deg, #ffe08a, #b36a16);
}

.flowering-window{
  margin-top:10px;
  color:#33412f;
  font-size:13px;
  font-weight:700;
}

.flowering-plant-body p{
  margin:10px 0 0;
  color:#33412f;
  line-height:1.45;
}

.flowering-description{
  color:var(--muted) !important;
  font-size:13px;
}

.flowering-empty{
  grid-column:1 / -1;
  padding:18px;
  border:1px dashed rgba(107,74,15,.32);
  border-radius:8px;
  background:rgba(255,253,247,.68);
  color:#4b5563;
}

.flowering-form{
  margin-top:12px;
}

.flowering-report-plant-value{
  grid-column:1 / -1;
  padding:12px;
  border:1px solid rgba(47,125,75,.24);
  border-radius:8px;
  background:rgba(237,247,237,.72);
}

.flowering-report-plant-value > div:first-child{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:baseline;
}

.flowering-report-plant-value > div:first-child span{
  color:var(--muted);
  font-style:italic;
  font-size:13px;
}

.flowering-report-plant-suggestions{
  grid-column:1 / -1;
}

.flowering-reports-card{
  margin-top:16px;
  background:rgba(255,253,247,.72);
}

.flowering-report-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.flowering-report-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:10px;
  border:1px solid rgba(47,125,75,.18);
  border-radius:8px;
  background:#fffdf7;
}

.flowering-report-item span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}

.flowering-report-tags{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.flowering-report-tags span,
.flowering-report-signal{
  display:inline-flex;
  align-items:center;
  padding:5px 8px;
  border:1px solid rgba(47,125,75,.2);
  border-radius:999px;
  background:rgba(237,247,237,.82);
  color:#1f6b3c;
  font-size:12px;
  font-weight:800;
}

.flowering-report-signal{
  display:flex;
  width:100%;
  margin-top:10px;
  border-radius:8px;
  line-height:1.35;
}

.flowering-admin-cards{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:10px;
  margin:14px 0;
}

.admin-flowering-switch{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin:14px 0;
}

.admin-flowering-frame{
  width:100%;
  min-height:1180px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdf7;
}

.admin-wrap{
  max-width:1320px;
}

.admin-page .topbar.centered{
  padding:22px 0 6px;
}

.admin-page .topbar.centered .logo{
  height:160px;
}

.admin-shell{
  padding:18px;
  overflow:visible;
  border-color:rgba(84,62,22,.15);
  background:rgba(255,252,244,.78);
  box-shadow:0 18px 42px rgba(76,55,22,.13);
  backdrop-filter:blur(10px);
}

.admin-console-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 2px 12px;
  border-bottom:1px solid rgba(107,74,15,.12);
}

.admin-quick-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.admin-console-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:18px;
  padding:24px;
  border:1px solid rgba(39,93,63,.24);
  border-radius:18px;
  background:
    radial-gradient(circle at 95% 10%,rgba(240,184,62,.24),transparent 34%),
    linear-gradient(135deg,#234b36,#2f6948);
  color:#fffdf7;
  box-shadow:0 16px 34px rgba(32,72,49,.18);
}

.admin-console-hero .h1{
  margin:5px 0 5px;
  color:#fff;
  font-size:clamp(27px,4vw,36px);
}

.admin-console-hero p{
  max-width:720px;
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.5;
}

.settings-eyebrow{
  color:#efc462;
  font-size:.73rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.admin-console-hero__mark{
  display:grid;
  width:58px;
  height:58px;
  flex:0 0 auto;
  place-items:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  background:rgba(255,255,255,.11);
  color:#f6cd6c;
  font-size:27px;
}

.admin-console-status{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:12px 2px 0;
}

.admin-tabs{
  display:flex;
  gap:8px;
  margin-top:14px;
  padding:10px;
  overflow-x:auto;
  border:1px solid rgba(107,74,15,.14);
  border-radius:14px;
  background:rgba(255,253,247,.9);
  scrollbar-width:thin;
}

.admin-tabs .pill{
  flex:0 0 auto;
  border-color:rgba(47,105,72,.2);
  background:#f7fbf5;
  color:#34543e;
}

.admin-tabs .pill:hover,
.admin-tabs .pill:focus-visible{
  border-color:rgba(47,105,72,.48);
  background:#edf6ee;
}

.admin-tabs .pill.active{
  border-color:#2f6948;
  background:#2f6948;
  color:#fff;
  box-shadow:0 6px 14px rgba(47,105,72,.18);
}

.admin-page .tab-panel > .card{
  border-color:rgba(107,74,15,.16);
  border-radius:16px;
  background:rgba(255,253,247,.96);
  box-shadow:0 10px 24px rgba(88,64,25,.08);
}

.admin-page .tab-panel > .card > .h2:first-child,
.admin-page .tab-panel > .card > .row:first-child .h2{
  color:#244d36;
}

.admin-page .table-wrap{
  border:1px solid rgba(107,74,15,.12);
  border-radius:12px;
  background:#fffdf8;
}

.admin-page .table thead th{
  background:#edf5eb;
  color:#355b42;
}

.admin-page .btn{
  border-color:rgba(47,105,72,.35);
}

.admin-page .btn:not(.ghost){
  background:#2f6948;
  color:#fff;
}

.admin-page .btn:not(.ghost):hover{
  background:#25573a;
}

.admin-page .btn.ghost{
  background:#fffdf7;
  color:#2f6948;
}

.admin-section-heading{
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding-bottom:14px;
  border-bottom:1px solid rgba(107,74,15,.12);
}

.admin-section-heading .h2{
  margin:0 0 3px;
  color:#244d36;
}

.settings-step-number{
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
  border-radius:50%;
  background:#2f6948;
  color:#fff;
  font-weight:900;
}

.admin-publish-note{
  display:flex;
  gap:11px;
  align-items:flex-start;
  margin-top:14px;
  padding:12px 14px;
  border:1px solid rgba(47,105,72,.18);
  border-radius:12px;
  background:#edf6ee;
  color:#35523d;
  font-size:13px;
  line-height:1.45;
}

.admin-publish-note > span{
  display:grid;
  width:24px;
  height:24px;
  flex:0 0 auto;
  place-items:center;
  border-radius:50%;
  background:#2f6948;
  color:#fff;
  font-weight:900;
}

.feedback-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

.feedback-status-card{
  padding:12px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:12px;
  background:#fffdf7;
  color:#172117;
  text-align:left;
}

.feedback-status-card.active{
  border-color:#2f6948;
  box-shadow:0 0 0 2px rgba(47,105,72,.1);
}

.feedback-status-count{
  display:block;
  color:#2f6948;
  font-size:28px;
  font-weight:800;
  line-height:1;
}

.feedback-status-label{
  display:block;
  margin-top:6px;
  color:#5d695c;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.admin-settings-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

.admin-settings-card{
  display:flex;
  min-height:170px;
  flex-direction:column;
  gap:10px;
  padding:14px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:14px;
  background:#fffdf7;
  color:#172117;
}

.admin-settings-card .authhint{
  flex:1;
}

.admin-settings-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

@media (max-width:900px){
  .admin-settings-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:720px){
  .admin-page .topbar.centered .logo{
    height:128px;
  }

  .admin-console-toolbar,
  .admin-console-status{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-console-hero{
    align-items:flex-start;
    padding:20px;
  }

  .admin-quick-links{
    justify-content:flex-start;
  }

  .feedback-status-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

.flowering-reports-table{
  min-width:1120px;
}

.flowering-season-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(130px, 1fr));
  gap:10px;
  margin-top:14px;
}

.flowering-season-card{
  padding:12px;
  border:1px solid rgba(47,125,75,.18);
  border-radius:8px;
  background:rgba(237,247,237,.72);
}

.flowering-season-card span{
  display:block;
  color:var(--muted);
  font-size:12px;
}

.flowering-season-card strong{
  display:block;
  margin-top:5px;
  color:#172117;
  font-size:18px;
}

.flowering-season-calendar{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  margin-top:14px;
}

.flowering-season-month-group{
  padding:12px;
  border:1px solid rgba(47,125,75,.18);
  border-radius:8px;
  background:rgba(255,255,255,.74);
}

.flowering-season-month-group strong{
  display:block;
  color:#172117;
  margin-bottom:8px;
}

.flowering-season-month-group div{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:6px;
}

.flowering-season-month-group span{
  display:block;
  text-align:center;
  border:1px solid rgba(47,125,75,.14);
  border-radius:999px;
  padding:5px 6px;
  color:var(--muted);
  font-size:12px;
  background:#fff;
}

.flowering-season-month-group span.active{
  color:#fff;
  font-weight:800;
}

.flowering-season-month-group--summer span.active{
  border-color:#b93b32;
  background:#b93b32;
}

.flowering-season-month-group--autumn span.active{
  border-color:#c46f22;
  background:#c46f22;
}

.flowering-season-month-group--winter span.active{
  border-color:#28799a;
  background:#28799a;
}

.flowering-season-month-group--spring span.active{
  border-color:#2f7d4b;
  background:#2f7d4b;
}

.flowering-season-signal{
  display:grid;
  grid-template-columns:minmax(190px, 240px) minmax(0, 1fr);
  gap:18px;
  align-items:center;
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:8px;
  background:rgba(255,253,247,.76);
}

.flowering-season-signal-head{
  color:#172117;
}

.flowering-season-signal-head span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.flowering-season-signal-head strong{
  display:block;
  margin-top:5px;
  color:#172117;
  font-size:22px;
  font-weight:800;
}

.flowering-season-signal-head p{
  margin:6px 0 0;
  color:#33412f;
  font-size:13px;
}

.flowering-season-signal-head .flowering-trigger-title{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.flowering-trigger-help-btn{
  width:22px;
  height:22px;
  font-size:12px;
}

.flowering-trigger-help{
  margin:8px 0 0;
}

.flowering-season-bars{
  display:grid;
  gap:9px;
}

.flowering-season-bar{
  display:grid;
  grid-template-columns:74px minmax(0, 1fr) 42px;
  gap:10px;
  align-items:center;
  color:#33412f;
  font-size:12px;
  font-weight:800;
}

.flowering-season-bar i{
  display:block;
  height:10px;
  border-radius:999px;
  background:#2f7d4b;
}

.flowering-season-bar b{
  text-align:right;
  color:var(--muted);
  font-size:12px;
}

.flowering-season-bar--summer i{background:#b93b32}
.flowering-season-bar--autumn i{background:#c46f22}
.flowering-season-bar--winter i{background:#28799a}
.flowering-season-bar--spring i{background:#2f7d4b}

.flowering-season-reason{
  margin:4px 0 0;
  color:#33412f;
  font-size:13px;
  line-height:1.45;
}

.flowering-trigger-watch{
  display:grid;
  grid-template-columns:minmax(190px, 240px) minmax(0, 1fr);
  gap:18px;
  align-items:start;
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(40,121,154,.18);
  border-radius:8px;
  background:rgba(246,251,253,.86);
}

.flowering-trigger-list{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:10px;
}

.flowering-trigger-item{
  border:1px solid rgba(40,121,154,.2);
  border-radius:8px;
  padding:10px;
  background:#fff;
  color:#172117;
  text-align:left;
  cursor:pointer;
}

.flowering-trigger-item b,
.flowering-trigger-item span{
  display:block;
}

.flowering-trigger-item span{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.flowering-admin-card{
  min-height:72px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdf7;
  color:#172117;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}

.flowering-admin-card.active{
  border-color:#2f7d4b;
  box-shadow:0 0 0 2px rgba(47,125,75,.12);
}

.flowering-admin-embed{
  background:#fffdf7;
}

.flowering-admin-embed::before,
.flowering-admin-embed::after,
.flowering-admin-embed .topbar,
.flowering-admin-embed .authcard,
.flowering-admin-embed .flowering-title-row,
.flowering-admin-embed .flowering-tabs{
  display:none !important;
}

.flowering-admin-embed .flowering-wrap{
  width:100%;
  max-width:none;
  padding:0;
}

.flowering-admin-embed #floweringShell{
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#fffdf7;
}

.flowering-admin-embed #floweringAdminPanel{
  margin-top:0;
}

@media (max-width: 980px){
  .flowering-filters,
  .flowering-now-grid,
  .flowering-next-list,
  .flowering-glossary-grid,
  .flowering-season-summary,
  .flowering-season-calendar,
  .flowering-season-signal,
  .flowering-trigger-watch,
  .flowering-admin-cards,
  .admin-flowering-switch{
    grid-template-columns:1fr;
  }

  .flowering-plant-card,
  .flowering-plant-card--compact{
    grid-template-columns:1fr;
  }

  .flowering-next-item{
    display:grid;
  }

  .flowering-plant-card img{
    height:210px;
    min-height:0;
  }

  .flowering-report-item{
    flex-direction:column;
  }

  .flowering-report-tags{
    justify-content:flex-start;
  }
}

.workspace-switch{
  position:fixed;
  top:14px;
  left:50%;
  transform:translateX(-50%);
  z-index:1400;
  display:flex;
  gap:4px;
  padding:4px;
  border:1px solid rgba(107,74,15,.18);
  border-radius:999px;
  background:rgba(255,253,247,.94);
  box-shadow:0 10px 24px rgba(88,64,25,.14);
}

.workspace-switch__item{
  min-width:92px;
  padding:9px 14px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#33412f;
  font-weight:800;
  cursor:pointer;
}

.workspace-switch__item.active{
  background:#172117;
  color:#fffdf7;
}

.workspace-switch__item:not(.active):hover{
  background:rgba(216,148,34,.14);
}

.harvest-wrap{
  max-width:1180px;
}

.harvest-title-row,
.harvest-actions{
  align-items:flex-start;
}

.harvest-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);
  gap:16px;
  align-items:start;
  margin-top:16px;
}

.harvest-panel{
  border:1px solid rgba(107,74,15,.16);
  border-radius:8px;
  background:#fffdf7;
  padding:16px;
}

.honey-shed-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:16px 0 0;
}

.honey-shed-tab{
  appearance:none;
  border:1px solid rgba(107,74,15,.18);
  border-radius:8px;
  background:#fffdf7;
  color:#3f4b3b;
  min-height:42px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}

.honey-shed-tab.active{
  background:#172117;
  color:#fffdf7;
  border-color:#172117;
}

.honey-shed-panel{
  display:grid;
  gap:16px;
  margin-top:16px;
}

.honey-shed-panel.hidden{
  display:none;
}

.honey-shed-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.honey-shed-stat{
  display:grid;
  gap:6px;
  min-height:104px;
  padding:14px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:8px;
  background:#fffdf7;
}

.honey-shed-stat span{
  color:#6b7280;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.honey-shed-stat strong{
  color:#172117;
  font-size:24px;
}

.honey-shed-stat em{
  color:#6b7280;
  font-style:normal;
  line-height:1.35;
}

.honey-shed-quick-actions,
.honey-shed-report-grid{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.honey-shed-form{
  margin-top:14px;
}

.honey-source-toggle{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.honey-hive-frame-field{
  grid-column:1 / -1;
}

.honey-hive-frame-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.honey-hive-frame-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) minmax(96px,120px);
  gap:8px;
  align-items:center;
  min-height:44px;
  padding:8px 10px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:8px;
  background:#fffdf7;
}

.honey-hive-frame-row input[type="number"]{
  width:100%;
}

.honey-shed-search{
  width:min(320px,100%);
}

.honey-batch-preview{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:38px;
  padding:8px 12px;
  border-radius:8px;
  background:#f7fbf4;
  color:#2f7d4b;
  border:1px solid rgba(47,125,75,.2);
  white-space:nowrap;
}

.honey-product-summary,
.honey-best-before-summary{
  min-height:78px;
  justify-content:center;
}

.honey-product-summary strong,
.honey-best-before-summary strong{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  width:max-content;
  max-width:100%;
  padding:8px 12px;
  border:1px solid rgba(47,125,75,.22);
  border-radius:8px;
  background:#f7fbf4;
  color:#2f7d4b;
  font-weight:900;
}

.honey-pricing-panel .table-wrap{
  margin-top:14px;
}

.honey-price-result{
  min-height:78px;
  justify-content:center;
}

.honey-price-result strong{
  color:#2f7d4b;
  font-size:24px;
  font-weight:900;
}

.honey-supplier-pricing{
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid rgba(47,125,75,.2);
  border-radius:10px;
  background:#f7fbf4;
}

.honey-supplier-pricing .harvest-form-grid{
  margin-top:0;
}

.honey-price-summary{
  padding:10px 12px;
  border-radius:8px;
  background:#fffdf7;
  color:#344331;
  font-weight:800;
}

.honey-pack-preset-field,
.honey-label-copy-field{
  grid-column:1 / -1;
}

.honey-pack-presets{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.honey-pack-preset{
  appearance:none;
  border:1px solid rgba(107,74,15,.2);
  border-radius:8px;
  background:#fffdf7;
  color:#3f4b3b;
  min-height:40px;
  padding:9px 12px;
  font-weight:800;
  cursor:pointer;
}

.honey-pack-preset.active{
  background:#172117;
  border-color:#172117;
  color:#fffdf7;
}

.honey-pack-preset-add,
.honey-label-copy-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.honey-pack-preset-add .authinput,
.honey-label-copy-row .authinput{
  flex:1 1 220px;
}

.honey-shed-muted{
  color:#6b7280;
  font-size:12px;
}

.harvest-form{
  display:grid;
  gap:14px;
}

.harvest-form-grid,
.harvest-context-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.harvest-duration{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:8px 12px;
  border-radius:999px;
  background:#172117;
  color:#fffdf7;
  font-weight:800;
}

.harvest-pollen-panel,
.harvest-flowering-panel{
  display:grid;
  gap:12px;
  border:1px solid rgba(47,125,75,.2);
  border-radius:8px;
  background:#f7fbf4;
  padding:14px;
}

.harvest-context-card{
  display:grid;
  gap:6px;
  min-height:96px;
  padding:12px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:8px;
  background:#fff;
}

.harvest-context-card span{
  color:#6b7280;
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
}

.harvest-context-card strong{
  color:#172117;
  line-height:1.35;
}

.harvest-context-card--wide{
  grid-column:1 / -1;
}

.harvest-history{
  display:grid;
  gap:10px;
  margin-top:12px;
}

.harvest-history-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border:1px solid rgba(107,74,15,.14);
  border-radius:8px;
  background:#fff;
}

.harvest-history-actions{
  display:grid;
  gap:8px;
  justify-items:end;
}

.harvest-history-item h3{
  margin:0 0 4px;
  color:#172117;
  font-size:16px;
}

.harvest-history-item strong{
  white-space:nowrap;
  color:#2f7d4b;
}

.harvest-trend-heading{
  align-items:flex-start;
}

.harvest-trend{
  display:grid;
  gap:12px;
  margin-top:12px;
}

.harvest-trend-summary{
  display:flex;
  align-items:baseline;
  gap:8px;
  padding:12px;
  border:1px solid rgba(47,125,75,.18);
  border-radius:8px;
  background:#f7fbf4;
}

.harvest-trend-summary strong{
  color:#2f7d4b;
  font-size:24px;
}

.harvest-trend-summary span{
  color:#6b7280;
  font-weight:800;
}

.harvest-trend-grid{
  display:grid;
  gap:10px;
}

.harvest-trend-card{
  display:grid;
  gap:5px;
  padding:12px;
  border:1px solid rgba(107,74,15,.14);
  border-radius:8px;
  background:#fff;
}

.harvest-trend-card span,
.harvest-detail-row span{
  color:#6b7280;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.harvest-trend-card strong{
  color:#172117;
  font-size:20px;
}

.harvest-trend-card div{
  color:#6b7280;
  font-size:13px;
}

.harvest-modal__panel{
  width:min(880px, calc(100vw - 32px));
  border-radius:8px;
}

.harvest-detail{
  display:grid;
  gap:14px;
  margin-top:16px;
}

.harvest-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.harvest-detail-row,
.harvest-detail-section{
  display:grid;
  gap:5px;
  padding:12px;
  border:1px solid rgba(107,74,15,.14);
  border-radius:8px;
  background:#fff;
}

.harvest-detail-row strong{
  color:#172117;
  line-height:1.35;
}

.harvest-detail-section h3{
  margin:0;
  color:#172117;
  font-size:16px;
}

.harvest-detail-section p{
  margin:0;
  color:#374151;
  line-height:1.45;
}

.settings-corner-btn{
  position:fixed;
  top:14px;
  left:16px;
  z-index:1403;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border:1px solid rgba(107,74,15,.24);
  border-radius:50%;
  background:#172117;
  color:#fffdf7;
  font-size:24px;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(88,64,25,.18);
  transition:transform .16s ease, box-shadow .16s ease;
}

.settings-corner-btn:hover,
.settings-corner-btn:focus-visible{
  transform:translateY(-1px) rotate(12deg);
  box-shadow:0 12px 28px rgba(88,64,25,.24);
  outline:3px solid rgba(216,148,34,.28);
  outline-offset:2px;
}

.settings-corner-btn[aria-current="page"]{
  background:var(--accent-dark);
}

@media (max-width: 560px) {
  .workspace-switch{
    top:8px;
    width:calc(100vw - 16px);
    overflow-x:auto;
    justify-content:flex-start;
  }

  .workspace-switch__item{
    min-width:78px;
    padding:8px 10px;
  }

  .settings-corner-btn{
    top:66px;
    left:12px;
    width:44px;
    height:44px;
  }
}

.settings-wrap{
  max-width:1180px;
}

.settings-account-strip{
  border-color:rgba(39,93,63,.2);
  background:rgba(250,252,247,.92);
}

.settings-shell{
  padding:18px;
  overflow:visible;
  border-color:rgba(84,62,22,.15);
  background:rgba(255,252,244,.76);
  box-shadow:0 18px 42px rgba(76,55,22,.13);
  backdrop-filter:blur(10px);
}

.settings-shell__header{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 2px 12px;
  border-bottom:1px solid rgba(107,74,15,.12);
}

.settings-back-btn{
  display:grid;
  width:42px;
  height:42px;
  flex:0 0 auto;
  place-items:center;
  border:1px solid rgba(47,105,72,.28);
  border-radius:50%;
  background:rgba(255,253,247,.96);
  color:#2f6948;
  font-size:25px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  box-shadow:0 7px 16px rgba(65,78,53,.1);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.settings-back-btn:hover,
.settings-back-btn:focus-visible{
  transform:translateX(-2px);
  border-color:#2f6948;
  box-shadow:0 9px 19px rgba(47,105,72,.16);
  outline:none;
}

.settings-hub-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-top:18px;
  padding:24px;
  border:1px solid rgba(39,93,63,.24);
  border-radius:18px;
  background:
    radial-gradient(circle at 95% 10%,rgba(240,184,62,.24),transparent 34%),
    linear-gradient(135deg,#234b36,#2f6948);
  color:#fffdf7;
  box-shadow:0 16px 34px rgba(32,72,49,.18);
}

.settings-hub-intro .h2{
  margin:5px 0 4px;
  color:#fff;
  font-size:clamp(25px,4vw,34px);
}

.settings-hub-intro p{
  max-width:680px;
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.5;
}

.settings-hub-intro .package-badge{
  flex:0 0 auto;
  background:#fff3cb;
}

.settings-hub-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.settings-hub-card{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 24px;
  gap:5px 13px;
  align-items:center;
  min-height:116px;
  padding:18px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:16px;
  background:rgba(255,253,247,.96);
  color:var(--text);
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(88,64,25,.08);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.settings-hub-card::after{
  grid-column:3;
  grid-row:1 / span 2;
  content:"›";
  color:#2f6948;
  font-size:28px;
  font-weight:700;
  line-height:1;
}

.settings-hub-card:hover,
.settings-hub-card:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(47,105,72,.48);
  box-shadow:0 14px 28px rgba(66,78,53,.14);
  outline:none;
}

.settings-hub-card__icon{
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border-radius:14px;
  background:#e8f3eb;
  color:#2f6948;
  font-size:22px;
  font-weight:900;
}

.settings-hub-card strong{
  font-size:17px;
}

.settings-hub-card > span:last-child:not(.settings-hub-card__icon){
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}

@media (max-width:700px){
  .settings-hub-grid{
    grid-template-columns:1fr;
  }

  .settings-hub-intro{
    align-items:stretch;
    flex-direction:column;
  }

  .settings-shell__header{
    padding-bottom:10px;
  }
}

@media (max-width: 880px){
  .harvest-grid,
  .harvest-form-grid,
  .harvest-context-grid,
  .harvest-detail-grid,
  .honey-shed-summary{
    grid-template-columns:1fr;
  }

  .harvest-context-card--wide{
    grid-column:auto;
  }

  .harvest-history-item{
    display:grid;
  }

  .harvest-history-actions{
    justify-items:start;
  }

  .honey-hive-frame-list{
    grid-template-columns:1fr;
  }

  .honey-hive-frame-row{
    grid-template-columns:auto minmax(0,1fr) minmax(80px,96px);
  }
}

html:not(.hc-auth-ready) #authFields,
html:not(.hc-auth-ready) #signOutBtn,
html:not(.hc-auth-ready) #fieldTestingIntro,
.hc-auth-bootstrapping #authFields,
.hc-auth-bootstrapping #signOutBtn,
.hc-auth-bootstrapping #fieldTestingIntro{
  display:none !important;
}

.topbar{
  position:sticky; top:0;
  z-index:1300;
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 18px;
  background:rgba(255,253,247,.92);
  border-bottom:1px solid var(--line);
}

.bee-reminder-btn{
  position:fixed;
  top:14px;
  right:16px;
  z-index:1302;
  width:46px;
  height:46px;
  border:1px solid rgba(107,74,15,.22);
  border-radius:999px;
  background:#fffdf7;
  box-shadow:0 10px 24px rgba(88,64,25,.18);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bee-reminder-btn.has-reminders{
  border-color:rgba(220,38,38,.42);
  box-shadow:0 0 0 3px rgba(220,38,38,.12), 0 12px 28px rgba(88,64,25,.2);
}

.bee-reminder-btn__badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  border:2px solid #fffdf7;
  font-size:11px;
  line-height:16px;
  font-weight:800;
  text-align:center;
}

.bee-reminder-popover{
  position:fixed;
  top:66px;
  right:16px;
  z-index:1301;
  width:min(360px, calc(100vw - 32px));
  max-height:min(520px, calc(100vh - 86px));
  overflow:auto;
  padding:12px;
  border:1px solid rgba(107,74,15,.22);
  border-radius:12px;
  background:#fffdf7;
  box-shadow:0 18px 42px rgba(88,64,25,.2);
}

.bee-reminder-popover__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
  color:#33412f;
}

.bee-reminder-popover__head span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.bee-reminder-popover__body{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
  color:#33412f;
  font-size:13px;
  line-height:1.45;
}

.bee-reminder-popover__body > div{
  padding:10px;
  border:1px solid rgba(47,125,75,.18);
  border-radius:10px;
  background:rgba(237,247,237,.52);
}

.bee-reminder-popover .btn{
  margin-left:6px;
  margin-top:8px;
  padding:7px 10px;
  font-size:12px;
}

.bee-icon{
  position:relative;
  display:block;
  width:28px;
  height:24px;
}

.bee-icon__wing{
  position:absolute;
  top:0;
  width:13px;
  height:13px;
  border:2px solid rgba(47,125,75,.34);
  border-radius:999px 999px 999px 4px;
  background:rgba(237,247,237,.86);
}

.bee-icon__wing--left{
  left:4px;
  transform:rotate(-24deg);
}

.bee-icon__wing--right{
  right:4px;
  transform:scaleX(-1) rotate(-24deg);
}

.bee-icon__body{
  position:absolute;
  left:5px;
  right:5px;
  bottom:1px;
  height:16px;
  border-radius:999px;
  border:2px solid rgba(107,74,15,.42);
  background:
    repeating-linear-gradient(90deg, #d89422 0 5px, #172117 5px 8px, #f4c64f 8px 13px);
}

.bee-icon__body::before,
.bee-icon__body::after{
  content:"";
  position:absolute;
  top:4px;
  width:3px;
  height:3px;
  border-radius:999px;
  background:#172117;
}

.bee-icon__body::before{left:3px}
.bee-icon__body::after{right:3px}
.brand{font-weight:800}
.hint{color:var(--muted); font-size:13px}

.wrap{width:min(96vw, 1680px); max-width:none; margin:22px auto; padding:0 18px;}
.twoCol{display:grid; grid-template-columns: 1.25fr .9fr; gap:16px}
@media (max-width: 980px){ .twoCol{grid-template-columns:1fr} }

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:18px;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}

section#appShell.card{
  background:transparent;
  border-color:rgba(226,220,203,.72);
  box-shadow:0 14px 34px rgba(88,64,25,.08);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.dashboard-wrap{
  max-width:1280px;
}

.dashboard-page .topbar.centered{
  padding:24px 0 8px;
}

.dashboard-page .topbar.centered .logo{
  height:180px;
}

.dashboard-shell{
  padding:18px;
}

.dashboard-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 24px;
  border:1px solid rgba(39,93,63,.24);
  border-radius:18px;
  background:
    radial-gradient(circle at 95% 10%,rgba(240,184,62,.24),transparent 34%),
    linear-gradient(135deg,#234b36,#2f6948);
  color:#fffdf7;
  box-shadow:0 16px 34px rgba(32,72,49,.18);
}

.dashboard-header .h1{
  margin:4px 0 3px;
  color:#fff;
  font-size:clamp(26px,4vw,34px);
}

.dashboard-header p{
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.45;
}

.dashboard-apiary-picker{
  display:grid;
  gap:6px;
  width:min(100%,310px);
  flex:0 0 310px;
}

.dashboard-apiary-picker > span{
  color:rgba(255,255,255,.78);
  font-size:11px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.dashboard-apiary-picker select{
  width:100%;
  min-height:44px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:11px;
  background:rgba(255,255,255,.96);
  color:#244d36;
  font-weight:800;
}

.dashboard-action-bar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 14px;
  padding:11px;
  border:1px solid rgba(107,74,15,.14);
  border-radius:14px;
  background:rgba(255,253,247,.92);
  box-shadow:0 8px 20px rgba(88,64,25,.06);
}

.dashboard-action-bar .btn,
.dashboard-action-bar select{
  flex:0 0 auto;
}

.dashboard-more-menu{
  position:relative;
  margin-left:auto;
}

.dashboard-more-menu > summary{
  list-style:none;
}

.dashboard-more-menu > summary::-webkit-details-marker{
  display:none;
}

.dashboard-more-menu[open] > summary{
  border-color:#2f6948;
  background:#e8f3eb;
  color:#2f6948;
}

.dashboard-more-menu__panel{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:30;
  display:grid;
  grid-template-columns:repeat(2,minmax(145px,1fr));
  gap:8px;
  width:min(92vw,350px);
  padding:12px;
  border:1px solid rgba(47,105,72,.2);
  border-radius:14px;
  background:rgba(255,253,247,.98);
  box-shadow:0 18px 38px rgba(49,57,39,.2);
}

.dashboard-more-menu__panel .btn{
  width:100%;
  white-space:normal;
}

.dashboard-tabs{
  width:max-content;
  max-width:100%;
  margin:0 0 14px;
  padding:5px;
  border:1px solid rgba(47,105,72,.14);
  border-radius:13px;
  background:rgba(245,250,246,.9);
}

#forecastPanel{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.row{display:flex; justify-content:space-between; align-items:center; gap:12px}
.gap{gap:10px}
.h1{margin:0; font-size:22px}
.h2{margin:0 0 12px; font-size:18px}
.pill{
  font-size:13px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--accent-dark);
  background:rgba(255,244,207,.65);
}

.controls{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 16px}
.controls-help{display:flex; align-items:center; gap:8px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid rgba(107,74,15,.24);
  background:rgba(255,253,247,.92);
  color:var(--text);
  border-radius:10px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:700;
  text-decoration:none;
  line-height:1.15;
  white-space:nowrap;
  box-shadow:0 5px 14px rgba(88,64,25,.12);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, filter .16s ease;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.btn:hover{
  filter:brightness(1.01);
  transform:translateY(-1px);
  border-color:rgba(107,74,15,.38);
  box-shadow:0 9px 20px rgba(88,64,25,.18);
}
.btn.active{
  background:var(--green);
  color:#fff;
  border-color:#1f5f37;
  box-shadow:0 10px 24px rgba(47,125,75,.34);
}
.btn.danger{
  background:#fff5f5;
  color:#b91c1c;
  border-color:#b91c1c;
  font-weight:800;
}
.btn.success{
  background:var(--green);
  color:#fff;
  border-color:#1f5f37;
  box-shadow:0 10px 24px rgba(47,125,75,.26);
}
.btn.muted,
.btn:disabled{
  background:#edf0e8;
  color:#7b8275;
  border-color:#cfd6c8;
  box-shadow:none;
  cursor:not-allowed;
}
.btn:disabled:hover{
  filter:none;
  transform:none;
  box-shadow:none;
}
#openDeadoutBtn,
#deadoutSubmitBtn{
  color:#b91c1c !important;
  border:2px solid #b91c1c !important;
  font-weight:800 !important;
}
.btn.small{padding:8px 10px; border-radius:10px; font-weight:700}
.btn.ghost{background:rgba(255,253,247,.82)}
.tabs{display:flex; gap:10px; flex-wrap:wrap}
.tab-panel{margin-top:12px}
.tab-panel.hidden{display:none !important}
.forecast-view-tabs{
  display:flex;
  gap:8px;
  margin-bottom:12px;
}
.forecast-view--overview .forecast-calendar-only{display:none !important}
.forecast-view--calendar .forecast-overview-only{display:none !important}
.field-label-row{display:flex; align-items:center; gap:8px}
.help-btn{
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fffdf7;
  color:var(--muted);
  font-weight:800;
  cursor:pointer;
  line-height:1;
  padding:0;
}
.help-btn:hover{color:var(--accent-dark); border-color:#d8b35c}
.mode-help{
  margin:-8px 0 12px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f7f4e7;
  color:#3f4b3b;
  font-size:12px;
  line-height:1.4;
}

.calendar{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:10px;
}
.tile{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  min-height:88px;
  background:#fffdf7;
}
.tile--interactive{cursor:pointer}
.tile--interactive:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.tile--treatment-window{box-shadow:inset 0 0 0 2px rgba(14,165,233,.45)}
.tile--treatment-start{border-top:4px solid var(--accent)}
.tile--treatment-end{border-bottom:4px solid var(--accent)}
.tile .d{font-weight:800; font-size:12px; color:var(--muted)}
.tile .k{margin-top:6px; font-weight:800}
.tile .v{margin-top:4px; color:var(--muted); font-size:12px; line-height:1.25}
.tile__hint{display:inline-block; margin-top:4px; font-size:11px; font-weight:700; color:var(--accent-dark)}
.tile.good{outline:2px solid rgba(16,185,129,.25)}
.tile.warn{outline:2px solid rgba(245,158,11,.25)}
.tile.bad{outline:2px solid rgba(239,68,68,.25)}

.legend{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.range-disclaimer{
  margin-top:10px;
  color:var(--accent-dark);
  background:var(--accent-soft);
  border:1px solid #efd078;
  padding:8px 10px;
  border-radius:10px;
  font-size:12px;
}
.warning-box{
  margin-top:14px;
  color:var(--accent-dark);
  background:var(--accent-soft);
  border:1px solid var(--accent);
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
}
.toggle-row{display:flex; align-items:center; gap:10px; margin-top:10px}
.toggle-row input{transform:scale(1.1)}
.ios-toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}
.ios-switch{
  position:relative;
  display:inline-block;
  width:52px;
  height:32px;
}
.ios-switch input{
  opacity:0;
  width:0;
  height:0;
}
.ios-slider{
  position:absolute;
  inset:0;
  cursor:pointer;
  background:#d1d5db;
  border-radius:999px;
  transition:background .2s ease;
}
.ios-slider::before{
  content:"";
  position:absolute;
  height:26px;
  width:26px;
  left:3px;
  top:3px;
  background:#fff;
  border-radius:50%;
  box-shadow:0 1px 3px rgba(0,0,0,.24);
  transition:transform .2s ease;
}
.ios-switch input:checked + .ios-slider{
  background:#34c759;
}
.ios-switch input:checked + .ios-slider::before{
  transform:translateX(20px);
}
.ios-switch input:focus-visible + .ios-slider{
  outline:2px solid #2563eb;
  outline-offset:2px;
}
.dot{display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; vertical-align:-1px}
.dot.good{background:rgba(16,185,129,.35)}
.dot.warn{background:rgba(216,148,34,.38)}
.dot.bad{background:rgba(239,68,68,.35)}
.dot.neutral{background:rgba(107,114,128,.45)}
.system-note{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid #e9c982;
  background:#fff7e6;
  border-radius:12px;
  color:#6b4f1f;
}
.system-note--neutral{
  border-color:#cfd8e3;
  background:#f7fafc;
  color:#334155;
}
.system-note__title{
  font-weight:800;
  margin-bottom:6px;
}
.system-note__body{
  line-height:1.45;
}

.field{display:flex; flex-direction:column; gap:6px; margin:10px 0}
.field span{font-size:12px; color:var(--muted); font-weight:800}
.field input,.field select{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fffdf7;
}
.field textarea{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fffdf7;
  font:inherit;
  resize:vertical;
  min-height:120px;
}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.flowering-location-fields{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:10px;
  align-items:end;
}
.stack{display:grid; gap:12px}
@media (max-width: 680px){
  .grid2,
  .flowering-location-fields,
  .field-report-location-row{grid-template-columns:1fr}

  .field-report-location-or{
    justify-self:start;
    min-width:0;
  }
}

.hidden{display:none !important}

.authcard{margin-bottom:16px}
.authcard--hero{
  max-width:1100px;
  margin:0 auto 16px;
  border-color:rgba(107,74,15,.16);
  background:
    linear-gradient(135deg, rgba(255,253,247,.92) 0%, rgba(255,248,225,.88) 58%, rgba(239,248,238,.9) 100%);
  box-shadow:0 18px 42px rgba(88,64,25,.12);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.field-testing-intro{
  max-width:780px;
  margin-bottom:22px;
}
.field-testing-kicker{
  margin:0 0 8px;
  color:#6b4a0f;
  font-size:13px;
  font-weight:900;
  letter-spacing:0;
  text-transform:uppercase;
}
.field-testing-title{
  margin:0;
  color:#172117;
  font-size:clamp(34px, 4.2rem, 60px);
  line-height:.96;
  letter-spacing:0;
}
.field-testing-tagline{
  margin:10px 0 0;
  color:#2d3a27;
  font-size:18px;
  font-weight:800;
}
.field-testing-copy{
  display:grid;
  gap:9px;
  margin-top:18px;
  color:#3f4638;
  font-size:15px;
  line-height:1.55;
}
.field-testing-copy p,
.field-testing-contact{
  margin:0;
}
.field-testing-contact{
  margin-top:16px;
  color:#5c513e;
  font-size:14px;
  font-weight:700;
  line-height:1.45;
}
.field-testing-contact a{
  color:#172117;
  text-decoration-color:rgba(216,148,34,.65);
  text-underline-offset:3px;
}
.authrow{
  align-items:center;
  flex-wrap:wrap;
  padding-top:18px;
  border-top:1px solid rgba(107,74,15,.16);
}
.authrow > div:first-child{
  min-width:190px;
}
.authactions{
  flex:1 1 680px;
  display:flex;
  align-items:center;
  justify-content:end;
  flex-wrap:wrap;
  gap:10px;
}
.authmeta{color:var(--muted); font-size:14px}
.authremember{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.authremember input{
  margin:0;
}
.auth-password-group{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:6px;
  align-items:center;
}
.authinput{
  min-width:180px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(255,253,247,.96);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.authinput:focus{
  outline:2px solid rgba(216,148,34,.22);
  border-color:rgba(107,74,15,.38);
}
.authhint{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
}
.legal-card{
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:16px;
  border-color:rgba(216,148,34,.38);
  background:rgba(255,248,225,.74);
  box-shadow:0 12px 28px rgba(88,64,25,.08);
}
.legal-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.legal-card__head .h2{
  margin:0;
}
.legal-card__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border:1px solid rgba(107,74,15,.18);
  border-radius:999px;
  background:rgba(255,253,247,.78);
  color:var(--accent-dark);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.legal-copy{
  color:var(--accent-dark);
  font-size:13px;
  line-height:1.5;
  margin-top:8px;
}
.legal-copy:first-of-type{
  margin-top:0;
}
.buildmeta{
  margin-top:10px;
  text-align:left;
  font-weight:800;
  color:var(--accent-dark);
}
.legal-card .buildmeta{
  display:none;
}

.setup-wrap{
  max-width:1180px;
}

.setup-navigation{
  margin-top:16px;
  padding:12px 18px;
  overflow:visible;
  border-color:rgba(84,62,22,.15);
  background:rgba(255,252,244,.76);
  box-shadow:0 12px 28px rgba(76,55,22,.1);
  backdrop-filter:blur(10px);
}

.saved-apiaries-section,
.setup-workflow-section{
  margin-top:16px;
  padding:18px;
  overflow:visible;
  border-color:rgba(84,62,22,.15);
  background:rgba(255,252,244,.76);
  box-shadow:0 18px 42px rgba(76,55,22,.13);
  backdrop-filter:blur(10px);
}

.saved-apiaries-hero,
.setup-workflow-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:24px;
  border:1px solid rgba(39,93,63,.24);
  border-radius:18px;
  background:
    radial-gradient(circle at 95% 10%,rgba(240,184,62,.24),transparent 34%),
    linear-gradient(135deg,#234b36,#2f6948);
  color:#fffdf7;
  box-shadow:0 16px 34px rgba(32,72,49,.18);
}

.saved-apiaries-hero .h2,
.setup-workflow-hero .h1,
.setup-workflow-hero .h2{
  margin:5px 0 4px;
  color:#fff;
  font-size:clamp(25px,4vw,34px);
}

.saved-apiaries-hero p,
.setup-workflow-hero p{
  max-width:680px;
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.5;
}

.setup-workflow-hero--compact .btn{
  flex:0 0 auto;
  border-color:rgba(255,255,255,.42);
  color:#fff;
}

.setup-workflow-card{
  display:grid;
  gap:16px;
  margin-top:14px;
  padding:20px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:16px;
  background:rgba(255,253,247,.96);
  box-shadow:0 10px 24px rgba(88,64,25,.08);
}

.setup-workflow-card > .grid2{
  margin-top:0;
}

.setup-workflow-card .hive-profile-row{
  border-color:rgba(47,105,72,.16);
  border-radius:14px;
  background:#f8fbf7;
}

.saved-apiaries-empty{
  margin-top:14px;
  padding:22px;
  border:1px dashed rgba(47,105,72,.3);
  border-radius:16px;
  background:rgba(245,250,246,.88);
  color:var(--muted);
  text-align:center;
}

.hive-tools-wrap{
  max-width:1180px;
}

.hive-tools-navigation{
  margin-top:16px;
  padding:12px 18px;
  overflow:visible;
  border-color:rgba(84,62,22,.15);
  background:rgba(255,252,244,.76);
  box-shadow:0 12px 28px rgba(76,55,22,.1);
  backdrop-filter:blur(10px);
}

.hive-tools-shell{
  margin-top:16px;
  padding:18px;
  overflow:visible;
  border-color:rgba(84,62,22,.15);
  background:rgba(255,252,244,.76);
  box-shadow:0 18px 42px rgba(76,55,22,.13);
  backdrop-filter:blur(10px);
}

.hive-tools-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:24px;
  border:1px solid rgba(39,93,63,.24);
  border-radius:18px;
  background:
    radial-gradient(circle at 95% 10%,rgba(240,184,62,.24),transparent 34%),
    linear-gradient(135deg,#234b36,#2f6948);
  color:#fffdf7;
  box-shadow:0 16px 34px rgba(32,72,49,.18);
}

.hive-tools-hero .h1{
  margin:5px 0 4px;
  color:#fff;
  font-size:clamp(25px,4vw,34px);
}

.hive-tools-hero p{
  max-width:680px;
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.5;
}

.hive-tools-stack{
  display:grid;
  gap:14px;
  margin-top:14px;
}

.hive-tools-card{
  display:grid;
  gap:18px;
  padding:20px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:16px;
  background:rgba(255,253,247,.96);
  box-shadow:0 10px 24px rgba(88,64,25,.08);
}

.hive-tools-card__heading{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:13px;
  align-items:start;
}

.hive-tools-card__number{
  display:grid;
  width:44px;
  height:44px;
  place-items:center;
  border-radius:13px;
  background:#e8f3eb;
  color:#2f6948;
  font-size:18px;
  font-weight:900;
}

.hive-tools-card__heading .h2{
  margin:3px 0 2px;
  color:#244d36;
  font-size:21px;
}

.hive-tools-card__heading p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.hive-tools-form-grid{
  margin-top:0;
  align-items:start;
}

.hive-tools-card .checkbox-list{
  min-height:48px;
  border-color:rgba(47,105,72,.18);
  background:#f8fbf7;
}

.hive-tools-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:15px;
  border-top:1px solid rgba(107,74,15,.12);
}

.hive-tools-note{
  max-width:700px;
  margin:0;
}

.hive-tools-card--danger{
  border-color:rgba(185,28,28,.18);
}

.hive-tools-card--danger .hive-tools-card__number{
  background:#fff0f0;
  color:#a71919;
}

.hive-tools-warning{
  display:flex;
  gap:8px 14px;
  align-items:baseline;
  flex-wrap:wrap;
  padding:12px 14px;
  border:1px solid rgba(185,28,28,.2);
  border-radius:12px;
  background:#fff7f7;
  color:#7d1f1f;
  font-size:13px;
  line-height:1.45;
}

.hive-tools-warning strong{
  color:#a71919;
}

.saved-apiaries{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}

.saved-apiaries-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-top:14px;
  padding:14px 16px;
  border:1px solid rgba(107,74,15,.14);
  border-radius:14px;
  background:rgba(255,253,247,.92);
}

.saved-apiaries-toolbar__label{
  display:grid;
  gap:3px;
  flex:1 1 230px;
}

.saved-apiaries-toolbar__label span{
  color:var(--muted);
  font-size:13px;
}

.saved-apiaries-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex:1 1 640px;
  flex-wrap:wrap;
  min-width:0;
}

.saved-apiaries-actions .btn{
  white-space:normal;
}

.saved-apiary{
  display:grid;
  gap:14px;
  align-content:start;
  padding:18px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:16px;
  background:rgba(255,253,247,.96);
  box-shadow:0 10px 24px rgba(88,64,25,.08);
}

.saved-apiary__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.saved-apiary__identity{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-width:0;
}

.saved-apiary__icon{
  display:grid;
  width:48px;
  height:48px;
  place-items:center;
  border-radius:14px;
  background:#e8f3eb;
  color:#2f6948;
  font-size:22px;
  font-weight:900;
}

.saved-apiary__title-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.saved-apiary__title{
  overflow-wrap:anywhere;
  font-size:18px;
  font-weight:900;
}

.saved-apiary__role{
  padding:4px 8px;
  border:1px solid rgba(183,121,31,.3);
  border-radius:999px;
  background:#fff3cb;
  color:#79510f;
  font-size:11px;
  font-weight:900;
  text-transform:capitalize;
}

.saved-apiary__location{
  margin-top:3px;
  color:var(--muted);
  font-size:13px;
}

.saved-apiary__actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.saved-apiary__summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.location-verification-modal{
  width:min(860px, calc(100vw - 28px));
  max-height:90vh;
  overflow:auto;
}
.location-verification-rating{
  margin:14px 0;
  padding:18px;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(125deg, #174f38, #4f773b);
  box-shadow:0 16px 34px rgba(25, 68, 45, .18);
}
.location-verification-rating__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
}
.location-verification-rating__score{
  display:flex;
  align-items:center;
  gap:10px;
}
.location-verification-rating strong{font-size:clamp(26px, 5vw, 42px)}
.location-verification-rating p{margin:8px 0 0;color:rgba(255,255,255,.84)}
.location-verification-rating__status{margin-top:6px;font-weight:800;color:#ffe092}
.location-verification-help{
  display:inline-grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid rgba(255,255,255,.65);
  border-radius:50%;
  color:#174f38;
  background:#fff8df;
  font:900 18px/1 inherit;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(0,0,0,.14);
}
.location-verification-help:hover,
.location-verification-help:focus-visible{background:#ffe092;outline:3px solid rgba(255,224,146,.35)}
.location-verification-rating__help{
  margin-top:14px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:14px;
  background:rgba(7,40,27,.32);
}
.location-verification-rating__help > strong{font-size:16px}
.location-verification-rating__help ul{margin:10px 0 0;padding-left:20px;color:rgba(255,255,255,.92)}
.location-verification-rating__help li + li{margin-top:5px}
.location-verification-rating__help b{color:#ffe092}
.location-verification-gps{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:12px 0;
  padding:12px;
  border:1px solid rgba(32,92,61,.18);
  border-radius:14px;
  background:rgba(242,249,243,.82);
}
.location-verification-consent{margin:10px 0;max-width:none}
.location-verification-history{margin-top:18px}
.location-verification-history__item{align-items:center;gap:14px}
.location-verification-history__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  margin-left:auto;
}
.location-verification-history__item .check-pill{white-space:nowrap}
.hive-to-jar-verification{
  border-color:color-mix(in srgb, var(--hive-to-jar-brand, #b7791f) 42%, #d8cba9);
  background:linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,249,240,.92));
}
.hive-to-jar-verification-card{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px;
}
.hive-to-jar-verification-card > div{
  padding:13px;
  border-radius:14px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(30,73,50,.12);
}
.hive-to-jar-verification-card span{display:block;font-size:12px;color:#627064}
.hive-to-jar-verification-card strong{display:block;margin-top:4px;color:#153f2d}

.saved-apiary__summary > div{
  display:grid;
  gap:4px;
  min-width:0;
  padding:11px;
  border:1px solid rgba(47,105,72,.14);
  border-radius:11px;
  background:#f1f8f3;
}

.saved-apiary__summary span{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.saved-apiary__summary strong{
  overflow-wrap:anywhere;
  color:#28593e;
  font-size:13px;
}

.saved-apiary__details{
  border-top:1px solid rgba(107,74,15,.12);
  padding-top:11px;
}

.saved-apiary__details summary{
  color:#2f6948;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.saved-apiary__meta{
  margin-top:10px;
  padding:12px;
  border-radius:11px;
  background:rgba(246,243,234,.8);
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  white-space:pre-line;
}

.saved-apiary__report{
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(170px,220px) auto;
  gap:10px;
  align-items:center;
  margin-top:10px;
  padding:12px;
  border:1px solid rgba(47,105,72,.16);
  border-radius:12px;
  background:#f1f8f3;
}

.saved-apiary__report > div{
  display:grid;
  gap:2px;
}

.saved-apiary__report strong{
  color:#28593e;
}

.saved-apiary__report span{
  color:var(--muted);
  font-size:12px;
}

@media (max-width:900px){
  .saved-apiaries{
    grid-template-columns:1fr;
  }
}

@media (max-width:680px){
  .dashboard-page .topbar.centered{
    padding:18px 0 4px;
  }

  .dashboard-page .topbar.centered .logo{
    height:108px;
  }

  .dashboard-shell{
    padding:12px;
  }

  .dashboard-header{
    align-items:stretch;
    flex-direction:column;
    padding:18px;
  }

  .dashboard-apiary-picker{
    width:100%;
    flex-basis:auto;
  }

  .dashboard-action-bar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .dashboard-action-bar > .btn,
  .dashboard-more-menu{
    width:100%;
  }

  .dashboard-more-menu{
    margin-left:0;
  }

  .dashboard-more-menu > summary{
    width:100%;
  }

  .dashboard-more-menu__panel{
    right:auto;
    left:0;
    grid-template-columns:1fr;
    width:100%;
  }

  .saved-apiaries-section,
  .setup-workflow-section,
  .hive-tools-shell{
    padding:12px;
  }

  .saved-apiaries-hero,
  .setup-workflow-hero,
  .hive-tools-hero{
    align-items:stretch;
    flex-direction:column;
  }

  .setup-navigation,
  .hive-tools-navigation{
    padding:10px 12px;
  }

  .setup-workflow-card,
  .hive-tools-card{
    padding:16px;
  }

  .hive-tools-card__footer{
    align-items:stretch;
    flex-direction:column;
  }

  .hive-tools-card__footer .btn{
    width:100%;
  }

  .saved-apiaries-toolbar{
    align-items:stretch;
  }

  .saved-apiaries-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .saved-apiaries-actions .btn{
    width:100%;
  }

  .saved-apiary__head{
    align-items:stretch;
  }

  .saved-apiary__actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .saved-apiary__actions .btn{
    width:100%;
  }

  .saved-apiary__summary{
    grid-template-columns:1fr;
  }

  .saved-apiary__report{
    grid-template-columns:1fr;
  }

  .saved-apiary__report .btn{
    width:100%;
  }
}

.hive-profile-list{
  display:grid;
  gap:12px;
}

.hive-profile-row{
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:#fffdf7;
}

.hive-profile-row__head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.hive-profile-row__head span{
  color:var(--muted);
  font-size:13px;
}

@media (max-width:680px){
  .setup-workflow-card{
    padding:12px;
    border-radius:12px;
  }

  .hive-profile-row{
    min-width:0;
    padding:12px;
  }

  .hive-profile-row__head{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
  }

  .hive-profile-row__head strong,
  .hive-profile-row__head span{
    min-width:0;
    overflow-wrap:anywhere;
  }

  .hive-profile-row__head [data-promote-nuc],
  #saveHiveProfilesBtn,
  #closeHiveManagerBtn{
    width:100%;
    min-height:44px;
  }

  #hiveManagerSection .row.gap,
  #actionsShell > .row.gap{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }

  #actionsShell > .row.gap .btn{
    width:100%;
    min-height:44px;
  }

  #hiveLineageSummary .card{
    min-width:0;
    overflow-wrap:anywhere;
  }

  .table-wrap{
    max-width:100%;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
  }
}

.station-card{
  margin-top:0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg, #fffaf0 0%, #f1f8ee 100%);
}

.reminder-card{
  border-color:rgba(47,125,75,.34);
  background:linear-gradient(180deg, rgba(237,247,237,.98) 0%, rgba(255,250,240,.96) 100%);
  box-shadow:0 14px 34px rgba(47,125,75,.14);
}

.reminder-card .h2{
  margin-bottom:0;
}

.reminder-card .authhint{
  margin-top:8px;
}

.field-report-card{
  border-color:rgba(176,112,22,.34);
  background:linear-gradient(180deg, rgba(255,248,228,.98) 0%, rgba(245,250,241,.96) 100%);
  box-shadow:0 14px 34px rgba(176,112,22,.12);
}

.field-report-location-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:12px;
  align-items:end;
}

.field-report-location-or{
  align-self:center;
  min-width:34px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-align:center;
  text-transform:uppercase;
}

.field-report-town-picker{
  min-width:0;
}

.field-report-town-suggestions{
  margin-top:6px;
}

.field-report-manage-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}

.field-report-manage-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(176,112,22,.2);
  border-radius:8px;
  background:rgba(255,253,247,.9);
}

.hivemind-card{
  border-color:rgba(47,125,75,.34);
  background:linear-gradient(180deg, rgba(237,247,237,.98) 0%, rgba(255,253,247,.96) 100%);
  box-shadow:0 14px 34px rgba(47,125,75,.12);
}

.hivemind-card--biosecurity{
  border-color:rgba(185,28,28,.38);
  background:linear-gradient(180deg, rgba(255,245,245,.98) 0%, rgba(255,253,247,.96) 100%);
  box-shadow:0 14px 34px rgba(185,28,28,.12);
}

.hivemind-card--biosecurity .hivemind-metric{
  border-color:rgba(185,28,28,.2);
}

.hivemind-card--biosecurity .hivemind-metric strong{
  color:#8f1d1d;
}

.field-report-card .h2,
.hivemind-card .h2{
  margin-bottom:0;
}

.field-report-card .authhint,
.hivemind-card .authhint{
  margin-top:8px;
}

.hivemind-metrics{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-top:10px;
}

.hivemind-metric{
  min-height:58px;
  padding:10px;
  border:1px solid rgba(47,125,75,.2);
  border-radius:8px;
  background:rgba(255,255,255,.58);
}

.hivemind-metric span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0;
}

.hivemind-metric strong{
  display:block;
  margin-top:4px;
  color:#1f5133;
  font-size:16px;
  line-height:1.1;
}

.field-report-drivers{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.hivemind-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(185,28,28,.18);
}

.hivemind-next-step{
  flex:1 1 190px;
  justify-content:center;
}

.station-card--status{
  transition:background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.station-card--good{
  border-color:rgba(22,163,74,.35);
  background:linear-gradient(180deg, rgba(237,247,237,.98) 0%, rgba(224,244,228,.94) 100%);
}

.station-card--warn{
  border-color:rgba(216,148,34,.42);
  background:linear-gradient(180deg, rgba(255,244,207,.98) 0%, rgba(255,236,171,.9) 100%);
}

.station-card--bad{
  border-color:rgba(220,38,38,.35);
  background:linear-gradient(180deg, rgba(254,242,242,.96) 0%, rgba(255,241,242,.9) 100%);
}

.station-card__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.station-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:12px;
  margin-top:14px;
}

.station-metric{
  position:relative;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf7;
  padding:12px;
}

.station-metric--status::after{
  content:"";
  position:absolute;
  right:8px;
  top:8px;
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.9);
}

.station-metric--good::after{
  background:var(--green);
}

.station-metric--warn::after{
  background:var(--accent);
}

.station-metric--bad::after{
  background:#dc2626;
}

.station-metric__label{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}

.weather-wrap{
  max-width:1180px;
}

.weather-title-row{
  align-items:flex-start;
  gap:16px;
}

.weather-actions{
  margin-left:auto;
}

.weather-summary-note{
  margin-top:14px;
  padding:10px 12px;
  border:1px solid #d8b35c;
  border-radius:10px;
  background:#fff8e6;
  color:#5b4617;
  font-weight:700;
}

.weather-now{
  margin-top:18px;
  overflow:hidden;
  border:1px solid rgba(34,83,59,.24);
  border-radius:18px;
  background:linear-gradient(135deg, #173c2c 0%, #245c43 58%, #2f7d4b 100%);
  color:#fffdf7;
  box-shadow:0 18px 42px rgba(23,60,44,.18);
}

.weather-now__loading{padding:20px;color:#e7f0e8;font-weight:700}
.weather-now__hero{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.4fr);gap:24px;padding:24px}
.weather-eyebrow{color:#6b745f;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.weather-now .weather-eyebrow{color:#cae2cf}
.weather-now__temperature{margin-top:5px;font-size:clamp(44px,7vw,72px);font-weight:900;line-height:.95;letter-spacing:-.05em}
.weather-now__source{margin-top:12px;color:#dbe9dd;font-size:12px;line-height:1.45}
.weather-now__source span{display:inline-block;margin-right:8px;padding:4px 8px;border-radius:999px;background:#fffdf7;color:#173c2c;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.weather-now__readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-self:center}
.weather-now__reading{padding:13px 14px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.08)}
.weather-now__reading span{display:block;color:#cfe2d3;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.weather-now__reading strong{display:block;margin-top:5px;font-size:20px;line-height:1.1}
.weather-now__reading strong small{margin-left:2px;font-size:12px}
.weather-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.18)}
.weather-source-grid--single{grid-template-columns:1fr}
.weather-source-card{min-width:0;padding:15px 20px;background:#fffdf7;color:#182318}
.weather-source-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.weather-source-card__head strong{font-size:13px}
.weather-source-card__head span{padding:3px 7px;border-radius:999px;background:#e7f3e8;color:#245c43;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.weather-source-card__values{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 13px;margin-top:9px}
.weather-source-card__values b{font-size:22px}
.weather-source-card__values span{color:#59645a;font-size:12px;font-weight:700}
.weather-source-card p{margin:7px 0 0;color:#788077;font-size:11px;line-height:1.35}
.weather-source-card--empty{background:#f6f3e9}.weather-source-card--empty .weather-source-card__head span{background:#ebe7dc;color:#777166}
.weather-month-section{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#faf8f0}
.weather-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.weather-section-heading .h2{margin-top:4px}
.weather-section-heading__note{color:var(--muted);font-size:12px;font-weight:700}

.weather-metric-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:12px;
  margin-top:14px;
}

.weather-metric,
.weather-panel{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdf7;
  padding:14px;
}

.weather-metric{border-color:rgba(103,83,45,.16);background:#fff}

.weather-metric span,
.weather-metric small{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.weather-metric strong{
  display:block;
  margin-top:6px;
  color:#182318;
  font-size:22px;
  line-height:1.15;
}

.weather-metric small{
  margin-top:6px;
}

.weather-section-grid{
  display:grid;
  grid-template-columns:minmax(280px, .9fr) minmax(0, 1.4fr);
  gap:14px;
  margin-top:16px;
}

@media (max-width:700px){
  .weather-now__hero{grid-template-columns:1fr;padding:19px;gap:18px}
  .weather-source-grid{grid-template-columns:1fr}
  .weather-now__readings{gap:8px}
  .weather-now__reading{padding:11px}
  .weather-now__reading strong{font-size:17px}
  .weather-month-section{padding:14px 12px}
  .weather-section-heading{align-items:flex-start;flex-direction:column;gap:5px}
  .weather-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .weather-metric{padding:11px}
  .weather-metric strong{font-size:18px}
}

.weather-trend-list{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.weather-trend-row{
  display:grid;
  grid-template-columns:70px minmax(90px, 1fr) 78px;
  align-items:center;
  gap:10px;
  font-size:13px;
}

.weather-trend-row strong{
  text-align:right;
}

.weather-trend-bar{
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:#e9e1c8;
}

.weather-trend-bar i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#2f7d4b;
}

.ecowitt-history-panel,
.ecowitt-history-notice{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border:1px solid #c9d9c5;
  border-radius:8px;
  background:#f5fbf1;
  padding:12px;
}

.ecowitt-history-panel{
  grid-column:1 / -1;
  flex-wrap:wrap;
}

.ecowitt-history-panel.hidden{
  display:none !important;
}

.ecowitt-history-notice{
  margin-top:12px;
}

.ecowitt-history-panel .authhint,
.ecowitt-history-notice .authhint{
  margin-top:4px;
}

.biosecurity-alert{
  display:grid;
  gap:10px;
  margin-top:12px;
  padding:12px;
  border:1px solid #fecaca;
  border-radius:8px;
  background:#fff5f5;
  color:#7f1d1d;
}

.biosecurity-alert strong{
  color:#991b1b;
}

.biosecurity-alert ul{
  margin:0;
  padding-left:18px;
}

.biosecurity-alert a{
  color:#991b1b;
  font-weight:800;
}

.station-card__meta{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
}

.station-card__compare{
  margin-top:10px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,253,247,.76);
  color:#3f4b3b;
  font-size:13px;
  font-weight:700;
}

.frost-risk-card{
  border-color:rgba(68,104,130,.28);
  background:linear-gradient(180deg, rgba(245,249,250,.98) 0%, rgba(255,253,247,.96) 100%);
}

.frost-risk-card .h2{
  margin-bottom:0;
}

.frost-risk-score{
  min-width:78px;
  padding:8px 10px;
  border:1px solid rgba(68,104,130,.24);
  border-radius:8px;
  background:#fffdf7;
  color:#21313a;
  font-size:24px;
  font-weight:900;
  line-height:1;
  text-align:center;
}

.frost-risk-level{
  margin-top:8px;
  color:#21313a;
  font-size:18px;
  font-weight:900;
}

.frost-risk-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:10px;
  margin-top:12px;
}

.frost-risk-grid > div,
.frost-detail-metric{
  border:1px solid rgba(68,104,130,.18);
  border-radius:8px;
  background:rgba(255,253,247,.78);
  padding:10px;
}

.frost-risk-grid span,
.frost-detail-metric span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:0;
  text-transform:uppercase;
}

.frost-risk-grid strong,
.frost-detail-metric strong{
  display:block;
  margin-top:4px;
  color:#182318;
  font-size:16px;
  line-height:1.15;
}

.frost-risk-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:12px;
}

.frost-detail-modal{
  width:min(860px, calc(100vw - 32px));
  max-height:calc(100vh - 48px);
  overflow:auto;
}

.frost-detail-body{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:10px;
  margin-top:14px;
}

.frost-detail-explanation{
  grid-column:1 / -1;
  border:1px solid rgba(68,104,130,.18);
  border-radius:8px;
  padding:12px;
  background:#f8faf6;
  color:#2f3b2f;
  font-weight:700;
  line-height:1.45;
}

.frost-observation-panel{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.station-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
  justify-content:flex-start;
}

.ai-actions{
  margin-top:12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.reminder-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.reminder-actions > div{
  padding:12px;
  border:1px solid rgba(47,125,75,.22);
  border-radius:12px;
  background:rgba(255,253,247,.82);
  color:#33412f;
}

.reminder-actions .btn{
  margin-left:8px;
  margin-top:8px;
}

.reminder-hives{
  margin-top:8px;
  color:var(--muted);
}

.reminder-hives summary{
  cursor:pointer;
  font-weight:700;
}

.reminder-hives div{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}

.reminder-hives span{
  padding:3px 8px;
  border:1px solid rgba(47,125,75,.18);
  border-radius:999px;
  background:rgba(47,125,75,.08);
  color:#33412f;
  font-size:12px;
  font-weight:700;
}

.share-apiary-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.share-apiary-list details{
  border:1px solid rgba(47,125,75,.2);
  border-radius:10px;
  background:rgba(255,253,247,.86);
  padding:10px;
}

.share-apiary-list summary{
  cursor:pointer;
  font-weight:800;
  color:#33412f;
}

.share-hive-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:8px;
  margin-top:10px;
}

.share-hive-grid label{
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px 8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdf7;
  font-size:13px;
  font-weight:700;
}

.share-access-panel{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.share-access-list{
  display:grid;
  gap:8px;
  margin-top:10px;
}

.share-access-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdf7;
}

.share-access-item small{
  display:block;
  margin-top:4px;
  color:var(--muted);
}

#aiCard{
  margin-top:0;
}

.quick-log-btn{
  display:none;
}

.mobile-today-card,
.mobile-action-card{
  display:block;
  margin-top:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf7;
  box-shadow:var(--shadow);
}

.mobile-action-card{
  border-color:#a7d7b0;
  background:#edf7ed;
}

.mobile-risk-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.mobile-risk{
  appearance:none;
  color:inherit;
  text-align:left;
  font:inherit;
  cursor:pointer;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf7;
  padding:12px;
  min-height:74px;
}
.mobile-risk:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.mobile-risk small{display:block; margin-top:6px; color:var(--muted); line-height:1.3}
.mobile-risk--weather{border-color:rgba(59,130,246,.3); background:#eff6ff}

.mobile-risk span,
.mobile-action-label{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.mobile-risk strong{
  display:block;
  margin-top:8px;
  font-size:18px;
}

.mobile-risk.good{border-color:rgba(47,125,75,.35); background:var(--green-soft)}
.mobile-risk.warn{border-color:rgba(216,148,34,.45); background:var(--accent-soft)}
.mobile-risk.bad{border-color:rgba(220,38,38,.35); background:#fef2f2}

.mobile-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}

.mobile-action-title{
  margin-top:8px;
  font-size:18px;
  font-weight:900;
  line-height:1.25;
}

.forecast-detail-simple{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.forecast-detail-simple > div{
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8f6ed;
}
.forecast-detail-simple span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.forecast-detail-simple strong{display:block; margin-top:5px; line-height:1.4}
.forecast-technical-details{margin-top:12px}
.forecast-technical-details summary{cursor:pointer; color:var(--accent-dark); font-weight:800}

.mobile-action-body{
  margin-top:8px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.resilience-card{
  margin-top:16px;
}

.biosecurity-record-section{border:1px solid rgba(126,73,23,.2);border-radius:14px;padding:14px;margin-bottom:16px;background:var(--surface,#fff)}
.biosecurity-critical-banner{background:#7f1d1d;color:#fff;border:2px solid #450a0a;border-radius:12px;padding:14px;margin-bottom:12px;font-weight:700;line-height:1.45}
.biosecurity-event-list,.traceability-review-panel{display:grid;gap:8px;margin-top:12px}
.biosecurity-event-item,.biosecurity-connection-item{border:1px solid rgba(127,29,29,.18);border-radius:10px;padding:10px;background:#fff7ed}
.biosecurity-event-item.is-active-afb{background:#fef2f2;border-color:#dc2626}
.biosecurity-connection-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,auto);gap:10px;align-items:center}
.biosecurity-review-badge{display:inline-flex;padding:3px 8px;border-radius:999px;background:#fef3c7;color:#78350f;font-size:.82rem;font-weight:700}
@media (max-width:700px){.biosecurity-record-section{padding:11px}.biosecurity-connection-item{grid-template-columns:1fr}.biosecurity-connection-item select{width:100%}}

.resilience-context{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.resilience-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.resilience-score-block{
  border:1px solid var(--line);
  border-radius:12px;
  background:#f7f4e7;
  padding:12px;
}

.resilience-score{
  font-size:28px;
  font-weight:800;
  line-height:1.1;
}

.resilience-score--small{
  font-size:22px;
}

.resilience-status{
  margin-top:6px;
  font-size:13px;
  color:#3f4b3b;
  font-weight:700;
}

.resilience-meta{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf7;
  padding:12px;
  display:grid;
  gap:8px;
  font-size:13px;
  color:#3f4b3b;
}

.resilience-section{
  margin-top:12px;
}

.resilience-label{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.02em;
}

.resilience-list{
  margin-top:6px;
  display:grid;
  gap:4px;
  font-size:13px;
  color:#253024;
}

.resilience-disclaimer{
  margin-top:12px;
  padding:10px;
  border:1px solid #a7d7b0;
  border-radius:10px;
  background:#edf7ed;
  font-size:12px;
  color:#245135;
  line-height:1.4;
}

.resilience-help{
  margin-top:12px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f7f4e7;
  font-size:12px;
  color:#3f4b3b;
  line-height:1.4;
}

.hive-health-summary{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.hive-health-row{
  cursor:pointer;
}

.hive-health-row:hover{
  background:#f7f4e7;
}

.hive-health-row.is-active{
  background:#edf7ed;
}

.hive-health-detail-card{
  scroll-margin-top:84px;
}

.hive-health-detail-description{
  margin-top:12px;
  color:#253024;
  font-size:14px;
  line-height:1.55;
  max-width:820px;
}

.hive-health-detail-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}

.hive-health-evidence-item{
  min-height:74px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdf7;
  padding:10px;
}

.hive-health-evidence-label{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.hive-health-evidence-value{
  margin-top:6px;
  color:#253024;
  font-size:14px;
  font-weight:800;
  line-height:1.3;
}

.hive-health-trend-list{
  margin-top:6px;
  display:grid;
  gap:6px;
  color:#253024;
  font-size:13px;
  line-height:1.35;
}

.confidence-icon{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#2f7d4b;
  margin-right:6px;
  vertical-align:middle;
}

.confidence-icon--high{
  opacity:1;
}

.confidence-icon--medium{
  opacity:.62;
}

.confidence-icon--low{
  opacity:.34;
}

@media (max-width: 760px){
  .resilience-grid{
    grid-template-columns:1fr;
  }

  .hive-health-detail-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 520px){
  .hive-health-detail-grid{
    grid-template-columns:1fr;
  }
}

.day-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}

.day-pill{
  cursor:pointer;
  user-select:none;
}

.day-pill.active{
  background:var(--green);
  color:#fff;
  border-color:#236b3c;
}

/* Keep the watchlist header visible while the apiary list scrolls. */
#overviewModal{
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
#overviewModal .modal__card{
  box-sizing:border-box;
  width:min(720px, 100%);
  margin:0;
  max-height:calc(100vh - 24px);
  max-height:calc(100dvh - 24px);
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#overviewModal .modal__card > .row,
#overviewModal .overview-summary{flex-shrink:0}
#overviewModal .overview-body{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  align-content:start;
  scrollbar-gutter:stable;
}
#overviewModal .overview-badges{
  align-self:flex-start;
  align-items:flex-start;
}
#overviewModal .biosecurity-critical-banner{
  margin:6px 0;
  padding:7px 9px;
  border-width:1px;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  line-height:1.35;
}
#overviewModal .badge{
  flex:0 0 auto;
  line-height:1.25;
  white-space:nowrap;
}

.overview-body{
  margin-top:16px;
  display:grid;
  gap:10px;
}

.overview-summary{
  margin-top:12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.overview-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf7;
  flex-wrap:wrap;
}

.overview-title{
  font-weight:800;
}

.overview-meta{
  color:var(--muted);
  font-size:13px;
}

.overview-meta.why{
  margin-top:4px;
  color:#3f4b3b;
}

.overview-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.badge{
  font-size:12px;
  font-weight:800;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  color:#172117;
}

.badge.good{background:rgba(47,125,75,.13)}
.badge.warn{background:rgba(216,148,34,.16)}
.badge.bad{background:rgba(239,68,68,.12)}

.research-wrap .card{
  backdrop-filter:blur(10px);
}
.research-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:16px 0;
}
.research-metric{
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,253,247,.86);
  padding:14px;
}
.research-metric span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.research-metric strong{
  display:block;
  margin-top:6px;
  font-size:28px;
  line-height:1;
}
.research-grid{
  align-items:start;
}
.research-profile-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
  margin-top:12px;
}
.research-profile-card{
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,253,247,.88);
  padding:12px;
}
.research-profile-card strong,
.research-profile-card span{
  display:block;
}
.research-profile-card span{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}
.controller-preview-shell{
  margin-top:14px;
  display:flex;
  justify-content:center;
}
.controller-sim-controls{
  width:min(100%,800px);
  margin:12px auto 0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding:10px;
  border:1px solid rgba(23,33,23,.16);
  border-radius:8px;
  background:#fff;
}
.controller-sim-controls label{
  display:grid;
  gap:6px;
  color:#526056;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.controller-sim-controls b{
  color:#172117;
  font-size:13px;
}
.controller-sim-controls input{
  width:100%;
  accent-color:#2f7d4b;
}
.controller-screen{
  width:min(100%,800px);
  aspect-ratio:5/3;
  position:relative;
  overflow:hidden;
  border:2px solid #172117;
  border-radius:0;
  background:#fff;
  box-shadow:0 12px 28px rgba(23,33,23,.18);
  color:#172117;
}
.controller-demo-login{
  position:absolute;
  inset:0;
  z-index:8;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(23,33,23,.34);
  backdrop-filter:blur(8px);
}
.controller-login-card{
  width:min(420px,90%);
  border:1px solid rgba(23,33,23,.18);
  border-radius:8px;
  background:rgba(255,253,247,.96);
  padding:16px;
  box-shadow:0 22px 60px rgba(23,33,23,.28);
}
.controller-login-card strong,
.controller-login-card span,
.controller-login-card em{
  display:block;
}
.controller-login-card strong{
  font-size:24px;
}
.controller-login-card span{
  margin-top:4px;
  color:#526056;
  font-weight:800;
}
.controller-login-card em{
  margin-top:8px;
  color:#2f7d4b;
  font-style:normal;
  font-weight:800;
}
.controller-user-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:16px;
}
.controller-pin-row{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.controller-pin-row input{
  flex:1;
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px 12px;
  font-size:20px;
  font-weight:900;
  letter-spacing:.18em;
}
.controller-pin-keypad{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.controller-pin-keypad button{
  min-height:38px;
  border:1px solid var(--line);
  border-radius:0;
  background:#fff;
  color:#172117;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}
.controller-pin-keypad button:active{
  background:#f4c94a;
}
.controller-status-bar{
  position:absolute;
  top:0;
  left:0;
  right:0;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  max-width:none;
  min-height:34px;
  padding:6px 9px;
  border:0;
  border-bottom:1px solid rgba(23,33,23,.2);
  border-radius:0;
  background:#f4c94a;
  font-size:12px;
  font-weight:800;
  z-index:4;
}
.controller-status-bar strong{
  font-weight:900;
}
.controller-settings-cog{
  width:26px;
  height:24px;
  border:1px solid rgba(23,33,23,.28);
  border-radius:0;
  background:#fff;
  color:#172117;
  font-size:14px;
  line-height:1;
  font-weight:900;
  cursor:pointer;
}
.controller-screen-main{
  height:100%;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  grid-template-rows:auto auto 1fr auto auto;
  gap:10px;
  padding:46px 18px 18px;
  text-shadow:none;
}
.controller-profile-block,
.controller-timer-block,
.controller-reading-grid > div,
.controller-output-row{
  border:2px solid #172117;
  border-radius:0;
  background:#fff;
  box-shadow:none;
}
.controller-profile-block{
  padding:10px;
}
.controller-profile-block span,
.controller-profile-block em,
.controller-timer-block span,
.controller-reading-grid span{
  display:block;
  color:#526056;
  font-size:13px;
  font-style:normal;
  font-weight:800;
  text-transform:uppercase;
}
.controller-reading-grid em{
  display:block;
  margin-top:5px;
  color:#2f4a31;
  font-size:12px;
  font-style:normal;
  font-weight:900;
}
.controller-reading-grid em b{
  font-weight:900;
}
.controller-profile-block strong{
  display:block;
  margin-top:5px;
  font-size:25px;
  line-height:1.05;
}
.controller-profile-block em{
  margin-top:5px;
  color:#2f7d4b;
}
.controller-timer-block{
  padding:10px;
  text-align:right;
}
.controller-timer-block strong{
  display:block;
  margin-top:6px;
  font-size:40px;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.controller-reading-grid{
  grid-column:1 / span 2;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.controller-reading-grid > div{
  min-height:72px;
  padding:10px;
}
.controller-reading-grid strong{
  display:block;
  margin-top:7px;
  font-size:30px;
  line-height:1;
}
.controller-run-row{
  grid-column:1 / span 2;
  display:grid;
  grid-template-columns:180px 1fr;
  gap:10px;
}
.controller-output-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:8px;
}
.controller-output-row span{
  border-radius:0;
  background:#fff;
  border:1px solid #172117;
  min-height:30px;
  padding:5px 4px;
  text-align:center;
  font-weight:800;
  font-size:12px;
  color:#526056;
}
.controller-output-row span.active{
  background:#e7f3df;
  color:#1f6b3d;
}
.controller-output-row span.active::before{
  content:"● ";
}
.controller-run-card{
  border:2px solid #172117;
  border-radius:0;
  background:#fff;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:8px;
}
.controller-run-card span{
  display:block;
  color:#526056;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.controller-run-card strong{
  display:block;
  margin-top:6px;
  font-size:16px;
  line-height:1.1;
}
.controller-demo-actions{
  grid-column:1 / span 2;
  display:flex;
  gap:8px;
  justify-content:flex-end;
}
.controller-preheat-prompt,
.controller-delay-panel,
.controller-preheat-panel,
.controller-settings-preview,
.controller-profile-picker,
.controller-custom-editor,
.controller-log-preview{
  position:absolute;
  inset:56px 42px;
  z-index:5;
  border:2px solid #172117;
  border-radius:0;
  background:#fff;
  backdrop-filter:none;
  box-shadow:none;
  padding:48px 14px 14px;
  text-shadow:none;
}
.controller-preheat-prompt::before,
.controller-delay-panel::before,
.controller-preheat-panel::before,
.controller-settings-preview::before,
.controller-profile-picker::before,
.controller-custom-editor::before,
.controller-log-preview::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:34px;
  background:#f4c94a;
  border-bottom:2px solid #172117;
}
.controller-delay-panel > .row:first-child,
.controller-settings-preview > .row:first-child,
.controller-profile-picker > .row:first-child,
.controller-custom-editor > .row:first-child,
.controller-log-preview > .row:first-child{
  position:absolute;
  top:0;
  left:0;
  right:0;
  min-height:34px;
  padding:0 10px;
  z-index:1;
}
.controller-delay-panel > .row:first-child strong,
.controller-settings-preview > .row:first-child strong,
.controller-profile-picker > .row:first-child strong,
.controller-custom-editor > .row:first-child strong,
.controller-log-preview > .row:first-child strong{
  line-height:34px;
}
.controller-delay-panel > .row:first-child .btn,
.controller-settings-preview > .row:first-child .btn,
.controller-profile-picker > .row:first-child .btn,
.controller-custom-editor > .row:first-child .btn,
.controller-log-preview > .row:first-child .btn{
  margin-top:4px;
}
.controller-preheat-prompt,
.controller-preheat-panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:12px;
  text-align:center;
}
.controller-preheat-prompt strong,
.controller-preheat-panel strong{
  font-size:30px;
}
.controller-preheat-prompt span,
.controller-preheat-panel span{
  max-width:520px;
  font-size:17px;
  font-weight:800;
}
.controller-delay-panel{
  inset:92px 150px;
  display:grid;
  align-content:start;
  gap:12px;
}
.controller-custom-editor{
  inset:58px 64px 52px;
}
.controller-delay-panel .field,
.controller-custom-editor .field{
  margin:0;
}
.controller-delay-panel input,
.controller-custom-editor input{
  width:100%;
  border:1px solid #172117;
  border-radius:0;
  padding:8px;
  background:#fff;
  font-weight:800;
}
.controller-settings-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.controller-settings-grid .field{
  grid-column:1 / span 3;
}
.controller-profile-buttons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.controller-profile-buttons button{
  border:1px solid #172117;
  border-radius:0;
  background:#fff;
  padding:9px;
  text-align:left;
  font-weight:900;
}
.controller-profile-buttons button span{
  display:block;
  margin-top:4px;
  color:#526056;
  font-size:12px;
}
.controller-log-list{
  display:grid;
  gap:8px;
  margin-top:16px;
  max-height:250px;
  overflow:auto;
}
.controller-custom-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 12px;
  margin:8px 0;
}
.controller-custom-name{
  grid-column:1 / span 2;
}
.controller-custom-field{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:8px;
}
.controller-check{
  display:flex;
  align-items:center;
  gap:5px;
  min-height:34px;
  border:1px solid #172117;
  border-radius:0;
  background:#fff;
  padding:5px 7px;
  color:#2f4a31;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.controller-check input{
  width:auto;
}
.controller-custom-actions{
  display:flex;
  gap:8px;
  margin:8px 0;
}
.controller-custom-points{
  display:grid;
  gap:6px;
  max-height:74px;
  overflow:auto;
  margin:8px 0 0;
}
.controller-custom-point{
  display:grid;
  grid-template-columns:auto 1fr 28px;
  align-items:center;
  gap:8px;
  border:1px solid #172117;
  border-radius:0;
  background:#fff;
  padding:5px 7px;
}
.controller-custom-point strong,
.controller-custom-point span{
  font-size:12px;
}
.controller-custom-point button{
  width:26px;
  height:24px;
  border:1px solid #172117;
  border-radius:0;
  background:#fff;
  font-weight:900;
}
.controller-log-list div{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:10px;
  border:1px solid #172117;
  border-radius:0;
  background:#fffdf7;
  padding:9px;
}
.controller-log-list span{
  color:#526056;
  font-weight:900;
}
.controller-log-list strong{
  font-weight:800;
}
@media (max-width: 760px){
  .research-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .controller-status-bar{
    left:10px;
    max-width:none;
    flex-wrap:wrap;
  }
  .controller-screen-main{
    padding:86px 12px 12px;
    gap:8px;
  }
  .controller-profile-block strong,
  .controller-reading-grid strong{
    font-size:20px;
  }
  .controller-timer-block strong{
    font-size:28px;
  }
  .controller-sim-controls{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

.table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
}

.quick-entry-wrap{
  overflow:visible;
}

.quick-entry-wrap .table{
  table-layout:fixed;
}

.quick-entry-wrap th{
  white-space:normal;
}

.quick-entry-row-card{
  display:grid;
  grid-template-columns:minmax(120px, 0.8fr) repeat(4, minmax(130px, 1fr));
  gap:10px;
  align-items:end;
}

.quick-entry-field{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}

.quick-entry-field > span{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.quick-entry-field input,
.quick-entry-field select{
  width:100%;
  min-width:0;
}

.quick-entry-checks,
.quick-entry-super{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.quick-entry-checks .check-pill input{
  width:auto;
  min-width:auto;
  flex:0 0 auto;
}

.quick-hive-label{
  font-weight:800;
}

@media (max-width: 900px){
  .quick-entry-row-card{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  .quick-entry-row-card{
    grid-template-columns:1fr;
  }
}

.table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.table th,
.table td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  white-space:normal;
  vertical-align:top;
}

.table th{
  background:#f7f4e7;
  font-weight:800;
  font-size:12px;
  color:#3f4b3b;
  white-space:nowrap;
}

.inspection-import-panel{
  margin-top:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdf7;
}

.inspection-import-actions{
  margin-top:12px;
  justify-content:flex-start;
  flex-wrap:wrap;
}

.inspection-import-actions input[type="file"]{
  max-width:280px;
  padding:8px 0;
}

.inspection-import-panel .table-wrap{
  margin-top:12px;
}

.inspection-import-panel select{
  min-width:180px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}

.inspection-import-error td{
  background:#fff5f5;
  color:#7f1d1d;
}

.inspection-import-duplicate td{
  background:#fffbeb;
  color:#7c4a03;
}

.table-sort-btn{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  font:inherit;
  font-weight:inherit;
  text-align:left;
}

.table-sort-btn:hover,
.table-sort-btn:focus{
  color:var(--accent-dark);
  outline:none;
  text-decoration:underline;
  text-underline-offset:3px;
}

.table-sort-btn span{
  min-width:10px;
  font-size:10px;
  line-height:1;
}

.mid-check-result{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:82px;
  border-radius:8px;
  padding:5px 9px;
  font-weight:800;
}

.mid-check-result.climbing{
  color:#991b1b;
  background:#fee2e2;
  border:1px solid rgba(185,28,28,.28);
}

.mid-check-result.same{
  color:#7a4a08;
  background:#fef3c7;
  border:1px solid rgba(216,148,34,.32);
}

.mid-check-result.reducing{
  color:#1f5133;
  background:var(--green-soft);
  border:1px solid rgba(47,125,75,.28);
}

.mid-check-result.unknown{
  color:var(--muted);
  background:#f8f5ed;
  border:1px solid var(--line);
}

.treatment-results-modal{
  width:min(780px, calc(100vw - 32px));
  margin:32px auto;
}

.treatment-results-modal .modal-close{
  width:auto;
  height:auto;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fffdf7;
  color:var(--ink);
  font-size:13px;
  font-weight:800;
}

.treatment-results-modal .modal-close:hover,
.treatment-results-modal .modal-close:focus-visible{
  background:var(--green-soft);
  outline:2px solid rgba(47,125,75,.22);
}

.treatment-results-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.treatment-cost-summary,
.treatment-results-cost{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid rgba(47,125,75,.24);
  border-radius:14px;
  background:rgba(235,247,238,.78);
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.treatment-results-cost{
  margin-bottom:12px;
}

.treatment-results-cost strong{
  color:var(--ink);
  font-size:22px;
}

.treatment-results-cost-editor{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--ink);
  font-weight:900;
}

.treatment-results-cost-editor input{
  width:110px;
  min-height:38px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 10px;
  background:#fffdf7;
  color:var(--ink);
  font:inherit;
}

.treatment-result-card{
  min-height:132px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.72);
}

.treatment-result-card.reducing{
  background:var(--green-soft);
  border-color:rgba(47,125,75,.3);
}

.treatment-result-card.same{
  background:#fff9e8;
  border-color:rgba(216,148,34,.32);
}

.treatment-result-card.climbing{
  background:#fff1f1;
  border-color:rgba(185,28,28,.28);
}

.treatment-result-label{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.treatment-result-reading{
  margin-top:14px;
  color:var(--ink);
  font-size:32px;
  font-weight:900;
  line-height:1;
}

.treatment-result-reading span{
  font-size:14px;
  font-weight:800;
}

.treatment-result-detail,
.treatment-result-missing{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.treatment-result-missing{
  padding:14px 0 4px;
  font-weight:800;
}

.treatment-results-summary{
  margin-top:14px;
  padding:16px;
  border:1px solid rgba(47,125,75,.24);
  border-radius:16px;
  background:rgba(235,247,238,.78);
}

.treatment-results-summary p{
  margin:8px 0 0;
}

.treatment-results-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
}

.treatment-results-actions .danger{
  margin-right:auto;
}

@media (max-width:640px){
  .treatment-results-grid{grid-template-columns:1fr}
  .treatment-results-modal{margin:16px auto}
  .treatment-results-cost{align-items:flex-start; flex-direction:column}
}

.weather-trend-heading{
  align-items:flex-start;
  gap:14px;
}

.weather-trend-heading .h2{
  margin-right:auto;
}

.trend-range-control{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.trend-range-control select{
  min-width:142px;
}

.trend-wrap{
  margin-top:14px;
  position:relative;
}

.trend-svg{
  width:100%;
  height:232px;
  display:block;
  cursor:crosshair;
}

.trend-chart-host{
  position:relative;
}

.trend-data-point{
  cursor:help;
}

.trend-threshold-line{
  stroke:#d60000 !important;
  stroke-width:3px !important;
  stroke-dasharray:none !important;
  opacity:1;
}

.trend-bar-scroll{
  overflow-x:auto;
  padding-bottom:4px;
}

.trend-svg--bars{
  height:270px;
}

.trend-bar{
  transition:filter .15s ease, opacity .15s ease;
}

.trend-bar-group:focus{
  outline:none;
}

.trend-bar-group:hover .trend-bar,
.trend-bar-group:focus .trend-bar{
  filter:brightness(.88);
  opacity:.92;
}

.trend-bar-value,
.trend-threshold-label{
  fill:#172117;
  font-size:11px;
  font-weight:800;
}

.trend-threshold-label{
  fill:#9f1239;
}

.trend-legend{
  display:flex;
  gap:10px 14px;
  flex-wrap:wrap;
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}

.trend-legend strong{
  color:#253329;
  font-weight:700;
}

.trend-summary{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  color:#172117;
}

.trend-summary strong{
  font-size:14px;
}

.trend-summary span{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.trend-chart-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.trend-chart-panel{
  min-width:0;
  border:1px solid rgba(103, 83, 45, .22);
  border-radius:14px;
  background:linear-gradient(180deg, #fffef9, #f8f5eb);
  padding:16px;
  position:relative;
  box-shadow:0 12px 28px rgba(78, 62, 31, .10);
}

.trend-chart-title{
  color:#1e2c22;
  font-size:14px;
  font-weight:800;
  line-height:1.2;
}

.trend-chart-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}

.trend-chart-hint{
  color:#667060;
  font-size:11px;
  font-weight:600;
  text-align:right;
}

.trend-axis-text{
  fill:#687268;
  font-size:10px;
  font-weight:600;
}

.trend-axis-unit{
  fill:#455249;
  font-weight:800;
}

.trend-grid-line{
  stroke:#e4dece;
  stroke-width:1;
}

.trend-hit-point{
  fill:transparent;
  cursor:pointer;
  outline:none;
}

.trend-hit-point:focus{
  stroke:#2f7d4b;
  stroke-width:1.8;
}

.trend-crosshair{
  stroke:#2f7d4b;
  stroke-width:1.4;
  stroke-dasharray:4 4;
  pointer-events:none;
}

.trend-tooltip{
  position:absolute;
  z-index:2;
  min-width:170px;
  max-width:min(270px, calc(100% - 16px));
  padding:8px 10px;
  border:1px solid #526066;
  border-radius:10px;
  background:#111719;
  color:#fffdf7;
  box-shadow:0 14px 32px rgba(0, 0, 0, .32);
  pointer-events:none;
}

.trend-tooltip-date{
  padding-bottom:5px;
  border-bottom:1px solid rgba(255, 253, 247, .2);
  color:#d8e2d0;
  font-size:11px;
  font-weight:800;
}

.trend-tooltip-reading{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:2px 10px;
  padding-top:6px;
}

.trend-tooltip-reading strong{
  grid-column:2;
  grid-row:1;
  font-size:16px;
  line-height:1.1;
  white-space:nowrap;
}

.trend-tooltip-reading span{
  grid-column:1;
  grid-row:1;
  font-size:12px;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.trend-tooltip-reading small{
  grid-column:1 / -1;
  grid-row:2;
  color:#d8e2d0;
  font-size:11px;
}

@media (max-width: 700px){
  .trend-chart-heading{
    display:block;
  }

  .trend-chart-hint{
    margin-top:3px;
    text-align:left;
  }
}

@media (min-width: 901px){
  .trend-wrap{
    margin-top:18px;
  }

  .trend-chart-grid{
    grid-template-columns:1fr;
    gap:0;
    overflow:hidden;
    border:1px solid rgba(103, 83, 45, .22);
    border-radius:14px;
    background:#fffef9;
    box-shadow:0 12px 28px rgba(78, 62, 31, .08);
  }

  .trend-chart-panel{
    border:0;
    border-radius:0;
    background:#fffef9;
    padding:16px 16px 10px;
    box-shadow:none;
  }

  .trend-chart-panel:nth-child(even){
    background:#fbf9f2;
  }

  .trend-svg{
    height:218px;
  }

  .trend-legend{
    margin:2px 0 0 44px;
  }
}

.overlay-select{
  width:100%;
  min-height:94px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fffdf7;
  font:inherit;
}

.checkbox-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fffdf7;
  min-height:42px;
}

.check-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#f7f4e7;
  font-size:12px;
  font-weight:700;
  color:#3f4b3b;
  cursor:pointer;
}

.check-pill input{
  margin:0;
  accent-color:#2f7d4b;
}

.check-pill:has(input:checked){
  border-color:var(--green);
  background:var(--green-soft);
  color:#173c2c;
  box-shadow:0 0 0 1px rgba(47,125,75,.12);
}

.check-pill--recommended{
  border-color:#b84242;
  background:#fff0ed;
  color:#7f1d1d;
}

.check-pill small{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}

.chip-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fffdf7;
  font-size:12px;
  font-weight:700;
  color:#3f4b3b;
}

.chip-toggle input{
  margin:0;
}

.hive-checklist{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:8px;
  margin-top:8px;
}

.hive-check{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fffdf7;
}

.deadout-note{
  margin-top:10px;
  color:#7f1d1d;
  font-size:13px;
  line-height:1.45;
}

.trend-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  margin-right:6px;
}

.trend-dot--regional-report{
  background:#f59e0b;
  border:1px solid #92400e;
}

.trend-report-marker line{
  stroke:#b45309;
  stroke-width:1.4;
  stroke-dasharray:4 4;
}

.trend-report-marker circle{
  fill:#f59e0b;
  stroke:#92400e;
  stroke-width:1.3;
}

.trend-report-marker text{
  fill:#172117;
  font-size:10px;
  font-weight:800;
}

.trend-regional-report-panel{
  margin-top:10px;
  padding:10px 0 0;
  border-top:1px solid var(--line);
}

.trend-regional-report-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.trend-regional-report-meta span{
  padding:3px 7px;
  border:1px solid rgba(176,112,22,.22);
  border-radius:999px;
  background:rgba(255,248,228,.7);
}

.trend-regional-report-table-wrap{
  margin-top:8px;
  overflow-x:auto;
}

.trend-regional-report-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}

.trend-regional-report-table th,
.trend-regional-report-table td{
  padding:6px 5px;
  border-top:1px solid rgba(47,47,47,.08);
  text-align:left;
}

.trend-regional-report-table th{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0;
}

.mite-forecast-panel{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdf7;
  padding:12px;
}

.mite-forecast-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}

.mite-forecast-card{
  border:1px solid var(--line);
  border-left:5px solid #9ca3af;
  border-radius:8px;
  padding:10px;
  background:#f7f4e7;
  min-width:0;
}

.mite-forecast-card--green{
  border-left-color:#2f7d4b;
}

.mite-forecast-card--amber{
  border-left-color:#d89422;
}

.mite-forecast-card--red{
  border-left-color:#be123c;
}

.mite-forecast-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#172117;
  font-size:13px;
}

.mite-forecast-card__top span{
  color:#4f5b49;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.mite-forecast-range{
  margin-top:8px;
  color:#172117;
  font-size:24px;
  font-weight:900;
  line-height:1;
}

.mite-forecast-range span{
  color:#667060;
  font-size:12px;
  font-weight:800;
}

.mite-forecast-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}

.mite-forecast-meta span,
.mite-forecast-action{
  border:1px solid var(--line);
  border-radius:999px;
  background:#fffdf7;
  color:#3f4b3b;
  font-size:11px;
  font-weight:800;
  padding:4px 7px;
}

.mite-forecast-reason{
  margin-top:8px;
  color:#4f5b49;
  font-size:12px;
  line-height:1.35;
}

.mite-forecast-action{
  display:inline-block;
  margin-top:8px;
}

.mite-actual-panel{
  margin-top:14px;
  border-top:1px solid var(--line);
  padding-top:12px;
}

.mite-actual-table-wrap{
  overflow-x:auto;
}

.mite-actual-table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
  font-size:12px;
}

.mite-actual-table th,
.mite-actual-table td{
  padding:8px 9px;
  border-bottom:1px solid var(--line);
  text-align:left;
  white-space:nowrap;
}

.mite-actual-table th{
  color:#4f5b49;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.mite-actual-status{
  display:inline-block;
  border:1px solid var(--line);
  border-radius:999px;
  padding:3px 7px;
  font-size:11px;
  font-weight:900;
}

.mite-actual-status--nailed-it{
  color:#1f6f43;
  background:#edf7ed;
}

.mite-actual-status--close{
  color:#8a5f1d;
  background:#fff7db;
}

.mite-actual-status--miss{
  color:#9f1239;
  background:#fff1f2;
}

.mite-actual-status--treatment{
  color:#2f6f8f;
  background:#eaf6fb;
}

.mite-actual-status--treatment-effect,
.mite-actual-status--treatment-aligned{
  color:#1f6f43;
  background:#edf7ed;
}

.mite-actual-status--treatment-concern{
  color:#9f1239;
  background:#fff1f2;
}

.mite-actual-status--pending{
  color:#4f5b49;
  background:#f4f1e6;
}

.rec-list{display:grid; gap:10px; margin-top:10px}
.rec-card{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:#fffdf7;
}
.rec-card input{margin-top:4px}
.rec-card.safe{border-color:#a7d7b0; background:var(--green-soft)}
.rec-card.caution{border-color:#efd078; background:var(--accent-soft)}
.rec-card.block{border-color:#fecaca; background:#fef2f2}
.rec-title{font-weight:800}
.rec-meta{color:var(--muted); font-size:12px; margin-top:4px}
.table-heading-row{
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.recommendation-cell{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.help-dot-btn{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  width:24px;
  height:24px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fffdf7;
  color:var(--ink);
  font-size:13px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(15, 23, 42, .08);
}
.help-dot-btn:hover,
.help-dot-btn:focus-visible{
  border-color:#2f7d55;
  color:#1f6f43;
  outline:2px solid rgba(47,125,85,.18);
  outline-offset:2px;
}
.recommendation-help-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.recommendation-help-item{
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:#fffaf0;
}
.recommendation-help-item.is-focused{
  border-color:#2f7d55;
  background:#edf7ed;
}
.recommendation-help-item__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.recommendation-help-item__head span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.recommendation-help-item p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.35;
}
.treatment-overlay-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr));
  gap:10px;
  margin-top:12px;
}
.treatment-overlay-day{
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:#fffdf7;
  min-height:82px;
}
.treatment-overlay-day.good{outline:2px solid rgba(16,185,129,.25); background:var(--green-soft)}
.treatment-overlay-day.warn{outline:2px solid rgba(245,158,11,.25); background:var(--accent-soft)}
.treatment-overlay-day.bad{outline:2px solid rgba(239,68,68,.25); background:#fef2f2}
.treatment-overlay-day .d{font-weight:800; font-size:12px; color:var(--muted)}
.treatment-overlay-day .k{margin-top:5px; font-weight:800}
.treatment-overlay-day .v{margin-top:4px; color:var(--muted); font-size:12px; line-height:1.25}

.modal{
  position:fixed;
  inset:0;
  z-index:2000;
}

.modal__scrim{
  position:absolute;
  inset:0;
  background:rgba(15, 23, 42, .45);
}

.modal__card,
.modal__panel{
  position:relative;
  z-index:1;
  width:min(680px, calc(100vw - 32px));
  margin:60px auto;
  background:#fffdf7;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:18px;
}

.modal__panel{
  max-height:calc(100vh - 48px);
  overflow:auto;
}

body.harvest-map-open{ overflow:hidden; }
.harvest-map-modal{ z-index:2400; }
.harvest-map-modal__panel{
  width:min(1180px, calc(100vw - 24px));
  height:calc(100vh - 24px);
  max-height:none;
  margin:12px auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.harvest-map-modal__head{ flex:0 0 auto; }
.harvest-map-modal__frame{
  width:100%;
  flex:1 1 auto;
  min-height:0;
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf7;
}

body.records-editor-open{
  overflow:hidden;
}

.records-inspection-editor__panel{
  width:min(920px, calc(100vw - 24px));
  height:calc(100vh - 32px);
  margin:16px auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.records-inspection-editor iframe{
  width:100%;
  flex:1;
  min-height:0;
  border:0;
  border-radius:12px;
  background:#fffdf7;
}

body.embedded-records-editor > :not(#inspectionDetailModal):not(script){
  display:none !important;
}

body.embedded-records-editor{
  background:transparent;
}

body.embedded-records-editor #inspectionDetailModal .modal__scrim{
  background:transparent;
}

body.embedded-records-editor #inspectionDetailModal .modal__panel{
  width:calc(100vw - 16px);
  max-height:calc(100vh - 16px);
  margin:8px auto;
  box-shadow:none;
}

.afb-evidence-upload{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
  margin-top:12px;
}

@media (max-width: 640px){
  .modal{
    padding:12px;
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  .modal__card,
  .modal__panel{
    width:100%;
    max-height:none;
    margin:0 auto;
  }

  #dashboardAfbActionModal .modal__panel{
    padding-bottom:max(18px, env(safe-area-inset-bottom));
  }

  #dashboardAfbActionModal .row.gap{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  #dashboardAfbActionModal .row.gap > *{
    min-height:48px;
    width:100%;
  }
}

body:has(.modal:not(.hidden)) .topbar.centered{
  z-index:1;
  pointer-events:none;
  opacity:0;
}

.inspection-detail-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1px;
  margin-top:12px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--line);
}

.inspection-detail-grid > div{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  padding:10px 12px;
  background:#fffdf7;
}

.inspection-detail-grid span{ overflow-wrap:anywhere; }
.inspection-detail-section{ margin-top:16px; }
.inspection-detail-links{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.inspection-detail-supers{ display:grid; gap:8px; margin-top:8px; }
.inspection-super-record{ display:flex; flex-direction:column; gap:3px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fffdf7; }
.inspection-popup-edit-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; margin-top:12px; }
.inspection-popup-wide{ grid-column:1 / -1; }

.hive-to-jar-sign-panel{ width:min(980px, calc(100vw - 32px)); }
.hive-to-jar-sign-controls{ align-items:end; justify-content:flex-start; margin:12px 0; }
.hive-to-jar-sign-controls .field{ min-width:220px; }
.hive-to-jar-sign-preview{ width:100%; min-height:68vh; border:1px solid var(--line); border-radius:12px; background:#ece7da; }
.honey-batch-actions{ flex-wrap:wrap; }
.honey-jar-labels-panel{ width:min(1040px, calc(100vw - 32px)); }
.honey-jar-labels-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  gap:12px;
  margin:12px 0;
}
.honey-jar-labels-controls .field{ min-width:190px; }
.honey-jar-labels-controls .btn{ margin-bottom:1px; }
.honey-jar-labels-print-note{
  display:grid;
  gap:3px;
  margin-bottom:10px;
  padding:12px 14px;
  border:1px solid #d6b45e;
  border-radius:12px;
  background:#fff8df;
  color:#503b12;
}
.honey-jar-labels-print-note span{ font-size:13px; line-height:1.45; }
.honey-jar-labels-status{ margin:8px 0; }
.honey-jar-labels-preview{
  width:100%;
  min-height:68vh;
  border:1px solid var(--line);
  border-radius:12px;
  background:#ece7da;
}

@media (max-width:640px){
  .inspection-detail-grid{ grid-template-columns:1fr; }
  .inspection-popup-edit-grid{ grid-template-columns:1fr; }
  .inspection-popup-wide{ grid-column:auto; }
}

.modal__head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.whats-new-modal{
  z-index:2600;
}

.whats-new-modal .modal__scrim{
  background:rgba(20,34,25,.62);
  backdrop-filter:blur(5px);
}

.whats-new-card.modal__card{
  width:min(760px,calc(100vw - 28px));
  max-height:calc(100vh - 44px);
  margin:22px auto;
  padding:0;
  overflow:auto;
  border-color:rgba(39,93,63,.25);
  background:#fffdf7;
  box-shadow:0 28px 70px rgba(18,42,27,.3);
}

.whats-new-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:24px;
  background:
    radial-gradient(circle at 92% 10%,rgba(240,184,62,.28),transparent 36%),
    linear-gradient(135deg,#234b36,#2f6948);
  color:#fff;
}

.whats-new-hero .h2{
  margin:5px 0 3px;
  color:#fff;
  font-size:clamp(27px,5vw,36px);
}

.whats-new-hero p{
  margin:0;
  color:rgba(255,255,255,.82);
}

.modal-close{
  display:grid;
  width:40px;
  height:40px;
  flex:0 0 auto;
  place-items:center;
  border:1px solid rgba(255,255,255,.28);
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

.modal-close:hover,
.modal-close:focus-visible{
  background:rgba(255,255,255,.22);
  outline:2px solid rgba(255,255,255,.4);
  outline-offset:2px;
}

.whats-new-body{
  padding:20px 22px 8px;
}

.whats-new-list{
  display:grid;
  gap:12px;
  margin-top:12px;
}

.whats-new-update{
  padding:17px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:15px;
  background:#fff;
  box-shadow:0 8px 20px rgba(88,64,25,.07);
}

.whats-new-update__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
}

.whats-new-update__version{
  color:#b57914;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.whats-new-update h3{
  margin:4px 0 0;
  color:#244d36;
  font-size:18px;
}

.whats-new-update time{
  flex:0 0 auto;
  color:var(--muted);
  font-size:12px;
}

.whats-new-update__sections{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

.whats-new-update__sections section{
  padding:11px 12px;
  border-radius:11px;
  background:#f4f8f1;
  color:#415044;
  font-size:13px;
  line-height:1.45;
}

.whats-new-update__sections b{
  display:block;
  margin-bottom:4px;
  color:#2f6948;
}

.whats-new-footer{
  position:sticky;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 22px;
  border-top:1px solid rgba(107,74,15,.12);
  background:rgba(255,253,247,.96);
  color:var(--muted);
  font-size:12px;
  backdrop-filter:blur(8px);
}

@media (max-width:620px){
  .whats-new-card.modal__card{
    max-height:calc(100vh - 20px);
    margin:10px auto;
  }

  .whats-new-hero,
  .whats-new-body,
  .whats-new-footer{
    padding-left:17px;
    padding-right:17px;
  }

  .whats-new-update__sections{
    grid-template-columns:1fr;
  }
}

.inspect-modal__summary{
  margin-top:14px;
  font-size:16px;
  font-weight:700;
}

.inspect-modal__conditions{
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
}

.inspect-modal__windows{
  display:grid;
  gap:10px;
  margin-top:16px;
}

.inspect-window{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:#f7f4e7;
}

.inspect-window__label{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}

.inspect-window__time{
  margin-top:6px;
  font-size:18px;
  font-weight:800;
}

.inspect-window__detail{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

.inspect-modal__notes{
  margin-top:16px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

@media (max-width: 780px){
  .station-grid{grid-template-columns:1fr 1fr}

  .weather-title-row,
  .weather-section-grid{
    grid-template-columns:1fr;
  }

  .weather-title-row{
    align-items:stretch;
  }

  .weather-actions{
    margin-left:0;
    width:100%;
  }

  .weather-actions select{
    width:100%;
  }
  .modal__card{margin:24px auto}
}

.suggestions{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf7;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.suggestion{
  width:100%;
  border:0;
  background:#fffdf7;
  text-align:left;
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid var(--line);
}

.suggestion:last-child{
  border-bottom:0;
}

.suggestion:hover{
  background:#f7f4e7;
}

.suggestion__title{
  font-weight:700;
}

.suggestion__meta{
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}

.checkbox-list{
  display:grid;
  gap:8px;
  max-height:180px;
  overflow:auto;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf7;
}

.log{
  margin:12px 0 0;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fffdf7;
  color:#4b5563;
  overflow:auto;
  min-height:56px;
  white-space:pre-wrap;
  font-family:inherit;
  font-size:13px;
  line-height:1.45;
}

/* Hidden dev panel overlay for main page */
.devpanel{
  position:fixed;
  right:16px;
  bottom:16px;
  width:min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 110px);
  overflow:auto;
  z-index:999;
  background:#fffdf7;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
}
.devpanel.hidden{display:none}
.devpanel__head{
  display:flex; justify-content:space-between; align-items:center;
  padding:20px 0px;
  border-bottom:1px solid var(--line);
}
.devpanel__body{padding:12px}

/* Centered logo header */

/* Clean floating logo header */

.topbar.centered {
  position: relative;
  z-index:1300;
  background: transparent;
  border-bottom: none;
  padding: 50px 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Task-first authenticated layout: secondary screens keep the brand visible
   without pushing the work below the fold. */
.app-page:not(.dashboard-page) .topbar.centered{
  padding:10px 0 4px;
}

.app-page:not(.dashboard-page) .topbar.centered .logo{
  height:104px;
}

.app-page:not(.dashboard-page) main.wrap{
  padding-top:8px;
}

.app-page:not(.dashboard-page) .authcard--hero:has(#signOutBtn:not(.hidden)){
  margin-bottom:10px;
  padding:9px 14px;
  border-radius:13px;
}

.app-page:not(.dashboard-page) .authcard--hero:has(#signOutBtn:not(.hidden)) .authrow{
  min-height:36px;
}

.app-page:not(.dashboard-page) .authcard--hero:has(#signOutBtn:not(.hidden)) .h2{
  display:none;
}

.dashboard-primary-action{
  border-color:#1f6b45;
  background:#1f6b45;
  color:#fff;
  box-shadow:0 8px 18px rgba(31,107,69,.2);
}

.record-detail-summary{
  max-width:460px;
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-height:1.4;
}

.record-manage-menu,
.inspection-options-menu,
.honey-shed-more-menu{
  position:relative;
}

.record-manage-menu summary,
.inspection-options-menu summary,
.honey-shed-more-menu summary{
  list-style:none;
  cursor:pointer;
}

.record-manage-menu summary::-webkit-details-marker,
.inspection-options-menu summary::-webkit-details-marker,
.honey-shed-more-menu summary::-webkit-details-marker{
  display:none;
}

.record-manage-menu__panel,
.inspection-options-menu__panel,
.honey-shed-more-menu__panel{
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  z-index:80;
  min-width:170px;
  display:grid;
  gap:6px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf7;
  box-shadow:0 14px 30px rgba(39,60,44,.2);
}

.inspection-save-actions{
  position:sticky;
  bottom:10px;
  z-index:60;
  width:max-content;
  max-width:100%;
  padding:8px;
  border:1px solid rgba(39,93,63,.18);
  border-radius:14px;
  background:rgba(255,253,247,.96);
  box-shadow:0 10px 28px rgba(39,60,44,.16);
}

@media (max-width:768px){
  .app-page:not(.dashboard-page) .topbar.centered .logo{height:76px}
  .app-page:not(.dashboard-page) .topbar.centered{padding:4px 0 2px}
  .app-page:not(.dashboard-page) .authcard--hero:has(#signOutBtn:not(.hidden)){padding:7px 10px}
  .record-detail-summary{max-width:240px}
  .inspection-save-actions{width:100%;bottom:6px}
  .inspection-save-actions > #saveMite{flex:1}
}

.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  height: 340px;
  width: auto;
  display: block;
  background: transparent;
}

@media (max-width: 768px) {
  .logo {
    height: 128px;
  }
}

@media (max-width: 760px){
  body::before{
    background-position:center top;
    background-size:100% auto;
    opacity:.64;
  }

  body::after{
    background:
      radial-gradient(circle at 50% 14%, rgba(255,253,247,.68), rgba(255,253,247,.32) 36%, rgba(245,241,231,.1) 66%),
      linear-gradient(180deg, rgba(251,247,237,.24) 0%, rgba(238,243,234,.36) 100%);
  }

  body{
    padding-bottom:92px;
  }

  .wrap{
    margin:12px auto;
    padding:0 12px;
  }

  .card{
    border-radius:10px;
    padding:14px;
  }

  .row{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .authrow,
  .authactions{
    align-items:stretch;
    width:100%;
  }

  .authrow{
    display:grid;
    gap:12px;
  }

  .authrow > div:first-child{
    min-width:0;
  }

  .authactions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .authinput,
  .btn,
  .btn.small,
  input,
  select,
  textarea{
    min-height:44px;
    font-size:16px;
  }

  .authinput{
    min-width:0;
    width:100%;
  }

  .authactions > .authinput,
  .authactions > .auth-password-group,
  .authactions > #magicLoginBtn,
  .authactions > #loginCodeInput,
  .authactions > #verifyLoginCodeBtn{
    grid-column:1/-1;
  }

  .authactions > .btn{
    width:100%;
  }

  .auth-password-group{
    grid-template-columns:minmax(0, 1fr) auto;
  }

  .auth-password-group .btn{
    width:auto;
  }

  .authremember{
    align-self:center;
  }

  .legal-card__head{
    align-items:flex-start;
  }

  .tabs,
  .controls{
    gap:8px;
  }

  .tabs .btn,
  .controls .btn{
    flex:1 1 calc(50% - 8px);
  }

  .dashboard-action-bar{
    justify-content:center;
    gap:8px;
    margin-bottom:16px;
  }

  .dashboard-action-bar .btn,
  .dashboard-action-bar select{
    flex:1 1 calc(50% - 8px);
    min-width:0;
  }

  #forecastPanel{
    display:flex;
    flex-direction:column;
  }

  #stationCard{
    order:1;
    margin-top:0;
  }

  #mobileTodayCard{
    order:2;
  }

  #mobileActionCard{
    order:3;
  }

  #hiveMindV2Card{
    order:4;
  }

  #forecastPanel .controls{
    order:5;
  }

  #modeHelpText{
    order:6;
  }

  #calendar{
    order:7;
  }

  #rangeDisclaimer{
    order:8;
  }

  #legend{
    order:9;
  }

  #aiCard{
    order:10;
  }

  .mobile-today-card,
  .mobile-action-card{
    display:block;
    margin-top:12px;
    padding:14px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fffdf7;
    box-shadow:var(--shadow);
  }

  .mobile-action-card{
    border-color:#a7d7b0;
    background:#edf7ed;
  }

  .station-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .station-metric{
    padding:11px;
    min-height:78px;
  }

  .station-metric strong{
    font-size:17px;
  }

  .calendar{
    display:flex;
    overflow-x:auto;
    gap:12px;
    padding:2px 2px 10px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }

  .tile{
    flex:0 0 min(82vw, 330px);
    min-height:142px;
    border-radius:10px;
    scroll-snap-align:start;
  }

  .tile .d{
    font-size:13px;
  }

  .tile .k{
    font-size:20px;
  }

  .tile .v{
    font-size:14px;
    line-height:1.45;
  }

  .quick-log-btn{
    position:fixed;
    left:16px;
    right:16px;
    bottom:16px;
    z-index:1100;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:56px;
    border:0;
    border-radius:14px;
    background:var(--green);
    color:#fff;
    box-shadow:0 14px 34px rgba(47,125,75,.28);
    font-size:17px;
    font-weight:900;
  }

  .quick-log-btn.hidden{
    display:none !important;
  }
}

@media (max-width: 420px){
  .station-grid{
    grid-template-columns:1fr;
  }
  .mobile-risk-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

.hc-toast{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1200;
  max-width:min(420px, calc(100vw - 36px));
  padding:11px 13px;
  border-radius:12px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:#111827;
  color:#f9fafb;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
}

.hc-toast--success{
  background:#064e3b;
  border-color:#10b981;
  color:#ecfdf5;
}

.hc-toast--error{
  background:#7f1d1d;
  border-color:#ef4444;
  color:#fef2f2;
}

.hc-toast--warn{
  background:#78350f;
  border-color:#f59e0b;
  color:#fffbeb;
}

.hc-toast--info{
  background:#1f2937;
  border-color:#60a5fa;
  color:#eff6ff;
}

.inspection-saved-confirmation{position:fixed;inset:0;z-index:3200;display:grid;place-items:center;padding:24px;background:rgba(12,35,25,.58);backdrop-filter:blur(3px)}
.inspection-saved-confirmation__card{width:min(360px,100%);padding:32px 24px;border:1px solid rgba(23,113,67,.2);border-radius:20px;background:#fffdf6;box-shadow:0 22px 60px rgba(12,35,25,.28);color:#173c2c;text-align:center}
.inspection-saved-confirmation__tick{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 18px;border-radius:50%;background:#168447;color:#fff;box-shadow:0 0 0 10px rgba(22,132,71,.12);font-size:52px;font-weight:900;line-height:1}
.inspection-saved-confirmation__card strong,.inspection-saved-confirmation__card span{display:block}.inspection-saved-confirmation__card strong{font-size:1.45rem}.inspection-saved-confirmation__card span{margin-top:8px;color:var(--muted)}

.feedback-diag{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0f172a;
  color:#cbd5e1;
  font-size:12px;
  line-height:1.45;
  white-space:pre-wrap;
  word-break:break-word;
  max-height:280px;
  overflow:auto;
}

.transfer-pending-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #16a34a;
  border-radius:10px;
  background:#dcfce7;
  color:#14532d;
  box-shadow:0 10px 22px rgba(22,163,74,.14);
}

.transfer-pending-bar.hidden{
  display:none !important;
}

.transfer-pending-bar strong{
  display:block;
  font-size:15px;
}

.transfer-pending-bar span{
  display:block;
  margin-top:2px;
  font-size:13px;
  font-weight:700;
}

.transfer-pending-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

@media (max-width: 640px){
  .transfer-pending-bar{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* Apiary Map */
.apiary-map-wrap{
  max-width:1180px;
}

body.apiary-map-embedded{ background:#fffdf7; }
body.apiary-map-embedded > .global-home-btn,
body.apiary-map-embedded > .topbar,
body.apiary-map-embedded .authcard{ display:none !important; }
body.apiary-map-embedded .apiary-map-wrap{
  max-width:none;
  margin:0;
  padding:10px;
}

@media (max-width:640px){
  .harvest-map-modal{ padding:6px; }
  .harvest-map-modal__panel{ width:100%; height:calc(100dvh - 12px); margin:0; padding:12px; }
  .harvest-map-modal__frame{ margin-top:8px; }
  body.apiary-map-embedded .apiary-map-wrap{ padding:4px; }
}

.inspection-print-wrap{max-width:1080px}.inspection-print-toolbar{align-items:flex-end;flex-wrap:wrap}.inspection-print-toolbar .field{min-width:190px}.inspection-print-toolbar .inspection-print-purpose{flex:1 1 260px}.inspection-field-pack{background:#fff;color:#17251d}.inspection-pack-cover,.inspection-hive-sheet{padding:12mm;background:#fff}.inspection-pack-cover{min-height:277mm}.inspection-pack-brand{display:flex;align-items:center;gap:8mm;border-bottom:2px solid #173c2c;padding-bottom:5mm}.inspection-pack-brand img{width:28mm;height:22mm;object-fit:contain}.inspection-pack-brand h1,.inspection-summary-heading h1{display:flex}.inspection-pack-brand h1 i,.inspection-summary-heading h1 i{display:block;flex:0 0 .4em}.inspection-pack-brand h1{margin:0;font-size:24pt}.inspection-pack-brand p{margin:2mm 0 0;font-size:15pt}.inspection-visit-fields{display:grid;grid-template-columns:1fr 1fr;gap:5mm 10mm;margin:8mm 0}.inspection-visit-fields span,.inspection-follow-up span{min-height:8mm;border-bottom:1px solid #333}.inspection-visit-fields em{font-style:normal}.inspection-mud-map{height:112mm;border:1.5px solid #222;position:relative;overflow:hidden;background:repeating-linear-gradient(0deg,#fff,#fff 9mm,#f0f0f0 9.2mm),repeating-linear-gradient(90deg,transparent,transparent 9mm,#f0f0f0 9.2mm)}.inspection-mud-map img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1);opacity:.55}.inspection-map-marker{position:absolute;transform:translate(-50%,-50%);min-width:12mm;height:12mm;padding:0 2mm;border:1.5px solid #111;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:9pt}.inspection-map-marker--unplaced{border-style:dashed}.inspection-map-north{position:absolute;right:5mm;top:5mm;font-weight:900;font-size:14pt;transform-origin:center}.inspection-apiary-notes,.inspection-writing{margin-top:7mm}.inspection-apiary-notes i,.inspection-writing i{display:block;height:9mm;border-bottom:1px solid #777}.inspection-hive-sheet{min-height:138mm;border-top:1px solid #aaa;break-inside:avoid;page-break-inside:avoid}.inspection-hive-heading{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #173c2c}.inspection-hive-heading h2{font-size:22pt;margin:0 0 3mm}.inspection-previous-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2mm;margin:4mm 0}.inspection-previous-grid span{border:1px solid #999;padding:2mm;min-height:14mm}.inspection-previous-grid b{display:block;font-size:8pt;text-transform:uppercase;margin-bottom:1mm}.inspection-issues{border:1.5px solid #222;padding:3mm;min-height:18mm}.inspection-issues b{display:block}.inspection-issues ul{margin:1mm 0 0;padding-left:6mm}.inspection-issues span{display:block;margin-top:1mm}.inspection-check-row{display:flex;flex-wrap:wrap;gap:3mm 6mm;margin:4mm 0;font-size:10pt}.inspection-follow-up{display:grid;grid-template-columns:auto 1fr auto 35mm;gap:3mm;align-items:end;margin-top:4mm}.inspection-print-empty{padding:20mm;background:#fff}@media print{@page{size:A4 portrait;margin:8mm}html,body{background:#fff!important}.print-hidden,.topbar{display:none!important}.inspection-print-wrap{max-width:none;margin:0;padding:0}.inspection-field-pack{box-shadow:none}.inspection-pack-cover{padding:5mm;min-height:277mm;break-after:page}.inspection-hive-sheet{padding:5mm;min-height:132mm}.inspection-hive-sheet:nth-of-type(odd){break-after:page}.inspection-mud-map{height:105mm}}

.inspection-hive-summary{padding:8mm;background:#fff;min-height:194mm}.inspection-summary-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:8mm;border-bottom:2px solid #173c2c;margin-bottom:3mm}.inspection-summary-heading h1{margin:0;font-size:20pt}.inspection-summary-heading p{margin:1mm 0 3mm}.inspection-summary-heading>span{flex:0 0 auto;font-weight:800;margin-bottom:3mm}.inspection-afb-alert{display:flex;gap:2mm;align-items:baseline;margin:0 0 3mm;padding:2.2mm 3mm;border:1.5px solid #a56a00;background:#fff4cf;color:#472d00;font-size:9.5pt}.inspection-afb-alert strong{white-space:nowrap;text-transform:uppercase}.inspection-afb-alert span{line-height:1.35}.inspection-afb-alert--urgent{border-color:#9b1c1c;background:#fde8e8;color:#651313}.inspection-hive-summary table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9pt}.inspection-hive-summary th,.inspection-hive-summary td{border:1px solid #555;padding:1.7mm;vertical-align:top;line-height:1.3}.inspection-hive-summary thead th{background:#eef3ee;text-align:left;font-size:8.5pt;text-transform:uppercase}.inspection-hive-summary th:first-child{width:8%}.inspection-hive-summary th:nth-child(2){width:30%}.inspection-hive-summary th:nth-child(3){width:24%}.inspection-hive-summary th:nth-child(4){width:38%}.inspection-hive-summary tbody tr{height:15mm}.inspection-summary-write span{display:block;height:6mm;border-bottom:1px solid #888}.inspection-summary-footer{margin-top:4mm;border-bottom:1px solid #333;padding-bottom:3mm;font-size:10pt;font-weight:700}.inspection-hive-summary--generous table{font-size:10.5pt}.inspection-hive-summary--generous thead th{font-size:9.5pt}.inspection-hive-summary--generous th,.inspection-hive-summary--generous td{padding:2.2mm}.inspection-hive-summary--generous tbody tr{height:20mm}.inspection-hive-summary--generous .inspection-summary-write span{height:8mm}.inspection-hive-summary--dense table{font-size:8pt}.inspection-hive-summary--dense th,.inspection-hive-summary--dense td{padding:1mm}.inspection-hive-summary--dense tbody tr{height:10mm}.inspection-hive-summary--dense .inspection-summary-write span{height:4mm}.inspection-hive-summary--ultra table{font-size:6.8pt}.inspection-hive-summary--ultra th,.inspection-hive-summary--ultra td{padding:.7mm}.inspection-hive-summary--ultra tbody tr{height:7.5mm}.inspection-hive-summary--ultra .inspection-summary-write span{height:3mm}

.inspection-pdf-stage{position:fixed;left:-20000px;top:0;z-index:-1;background:#fff}.inspection-pdf-page{box-sizing:border-box!important;margin:0!important;overflow:hidden!important;background:#fff!important;color:#17251d!important}.inspection-pdf-page h1{word-spacing:.16em}.inspection-pdf-page--portrait{width:210mm!important;height:297mm!important;min-height:297mm!important;padding:10mm!important}.inspection-pdf-page--landscape{width:297mm!important;height:210mm!important;min-height:210mm!important;padding:8mm!important}@media print{@page{size:A4 landscape;margin:8mm}html,body{background:#fff!important}.print-hidden,.topbar{display:none!important}.inspection-print-wrap{max-width:none;margin:0;padding:0}.inspection-field-pack{box-shadow:none}.inspection-pack-cover{display:none!important}.inspection-hive-summary{padding:3mm;min-height:194mm;break-before:page;break-after:avoid}.inspection-hive-summary table{page-break-inside:avoid}.inspection-hive-summary tbody tr{break-inside:avoid}.inspection-summary-heading h1{font-size:17pt}.inspection-summary-footer{margin-top:2mm}}

.inspection-record-points{margin:0 0 3mm;padding:2mm 3mm;border:1px solid #789083;background:#f4f7f4;font-size:8.5pt;line-height:1.35}
.inspection-write-full{display:none}
.inspection-write-standard{display:block}
.inspection-write-compact{display:none}
.inspection-hive-summary--generous .inspection-write-full{display:block}
.inspection-hive-summary--generous .inspection-write-standard{display:none}
.inspection-hive-summary--dense .inspection-write-standard,.inspection-hive-summary--ultra .inspection-write-standard{display:none}
.inspection-hive-summary--dense .inspection-write-compact,.inspection-hive-summary--ultra .inspection-write-compact{display:block}
.inspection-summary-write span{display:block;min-height:4.2mm;height:auto;border-bottom:1px solid #aaa;font-size:7.5pt;white-space:nowrap}
.inspection-summary-write b{font-size:7pt}
.inspection-hive-summary:not(.inspection-hive-summary--generous):not(.inspection-hive-summary--dense):not(.inspection-hive-summary--ultra) th,.inspection-hive-summary:not(.inspection-hive-summary--generous):not(.inspection-hive-summary--dense):not(.inspection-hive-summary--ultra) td{padding:1mm}
.inspection-hive-summary:not(.inspection-hive-summary--generous):not(.inspection-hive-summary--dense):not(.inspection-hive-summary--ultra) .inspection-summary-write span{min-height:3.5mm}
.inspection-hive-summary--generous .inspection-summary-write span{min-height:5mm;height:auto;font-size:8pt}
.inspection-hive-summary--generous .inspection-summary-write b{font-size:7.5pt}
.inspection-hive-summary--dense .inspection-summary-write span{min-height:3.2mm;height:auto;font-size:6.5pt}
.inspection-hive-summary--dense .inspection-summary-write b{font-size:6.2pt}
.inspection-hive-summary--ultra .inspection-summary-write span{min-height:2.5mm;height:auto;font-size:5.5pt}
.inspection-hive-summary--ultra .inspection-summary-write b{font-size:5.2pt}

/* Keep the two inspection-sheet sections inside the A4 printable box. */
@media print{
  html,body{margin:0!important;padding:0!important}
  body::before,body::after{display:none!important}
  .inspection-field-pack{width:100%;max-width:100%;overflow:visible}
  .inspection-pack-cover,.inspection-hive-sheet,.inspection-hive-summary{box-sizing:border-box;width:100%}
  .inspection-hive-summary table{width:100%}
  .inspection-hive-summary thead{display:table-header-group}
  .inspection-summary-footer{overflow:hidden;white-space:nowrap}
}

.apiary-map-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.apiary-map-viewbar,
.apiary-map-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}

.apiary-map-mode-toggle{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}

.apiary-map-toolbar .field{
  margin:0;
  min-width:180px;
}

.file-btn{
  position:relative;
  overflow:hidden;
}

.file-btn input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.apiary-map-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:14px;
  align-items:start;
}

.apiary-map-stage-panel,
.apiary-map-side{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:14px;
}

.apiary-map-stage{
  position:relative;
  width:100%;
  aspect-ratio:16 / 10;
  min-height:360px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f5f0df;
  touch-action:none;
}

.apiary-map-empty{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:var(--muted);
  font-weight:700;
  text-align:center;
  padding:22px;
}

.apiary-map-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  transform-origin:center center;
  background:#f5f0df;
}

.apiary-map-marker-layer{
  position:absolute;
  inset:0;
}

.apiary-map-north{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:58px;
  z-index:3;
  display:grid;
  justify-items:center;
  gap:2px;
  transform-origin:50% 50%;
  pointer-events:none;
  color:#dc2626;
  text-shadow:0 1px 2px rgba(255,255,255,.75);
}

.apiary-map-north span{
  font-size:13px;
  font-weight:900;
}

.apiary-map-north i{
  width:0;
  height:0;
  border-left:10px solid transparent;
  border-right:10px solid transparent;
  border-bottom:34px solid #ff1f1f;
  filter:drop-shadow(0 4px 8px rgba(45,34,18,.28));
}

.apiary-map-marker{
  position:absolute;
  width:46px;
  height:46px;
  transform:translate(-50%, -50%);
  display:grid;
  place-items:center;
  border:3px solid #9aa19a;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 26px rgba(45,34,18,.22);
  color:#2f2a20;
  cursor:grab;
  font:800 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.apiary-map-marker span{
  max-width:var(--marker-label-max, 38px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:var(--marker-font, 12px);
}

.apiary-map-marker.is-selected{
  outline:3px solid rgba(47,116,99,.35);
  outline-offset:3px;
}

.apiary-map-marker--low{border-color:#48c6b0}
.apiary-map-marker--watch{border-color:#f1c64e}
.apiary-map-marker--high{border-color:#ef5b5b}
.apiary-map-marker--unknown{border-color:#9aa19a}

.apiary-map-status{
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
}

.apiary-map-side{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.apiary-map-summary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.apiary-map-summary > div{
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:rgba(255,250,236,.72);
}

.apiary-map-summary span,
.apiary-map-hive-row small{
  display:block;
  color:var(--muted);
  font-size:12px;
}

.apiary-map-summary strong{
  display:block;
  margin-top:4px;
  font-size:22px;
}

.apiary-map-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:13px;
}

.apiary-map-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.apiary-map-controls{
  display:grid;
  gap:10px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:rgba(255,250,236,.72);
}

.apiary-map-controls .field{
  margin:0;
}

.apiary-map-controls input[type="range"]{
  width:100%;
}

.apiary-map-north-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.apiary-map-dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#9aa19a;
  flex:0 0 auto;
}

.apiary-map-dot--low{background:#48c6b0}
.apiary-map-dot--watch{background:#f1c64e}
.apiary-map-dot--high{background:#ef5b5b}
.apiary-map-dot--unknown{background:#9aa19a}

.apiary-map-hive-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.apiary-map-hive-row{
  display:grid;
  grid-template-columns:14px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.8);
  color:inherit;
  padding:10px;
  text-align:left;
  cursor:pointer;
}

.apiary-map-hive-row.is-selected{
  border-color:rgba(47,116,99,.55);
  box-shadow:0 0 0 3px rgba(47,116,99,.12);
}

.apiary-map-hive-row em{
  color:var(--muted);
  font-size:12px;
  font-style:normal;
}

.apiary-map-note{
  color:var(--muted);
  font-size:14px;
}


@media (max-width: 780px){
  .apiary-map-toolbar{
    align-items:stretch;
  }

  .apiary-map-toolbar .field,
  .apiary-map-toolbar .btn{
    width:100%;
    justify-content:center;
  }

  .apiary-map-grid{
    grid-template-columns:1fr;
  }

  .apiary-map-stage{
    aspect-ratio:1 / 1;
    min-height:300px;
  }

  .apiary-map-side{
    order:-1;
  }
}

.honey-packing-source-field{
  grid-column:span 2;
}

.honey-packing-sources{
  display:grid;
  gap:8px;
}

.honey-packing-source-row{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(110px,150px) auto;
  gap:8px;
  align-items:center;
}

.honey-packing-source-row select,
.honey-packing-source-row input{
  width:100%;
}

.honey-brand-logo-editor{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:end;
  margin-bottom:18px;
}

.honey-brand-logo-preview{
  width:112px;
  height:82px;
  border:1px dashed var(--line);
  border-radius:14px;
  display:grid;
  place-items:center;
  overflow:hidden;
  color:var(--muted);
  background:#fffdf7;
}

.honey-brand-logo-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:8px;
}

.honey-story-modal-panel{
  width:min(1080px,calc(100vw - 32px));
  max-height:92vh;
  overflow:auto;
}

.honey-story-builder{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:24px;
  align-items:start;
}

.honey-story-visibility{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.honey-story-flowering-picker{
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid rgba(32,92,61,.16);
  border-radius:16px;
  background:linear-gradient(145deg, rgba(248,252,247,.96), rgba(255,249,229,.9));
}
.honey-story-flowering-picker > div:first-child{display:grid;gap:4px}
.honey-story-flowering-picker > div:first-child span{color:var(--muted);font-size:13px;line-height:1.45}
.honey-story-flowering-options{display:flex;flex-wrap:wrap;gap:8px}
.honey-story-flowering-options .check-pill{margin:0;background:#fff}
.honey-story-flowering-options__empty{color:var(--muted);font-size:13px}

.honey-story-source-preview{
  display:grid;
  gap:8px;
}

.honey-story-action-row{
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}

.honey-story-preview-btn{
  border-color:rgba(47,105,72,.42);
  background:#edf6ee;
  color:#285b3d;
  font-weight:800;
}

.honey-story-preview-btn::before{
  content:"\1F441";
  margin-right:6px;
}

.honey-story-preview-modal{
  z-index:2400;
}

.honey-story-preview-panel{
  width:min(1280px,calc(100vw - 24px));
  height:calc(100vh - 24px);
  max-height:none;
  margin:12px auto;
  padding:12px;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:10px;
  overflow:hidden;
  background:#f8f4e8;
}

.honey-story-preview-head{
  align-items:center;
  padding:2px 4px;
}

.honey-story-preview-frame{
  width:100%;
  height:100%;
  border:1px solid rgba(32,92,61,.18);
  border-radius:14px;
  background:#fff;
}

.ipm-report-modal{
  z-index:2450;
}

.ipm-report-panel{
  width:min(1420px,calc(100vw - 24px));
  height:calc(100vh - 24px);
  max-height:none;
  margin:12px auto;
  padding:12px;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:10px;
  overflow:hidden;
  background:#f8f4e8;
}

.ipm-report-head{
  align-items:center;
  padding:2px 4px;
}

.ipm-report-controls{
  justify-content:flex-end;
}

.ipm-report-period-label{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.ipm-report-controls select{
  min-width:160px;
}

.ipm-report-frame{
  width:100%;
  height:100%;
  border:1px solid rgba(32,92,61,.18);
  border-radius:14px;
  background:#fff;
}

@media (max-width:680px){
  .honey-story-preview-panel{
    width:100vw;
    height:100vh;
    margin:0;
    border:0;
    border-radius:0;
  }

  .honey-story-preview-head{
    gap:10px;
  }
}

@media (max-width:760px){
  .ipm-report-panel{
    width:100vw;
    height:100vh;
    margin:0;
    border:0;
    border-radius:0;
  }

  .ipm-report-head,
  .ipm-report-controls{
    align-items:flex-start;
  }

  .ipm-report-controls{
    width:100%;
    justify-content:flex-start;
  }
}

.honey-story-source-preview article{
  display:grid;
  gap:3px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,253,247,.78);
}

.honey-story-source-preview span,
.honey-story-source-preview small{
  color:var(--muted);
}

.honey-story-qr-card{
  position:sticky;
  top:0;
  display:grid;
  gap:12px;
  justify-items:center;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  text-align:center;
  overflow-wrap:anywhere;
  min-width:0;
  overflow:hidden;
}

#honeyStoryQr{
  width:min(100%,250px);
  aspect-ratio:1;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#fff;
}

#honeyStoryQr svg{
  width:100%;
  height:auto;
}

.honey-story-public-link{
  width:100%;
  min-width:0;
  display:grid;
  gap:2px;
  padding:10px 12px;
  border:1px solid rgba(32,92,61,.14);
  border-radius:12px;
  background:#f8fbf7;
  color:#285b3d;
  line-height:1.25;
}

.honey-story-public-link small{
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

.honey-story-qr-actions{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.honey-story-qr-actions .btn{
  width:100%;
  min-width:0;
  justify-content:center;
  white-space:nowrap;
}

#honeyStoryOpenPage{
  grid-column:1 / -1;
}

:root{
  --hive-to-jar-brand:#b7791f;
}

.hive-to-jar-public-page{
  min-height:100vh;
  margin:0;
  color:#27231c;
  background:
    radial-gradient(circle at 10% 0%,color-mix(in srgb,var(--hive-to-jar-brand) 18%,transparent),transparent 34%),
    linear-gradient(180deg,#fffdf7 0%,#f6f0e2 100%);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.hive-to-jar-public-shell{
  width:min(760px,100%);
  margin:0 auto;
  padding:24px 18px 56px;
}

.hive-to-jar-preview-banner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-bottom:14px;
  padding:10px 14px;
  border:1px solid rgba(47,105,72,.28);
  border-radius:12px;
  background:#edf6ee;
  color:#285b3d;
  text-align:center;
  box-shadow:0 8px 20px rgba(47,105,72,.1);
}

.hive-to-jar-preview-banner strong{
  text-transform:uppercase;
  letter-spacing:.06em;
}

@media (max-width:560px){
  .hive-to-jar-preview-banner{
    align-items:flex-start;
    flex-direction:column;
  }
}

.hive-to-jar-loading,
.hive-to-jar-unavailable{
  min-height:70vh;
  display:grid;
  place-items:center;
  align-content:center;
  gap:10px;
  text-align:center;
}

.hive-to-jar-loading img,
.hive-to-jar-unavailable img{
  width:92px;
}

.hive-to-jar-loading h1,
.hive-to-jar-unavailable h1{
  margin:8px 0 0;
}

.hive-to-jar-loading p,
.hive-to-jar-unavailable p{
  margin:0;
  color:#716a5e;
}

.hive-to-jar-story{
  overflow:hidden;
  border:1px solid rgba(88,68,34,.13);
  border-radius:28px;
  background:rgba(255,255,255,.94);
  box-shadow:0 24px 70px rgba(62,47,20,.13);
}

.hive-to-jar-brand{
  display:flex;
  gap:20px;
  align-items:center;
  padding:34px;
  border-bottom:1px solid rgba(88,68,34,.1);
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--hive-to-jar-brand) 16%,#fff) 0%,#fffdf7 72%);
}

.hive-to-jar-brand-logo{
  width:96px;
  height:96px;
  flex:0 0 auto;
  object-fit:contain;
  padding:8px;
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 25px rgba(70,53,23,.1);
}

.hive-to-jar-eyebrow,
.hive-to-jar-section-heading span{
  color:var(--hive-to-jar-brand);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.hive-to-jar-brand h1{
  margin:5px 0 6px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(30px,6vw,48px);
  line-height:1.03;
}

.hive-to-jar-brand p{
  margin:0;
  color:#716a5e;
}

.hive-to-jar-intro,
.hive-to-jar-section,
.hive-to-jar-footer{
  padding:30px 34px;
}

.hive-to-jar-intro{
  font-size:18px;
  line-height:1.7;
}

.hive-to-jar-intro p{
  margin:0;
}

.hive-to-jar-beekeeper-note{
  margin-top:18px !important;
  padding:18px;
  border-left:4px solid var(--hive-to-jar-brand);
  background:#fff9e9;
  font-family:Georgia,"Times New Roman",serif;
  font-style:italic;
}

.hive-to-jar-facts{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:0 34px;
  border:1px solid rgba(88,68,34,.12);
  border-radius:16px;
  overflow:hidden;
}

.hive-to-jar-facts div{
  display:grid;
  gap:5px;
  padding:15px;
  border-right:1px solid rgba(88,68,34,.1);
}

.hive-to-jar-facts div:last-child{
  border-right:0;
}

.hive-to-jar-facts span,
.hive-to-jar-quantity-grid span,
.hive-to-jar-season-grid span{
  color:#756e62;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.hive-to-jar-section{
  border-top:1px solid rgba(88,68,34,.1);
}

.hive-to-jar-section-heading h2{
  margin:4px 0 20px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
}

.hive-to-jar-quantity-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.hive-to-jar-quantity-grid > div,
.hive-to-jar-season-grid > div{
  display:grid;
  gap:5px;
  padding:16px;
  border-radius:14px;
  background:#f8f5ed;
}

.hive-to-jar-quantity-grid strong{
  font-size:21px;
}

.hive-to-jar-quantity-grid small{
  color:#7b7468;
}

.hive-to-jar-hives{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.hive-to-jar-hive-card{
  padding:18px;
  border:1px solid color-mix(in srgb,var(--hive-to-jar-brand) 28%,#ddd);
  border-radius:16px;
  background:linear-gradient(145deg,#fff,#fffaf0);
}

.hive-to-jar-hive-card > div{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:start;
}

.hive-to-jar-hive-card h3{
  margin:0;
  font-size:20px;
}

.hive-to-jar-hive-card strong{
  color:var(--hive-to-jar-brand);
  font-size:13px;
}

.hive-to-jar-hive-card p{
  margin:10px 0 0;
  color:#655e52;
  line-height:1.55;
}

.hive-to-jar-disclosure{
  margin:14px 0 0;
  color:#766f64;
  font-size:13px;
}

.hive-to-jar-season-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.hive-to-jar-season-grid p{
  margin:4px 0 0;
  line-height:1.55;
}

.hive-to-jar-timeline{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}

.hive-to-jar-timeline div{
  position:relative;
  display:grid;
  gap:8px;
  justify-items:center;
  text-align:center;
}

.hive-to-jar-timeline b{
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:var(--hive-to-jar-brand);
}

.hive-to-jar-timeline span{
  font-size:13px;
  font-weight:700;
}

.hive-to-jar-footer{
  display:grid;
  gap:12px;
  justify-items:start;
  color:#655e52;
  background:#f8f5ed;
}

.hive-to-jar-footer p{
  margin:0;
}

.hive-to-jar-website{
  display:inline-flex;
  padding:11px 16px;
  border-radius:999px;
  color:#fff;
  background:var(--hive-to-jar-brand);
  font-weight:800;
  text-decoration:none;
}

.hive-to-jar-powered{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:8px;
  font-size:12px;
}

.hive-to-jar-powered img{
  width:28px;
  height:28px;
  object-fit:contain;
}

@media (max-width:780px){
  .honey-packing-source-field{
    grid-column:auto;
  }

  .honey-packing-source-row{
    grid-template-columns:1fr;
  }

  .honey-story-builder{
    grid-template-columns:1fr;
  }

  .honey-story-qr-card{
    position:static;
  }

  .hive-to-jar-public-shell{
    padding:0;
  }

  .hive-to-jar-story{
    min-height:100vh;
    border:0;
    border-radius:0;
  }

  .hive-to-jar-brand,
  .hive-to-jar-intro,
  .hive-to-jar-section,
  .hive-to-jar-footer{
    padding:24px 20px;
  }

  .hive-to-jar-brand{
    align-items:flex-start;
  }

  .hive-to-jar-brand-logo{
    width:72px;
    height:72px;
  }

  .hive-to-jar-facts{
    grid-template-columns:repeat(2,1fr);
    margin:0 20px 24px;
  }

  .hive-to-jar-facts div:nth-child(2){
    border-right:0;
  }

  .hive-to-jar-facts div:nth-child(-n+2){
    border-bottom:1px solid rgba(88,68,34,.1);
  }

  .hive-to-jar-quantity-grid,
  .hive-to-jar-hives,
  .hive-to-jar-season-grid{
    grid-template-columns:1fr;
  }

  .hive-to-jar-timeline{
    grid-template-columns:repeat(2,1fr);
    gap:18px 8px;
  }
}
.package-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(183, 121, 31, 0.42);
  border-radius: 999px;
  background: rgba(255, 244, 214, 0.9);
  color: #79510f;
  font-size: 0.82rem;
  font-weight: 800;
}

.business-setup-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.business-settings-panel {
  margin-top: 18px;
}

.business-settings-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid rgba(39, 93, 63, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 10%, rgba(240, 184, 62, 0.24), transparent 34%),
    linear-gradient(135deg, #234b36, #2f6948);
  color: #fffdf7;
  box-shadow: 0 16px 34px rgba(32, 72, 49, 0.18);
}

.business-settings-hero .h2 {
  margin: 5px 0 4px;
  color: #fff;
  font-size: clamp(25px, 4vw, 34px);
}

.business-settings-hero .authhint {
  color: rgba(255, 255, 255, 0.82);
}

.business-settings-hero .package-badge {
  flex: 0 0 auto;
  background: #fff3cb;
}

.business-settings-eyebrow {
  color: #e9bb57;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.business-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.business-settings-main {
  display: grid;
  gap: 14px;
}

.business-settings-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(107, 74, 15, 0.16);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 10px 24px rgba(88, 64, 25, 0.08);
}

.business-settings-card__heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(107, 74, 15, 0.12);
}

.business-settings-card__heading > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #2f6948;
  color: #fff;
  font-weight: 900;
}

.business-settings-card__heading h3 {
  margin: 0;
  font-size: 1.08rem;
}

.business-settings-card__heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.business-brand-editor {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 118px;
  gap: 16px;
  align-items: center;
}

.business-brand-logo-preview {
  width: 128px;
  height: 104px;
  border: 1px dashed rgba(47, 105, 72, 0.4);
  background: #fff;
}

.business-logo-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.business-logo-actions > span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.business-logo-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.business-logo-picker {
  cursor: pointer;
}

.business-colour-field input[type="color"] {
  width: 64px;
  height: 48px;
  padding: 4px;
  cursor: pointer;
}

.business-field-wide {
  grid-column: 1 / -1;
}

.business-address-grid {
  padding-top: 2px;
}

.business-privacy-toggle {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(47, 105, 72, 0.2);
  border-radius: 12px;
  background: #f1f8f3;
  cursor: pointer;
}

.business-privacy-toggle input {
  margin-top: 3px;
}

.business-privacy-toggle span {
  display: grid;
  gap: 3px;
}

.business-privacy-toggle small {
  color: var(--muted);
}

.business-customer-preview {
  --business-preview-colour: #b7791f;
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--business-preview-colour) 34%, #d7d0bf);
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--business-preview-colour) 10%, #fff) 0%, #fffdf7 56%);
  box-shadow: 0 16px 34px rgba(88, 64, 25, 0.12);
}

.business-preview-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.business-preview-logo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 0.75rem;
  box-shadow: 0 7px 18px rgba(88, 64, 25, 0.1);
}

.business-preview-logo img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.business-preview-brand > div:last-child {
  display: grid;
  gap: 3px;
}

.business-preview-brand strong {
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.business-preview-brand small,
.business-customer-preview > p {
  color: var(--muted);
  line-height: 1.5;
}

.business-customer-preview > p {
  margin: 0;
}

.business-preview-detail {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(107, 74, 15, 0.12);
}

.business-preview-detail span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-preview-detail strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.business-preview-powered {
  padding: 9px 11px;
  border-radius: 999px;
  background: var(--business-preview-colour);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  text-align: center;
}

.business-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(39, 93, 63, 0.24);
  border-radius: 14px;
  background: rgba(247, 251, 247, 0.96);
  box-shadow: 0 14px 34px rgba(43, 76, 55, 0.18);
  backdrop-filter: blur(10px);
}

.business-save-bar > div:first-child {
  display: grid;
  gap: 2px;
}

.business-save-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.settings-section-panel {
  margin-top: 18px;
}

.settings-section-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(39, 93, 63, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 10%, rgba(240, 184, 62, 0.24), transparent 34%),
    linear-gradient(135deg, #234b36, #2f6948);
  color: #fffdf7;
  box-shadow: 0 16px 34px rgba(32, 72, 49, 0.18);
}

.settings-section-hero .h2 {
  margin: 5px 0 4px;
  color: #fff;
  font-size: clamp(25px, 4vw, 34px);
}

.settings-section-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.settings-section-hero__mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5cb71;
  font-size: 27px;
  font-weight: 900;
}

.settings-section-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.settings-section-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(107, 74, 15, 0.16);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 10px 24px rgba(88, 64, 25, 0.08);
}

.settings-day-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.settings-day-pills .pill {
  min-width: 48px;
  background: #fff;
}

.settings-day-pills .pill.active {
  border-color: #2f6948;
  background: #2f6948;
  color: #fff;
}

.settings-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.settings-advanced-card {
  border-color: rgba(174, 117, 24, 0.24);
  background: rgba(255, 249, 232, 0.96);
}

.settings-advanced-toggle {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.settings-advanced-toggle > div {
  display: grid;
  gap: 3px;
}

.settings-advanced-toggle > div > span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.settings-advanced-toggle .toggle-row {
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(174, 117, 24, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.settings-advanced-fields {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(174, 117, 24, 0.18);
}

.settings-option-toggle {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(47, 105, 72, 0.2);
  border-radius: 12px;
  background: #f1f8f3;
  cursor: pointer;
}

.settings-option-toggle input {
  margin-top: 3px;
}

.settings-option-toggle > span {
  display: grid;
  gap: 3px;
}

.settings-option-toggle small {
  color: var(--muted);
}

.settings-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.settings-security-card {
  border-color: rgba(47, 105, 72, 0.22);
  background: linear-gradient(145deg, rgba(245, 251, 246, 0.98), rgba(255, 253, 247, 0.98));
}

.settings-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 105, 72, 0.22);
  border-radius: 12px;
  background: rgba(241, 248, 243, 0.96);
  color: #2b5d40;
  font-weight: 700;
}

.settings-feedback:empty {
  display: none;
}

.settings-shared-save {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(39, 93, 63, 0.24);
  border-radius: 14px;
  background: rgba(247, 251, 247, 0.96);
  box-shadow: 0 14px 34px rgba(43, 76, 55, 0.18);
  backdrop-filter: blur(10px);
}

.settings-shared-save > div {
  display: grid;
  gap: 2px;
}

.settings-shared-save span {
  color: var(--muted);
  font-size: 0.8rem;
}

.flow-super-auto {
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(47, 118, 80, 0.22);
  border-radius: 11px;
  background: rgba(234, 247, 238, 0.72);
}

.flow-super-auto > span,
.flow-super-auto > small {
  color: var(--muted);
  font-size: 0.78rem;
}

.flow-super-auto > strong {
  color: #28593e;
}

.honey-story-care-preview {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(47, 118, 80, 0.22);
  border-radius: 12px;
  background: rgba(234, 247, 238, 0.7);
}

.honey-story-care-preview span {
  color: #315b42;
  line-height: 1.5;
}

.honey-story-care-preview small {
  color: var(--muted);
}

.hive-to-jar-care-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--hive-to-jar-brand) 28%, #ddd);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f6f9f3);
}

.hive-to-jar-care-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.hive-to-jar-care-card small {
  color: #766f64;
  line-height: 1.5;
}

.honey-brand-logo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow-frame-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 6px;
}

.flow-frame-picker__button {
  width: 38px;
  min-height: 38px;
  border: 1px solid rgba(39, 93, 63, 0.35);
  border-radius: 9px;
  background: #fff;
  color: #244f38;
  font-weight: 800;
  cursor: pointer;
}

.flow-frame-picker__button.active {
  border-color: #2f7650;
  background: #2f7650;
  color: #fff;
}

.flow-frame-picker__all {
  width: auto;
  padding-inline: 11px;
}

.hobby-harvest-note {
  padding: 10px 12px;
  border: 1px solid rgba(47, 118, 80, 0.22);
  border-radius: 10px;
  background: rgba(234, 247, 238, 0.72);
  color: #315b42;
}

@media (max-width: 680px) {
  .business-settings-hero,
  .business-save-bar,
  .business-save-actions,
  .settings-section-hero,
  .settings-advanced-toggle,
  .settings-shared-save {
    align-items: stretch;
    flex-direction: column;
  }

  .business-settings-layout,
  .business-brand-editor {
    grid-template-columns: 1fr;
  }

  .business-customer-preview {
    position: static;
  }

  .business-save-actions {
    display: grid;
    text-align: left;
  }

  .business-brand-logo-preview {
    width: 112px;
  }

  .business-field-wide {
    grid-column: auto;
  }

  .settings-section-hero__mark {
    width: 50px;
    height: 50px;
  }

  .settings-card-actions {
    justify-content: stretch;
  }

  .settings-card-actions .btn,
  .settings-shared-save .btn {
    width: 100%;
  }
}

/* Honey Shed shares the calmer green-and-cream Settings visual language. */
.harvest-page .harvest-wrap {
  max-width: 1240px;
}

.harvest-page .authcard--hero {
  border-color: rgba(39, 93, 63, 0.2);
  background: rgba(250, 252, 247, 0.92);
}

.harvest-page .honey-shed-account-bar {
  padding:10px 14px;
  border-radius:14px;
  box-shadow:0 10px 26px rgba(76,55,22,.09);
}

.honey-shed-account-bar .authrow{
  min-height:42px;
  align-items:center;
}

.honey-shed-account-summary{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.honey-shed-account-check{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e7f3e9;
  color:#2f6948;
  font-weight:900;
}

.honey-shed-account-copy{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
}

.honey-shed-account-copy strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#314438;
  font-size:14px;
}

.honey-shed-account-copy .authmeta{
  padding:4px 8px;
  border-radius:999px;
  background:#edf5ee;
  color:#356145;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

@media (max-width:680px){
  .honey-shed-account-copy{
    display:grid;
    gap:3px;
  }

  .honey-shed-account-copy .authmeta{
    justify-self:start;
  }
}

.honey-shed-shell {
  padding: 18px;
  overflow: visible;
  border-color: rgba(84, 62, 22, 0.15);
  background: rgba(255, 252, 244, 0.8);
  box-shadow: 0 18px 42px rgba(76, 55, 22, 0.13);
  backdrop-filter: blur(10px);
}

.honey-shed-hero {
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(39, 93, 63, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 10%, rgba(240, 184, 62, 0.24), transparent 34%),
    linear-gradient(135deg, #234b36, #2f6948);
  color: #fffdf7;
  box-shadow: 0 16px 34px rgba(32, 72, 49, 0.18);
}

.honey-shed-hero .h1 {
  margin: 5px 0 4px;
  color: #fff;
  font-size: clamp(28px, 4vw, 38px);
}

.honey-shed-hero .authhint {
  color: rgba(255, 255, 255, 0.82);
}

.honey-shed-hero .btn,
.honey-shed-hero select.btn {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.94);
  color: #244f38;
}

.honey-shed-tabs {
  padding: 8px;
  border: 1px solid rgba(107, 74, 15, 0.14);
  border-radius: 15px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 8px 20px rgba(88, 64, 25, 0.07);
}

.honey-shed-tab {
  border-radius: 10px;
  background: transparent;
}

.honey-shed-tab.active {
  border-color: #2f6948;
  background: #2f6948;
  box-shadow: 0 6px 14px rgba(47, 105, 72, 0.2);
}

.harvest-page .harvest-panel,
.harvest-page .honey-shed-stat {
  border-color: rgba(107, 74, 15, 0.16);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 10px 24px rgba(88, 64, 25, 0.08);
}

.harvest-page .harvest-panel {
  padding: 20px;
}

.harvest-page .honey-shed-stat {
  min-height: 116px;
  padding: 18px;
}

.harvest-page .honey-shed-stat strong {
  color: #2f6948;
}

.harvest-page .honey-hive-frame-row,
.harvest-page .honey-pack-preset {
  border-radius: 11px;
  background: #fff;
}

.harvest-page .honey-pack-preset.active {
  border-color: #2f6948;
  background: #2f6948;
}

.honey-story-photo-picker {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(47, 105, 72, 0.2);
  border-radius: 14px;
  background: #f1f8f3;
}

.honey-story-photo-picker > div:last-child {
  display: grid;
  gap: 7px;
}

.honey-story-photo-picker > div:last-child > span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.honey-story-photo-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(47, 105, 72, 0.38);
  border-radius: 13px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
}

.honey-story-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hive-to-jar-apiary-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #eef3e9;
}

.hive-to-jar-apiary-photo img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.hive-to-jar-apiary-photo figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(25, 51, 37, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.location-trust-tier {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: clamp(18px, 4vw, 30px) !important;
  line-height: 1;
}

.location-trust-tier--bronze {
  background: #b87443;
  color: #fff7ee !important;
}

.location-trust-tier--silver {
  background: #d9dfe3;
  color: #29413a !important;
}

.location-trust-tier--gold {
  background: #f0bd3e;
  color: #3c2c08 !important;
}

.location-verification-history__summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 105, 72, 0.18);
  border-radius: 11px;
  background: rgba(241, 248, 243, 0.9);
}

.location-verification-history__summary span {
  color: var(--muted);
  font-size: 0.8rem;
}

#hiveToJarVerificationRating {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
}

.hive-to-jar-trust-tier-row{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:4px;
}

.hive-to-jar-trust-tier-row #hiveToJarVerificationRating{
  margin-top:0;
}

.hive-to-jar-trust-help{
  position:relative;
}

.hive-to-jar-trust-help summary{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  list-style:none;
  border:1px solid rgba(47,105,72,.3);
  border-radius:50%;
  background:#fffdf7;
  color:#285b3d;
  font-size:13px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  user-select:none;
}

.hive-to-jar-trust-help summary::-webkit-details-marker{
  display:none;
}

.hive-to-jar-trust-help summary:hover,
.hive-to-jar-trust-help summary:focus-visible{
  border-color:#2f6948;
  outline:2px solid rgba(47,105,72,.16);
  outline-offset:2px;
}

.hive-to-jar-trust-help__panel{
  position:absolute;
  z-index:4;
  top:32px;
  right:0;
  width:min(320px,calc(100vw - 64px));
  padding:13px 14px;
  border:1px solid rgba(47,105,72,.22);
  border-radius:13px;
  background:#fffdf7;
  box-shadow:0 14px 34px rgba(33,57,42,.16);
  text-align:left;
}

.hive-to-jar-trust-help__panel strong{
  margin:0 0 6px;
  color:#153f2d;
}

.hive-to-jar-trust-help__panel p{
  margin:0 0 7px;
  color:#32483a;
  font-size:13px;
  line-height:1.45;
}

.hive-to-jar-trust-help__panel small{
  display:block;
  color:#667268;
  font-size:11px;
  line-height:1.4;
}

@media (max-width: 760px) {
  .honey-shed-hero,
  .location-verification-history__summary {
    align-items: stretch;
    flex-direction: column;
  }

  .honey-story-photo-picker {
    grid-template-columns: 1fr;
  }

  .honey-story-photo-preview {
    max-width: 360px;
  }
}

/* Inspections share the green-and-cream Settings and Honey Shed language. */
.visually-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.inspection-wrap{max-width:1240px}

.inspection-page .inspection-account-bar{
  padding:10px 14px;
  border-color:rgba(39,93,63,.2);
  border-radius:14px;
  background:rgba(250,252,247,.92);
  box-shadow:0 10px 26px rgba(76,55,22,.09);
}

.inspection-shell{
  padding:18px;
  overflow:visible;
  border-color:rgba(84,62,22,.15);
  background:rgba(255,252,244,.8);
  box-shadow:0 18px 42px rgba(76,55,22,.13);
  backdrop-filter:blur(10px);
}

.inspection-hero{
  gap:24px;
  align-items:center;
  padding:24px;
  border:1px solid rgba(39,93,63,.24);
  border-radius:18px;
  background:radial-gradient(circle at 95% 10%,rgba(240,184,62,.24),transparent 34%),linear-gradient(135deg,#234b36,#2f6948);
  color:#fffdf7;
  box-shadow:0 16px 34px rgba(32,72,49,.18);
}

.inspection-hero .h1{
  margin:5px 0 4px;
  color:#fff;
  font-size:clamp(28px,4vw,38px);
}

.inspection-hero .authhint{
  max-width:620px;
  color:rgba(255,255,255,.82);
}

.inspection-hero .btn,
.inspection-hero select.btn,
.inspection-hero .pill{
  border-color:rgba(255,255,255,.3);
  background:rgba(255,255,255,.94);
  color:#244f38;
}

.inspection-mode-tabs{
  gap:8px;
  padding:8px;
  border:1px solid rgba(107,74,15,.14);
  border-radius:15px;
  background:rgba(255,253,247,.82);
  box-shadow:0 8px 20px rgba(88,64,25,.07);
}

.inspection-mode-tabs .btn{
  border-color:transparent;
  border-radius:10px;
  background:transparent;
  color:#34543e;
}

.inspection-mode-tabs .btn.active{
  border-color:#2f6948;
  background:#2f6948;
  color:#fff;
  box-shadow:0 6px 14px rgba(47,105,72,.2);
}

.inspection-content-panel,
.inspection-subcard,
.inspection-import-panel{
  margin-top:16px;
  padding:20px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:16px;
  background:rgba(255,253,247,.96);
  box-shadow:0 10px 24px rgba(88,64,25,.08);
}

.inspection-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:-4px 0 18px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(107,74,15,.12);
}

.inspection-section-heading .h2{
  margin:4px 0 0;
  color:#203c2b;
}

.inspection-section-heading .settings-section-hero__mark{
  width:48px;
  height:48px;
  border-color:rgba(47,105,72,.18);
  background:#edf5ee;
  color:#2f6948;
  font-size:22px;
}

.inspection-form-grid{margin-top:0}

.inspection-photo-panel{
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(47,105,72,.2);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(241,248,240,.98),rgba(255,252,240,.96));
}

.inspection-photo-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.inspection-photo-heading .h2{
  margin:4px 0 3px;
  color:#234b36;
}

.inspection-photo-heading p{
  margin:0;
  color:#5d6858;
  line-height:1.45;
}

.inspection-photo-picker{
  flex:0 0 auto;
  cursor:pointer;
}

.inspection-photo-verification-consent{
  margin-top:14px;
  border-color:rgba(47,105,72,.22);
  background:#fff;
}

.inspection-photo-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.inspection-photo-empty{
  padding:20px;
  border:1px dashed rgba(47,105,72,.28);
  border-radius:12px;
  background:rgba(255,255,255,.68);
  color:#687466;
  text-align:center;
}

.inspection-photo-item{
  display:grid;
  grid-template-columns:116px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(107,74,15,.15);
  border-radius:12px;
  background:#fff;
}

.inspection-photo-item img,
.inspection-photo-preview-missing{
  width:116px;
  height:92px;
  object-fit:cover;
  border-radius:9px;
  background:#edf3eb;
}

.inspection-photo-preview-missing{
  display:grid;
  place-items:center;
  color:#5f6c5c;
  font-size:12px;
  font-weight:800;
}

.inspection-photo-item__fields{
  display:grid;
  grid-template-columns:minmax(90px,120px) minmax(110px,140px) minmax(180px,1fr);
  gap:10px;
  align-items:end;
}

.inspection-photo-item--saved .inspection-photo-item__fields{
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:5px;
}

.inspection-photo-status{
  grid-column:1 / -1;
  color:#6b7467;
  font-size:12px;
  font-weight:800;
}

.inspection-photo-status--verified{color:#2f7d4b}

.inspection-history-photos{
  display:flex;
  align-items:center;
  min-width:150px;
}

.inspection-history-photos a{
  display:block;
  margin-right:-7px;
}

.inspection-history-photos img{
  width:38px;
  height:38px;
  object-fit:cover;
  border:2px solid #fff;
  border-radius:8px;
  box-shadow:0 3px 10px rgba(31,55,39,.16);
}

.inspection-history-photos span{
  margin-left:14px;
  color:#546254;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

@media (max-width:820px){
  .inspection-hero,
  .inspection-photo-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .inspection-hero > .row,
  .inspection-photo-picker{width:100%}

  .inspection-photo-picker{text-align:center}

  .inspection-photo-item{grid-template-columns:88px minmax(0,1fr)}

  .inspection-photo-item img,
  .inspection-photo-preview-missing{
    width:88px;
    height:88px;
  }

  .inspection-photo-item__fields{grid-template-columns:1fr 1fr}
  .inspection-photo-note{grid-column:1 / -1}
  .inspection-photo-item .frame-photo-remove{grid-column:1 / -1}
}

@media (max-width:560px){
  .inspection-shell,
  .inspection-content-panel,
  .inspection-subcard,
  .inspection-import-panel{padding:14px}

  .inspection-hero{padding:18px}
  .inspection-mode-tabs{display:grid}
  .inspection-mode-tabs .btn{width:100%}
  .inspection-photo-item{grid-template-columns:1fr}

  .inspection-photo-item img,
  .inspection-photo-preview-missing{
    width:100%;
    height:190px;
  }

  .inspection-photo-item__fields{grid-template-columns:1fr}
  .inspection-photo-note{grid-column:auto}

  .inspection-form-grid,
  .inspection-form-grid > .field{
    min-width:0;
    width:100%;
  }

  .inspection-form-grid .field input,
  .inspection-form-grid .field select,
  .inspection-form-grid .field textarea{
    display:block;
    width:100%;
    min-width:0;
    max-width:100%;
  }

  .inspection-save-actions{
    bottom:calc(76px + env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
  }

  .inspection-save-actions > #saveMite,
  .inspection-save-actions > .inspection-options-menu,
  .inspection-save-actions > .inspection-options-menu > summary{
    min-width:0;
    min-height:44px;
  }

  .inspection-save-actions > #saveMite{width:100%}

  .app-page > .global-home-btn{
    bottom:max(12px, env(safe-area-inset-bottom)) !important;
    min-height:48px;
  }
}

/* Shared Settings-style treatment for the signed-in application. */
.app-page main.wrap > .card:not(.authcard){
  border-color:rgba(84,62,22,.15);
  border-radius:20px;
  background:rgba(255,252,244,.84);
  box-shadow:0 18px 42px rgba(76,55,22,.13);
  backdrop-filter:blur(10px);
}

.app-page .authcard--hero{
  border-color:rgba(84,62,22,.14);
  border-radius:16px;
  background:rgba(255,253,247,.9);
  box-shadow:0 12px 28px rgba(76,55,22,.1);
  backdrop-filter:blur(9px);
}

.app-page main.wrap > section.card[id$="Shell"] > .row:first-child,
.app-page main.wrap > section.card[id$="Shell"] > .weather-title-row:first-child,
.app-page main.wrap > section.card[id$="Shell"] > .flowering-title-row:first-child{
  margin:-2px -2px 16px;
  padding:22px 24px;
  border:1px solid rgba(39,93,63,.24);
  border-radius:18px;
  background:
    radial-gradient(circle at 94% 5%,rgba(240,184,62,.22),transparent 34%),
    linear-gradient(135deg,#234b36,#2f6948 68%,#5d7845);
  color:#fffdf7;
  box-shadow:0 16px 34px rgba(32,72,49,.18);
}

.app-page main.wrap > section.card[id$="Shell"] > .row:first-child .h1,
.app-page main.wrap > section.card[id$="Shell"] > .row:first-child .h2,
.app-page main.wrap > section.card[id$="Shell"] > .weather-title-row:first-child .h1,
.app-page main.wrap > section.card[id$="Shell"] > .flowering-title-row:first-child .h1{
  color:#fff;
}

.app-page main.wrap > section.card[id$="Shell"] > .row:first-child .authhint,
.app-page main.wrap > section.card[id$="Shell"] > .weather-title-row:first-child .authhint,
.app-page main.wrap > section.card[id$="Shell"] > .flowering-title-row:first-child .authhint{
  color:rgba(255,255,255,.82);
}

.app-page main.wrap > section.card[id$="Shell"] > .row:first-child .btn.small,
.app-page main.wrap > section.card[id$="Shell"] > .weather-title-row:first-child .btn.small,
.app-page main.wrap > section.card[id$="Shell"] > .flowering-title-row:first-child .btn.small{
  min-height:44px;
  padding:10px 15px;
  border-radius:12px;
  background:#fffdf7;
  color:#244b36;
}

.app-page .tabs:not(.inspection-mode-tabs),
.app-page .honey-shed-tabs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:10px;
  overflow:visible;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}

.app-page .tabs:not(.inspection-mode-tabs) > button,
.app-page .honey-shed-tabs > button{
  width:100%;
  min-height:58px;
  justify-content:flex-start;
  padding:13px 16px;
  border:1px solid rgba(107,74,15,.16);
  border-radius:14px;
  background:rgba(255,253,247,.96);
  color:#263d2d;
  text-align:left;
  white-space:normal;
  box-shadow:0 8px 19px rgba(88,64,25,.08);
}

.app-page .tabs:not(.inspection-mode-tabs) > button:hover,
.app-page .tabs:not(.inspection-mode-tabs) > button:focus-visible,
.app-page .honey-shed-tabs > button:hover,
.app-page .honey-shed-tabs > button:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(47,105,72,.48);
  outline:none;
}

.app-page .tabs:not(.inspection-mode-tabs) > button.active,
.app-page .honey-shed-tabs > button.active{
  border-color:#2f6948;
  background:#2f6948;
  color:#fff;
  box-shadow:0 10px 22px rgba(47,105,72,.2);
}

.app-page .card .card{
  border-color:rgba(84,62,22,.13);
  border-radius:16px;
  background:rgba(255,253,247,.9);
  box-shadow:0 9px 22px rgba(76,55,22,.07);
}

.honey-story-metrics-panel{
  width:min(680px,calc(100vw - 28px));
}

.honey-story-metrics-panel .honey-shed-summary{
  margin:16px 0;
}

@media (max-width:700px){
  .app-page main.wrap > section.card[id$="Shell"] > .row:first-child,
  .app-page main.wrap > section.card[id$="Shell"] > .weather-title-row:first-child,
  .app-page main.wrap > section.card[id$="Shell"] > .flowering-title-row:first-child{
    align-items:flex-start;
    padding:18px;
  }

  .app-page .tabs:not(.inspection-mode-tabs),
  .app-page .honey-shed-tabs{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:480px){
  .app-page .tabs:not(.inspection-mode-tabs),
  .app-page .honey-shed-tabs{
    grid-template-columns:1fr;
  }
}
.rec-duration-control {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  max-width: 260px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.rec-duration-control select {
  width: 100%;
}

.treatment-rotation-card {
  overflow: hidden;
  border-color: rgba(47, 105, 72, 0.22) !important;
  background: linear-gradient(145deg, rgba(247, 253, 248, 0.96), rgba(255, 250, 235, 0.94)) !important;
}

.treatment-rotation-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.treatment-rotation-head__actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-width: min(460px, 100%);
}

.treatment-rotation-apiary {
  flex: 1 1 240px;
}

.treatment-rotation-head__actions > .btn,
.treatment-rotation-form__actions > .btn,
.treatment-rotation-actions > .btn {
  min-height: 44px;
  border-radius: 12px;
}

.treatment-rotation-form {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(47, 105, 72, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}

.treatment-rotation-wide {
  grid-column: 1 / -1;
}

.treatment-rotation-form__actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.treatment-rotation-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.treatment-rotation-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid rgba(84, 62, 22, 0.13);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 7px 16px rgba(76, 55, 22, 0.06);
}

.treatment-rotation-step.is-completed,
.treatment-rotation-step.is-skipped {
  opacity: 0.72;
}

.treatment-rotation-step__number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2f6948;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.treatment-rotation-step__body h3 {
  margin: 0;
  color: #203b2a;
  font-size: 1rem;
}

.treatment-rotation-step__meta,
.treatment-rotation-step__notes {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.treatment-rotation-step__status {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #245a3d;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.treatment-rotation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 390px;
}

@media (max-width: 820px) {
  .treatment-rotation-head,
  .treatment-rotation-head__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .treatment-rotation-head__actions {
    min-width: 0;
  }

  .treatment-rotation-apiary {
    flex-basis: auto;
  }

  .treatment-rotation-step {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .treatment-rotation-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }
}

/* Training Mode */
.training-page {
  --training-green: #245f40;
  --training-green-deep: #173f2b;
  --training-gold: #f2bc4b;
}

.training-wrap {
  width: min(1240px, calc(100% - 36px));
}

.training-launch-card,
.training-safety-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
  padding: 20px 22px;
  border: 1px solid rgba(36, 95, 64, 0.25);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(242, 252, 245, 0.98), rgba(255, 248, 226, 0.97));
  box-shadow: 0 12px 30px rgba(48, 54, 36, 0.1);
}

.training-launch-card.hidden,
.training-safety-banner.hidden {
  display: none;
}

.training-launch-card__mark,
.training-safety-banner__mark {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--training-green, #245f40);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.training-launch-card__copy,
.training-safety-banner > div {
  min-width: 0;
  flex: 1 1 auto;
}

.training-launch-card h2 {
  margin: 4px 0 5px;
  color: #183b29;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.training-launch-card p,
.training-safety-banner span {
  margin: 0;
  color: #526257;
  line-height: 1.45;
}

.training-safety-banner strong,
.training-safety-banner span {
  display: block;
}

.training-safety-banner strong {
  margin-bottom: 3px;
  color: #173f2b;
  font-size: 1.08rem;
}

.training-shell {
  padding: 18px;
  border-color: rgba(36, 95, 64, 0.2);
  background: rgba(255, 253, 247, 0.94);
}

.training-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--training-green-deep), #39734d 70%, #72884a);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 74, 48, 0.2);
}

.training-hero .business-settings-eyebrow {
  color: #ffd46e;
}

.training-hero h1 {
  margin: 5px 0 6px;
  color: #fff;
}

.training-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.training-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.training-hero__actions .settings-back-btn {
  position: static;
  flex: 0 0 auto;
}

.training-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.training-summary > div {
  padding: 15px 16px;
  border: 1px solid rgba(64, 81, 52, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.training-summary span,
.training-hive-card__metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.training-summary strong {
  display: block;
  margin-top: 4px;
  color: #214830;
  font-size: 1.15rem;
}

.training-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid rgba(75, 62, 28, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.training-tabs .btn {
  min-height: 46px;
  border-radius: 12px;
}

.training-panel {
  padding: 4px 2px 2px;
}

.training-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.training-section-heading h2,
.training-record-card h2,
.training-form-card h2 {
  margin: 4px 0 5px;
}

.training-section-heading p,
.training-form-card > p {
  margin: 0;
  color: var(--muted);
}

.training-hive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.training-hive-card,
.training-form-card,
.training-record-card {
  padding: 19px;
  border: 1px solid rgba(63, 83, 53, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(59, 54, 38, 0.06);
}

.training-hive-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.training-hive-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #edf7ef;
  color: #2d704b;
  font-weight: 900;
}

.training-hive-card h3 {
  margin: 0;
  color: #1f412e;
}

.training-hive-card__head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.training-status {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff4d5;
  color: #76551d;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: capitalize;
}

.training-status--good {
  background: #e6f6ea;
  color: #286643;
}

.training-status--danger {
  background: #fdebea;
  color: #9d362f;
}

.training-hive-card > p {
  min-height: 44px;
  margin: 14px 0;
  color: #536158;
}

.training-hive-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid rgba(70, 75, 54, 0.1);
}

.training-hive-card__metrics strong {
  display: block;
  margin-top: 3px;
  color: #264d35;
}

.training-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.training-scenario {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px 12px;
  padding: 17px;
  border: 1px solid rgba(36, 95, 64, 0.18);
  border-radius: 15px;
  background: linear-gradient(145deg, #f5fbf6, #fffaf0);
  color: #244b34;
  text-align: left;
  cursor: pointer;
}

.training-scenario:hover {
  border-color: rgba(36, 95, 64, 0.42);
  transform: translateY(-1px);
}

.training-scenario > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2f6c49;
  color: #fff;
  font-weight: 900;
}

.training-scenario strong {
  align-self: end;
}

.training-scenario small {
  color: #637067;
  line-height: 1.35;
}

.training-workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.training-form-card .grid2 {
  margin: 16px 0 10px;
}

.training-form-card > .field {
  margin-bottom: 14px;
}

.training-record-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.training-record-item {
  padding: 14px;
  border: 1px solid rgba(73, 78, 54, 0.12);
  border-radius: 13px;
  background: #fffdf8;
}

.training-record-item strong {
  display: block;
  color: #244b34;
}

.training-record-item span,
.training-record-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.training-activity-card {
  min-height: 340px;
}

.settings-hub-card--training {
  background: linear-gradient(145deg, rgba(240, 251, 243, 0.97), rgba(255, 248, 225, 0.95));
  border-color: rgba(36, 95, 64, 0.24);
}

@media (max-width: 900px) {
  .training-summary,
  .training-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-workflow-layout,
  .training-hive-grid {
    grid-template-columns: 1fr;
  }

  .training-scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .training-wrap {
    width: min(100% - 18px, 1240px);
  }

  .training-launch-card,
  .training-safety-banner,
  .training-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .training-launch-card__mark,
  .training-safety-banner__mark {
    flex-basis: 50px;
  }

  .training-hero__actions {
    justify-content: space-between;
  }

  .training-summary,
  .training-tabs {
    grid-template-columns: 1fr;
  }
}
.afb-equipment-trace{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;padding:12px;border:1px solid rgba(180,83,9,.25);border-radius:12px;background:rgba(255,247,237,.75)}
.afb-equipment-trace.hidden{display:none}.afb-equipment-trace .authhint{flex:1 1 320px}
.afb-trace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.afb-trace-card{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.afb-trace-card h2{margin-top:0}.afb-warning{padding:12px;border-radius:10px;background:#fff7ed;border:1px solid #fdba74;color:#7c2d12}.afb-ok{padding:12px;border-radius:10px;background:#ecfdf5;border:1px solid #86efac;color:#14532d}
.afb-trace-table{width:100%;border-collapse:collapse}.afb-trace-table th,.afb-trace-table td{padding:9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
@media (max-width:760px){.afb-trace-grid{grid-template-columns:1fr}.afb-trace-table{font-size:13px}}
.biosecurity-attachment-links{margin-top:6px;font-size:.9rem}
.biosecurity-attachment-links a{font-weight:700;text-decoration:underline}
.global-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 60, 44, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #173c2c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(23, 60, 44, 0.1);
}

.global-search-btn:hover,
.global-search-btn:focus-visible {
  border-color: rgba(23, 60, 44, 0.48);
  background: #fff;
}

.global-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(12vh, 96px) 16px 24px;
  background: rgba(10, 28, 20, 0.58);
  backdrop-filter: blur(5px);
}

.global-search-backdrop.hidden { display: none !important; }
body.global-search-open { overflow: hidden; }

.global-search-dialog {
  width: min(680px, 100%);
  max-height: min(76vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 60, 44, 0.2);
  border-radius: 20px;
  background: #fffdf7;
  box-shadow: 0 28px 80px rgba(7, 29, 19, 0.32);
}

.global-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 12px;
}

.global-search-title { margin: 0; color: #173c2c; font-size: 1.25rem; }
.global-search-hint { margin: 4px 0 0; color: #587064; font-size: 0.9rem; }
.global-search-close { border: 0; background: none; color: #355a49; font: inherit; font-weight: 700; cursor: pointer; }

.global-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px;
  padding: 0 14px;
  border: 2px solid rgba(23, 60, 44, 0.22);
  border-radius: 13px;
  background: #fff;
}

.global-search-field:focus-within { border-color: #2f7658; box-shadow: 0 0 0 3px rgba(47, 118, 88, 0.12); }
.global-search-input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; color: #173c2c; font: inherit; font-size: 1rem; }
.global-search-status { padding: 10px 22px 6px; color: #6a786f; font-size: 0.8rem; }
.global-search-results { overflow-y: auto; padding: 0 10px 14px; }
.global-search-group { padding: 10px 12px 5px; color: #6a786f; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }

.global-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #173c2c;
  text-align: left;
  cursor: pointer;
}

.global-search-result:hover,
.global-search-result.is-selected { background: #e9f3ec; }
.global-search-result__title { grid-column: 1; font-weight: 850; }
.global-search-result__detail { grid-column: 1; color: #63736a; font-size: 0.84rem; }
.global-search-result__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #44705b; font-weight: 900; }
.global-search-empty { padding: 24px 12px 30px; color: #63736a; text-align: center; }

@media (max-width: 680px) {
  .global-search-btn__label { display: none; }
  .global-search-btn { min-width: 38px; justify-content: center; padding-inline: 9px; }
  .global-search-backdrop { padding: 12px; align-items: stretch; }
  .global-search-dialog { max-height: 92vh; margin-top: 4vh; }
}
.field-intelligence-wrap { max-width: 1180px; }
.field-intelligence-head { align-items: end; gap: 14px; flex-wrap: wrap; }
.field-intelligence-head > div:first-child { flex: 1 1 320px; }
.field-intelligence-head .compact { min-width: 150px; }
.fi-section { margin-top: 16px; }
.fi-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.fi-span-2 { grid-column: 1 / -1; }
.fi-action-summary, .fi-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.fi-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fi-action-summary > div, .fi-metrics > div { border: 1px solid rgba(23,60,44,.16); border-radius: 12px; padding: 12px; background: #fffdf7; display: grid; gap: 4px; }
.fi-action-summary--alert > div:first-child { border-color: #b42318; background: #fff1f0; }
.fi-action-summary span, .fi-metrics span { color: var(--muted); font-size: .82rem; }
.fi-action-summary strong, .fi-metrics strong { font-size: 1.08rem; }
.fi-action-summary small { color: var(--muted); }
.fi-next-action { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--green-soft); margin-bottom: 12px; }
.fi-next-action span { flex: 1; }
.fi-timeline { border-left: 3px solid rgba(23,60,44,.22); margin: 14px 0 4px 8px; }
.fi-timeline-row { display: grid; grid-template-columns: 110px 150px 1fr; gap: 12px; position: relative; padding: 10px 12px 10px 20px; }
.fi-timeline-row::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); position: absolute; left: -7px; top: 15px; }
.fi-timeline-row time { color: var(--muted); }
.fi-empty { color: var(--muted); padding: 14px 0; }
.fi-report-title { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 1.05rem; }
.fi-pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.fi-pricing-grid article { border: 1px solid rgba(23,60,44,.16); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.fi-pricing-grid article span { color: var(--muted); min-height: 42px; }
#fiStatus[data-tone="error"] { color: #b42318; }
@media (max-width: 760px) {
  .fi-form-grid, .fi-action-summary, .fi-metrics, .fi-pricing-grid { grid-template-columns: 1fr; }
  .fi-span-2 { grid-column: auto; }
  .fi-timeline-row { grid-template-columns: 1fr; gap: 3px; }
  .fi-next-action { align-items: flex-start; flex-direction: column; }
}
@media print {
  body * { visibility: hidden; }
  #fiMonthlyReport, #fiMonthlyReport * { visibility: visible; }
  #fiMonthlyReport { position: absolute; left: 0; top: 0; width: 100%; }
}
/* HCAI Swarm Network */
.swarm-public-page{margin:0;background:#f5f1e7;color:#173c2c;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.swarm-public-header{display:flex;align-items:center;gap:12px;padding:14px clamp(16px,4vw,48px);background:#fffdf6;border-bottom:1px solid rgba(23,60,44,.12);position:sticky;top:0;z-index:5}.swarm-public-header .logo{width:48px;height:48px;object-fit:contain}.swarm-public-header div{display:flex;flex-direction:column;flex:1}.swarm-public-header span{font-size:.8rem;color:#607568}.swarm-public-wrap,.swarm-app-wrap{width:min(1040px,calc(100% - 28px));margin:0 auto;padding:28px 0 72px}.swarm-public-hero,.swarm-app-hero{padding:38px clamp(8px,3vw,28px);display:flex;justify-content:space-between;gap:24px;align-items:center}.swarm-public-hero h1,.swarm-app-hero h1{font-size:clamp(2.1rem,7vw,4.5rem);line-height:1;margin:.2em 0}.swarm-public-hero p,.swarm-app-hero p{max-width:720px;font-size:1.08rem;line-height:1.6}.swarm-form{display:grid;gap:18px}.swarm-form h2{margin:14px 0 0}.swarm-form textarea{min-height:96px}.swarm-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.swarm-location-box{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:14px;border-radius:12px;background:#edf5ef}.swarm-success{text-align:center;padding:48px}.swarm-success-mark{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;margin:0 auto 14px;background:#2f7a4d;color:white;font-size:2rem}.swarm-success strong{font-size:1.5rem;letter-spacing:.08em}.swarm-app-hero{background:linear-gradient(135deg,#183f2d,#2f7650);color:white;border-radius:20px;margin-bottom:18px}.swarm-app-hero .business-settings-eyebrow{color:#d9f5df}.swarm-auth-fields{align-items:end}.swarm-preference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.swarm-preference-grid label,.swarm-active-toggle{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid rgba(23,60,44,.14);border-radius:10px;background:#fff}.swarm-active-toggle{margin:16px 0;font-weight:800}.swarm-area-manager{border-top:1px solid rgba(23,60,44,.14);margin-top:26px;padding-top:18px}.swarm-area-list{display:grid;gap:8px;margin-bottom:18px}.swarm-area-row,.swarm-job-card{display:flex;justify-content:space-between;gap:14px;padding:14px;border:1px solid rgba(23,60,44,.14);border-radius:12px;background:#fff}.swarm-area-row div{display:flex;flex-direction:column;gap:3px}.swarm-area-row span{color:#607568;font-size:.9rem}.swarm-area-form{display:grid;gap:12px}.swarm-job-list{display:grid;gap:12px;margin-top:16px}.swarm-job-card{display:block}.swarm-job-card.is-claimed{opacity:.68}.swarm-job-card__head{display:flex;justify-content:space-between;gap:12px;align-items:center}.swarm-job-meta{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.swarm-job-meta span{padding:5px 9px;border-radius:999px;background:#edf5ef;font-size:.85rem}.swarm-hazard{padding:10px;border-left:4px solid #c77b13;background:#fff6dd}.swarm-private-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.swarm-private-details>div{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:10px;background:#edf5ef}.swarm-private-details span{font-size:.8rem;color:#607568;text-transform:uppercase;letter-spacing:.06em}.swarm-status-actions{display:flex;flex-wrap:wrap;gap:8px}.swarm-resolve-form{display:grid;grid-template-columns:1fr 2fr auto;gap:10px;align-items:end;margin-top:18px}.swarm-convert{margin-top:24px;padding-top:20px;border-top:1px solid rgba(23,60,44,.14)}
@media(max-width:700px){.swarm-public-header{align-items:center}.swarm-public-header .btn{font-size:.75rem}.swarm-public-hero,.swarm-app-hero{display:block;padding:28px 10px}.swarm-preference-grid,.swarm-private-details{grid-template-columns:1fr}.swarm-resolve-form{grid-template-columns:1fr}.swarm-area-row{align-items:flex-start}.swarms-page .workspace-switch{overflow-x:auto;justify-content:flex-start}.swarm-public-wrap,.swarm-app-wrap{width:min(100% - 20px,1040px)}}

.swarm-zone-map-shell{position:relative;margin:14px 0 18px;border:1px solid rgba(23,60,44,.18);border-radius:16px;overflow:hidden;background:#e9f1e9;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
.swarm-zone-map{height:420px;min-height:300px;width:100%;z-index:0}
.swarm-zone-map-summary{position:absolute;left:12px;bottom:12px;z-index:400;max-width:calc(100% - 24px);padding:8px 11px;border-radius:10px;background:rgba(255,253,246,.94);box-shadow:0 4px 16px rgba(23,60,44,.2);color:#173c2c;font-size:.83rem;font-weight:800;pointer-events:none}
.swarm-radius-control{display:grid;grid-template-columns:auto minmax(180px,1fr) 64px;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(23,60,44,.14);border-radius:12px;background:#edf5ef;color:#173c2c;font-weight:800}
.swarm-radius-control input{width:100%;accent-color:#2f7a4d}
.swarm-radius-control output{text-align:right;font-variant-numeric:tabular-nums}
.swarm-radius-number{max-width:280px}
.swarm-zone-optional{padding:11px 14px;border:1px solid rgba(23,60,44,.14);border-radius:12px;background:#fff}
.swarm-zone-optional summary{cursor:pointer;color:#173c2c;font-weight:800}
.swarm-zone-optional .grid2{margin-top:14px}
.swarm-area-row.is-map-active{border-color:#2f7a4d;box-shadow:0 0 0 2px rgba(47,122,77,.14)}
.swarm-area-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.swarm-area-swatch{display:inline-block;width:11px;height:11px;margin-right:7px;border-radius:50%;vertical-align:-1px}
.swarm-zone-map .leaflet-popup-content strong{display:block;margin-bottom:3px;color:#173c2c}

@media(max-width:700px){.swarm-zone-map{height:340px}.swarm-radius-control{grid-template-columns:1fr 58px}.swarm-radius-control span{grid-column:1/-1}.swarm-area-row{display:grid}.swarm-area-actions{width:100%}.swarm-area-actions .btn{flex:1}}
.swarm-claim-photo{display:block}.swarm-claim-photo img{display:block;width:100%;max-height:280px;object-fit:cover;border-radius:10px}
/* Varroa Education and A4 Apiary Overview */
.varroa-education-wrap,.apiary-overview-wrap{max-width:1180px}
.varroa-education-hero{background:linear-gradient(135deg,#fffdf5,#edf7ee);border-color:#bed8c3}
.varroa-education-lead{max-width:760px;color:var(--muted);font-size:17px;line-height:1.55}
.varroa-decision-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.varroa-learning-card{margin:0;min-height:180px}
.varroa-learning-card>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#173c2c;color:#fff;font-weight:900}
.varroa-learning-card h2{margin:12px 0 7px;font-size:18px}.varroa-learning-card p{margin:0;color:var(--muted);line-height:1.5}
.varroa-treatment-decision{border-left:6px solid #d89422}.varroa-treatment-decision .row{margin-top:12px}
.varroa-safety-banner,.apiary-overview-alert{margin:12px 0;padding:12px 14px;border:1px solid #d7a94d;border-radius:10px;background:#fff8df;color:#5d430c;line-height:1.45}
.varroa-case-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.varroa-case-metrics>div{padding:12px;border:1px solid #dbe5dc;border-radius:10px;background:#f8fbf8}.varroa-case-metrics span,.varroa-case-metrics strong{display:block}.varroa-case-metrics span{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.varroa-case-metrics strong{margin-top:4px;font-size:18px}
.varroa-education-page .table small,.apiary-overview-sheet table small{display:block;margin-top:2px;color:#607064;font-size:10px}
.varroa-case-note{margin-top:12px;padding:12px;border-radius:10px;background:#eef6ef;line-height:1.5}
.varroa-lineage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.varroa-lineage article{display:grid;grid-template-columns:auto 24px auto;align-items:center;padding:12px;border:1px solid #dbe5dc;border-radius:10px}.varroa-lineage article span{text-align:center;color:#b06e06}.varroa-lineage article small{grid-column:1/-1;margin-top:5px;color:var(--muted)}
.varroa-reference-card li{margin:7px 0;line-height:1.45}.treatment-safety-note{margin-top:7px;padding:8px;border:1px solid #d7a94d;border-radius:8px;background:#fff8df;color:#5d430c}
.education-jump-nav{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 8px}.education-jump-nav a{padding:8px 12px;border:1px solid #c9d8cb;border-radius:999px;background:#fff;color:#173c2c;font-size:13px;font-weight:800;text-decoration:none}.education-jump-nav a:hover{background:#edf5ee}
.education-intro-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.education-topic-card{margin:0;min-height:190px;display:flex;flex-direction:column}.education-topic-card>span{color:#b06e06;font-size:12px;font-weight:900;letter-spacing:.12em}.education-topic-card h2{margin:9px 0 6px}.education-topic-card p{margin:0;color:var(--muted);line-height:1.5}.education-topic-card a{margin-top:auto;padding-top:14px;color:#17613e;font-weight:800}
.education-module{scroll-margin-top:20px}.education-module>summary,.education-case-study>summary{list-style:none;cursor:pointer}.education-module>summary::-webkit-details-marker,.education-case-study>summary::-webkit-details-marker{display:none}.education-module-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.education-module-heading h2{margin:4px 0 0}.education-module[open]>.education-module-heading,.education-case-study[open]>summary{padding-bottom:13px;border-bottom:1px solid #dce5dd}.education-module-body{padding-top:4px}.education-summary-action{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:7px 11px;border:1px solid #b9cabb;border-radius:999px;background:#fff;color:#285b38;font-size:12px;font-weight:900}.education-summary-action::after{content:"+";font-size:18px;line-height:1}.education-module[open] .education-summary-action::after,.education-case-study[open] .education-summary-action::after{content:"−"}.education-module-lead{max-width:900px;color:var(--muted);line-height:1.6}.education-badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:#e8f4ea;color:#285b38;font-size:12px;font-weight:900;white-space:nowrap}.education-badge--warning{margin-top:14px;background:#fff0cf;color:#784e00}
.education-callout{margin:14px 0;padding:13px 15px;border:1px solid #cddace;border-radius:10px;background:#f5f9f5;line-height:1.5}.education-callout--important{border-color:#d7a94d;background:#fff8df;color:#5d430c}
.wash-layout{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.5fr);gap:24px;margin-top:16px}.education-checklist{padding-left:20px;line-height:1.55}.education-checklist li{margin:8px 0}.wash-steps{list-style:none;margin:0;padding:0}.wash-steps li{display:grid;grid-template-columns:34px 1fr;gap:11px;padding:11px 0;border-bottom:1px solid #e1e8e2}.wash-steps li:last-child{border-bottom:0}.wash-steps li>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#173c2c;color:#fff;font-weight:900}.wash-steps strong,.wash-steps p{display:block}.wash-steps p{margin:3px 0 0;color:var(--muted);line-height:1.45}
.education-formula{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;margin-top:16px;padding:14px;border-radius:11px;background:#173c2c;color:#fff}.education-formula span,.education-formula strong{display:block}.education-formula span{font-size:11px;text-transform:uppercase;letter-spacing:.1em;opacity:.72}.education-formula strong{font-size:18px}.education-formula p{margin:0;line-height:1.45;opacity:.9}.education-actions{margin-top:15px;flex-wrap:wrap}
.monitoring-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.monitoring-grid article{padding:14px;border:1px solid #dbe5dc;border-radius:10px;background:#fbfdfb}.monitoring-grid strong{color:#173c2c}.monitoring-grid p{margin:5px 0 0;color:var(--muted);line-height:1.45}
.threshold-panel{display:grid;grid-template-columns:1fr 1.2fr;gap:20px;align-items:center;padding:16px;border-radius:12px;background:#eef6ef}.threshold-panel h3{margin:5px 0}.threshold-panel p{margin:0;color:var(--muted)}.threshold-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.threshold-cards article{padding:13px;border-radius:9px;background:#fff;border:1px solid #d2dfd3}.threshold-cards span,.threshold-cards strong,.threshold-cards small{display:block}.threshold-cards span{font-size:12px;color:var(--muted)}.threshold-cards strong{margin:4px 0;font-size:18px;color:#8b3d24}
.registered-treatment-table{margin-top:14px}.registered-treatment-table td{vertical-align:top}.treatment-decision-path{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:18px 0;padding:13px;border-radius:10px;background:#f0f5f1}.treatment-decision-path span{padding:7px 9px;border-radius:7px;background:#fff;border:1px solid #d4dfd5;font-size:12px;font-weight:800}.treatment-decision-path b{color:#b06e06}.varroa-treatment-decision{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:16px;border-left:6px solid #d89422;border-radius:10px;background:#fffaf0}.varroa-treatment-decision h3{margin:5px 0}.varroa-treatment-decision p{margin:0;line-height:1.5}.varroa-treatment-decision .varroa-safety-banner{margin:0}
.resistance-module{border-color:#e0bd72}.resistance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:16px}.resistance-grid>div{padding:15px;border:1px solid #ead8ad;border-radius:10px;background:#fffcf5}.resistance-grid h3{margin:0 0 7px}.resistance-grid p{margin:0;line-height:1.5}.resistance-grid ul{margin:0;padding-left:20px}.resistance-grid li{margin:6px 0;line-height:1.4}
.education-case-heading{scroll-margin-top:20px;margin:28px 2px 12px}.education-case-heading h2{margin:4px 0}.education-case-heading p{max-width:850px;margin:0;color:var(--muted);line-height:1.5}.education-case-study{scroll-margin-top:20px}.education-case-study>summary{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.education-case-study h2{margin:5px 0 0}.case-number{color:#b06e06;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}.case-evidence-pill{display:inline-flex;margin-top:12px}.case-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.case-story-grid>div{padding:14px;border-radius:10px;background:#f6f9f6;border:1px solid #dbe5dc}.case-story-grid h3{margin:0 0 6px;font-size:15px}.case-story-grid p{margin:0;color:var(--muted);line-height:1.48}.case-timeline{display:flex;gap:0;margin:16px 0;overflow:auto}.case-timeline article{position:relative;min-width:150px;padding:12px 15px;border-top:4px solid #4d845e;background:#f4f8f4}.case-timeline article+article{border-left:2px solid #fff}.case-timeline article.is-missing{border-top-color:#d09a32;background:#fff8e7}.case-timeline span,.case-timeline strong,.case-timeline small{display:block}.case-timeline span{font-size:11px;color:var(--muted)}.case-timeline strong{margin:5px 0}.case-timeline small{color:var(--muted)}
.case-study-logic{display:grid;gap:9px;margin:16px 0}.case-study-logic article{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;padding:13px 14px;border:1px solid #dbe5dc;border-radius:10px;background:#f7faf7}.case-study-logic article>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#173c2c;color:#fff;font-weight:900}.case-study-logic article.is-lesson{border-color:#d7a94d;background:#fff8df}.case-study-logic article.is-lesson>span{background:#b06e06}.case-study-logic strong{display:block;margin:1px 0 4px}.case-study-logic p{margin:0;color:var(--muted);line-height:1.48}.case-event-timeline{display:flex;gap:0;margin:16px 0;overflow:auto}.case-event-timeline article{min-width:150px;padding:12px 15px;border-top:4px solid #4d845e;background:#f4f8f4}.case-event-timeline article+article{border-left:2px solid #fff}.case-event-timeline article.is-treatment{border-top-color:#d09a32;background:#fff8e7}.case-event-timeline span,.case-event-timeline strong,.case-event-timeline small{display:block}.case-event-timeline span{font-size:11px;color:var(--muted)}.case-event-timeline strong{margin:5px 0}.case-event-timeline small{color:var(--muted)}
.apiary-overview-toolbar{align-items:flex-end;flex-wrap:wrap}.apiary-overview-preview{display:flex;justify-content:center;padding:16px 0 40px}
.apiary-overview-sheet{width:210mm;height:297mm;box-sizing:border-box;padding:12mm 13mm;background:#fff;color:#17251d;overflow:hidden;display:flex;flex-direction:column;font-family:Arial,sans-serif;box-shadow:0 12px 34px rgba(23,60,44,.16)}
.apiary-overview-sheet>header{display:grid;grid-template-columns:25mm 1fr auto;gap:6mm;align-items:center;padding-bottom:5mm;border-bottom:2px solid #173c2c}.apiary-overview-sheet>header img{width:24mm;height:20mm;object-fit:contain}.apiary-overview-sheet h1{margin:1mm 0;font-size:22pt;line-height:1}.apiary-overview-sheet header p{margin:0;color:#607064;font-size:10pt}.apiary-overview-date{text-align:right}.apiary-overview-date span,.apiary-overview-date strong{display:block}.apiary-overview-date span{font-size:8pt;text-transform:uppercase;color:#607064}.apiary-overview-date strong{margin-top:1mm;font-size:11pt}
.apiary-overview-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:3mm;margin:5mm 0}.apiary-overview-summary>div{padding:3mm;border:1px solid #cedbcf;border-radius:2mm;background:#f4f8f4}.apiary-overview-summary span,.apiary-overview-summary strong{display:block}.apiary-overview-summary span{font-size:7.5pt;text-transform:uppercase;color:#607064}.apiary-overview-summary strong{margin-top:1mm;font-size:15pt}
.apiary-overview-sheet section h2{margin:3.5mm 0 2mm;font-size:12pt}.apiary-overview-sheet table{width:100%;border-collapse:collapse;font-size:8pt}.apiary-overview-sheet th,.apiary-overview-sheet td{padding:2mm 1.7mm;border:1px solid #cfd8d0;text-align:left;vertical-align:top}.apiary-overview-sheet th{background:#edf4ee;font-size:7pt;text-transform:uppercase}.overview-not-tested{color:#835b13;font-weight:800}.apiary-overview-empty{padding:5mm;border:1px dashed #aab8ac;text-align:center;color:#607064}
.apiary-overview-lower{display:grid;grid-template-columns:1.5fr 1fr;gap:6mm}.apiary-overview-sheet ul{margin:0;padding-left:5mm;font-size:8.5pt;line-height:1.4}.apiary-overview-sheet li{margin:1.2mm 0}.apiary-overview-sheet dl{display:grid;grid-template-columns:auto 1fr;gap:1.3mm 3mm;margin:0;font-size:8.5pt}.apiary-overview-sheet dt{font-weight:800}.apiary-overview-sheet dd{margin:0}.apiary-overview-archive{margin-top:2mm;padding-top:2mm;border-top:1px solid #dbe3dc}.apiary-overview-alert{margin:0 0 3mm;padding:2.5mm 3mm;font-size:8.5pt}.apiary-overview-sheet footer{display:flex;justify-content:space-between;gap:5mm;margin-top:auto;padding-top:3mm;border-top:1px solid #aebcaf;color:#607064;font-size:7pt}.apiary-overview-sheet footer span:last-child{text-align:right}.apiary-overview-pdf-stage{position:fixed;left:-10000px;top:0;width:210mm;background:#fff}.apiary-overview-pdf-stage .apiary-overview-sheet{box-shadow:none}
@media(max-width:850px){.varroa-decision-grid,.varroa-case-metrics,.education-intro-grid,.monitoring-grid,.case-story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wash-layout,.threshold-panel,.varroa-treatment-decision{grid-template-columns:1fr}.resistance-grid{grid-template-columns:1fr}.varroa-lineage{grid-template-columns:1fr}.apiary-overview-preview{justify-content:flex-start;overflow:auto}.apiary-overview-sheet{transform:scale(.62);transform-origin:top left;margin-bottom:-110mm}}
@media(max-width:560px){.education-intro-grid,.monitoring-grid,.case-story-grid,.threshold-cards{grid-template-columns:1fr}.education-module-heading,.education-case-study>summary{flex-direction:column}.education-badge{white-space:normal}.education-formula{grid-template-columns:1fr}.treatment-decision-path{justify-content:flex-start}.treatment-decision-path b{transform:rotate(90deg)}}
@media print{.apiary-overview-sheet{box-shadow:none;break-after:page}.apiary-overview-preview{padding:0}.apiary-overview-page{background:#fff}}

/* Weather navigation scrolls with the header, leaving history controls clear. */
.weather-page .workspace-switch{position:absolute}

.flow-frame-weights, .flow-frame-cycles { margin-top: 12px; padding: 12px; border: 1px solid rgba(107,74,15,.2); border-radius: 10px; background: #fffdf7; }
.flow-weight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.flow-weight-grid input { width: 100%; min-height: 44px; }
.flow-frame-cycles ul { padding-left: 20px; margin: 8px 0; }
.flow-frame-cycles li + li { margin-top: 8px; }

/* Keep the optional station table readable outside the green current-weather hero. */
.weather-station-readings { background:#fffef9; color:#243b2d; padding:16px 20px; border-top:1px solid #dce4d6; }
.weather-station-readings summary { cursor:pointer; font-weight:700; min-height:28px; }
.weather-station-readings .authhint { color:#566257; line-height:1.5; margin:10px 0; }
.weather-station-readings table { width:100%; border-collapse:collapse; }
.weather-station-readings th, .weather-station-readings td { text-align:left; padding:7px 12px; border-bottom:1px solid #e1e7dc; }
.weather-station-readings th { background:#edf2e7; }

/* Keep plant previews compact and offer uncropped field photos. */
.flowering-photo-link{display:block;min-width:0;align-self:start;color:var(--ink);text-align:center;}
.flowering-photo-link img{display:block;height:200px;min-height:0;object-fit:contain;}
.flowering-photo-link span{display:block;padding:7px;font-size:12px;background:#f8f3e6;}
.flowering-photo-link:focus-visible{outline:3px solid currentColor;outline-offset:-3px;}
.flowering-plant-card--compact .flowering-photo-link img{height:180px;}
.flowering-plant-card--modal{grid-template-columns:1fr;}
.flowering-plant-card--modal > .flowering-photo-link img{height:auto;max-height:65vh;object-fit:contain;}
.flowering-photo-strip .flowering-photo-link img{height:150px;aspect-ratio:auto;object-fit:contain;}
.flowering-sources{margin:12px 0;}
.flowering-sources a{overflow-wrap:anywhere;}

.flowering-photo-overlay{box-sizing:border-box;width:min(1100px,95vw);max-width:95vw;max-height:94vh;padding:48px 16px 12px;border:1px solid var(--line);border-radius:12px;background:#fffdf7;color:#182316;overflow:auto;}
.flowering-photo-overlay::backdrop{background:rgba(0,0,0,.8);}
.flowering-photo-overlay img{display:block;width:100%;height:auto;max-height:calc(94vh - 115px);object-fit:contain;}
.flowering-photo-overlay p{margin:10px 0 0;text-align:center;}
.flowering-photo-overlay__close{position:absolute;top:8px;right:12px;padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:#fffdf7;color:#182316;cursor:pointer;font:inherit;}
body:has(.flowering-photo-overlay[open]){overflow:hidden;}

.nearby-varroa-notice{border:2px solid #b7791f;border-left:7px solid #b7791f;background:#fff8e6;color:#49330d;margin:14px 0;padding:16px;box-shadow:0 3px 12px rgba(120,80,10,.12)}
.nearby-varroa-notice .row{flex-wrap:wrap;gap:8px}.nearby-varroa-notice p{margin:8px 0;line-height:1.5}
.nearby-varroa-notice .pill{background:#744b0d;color:#fff}.nearby-varroa-report{padding:12px 0;border-top:1px solid #d8bc85}
.nearby-varroa-counts{font-size:1.1rem}.nearby-varroa-report p:last-child{font-size:.88rem}

.planned-work-wrap{max-width:1180px}.planned-work-hero{display:flex;align-items:end;justify-content:space-between;gap:24px}.planned-work-hero p{margin:6px 0 0;color:var(--muted,#5d6b63)}.planned-work-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end}.planned-work-title{grid-column:span 2}.planned-work-notes{grid-column:span 3}.planned-work-form textarea{resize:vertical}.planned-work-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.planned-work-metrics>div{background:#fffdf6;border:1px solid rgba(23,60,44,.14);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:4px}.planned-work-metrics span{color:#617066;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.planned-work-metrics strong{font-size:1.8rem;color:#173c2c}.planned-work-metrics .is-alert{border-color:#b64b38;background:#fff4f0}.planned-work-list{display:grid;gap:12px;margin-top:14px}.planned-work-card{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid rgba(23,60,44,.15);border-left:5px solid #d7a72b;border-radius:14px;padding:16px;background:#fff}.planned-work-card.is-overdue{border-left-color:#b94432;background:#fffaf8}.planned-work-card__date{display:flex;flex-direction:column;gap:3px}.planned-work-card__date>span{text-transform:uppercase;font-size:.75rem;font-weight:800;color:#7c5d11}.planned-work-card.is-overdue .planned-work-card__date>span{color:#a33122}.planned-work-card__body h3{margin:7px 0 4px;color:#173c2c}.planned-work-card__body p{margin:0 0 6px;white-space:pre-line;color:#43534a}.planned-work-card__meta,.planned-work-card__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.planned-work-card__meta>span:not(.pill){font-size:.85rem;color:#66736b}.planned-work-card__actions{justify-content:flex-end}.planned-work-empty{padding:30px;text-align:center;border:1px dashed rgba(23,60,44,.24);border-radius:14px;color:#66736b}.priority-urgent{background:#8f291d!important;color:white!important}.priority-high{background:#f4c9a5!important;color:#672b10!important}
@media (max-width:800px){.planned-work-hero{align-items:stretch;flex-direction:column}.planned-work-form{grid-template-columns:1fr 1fr}.planned-work-title,.planned-work-notes{grid-column:span 2}.planned-work-metrics{grid-template-columns:1fr 1fr}.planned-work-card{grid-template-columns:1fr}.planned-work-card__actions{justify-content:flex-start}.planned-work-list-head{align-items:flex-start;gap:12px}.planned-work-tabs{width:100%;overflow-x:auto}}
@media (max-width:520px){.planned-work-form{grid-template-columns:1fr}.planned-work-title,.planned-work-notes{grid-column:span 1}.planned-work-metrics{grid-template-columns:1fr 1fr}}

/* Weather navigation scrolls with the header, leaving history controls clear. */
.weather-page .workspace-switch{position:absolute}

/* Personal backgrounds keep existing content and controls readable. */
html[data-background="meadow"] body{
  background:linear-gradient(145deg,#e3efdf 0%,#faf4df 50%,#dcebe2 100%);
}
html[data-background="colour"] body{background:var(--background-colour,#f5f1e7)}
html[data-background="meadow"] body::before,
html[data-background="meadow"] body::after,
html[data-background="colour"] body::before,
html[data-background="colour"] body::after{display:none}
html[data-background="colour"] .card,
html[data-background="meadow"] .card{background:rgba(255,253,247,.95)}
.background-choices{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.background-choice{border:2px solid var(--line);border-radius:12px;padding:10px;background:#fffdf7;color:var(--text);font:inherit;cursor:pointer;min-width:140px;flex:1}
.background-choice[aria-pressed="true"]{border-color:var(--green);box-shadow:0 0 0 1px var(--green);font-weight:700}
.background-choice:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.background-swatch{display:block;height:76px;border-radius:7px;margin-bottom:8px;border:1px solid var(--line)}
.background-swatch--artwork{background:#f5f1e7 url("assets/hivecast-background.png") center 20% / cover}
.background-swatch--meadow{background:linear-gradient(145deg,#e3efdf,#faf4df,#dcebe2)}
.background-swatch--colour{background:var(--background-colour,#f5f1e7)}
#backgroundColour{width:90px;height:44px;padding:4px;cursor:pointer}
@media print{
  html[data-background] body{background:#fff!important}
}

/* Native Add Hive fields retain native hidden semantics within field layouts. */
#addHiveSpeciesField[hidden],#addNativeBoxField[hidden],#addNativeEmptyField[hidden],#addHiveDialog label[hidden]{display:none!important}
