.care-entry,
.dispatch-date,
.dispatch-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.care-entry {
  border-block: 1px solid #cad6cb;
  background: #edf3ec;
  padding: 10px 16px;
  margin: 0 0 16px;
}
.dispatch-date {
  justify-content: space-between;
  border-block: 1px solid #cbd7cb;
  padding: 14px 16px;
  background: #eef3ed;
  margin-bottom: 16px;
}
.dispatch-date strong {
  display: block;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  margin-top: 4px;
  color: #183d23;
}
.date-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.date-actions button,
.date-actions input {
  min-height: 38px;
  background: white;
  border: 1px solid #b3c2b4;
  border-radius: 3px;
  padding: 5px 9px;
}
.date-actions button {
  font-size: 1.25rem;
  min-width: 36px;
}
.dispatch-strip {
  margin: 0 0 18px;
  gap: 0;
  border: 1px solid var(--line);
  background: white;
}
.dispatch-strip > div {
  flex: 1;
  padding: 13px 16px;
  font-size: 0.9rem;
  color: #4b5b50;
}
.dispatch-strip b {
  display: block;
  font-size: 1.65rem;
  color: #183b22;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.dispatch-strip > div + div {
  border-left: 1px solid var(--line);
}
.condition {
  font-size: 0.87rem;
  font-weight: 650;
  color: #295b37;
}
.condition.watch {
  color: #8a5018;
}
.condition.establishing {
  color: #4b6078;
}
.routes td {
  vertical-align: top;
}
.routes td small {
  margin-top: 3px;
  max-width: 36ch;
  white-space: normal;
}
.routes .scroll-table:focus-visible {
  outline: 2px solid #527758;
}
.house-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}
.aerial-plan {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  margin-top: 15px;
  border: 1px solid #9eafa2;
  background: #d9dfd4;
}
.aerial-plan img {
  width: 100%;
  height: auto;
  display: block;
}
.roof {
  position: absolute;
  top: 23%;
  height: 26%;
  width: 9%;
  transform: translateX(-50%);
  border: 1px solid #fff9;
  background: #10371415;
  border-radius: 3px;
  display: grid;
  place-items: center;
  padding: 0;
}
.roof-2 {
  left: 32.2%;
  top: 21.5%;
}
.roof-3 {
  left: 44.7%;
  top: 22%;
}
.roof-4 {
  left: 57.3%;
  top: 23.6%;
}
.roof-5 {
  left: 69.6%;
  top: 24.5%;
}
.roof-6 {
  left: 82.6%;
  top: 25.6%;
}
.roof span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: clamp(0.71rem, 1.55vw, 0.95rem);
  line-height: 1.3;
  padding: 3px 4px;
  background: #fff;
  color: #16351b;
  font-weight: 700;
  border: 1px solid #425e4a;
  border-radius: 2px;
}
.roof:hover,
.roof:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.roof[aria-pressed="true"] {
  background: #15421d40;
  border: 2px solid #173c22;
  box-shadow: 0 0 0 1px white;
}
.roof[aria-pressed="true"] span {
  background: #153a20;
  color: white;
  border-color: white;
}
.map-caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.house-sheet > h2 {
  margin-top: 5px;
}
.house-sheet > p:not(.eyebrow) {
  color: #58645b;
  margin: 6px 0;
}
.house-sheet dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  margin: 12px 0;
}
.house-sheet dt,
.house-sheet dd {
  border-top: 1px solid var(--line);
  padding: 7px 0;
  margin: 0;
  font-size: 0.9rem;
}
.house-sheet dt {
  color: var(--muted);
}
.house-sheet dd {
  font-weight: 600;
}
.house-sheet h3 {
  font-size: 0.96rem;
}
.care-disclosure {
  color: var(--muted);
  font-size: 0.83rem;
}
@media (max-width: 740px) {
  .house-layout {
    grid-template-columns: 1fr;
  }
  .routes .scroll-table {
    max-width: 100%;
  }
  .dispatch-strip > div {
    flex: 1 1 50%;
  }
  .dispatch-strip > div:nth-child(3) {
    border-left: 0;
  }
  .dispatch-strip > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .care-entry {
    gap: 5px 14px;
  }
  .care-entry strong {
    width: 100%;
  }
  .dispatch-date {
    gap: 10px;
  }
  .routes td small {
    min-width: 15ch;
  }
}
.report-head label[hidden] {
  display: none;
}
@media (max-width: 650px) {
  .routes thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .routes table,
  .routes tbody {
    display: block;
  }
  .routes tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }
  .box.routes td {
    display: block;
    white-space: normal;
    border: 0;
    padding: 4px 1px;
    text-align: left;
  }
  .routes td:first-child,
  .routes td:nth-child(4) {
    grid-column: 1/-1;
  }
  .routes td:first-child b {
    font-size: 1.03rem;
  }
  .routes td:nth-child(2)::before,
  .routes td:nth-child(3)::before,
  .routes td:nth-child(4)::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.72rem;
  }
  .routes td:nth-child(2)::before {
    content: "Assigned employee";
  }
  .routes td:nth-child(3)::before {
    content: "Next watering";
  }
  .routes td:nth-child(4)::before {
    content: "Flower status";
  }
  .routes td:last-child {
    grid-column: 1/-1;
  }
  .routes td:last-child .job-link::before {
    content: "Source · ";
  }
  .routes td small {
    min-width: 0;
    max-width: none;
  }
}

@container (max-width: 550px) {
  .roof span {
    padding: 2px 3px;
    font-size: 0.75rem;
  }
}
@media (max-width: 460px) {
  .house-layout > .box:first-child {
    padding-inline: 8px;
  }
}

.role-switch {margin-left:auto}
.role-switch select {background:#fff;color:var(--brand-forest);font-weight:650}
.workspace-nav button[hidden] {display:none}
.crew-sheet {max-width:1100px;border-top:3px solid var(--brand-forest)}
.crew-sheet-head,.delivery-summary,.pick-list li {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.crew-sheet-head h2 {font-size:1.7rem;letter-spacing:-.04em;margin-top:4px}
.crew-sheet-head label,.block-move label {display:grid;gap:4px;font-size:.85rem;color:var(--muted)}
.crew-count {margin:16px 0 0;color:var(--muted)}
.crew-stops,.pick-list {list-style:none;padding:0;margin:12px 0 0}
.crew-stops li {display:grid;grid-template-columns:7rem 1fr auto;align-items:center;gap:14px;padding:18px 0;border-top:1px solid var(--line)}
.crew-stops h3 {font-size:1.08rem}
.crew-stops p,.crew-time small {color:var(--muted);font-size:.9rem}
.crew-time {font-weight:650;font-variant-numeric:tabular-nums}
.crew-time small {display:block;font-weight:400}
.crew-action {background:var(--brand-forest);color:white;border:0;border-radius:3px;padding:9px 13px;font-weight:600}
.crew-action:disabled {color:#637066;background:#edf0eb;cursor:default}
.crew-done {color:var(--brand-forest);font-size:.93rem}
.delivery-summary {padding:10px 12px;background:#f2f2e9;border-left:3px solid #8b773a}
.dispatch-facts {display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:17px 0}
.dispatch-facts dt {color:var(--muted)}
.dispatch-facts dd {margin:0}
.pick-list li {padding:8px 0;border-top:1px solid var(--line)}
.pick-list {margin-bottom:16px}
.block-move {margin-top:10px}
.block-move summary {cursor:pointer;color:var(--brand-forest);font-weight:650}
.block-move form {display:grid;gap:8px;margin-top:10px}
.block-move input {width:100%;padding:6px}
#move-status:empty {display:none}
@media(max-width:600px){
 .crew-stops li {grid-template-columns:5.4rem minmax(0,1fr);gap:8px}
 .crew-stops li>div:last-child {grid-column:2}
 .workspace-head img {width:min(48vw,184px)}
 .role-switch select {max-width:39vw}
}
@media(max-width:650px){
 .routes td:nth-child(5)::before {display:block;content:"Watering log";font-size:.72rem;color:var(--muted)}
}

#reports[hidden], #destinations button[hidden] {display:none;}
#reports:not([hidden]) {border-top:1px solid var(--line);}
#reports button {min-height:44px;font-size:.88rem;}
#reports button[aria-pressed="true"] {background:white;}
#destinations button {font-weight:650;}
.dispatch-board {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:1rem;align-items:start;margin:1rem 0;}
.dispatch-heading {display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:baseline;justify-content:space-between;margin-bottom:.8rem;}
.dispatch-heading span,.dispatch-stop small {color:var(--muted);}
.dispatch-stops,.flower-search ul {list-style:none;margin:0;padding:0;}
.dispatch-stop {border:0;border-top:1px solid var(--line);border-radius:0;display:grid;align-items:center;grid-template-columns:5rem 1fr auto;width:100%;text-align:left;gap:1rem;padding:.8rem 0;}
.dispatch-stop:hover,.flower-search li button:hover {background:#f2f6f2;}
.dispatch-stop strong,.dispatch-stop small,.flower-search li span {display:block;}
.stop-state {font-size:.85rem;}
.daily-state {color:#754713;font-weight:650;}
.dispatch-board .quiet {margin-top:.8rem;}
.next-stop {background:#edf4ec;border-left:4px solid var(--brand-accent);padding:1rem;margin:.8rem 0;}
.next-stop h3 {font-size:1.4rem;}
.next-stop .crew-action {margin-top:.6rem;}
.flower-search {margin:1rem 0;}
.flower-search label {display:block;font-size:1.2rem;font-weight:650;margin-bottom:.5rem;}
.flower-search input {width:min(100%,32rem);padding:.6rem;border:1px solid #84948a;}
.flower-search ul {max-height:16rem;overflow:auto;}
.flower-search li button {width:100%;text-align:left;border:0;border-top:1px solid var(--line);padding:.55rem;}
.back-delivery {padding:.55rem .8rem;margin-bottom:.6rem;}
.office-picker {display:none;}
@media(max-width:700px){
 .dispatch-board {grid-template-columns:1fr;}
 #destinations {
   grid-auto-flow:row;
   grid-template-columns:repeat(2,minmax(0,1fr));
 }
 #destinations button {justify-items:start;text-align:left;padding:10px 12px;min-height:46px;font-size:1rem;}
 #reports.office-sections {display:none;}
 .office-picker:not([hidden]) {
   display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;
   gap:12px;padding-block:8px;border-top:1px solid var(--line);
 }
 .office-picker span {font-size:.9rem;color:#3a5041;}
 .office-picker select {width:100%;min-width:0;min-height:44px;font-size:1rem;color:var(--brand-forest);}

 .dispatch-stop {grid-template-columns:4.4rem 1fr;column-gap:.5rem;row-gap:0;}
 .dispatch-stop .stop-state {grid-column:2;}
}

.container-stops {padding-left:1.6rem;margin:1rem 0;}
.container-stops li {border-top:1px solid var(--line);padding:.55rem .2rem;}
.container-stops span {display:block;color:var(--muted);}
.next-stop .job-link {margin-right:1rem;}

@media (max-width:360px) {
  .office-picker:not([hidden]) {grid-template-columns:1fr;gap:4px;}
  #destinations button {padding-inline:6px;}
  .workspace-head img {width:min(43vw,150px);}
}
