/* ============================================================
   MR. GOLFCART V2 — MY DAY
   Mobile-first V1 parity pass.

   V1 visual hierarchy preserved:
   Search -> Jay's Day -> day/work controls -> section heading -> cards
   Card: identity -> Next Step -> Latest Note -> Operational -> actions
   ============================================================ */

/* Working As: compact header control, no visible label. */
.working-as-root{min-width:98px;max-width:112px}
.working-as-control{display:flex;align-items:center;justify-content:flex-end}
.working-as-control label{display:none}
.working-as-control select{
  width:108px;
  min-height:38px;
  border:1px solid rgba(255,255,255,.46);
  border-radius:7px;
  padding:5px 24px 5px 8px;
  background:#fff;
  color:var(--text);
  font-size:15px;
  font-weight:800;
  line-height:1.1;
}

/* Search */
.my-day-search-wrap{margin:0 0 10px}
.my-day-search{
  width:100%;
  min-height:44px;
  padding:9px 12px;
  border:1px solid #c7d2cc;
  border-radius:10px;
  background:#fff;
  color:var(--text);
  font-size:16px;
  line-height:1.2;
  box-shadow:none;
}
.my-day-search::placeholder{color:#747b77;opacity:1}

/* Section heading */
.my-day-heading,
.my-day-section-heading{display:flex;align-items:center;gap:8px}
.my-day-heading{
  margin:1px 2px 6px;
  color:var(--green);
  font-size:15px;
  font-weight:900;
  line-height:1;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.my-day-heading::before,
.my-day-section-heading::before{
  content:"";
  width:4px;
  border-radius:3px;
  background:var(--gold);
  flex:0 0 4px;
}
.my-day-heading::before{height:17px}
.my-day-heading::after,
.my-day-section-heading::after{
  content:"";
  height:1px;
  background:#aeb8b3;
  flex:1 1 auto;
  min-width:18px;
}
.my-day-section-heading{
  margin:10px 2px 6px;
  color:#4f5e56;
  font-size:11px;
  font-weight:900;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.my-day-section-heading::before{height:14px}

/* My Day 2x3 controls. First row uses urgency accents; second row stays quiet. */
.day-nav-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin:0 0 8px;
}
.day-nav-button{
  width:100%;
  min-width:0;
  min-height:54px;
  margin:0;
  padding:10px 12px;
  border:1px solid #c9d1cd;
  border-radius:9px;
  background:#fff;
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:13px;
  font-weight:850;
  line-height:1;
  text-align:left;
}
.day-utility-button{border-top:1px solid #c9d1cd}
.day-nav-button strong{
  display:inline-flex;
  min-width:28px;
  height:28px;
  padding:0 8px;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border-radius:999px;
  background:#edf2ef;
  color:var(--green);
  font-size:12px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.day-nav-button.active{
  background:#eef5f0;
  color:var(--green);
  border-color:#9fb5a9;
}
.day-nav-button.active strong{background:#fff;color:var(--green)}
.day-nav-button:active{transform:translateY(1px)}

/* Cards */
.work-list{display:grid;gap:8px;margin-top:0}
.work-card{
  --type-accent:#8b9790;
  --type-wash:#fafbfa;
  position:relative;
  overflow:visible;
  padding:13px;
  border:1px solid var(--line);
  border-left:4px solid var(--type-accent);
  border-radius:13px;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
  transition:opacity .14s ease,transform .14s ease;
}
.work-card.type-lead{--type-accent:#8b9790;--type-wash:#fafbfa}
.work-card.type-repair{--type-accent:#d98279;--type-wash:#fff8f7}
.work-card.type-lithium{--type-accent:#c9a82a;--type-wash:#fffbed}
.work-card.pending{opacity:.62}
.work-card.optimistic-exit{transform:scale(.985);opacity:.38}

/* Identity */
.work-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.work-title{min-width:0;flex:1 1 auto}
.work-name{
  margin:0;
  color:#1f2937;
  font-size:18px;
  font-weight:900;
  line-height:1.12;
  overflow-wrap:anywhere;
}

.work-created{
  margin-top:3px;
  color:#737d78;
  font-size:10px;
  font-weight:750;
  line-height:1.2;
}
.work-contact{
  margin-top:3px;
  color:#53605a;
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.work-id{
  margin-top:4px;
  color:var(--green);
  font-size:11px;
  font-weight:850;
  line-height:1.2;
  letter-spacing:.035em;
  font-family:Arial,Helvetica,sans-serif;
  overflow-wrap:anywhere;
}
.work-cart{
  margin-top:6px;
  color:#4b5563;
  font-size:14px;
  font-weight:700;
  line-height:1.25;
  overflow-wrap:anywhere;
}

/* Type dropdown control */
.type-menu-wrap{position:relative;flex:0 0 auto}
.type-badge{
  min-width:104px;
  min-height:40px;
  height:40px;
  margin:0;
  padding:7px 10px 6px;
  border:1px solid #c7d2cc;
  border-top:4px solid #87938c;
  border-radius:9px;
  background:#f4f7f5;
  color:#45524b;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:none;
}
.type-badge.repair{color:#9b3c35;border-color:#e7aaa4;border-top-color:#d98279;background:#fff4f2}
.type-badge.lithium{color:#735d0b;border-color:#dcc46d;border-top-color:#c9a82a;background:#fff9e5}
.type-badge.lead{color:#45524b;border-color:#d2d9d5;border-top-color:#87938c;background:#f7f8f7}
.type-badge.buyer{color:var(--wf-buyer-ink,#285f8d);border-color:#bfd1e1;border-top-color:var(--wf-buyer-accent,#4d86b8);background:#f7fbff}
.type-badge .chev{font-size:11px;line-height:1;color:currentColor}
.type-badge[aria-expanded="true"] .chev{transform:rotate(180deg)}

.card-menu{
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  z-index:80;
  width:196px;
  max-height:300px;
  overflow:auto;
  padding:5px;
  border:1px solid #cfd8d3;
  border-radius:10px;
  background:#fff;
  box-shadow:0 8px 22px rgba(23,79,54,.14);
}
.card-menu button{
  width:100%;
  min-height:40px;
  margin:0;
  padding:9px 10px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  border:0;
  border-radius:7px;
  background:#fff;
  color:var(--green);
  font-size:12px;
  font-weight:850;
  text-align:left;
}
.card-menu button+button{border-top:1px solid #edf0ee;border-top-left-radius:0;border-top-right-radius:0}
.card-menu button:active{background:#eef3f0}
.card-menu .danger{margin-top:4px;border-top:1px solid #f0d3d0;color:#9a3d36;background:#fffafa}

/* Next Step: high priority scan-line. */
.next-step-summary,
.operational-summary{
  display:grid;
  grid-template-columns:74px minmax(0,1fr);
  gap:10px;
  align-items:baseline;
}
.next-step-summary{
  width:calc(100% + 8px);
  margin:11px -4px 0;
  padding:10px 4px;
  border:0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  border-radius:8px;
  background:transparent;
  color:inherit;
  text-align:left;
}
.next-step-summary span,
.operational-summary span,
.latest-note-label{
  color:#6b7280;
  font-size:10px;
  font-weight:900;
  line-height:1.1;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.next-step-summary strong{
  min-width:0;
  color:#1f2937;
  font-size:13px;
  font-weight:900;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.next-step-summary.overdue strong{color:var(--danger)}
.next-step-summary:active{background:#f3f6f4}

/* Latest Note: only a real note gets the gold cue. */
.latest-note{
  position:relative;
  margin:1px 0 0;
  border-bottom:1px solid var(--line);
  background:transparent;
}
.latest-note summary{
  position:relative;
  width:100%;
  min-height:54px;
  padding:9px 28px 9px 12px;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  cursor:pointer;
}
.latest-note summary::-webkit-details-marker{display:none}
.latest-note summary::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:3px;
  border-radius:3px;
  background:var(--gold);
}
.latest-note-summary{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:7px;
  flex-wrap:wrap;
}
.latest-note-meta{
  min-width:0;
  color:#66716b;
  font-size:11.5px;
  line-height:1.25;
  font-weight:800;
  overflow-wrap:anywhere;
}
.latest-note-chevron{
  flex:0 0 auto;
  margin-left:8px;
  color:var(--green);
  font-size:15px;
  line-height:1;
  transition:transform .14s ease;
}
.latest-note[open] .latest-note-chevron{transform:rotate(180deg)}
.latest-note-body{
  margin:0;
  padding:0 12px 10px 12px;
  border-left:3px solid var(--gold);
  color:#46524c;
  font-size:12px;
  line-height:1.4;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.latest-note-empty{
  min-height:34px;
  padding:7px 0;
  display:grid;
  grid-template-columns:74px minmax(0,1fr);
  gap:10px;
  align-items:center;
  border-bottom:1px solid var(--line);
}
.latest-note-empty-text{color:#7d8882;font-size:11px;font-weight:750;line-height:1.25}

/* Operational: deliberately quieter than Next Step. */
.operational-summary{
  margin:0;
  padding:9px 0;
  border-bottom:1px solid var(--line);
}
.operational-summary strong{
  min-width:0;
  color:#52605a;
  font-size:11.5px;
  font-weight:800;
  line-height:1.3;
  overflow-wrap:anywhere;
}

/* Four equal thumb targets. */
.card-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin-top:10px;
}
.card-actions a,
.card-actions button{
  min-width:0;
  width:100%;
  height:44px;
  min-height:44px;
  margin:0;
  padding:8px 5px;
  border:1px solid #c7d2cc;
  border-radius:9px;
  background:#fff;
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  line-height:1;
  font-weight:850;
  text-align:center;
  text-decoration:none;
  box-shadow:none;
}
.card-actions a:active,
.card-actions button:active{background:#f3f6f4}
.card-actions button:disabled{color:#9aa39e;background:#f8f9f8;border-color:#dde2df;opacity:1}

/* Inline editors remain spacious even though collapsed cards are dense. */
.inline-editor{
  width:100%;
  margin-top:7px;
  padding:10px;
  border:1px solid #d4dbd7;
  border-radius:10px;
  background:#f8faf8;
}
.inline-editor-title{margin-bottom:7px;color:var(--green);font-size:12px;font-weight:900;line-height:1.1}
.inline-grid{display:grid;gap:7px}
.inline-grid.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.inline-editor label{display:block;margin:0 0 4px;color:#66716b;font-size:10px;font-weight:900;line-height:1;text-transform:uppercase;letter-spacing:.035em}
.inline-editor input,
.inline-editor select,
.inline-editor textarea{
  width:100%;
  min-width:0;
  min-height:42px;
  box-sizing:border-box;
  border:1px solid #cfd6d2;
  border-radius:8px;
  padding:9px 10px;
  background:#fff;
  color:var(--text);
  font-size:16px;
}
.inline-editor textarea{min-height:58px;resize:vertical}
.inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
.inline-actions button{
  min-height:42px;
  margin:0;
  border:1px solid var(--line);
  border-radius:9px;
  padding:8px;
  background:#fff;
  color:var(--green);
  font-size:12px;
  font-weight:850;
}
.inline-actions .primary{background:#eef5f0;color:var(--green);border-color:#9fb5a9}
.inline-actions .danger{color:#873535;border-color:#e0bcbc}

.empty-card{font-size:13px;color:#69756f}

@media(max-width:390px){
  .working-as-root{min-width:98px;max-width:104px}
  .working-as-control select{width:104px}
  .inline-grid.two{grid-template-columns:1fr}
}
@media(max-width:350px){
  .app-main{padding-left:8px;padding-right:8px}
  .day-nav-grid{gap:5px}
  .day-nav-button{padding-left:7px;padding-right:7px;font-size:12px}
  .work-card{padding-left:11px;padding-right:11px}
  .type-badge{min-width:96px}
}

/* Desktop uses same information hierarchy with slightly more breathing room. */
@media(min-width:701px){
  .working-as-root{min-width:112px}
  .working-as-control select{width:112px}
  .my-day-search{min-height:46px}
  .day-nav-button{min-height:58px;font-size:14px;padding:10px 14px}
  .work-list{gap:9px}
}

/* Schedule — direct V1 mobile schedule language, backed by V2 Next Steps. */
.schedule-screen{display:grid;gap:9px}
.schedule-toolbar{display:flex;align-items:center;gap:9px;min-height:38px}.schedule-toolbar strong{color:var(--green);font-size:14px;font-weight:900;letter-spacing:.03em;text-transform:uppercase}.schedule-back{min-height:34px;padding:7px 9px;border:1px solid #c7d2cc;border-radius:8px;background:#fff;color:var(--green);font-size:12px;font-weight:850}
.schedule-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.schedule-filter-btn{min-height:46px;padding:9px 11px;border:1px solid #c9d1cd;border-radius:9px;background:#fff;color:var(--green);display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:850}.schedule-filter-btn strong{min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:#edf2ef;color:var(--green);display:inline-flex;align-items:center;justify-content:center;font-size:12px}.schedule-filter-btn.active{background:#eef5f0;border-color:#9fb5a9;color:var(--green)}.schedule-filter-btn.active strong{background:#fff;color:var(--green)}
.schedule-list{display:grid;gap:8px}.schedule-card{--sched-accent:#87938c;display:grid;grid-template-columns:74px minmax(0,1fr);gap:10px;padding:12px 13px;border:1px solid var(--line);border-left:4px solid var(--sched-accent);border-radius:12px;background:#fff;box-shadow:var(--shadow)}.schedule-card.type-repair{--sched-accent:#d98279}.schedule-card.type-lithium{--sched-accent:#c9a82a}.schedule-when{display:flex;flex-direction:column;gap:3px;padding-right:9px;border-right:1px solid #edf0ee}.schedule-when strong{font-size:13px;color:var(--green);line-height:1.1}.schedule-when span{font-size:10.5px;color:#6b7280;font-weight:800}.schedule-main{min-width:0}.schedule-name{font-size:15px;font-weight:900;line-height:1.15}.schedule-contact{margin-top:2px;color:#59645f;font-size:11.5px;font-weight:750}.schedule-action{margin-top:5px;color:var(--green);font-size:12px;font-weight:900}.schedule-meta{margin-top:3px;color:#69746f;font-size:10.5px;font-weight:750;overflow-wrap:anywhere}.schedule-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:2px}.schedule-actions button{min-height:42px;border:1px solid #c7d2cc;border-radius:9px;background:#fff;color:var(--green);font-size:12px;font-weight:850}.schedule-actions button:nth-child(2){border-top:4px solid var(--green)}
/* V1 parity: Buyer is a first-class blue My Day work card; Schedule remains Lead/Repair/Lithium only. */
.work-card.type-buyer{--type-accent:#4d86b8;--type-wash:#f3f8fd}
.schedule-contact-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.schedule-contact-actions a,.schedule-contact-actions button{display:flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #c7d2cc;border-radius:9px;background:#fff;color:var(--green);text-decoration:none;font-size:12px;font-weight:850}
.job-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0}.job-quick-grid label{display:grid;gap:3px;font-size:10px;font-weight:850;color:#68736e}.job-quick-grid select{min-width:0;min-height:38px;border:1px solid #c7d2cc;border-radius:8px;background:#fff;padding:6px;font-size:12px}@media(max-width:700px){.job-quick-grid{grid-template-columns:1fr 1fr}.job-quick-grid label:first-child{grid-column:1/-1}}

/* ============================================================
   Company Calendar / dispatch — additive V1 Schedule evolution.
   Existing schedule-card visual identity remains the base.
   ============================================================ */
.calendar-screen{gap:9px}
.calendar-heading{margin:0 2px 1px}

.calendar-person-select span,.calendar-inline-editor label{display:block;margin-bottom:5px;color:#66716b;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.calendar-person-select select,.calendar-inline-editor input,.calendar-inline-editor select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #c7d2cc;border-radius:8px;background:#f7f9f8;color:var(--text);font-size:15px}
.calendar-agenda{display:grid;gap:12px}
.calendar-date-group{display:grid;gap:6px}
.calendar-date-heading{display:flex;align-items:center;gap:8px;color:#4f5e56;font-size:11px;font-weight:900;letter-spacing:.045em;text-transform:uppercase}
.calendar-date-heading::before{content:"";width:4px;height:14px;border-radius:3px;background:var(--gold);flex:0 0 4px}
.calendar-date-heading::after{content:"";height:1px;background:#aeb8b3;flex:1 1 auto}
.calendar-date-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 80px 44px;gap:8px;align-items:center}
.calendar-date-nav button{width:100%;min-width:0;min-height:44px;box-sizing:border-box;border:1px solid #c7d2cc;border-radius:8px;background:#fff;color:var(--green);font-size:12px;font-weight:850}
.calendar-date-picker{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:44px;box-sizing:border-box;overflow:hidden;border:1px solid #c7d2cc;border-radius:8px;background:#fff;color:var(--text)}
.calendar-date-picker span{display:block;width:100%;min-width:0;padding:0 10px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:16px;font-weight:900;line-height:1.1;pointer-events:none}
.calendar-date-picker input{position:absolute;inset:0;width:100%;height:100%;min-width:0;max-width:100%;margin:0;padding:0;border:0;opacity:0;-webkit-appearance:none;appearance:none;cursor:pointer}
.calendar-date-nav [data-calendar-today]{padding:0 8px;white-space:nowrap}
.calendar-date-nav [data-calendar-shift]{font-size:18px;font-weight:900;line-height:1}
.calendar-date-nav button:disabled{opacity:.42}
.calendar-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.calendar-week-day{position:relative;min-width:0;min-height:54px;padding:7px 4px;border:1px solid #d5dcd8;border-radius:8px;background:#fff;color:#56625c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.calendar-week-day span{font-size:9px;font-weight:900;text-transform:uppercase}.calendar-week-day strong{font-size:14px}.calendar-week-day em{position:absolute;right:3px;top:3px;min-width:15px;height:15px;border-radius:999px;background:#edf2ef;color:var(--green);display:flex;align-items:center;justify-content:center;font-size:8px;font-style:normal;font-weight:900}
.calendar-week-day.today{border-color:var(--gold)}.calendar-week-day.active{background:#eef5f0;border-color:#9fb5a9;color:var(--green)}.calendar-week-day.active em{background:#fff;color:var(--green)}
.schedule-assigned{margin-top:4px;color:#334f42;font-size:11px;font-weight:850}
.schedule-location{margin-top:3px;color:#69746f;font-size:10.5px;font-weight:750;overflow-wrap:anywhere}
.calendar-actions{grid-template-columns:repeat(2,minmax(0,1fr))}

.calendar-agenda-card .schedule-when{justify-content:flex-start}
.calendar-agenda-card .schedule-action{margin-top:5px;color:var(--green);font-size:12px;font-weight:900}
.calendar-agenda-card .schedule-assigned{margin-top:3px;color:#334f42;font-size:11px;font-weight:850}
.calendar-agenda-card .schedule-meta{margin-top:3px;color:#69746f;font-size:10.5px;font-weight:750;overflow-wrap:anywhere}
.schedule-location-link{display:block;text-decoration:none;color:#69746f}
.schedule-location-link:active,.schedule-location-link:hover{text-decoration:underline}
.calendar-primary-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
.calendar-primary-actions a,.calendar-primary-actions button{min-height:42px}
.calendar-operational-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.calendar-operational-actions button{min-height:40px;background:#f8faf8;color:#52635a;font-size:11px;font-weight:850}
.calendar-operational-actions button:nth-child(1),.calendar-operational-actions button:nth-child(2),.calendar-operational-actions button:nth-child(3){border-top:1px solid #c7d2cc}
.calendar-inline-editor{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:3px;padding:10px;border:1px solid #d4dcd8;border-radius:10px;background:#f8faf8}
.calendar-reassign-editor{grid-template-columns:1fr}
.calendar-inline-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.calendar-reassign-editor .calendar-inline-actions{grid-template-columns:1fr 1fr}
.calendar-inline-actions button{min-height:40px;border:1px solid #c7d2cc;border-radius:8px;background:#fff;color:var(--green);font-size:11px;font-weight:850}.calendar-inline-actions .primary{border-top:4px solid var(--green)}
@media(min-width:701px){.calendar-week-strip{gap:7px}.calendar-week-day{min-height:62px}.calendar-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.calendar-operational-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}

.calendar-note-editor{grid-template-columns:1fr}
.calendar-note-label{grid-column:1/-1}
.calendar-note-editor textarea{
  width:100%;
  min-height:78px;
  box-sizing:border-box;
  margin-top:5px;
  padding:9px 10px;
  border:1px solid #c7d2cc;
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font-size:16px;
  line-height:1.35;
  resize:vertical
}
.calendar-note-editor .calendar-inline-actions{grid-column:1/-1}

.lead-cost-destination-copy{
  margin:2px 0 9px;
  color:#5d6963;
  font-size:11.5px;
  font-weight:700;
  line-height:1.35;
}
.lead-cost-destination-actions{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.lead-cost-destination-actions button{
  min-height:42px;
}

/* Phase 1 field-tool card: human timing + two large action rows. */
.next-step-tool{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:10px 6px;
}
.next-step-action{
  min-width:0;
  display:grid;
  gap:3px;
}
.next-step-action small{
  color:#6b7280;
  font-size:9px;
  font-weight:900;
  line-height:1;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.next-step-action strong{
  color:#1f2937;
  font-size:13px;
  font-weight:900;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.next-step-when{
  min-width:84px;
  display:grid;
  gap:3px;
  text-align:right;
}
.next-step-when strong{
  color:var(--green);
  font-size:13px;
  font-weight:950;
  line-height:1.05;
  letter-spacing:.025em;
}
.next-step-when small{
  color:#737f79;
  font-size:9.5px;
  font-weight:800;
  line-height:1.15;
  white-space:nowrap;
}
.next-step-tool.overdue .next-step-when strong{color:var(--danger)}
.next-step-tool.today .next-step-when strong{color:var(--green)}
.next-step-tool.tomorrow .next-step-when strong{color:#5c6b63}
.next-step-tool.unscheduled .next-step-when strong{color:#916f00}

.card-actions.primary-tools,
.card-actions.secondary-tools{
  margin-top:9px;
}
.card-actions.primary-tools{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.card-actions.secondary-tools{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:7px;
}
.card-actions.secondary-tools.two-tools{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.card-actions.primary-tools a,
.card-actions.primary-tools button,
.card-actions.secondary-tools a,
.card-actions.secondary-tools button{
  height:48px;
  min-height:48px;
  padding:8px 6px;
  font-size:12.5px;
  font-weight:900;
}
.card-actions.secondary-tools button{
  background:#f8faf9;
  border-color:#bdcbc4;
}

/* Phase 3 queue: four work buckets first row, three utilities second row. */
.day-nav-grid{
  grid-template-columns:repeat(12,minmax(0,1fr));
}
.day-nav-grid>.day-nav-button:not(.day-utility-button){
  grid-column:span 3;
}
.day-nav-grid>.day-utility-button{
  grid-column:span 4;
}
@media(max-width:430px){
  .day-nav-button{
    padding-left:6px;
    padding-right:6px;
    gap:4px;
    font-size:11px;
  }
  .day-nav-button strong{
    min-width:24px;
    height:24px;
    padding:0 6px;
    font-size:11px;
  }
}

/* Phase 4: My Day is the work surface; Calendar is the primary planning utility. */
.day-nav-grid>.day-utility-button{
  min-height:46px;
  background:#f8faf9;
  color:#53605a;
  border-color:#d8dfdb;
  font-size:12px;
  font-weight:800;
}
.day-nav-grid>.day-utility-button strong{
  background:#edf1ef;
  color:#53605a;
}
.day-nav-grid>[data-day-utility="calendar"]{
  grid-column:span 6;
  background:#f1f6f3;
  color:var(--green);
  border-color:#bfcfc7;
  font-weight:900;
}
.day-nav-grid>[data-day-utility="calendar"] strong{
  background:#dfe9e3;
  color:var(--green);
}
.day-nav-grid>[data-day-utility="messages"],
.day-nav-grid>[data-day-utility="tasks"]{
  grid-column:span 3;
}

/* Calendar-primary operating model. */

.calendar-work-list{gap:10px}
.calendar-date-group.bucket-needs-date .calendar-date-heading{color:#8b6a00}
.calendar-date-group.bucket-overdue .calendar-date-heading{color:#a23b37}
.calendar-date-group.bucket-overdue .calendar-date-heading::before{background:#b4443f}

.transport-card-summary{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2px 10px;
  align-items:center;
  margin-top:9px;
  padding:9px 11px;
  border:1px solid #c9d7d0;
  border-radius:9px;
  background:#f5f9f7;
  color:var(--green);
  text-align:left;
}
.transport-card-label{
  font-size:9.5px;
  font-weight:950;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.transport-card-summary strong{
  font-size:14px;
  font-weight:950;
}
.transport-card-summary small{
  grid-column:1/-1;
  color:#68756e;
  font-size:10.5px;
  font-weight:750;
  overflow-wrap:anywhere;
}

.card-inline-tool{
  margin-top:9px;
  padding:10px;
  border:1px solid #ccd7d1;
  border-radius:10px;
  background:#f8faf9;
}
.card-inline-tool-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.card-inline-tool-head strong{
  color:var(--green);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.card-inline-tool-head button{
  min-height:32px;
  padding:5px 9px;
  border:1px solid #c7d2cc;
  border-radius:7px;
  background:#fff;
  color:#526159;
  font-size:10.5px;
  font-weight:850;
}
.card-inline-tool .transport-v2,
.card-inline-tool .inspection-panel-v2{
  margin:0;
}

/* Field-first calendar card refinements. */
.calendar-work-list .work-card{scroll-margin-top:12px}
.calendar-work-list .work-card-top{align-items:flex-start}
.calendar-work-list .work-name{line-height:1.05}
.calendar-work-list .next-step-tool{background:#fff}
.calendar-work-list .card-actions.primary-tools a,
.calendar-work-list .card-actions.primary-tools button{min-height:52px}
.calendar-work-list .card-actions.secondary-tools button{min-height:48px}

/* Contact edits stay in the card instead of opening another record screen. */
.contact-inline-editor{margin-top:10px}
.contact-inline-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.contact-inline-grid label{min-width:0}
.contact-inline-grid label.wide{grid-column:1/-1}
.contact-inline-grid label>span{
  display:block;margin-bottom:4px;color:#68756e;font-size:9px;font-weight:900;
  letter-spacing:.035em;text-transform:uppercase
}
.contact-inline-grid input{
  box-sizing:border-box;width:100%;min-height:44px;padding:9px 10px;
  border:1px solid #c7d2cc;border-radius:8px;background:#fff;color:#23332b;font-size:16px
}
.contact-inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.contact-inline-actions button{
  min-height:44px;border:1px solid #c7d2cc;border-radius:8px;background:#fff;
  color:var(--green);font-weight:900
}
.contact-inline-actions button.primary{
  background:#eef5f0;border-color:#9fb5a9;color:var(--green)
}

/* Keep the working card easy to scan in one hand. */
.calendar-work-list .card-menu{
  min-width:190px;
}
.calendar-work-list .operational-summary{
  padding-top:8px;
  padding-bottom:8px;
}
.calendar-work-list .card-actions.primary-tools,
.calendar-work-list .card-actions.secondary-tools{
  gap:7px;
}

.calendar-heading{
  display:none;
}

/* Rich cards remain the primary content. */
.calendar-agenda{
  margin-top:2px;
}
.calendar-date-heading{
  margin-top:9px;
}

/* Home navigation: destinations are tabs; calendar settings are grouped controls. */
.work-hub{display:grid;gap:10px}
.work-mode-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-bottom:1px solid var(--control-line)}
#app .work-mode-tab{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:48px;padding:8px 4px;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:13px;font-weight:800}
#app .work-mode-tab.active{color:var(--green);font-weight:900}
.work-mode-tab.active::after{content:"";position:absolute;bottom:-1px;left:14px;right:14px;height:3px;border-radius:2px;background:var(--gold)}
#app .work-mode-tab:not(.active):active{background:#edf2ef}
.calendar-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--card);box-shadow:0 1px 0 rgba(17,78,54,.03)}
#app .calendar-segment{min-width:0;min-height:var(--action-height);padding:6px 4px;border:1px solid transparent;border-radius:var(--control-radius);background:transparent;color:#59665f;font-size:12px;font-weight:800;line-height:1.1;box-shadow:none}
#app .calendar-segment.active{border-color:#c1d5c8;background:#edf4ef;color:var(--green);font-weight:900}
#app .calendar-segment:not(.active):active{background:#f3f5f3}
.calendar-person-select{display:block;margin-top:7px;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:#fff}
.calendar-person-select>span{display:block;margin-bottom:5px;color:#68736e;font-size:10px;font-weight:900;letter-spacing:.035em;text-transform:uppercase}
@media(max-width:700px){#app .calendar-segment{min-height:42px;padding:8px 8px;font-size:11px}}
/* Work hierarchy: Calendar / Messages / Tasks. */

.work-tab-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#edf1ef;
  color:#607069;
  font-size:11px;
  font-weight:950;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.work-tab-badge.has-work{
  background:#dfe9e3;
  color:var(--green);
}
.work-tab-badge.pulse{
  animation:mgc-work-badge-pulse .62s ease-in-out 2;
}
@keyframes mgc-work-badge-pulse{
  0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(201,166,61,0)}
  50%{transform:scale(1.12);box-shadow:0 0 0 6px rgba(201,166,61,.18)}
}
@media (prefers-reduced-motion:reduce){
  .work-tab-badge.pulse{animation:none}
}

/* Field hierarchy: Inspection + Add Cost are road tools; Transportation is periodic. */
.operational-with-transport{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.operational-main{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}
.operational-main>span{
  color:#6b7280;
  font-size:10px;
  font-weight:900;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.operational-main>strong{
  color:#4f5e56;
  font-size:11.5px;
  font-weight:850;
  min-width:0;
}
.operational-transport-inline{
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#59665f;
  display:inline-flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:5px;
  white-space:nowrap;
  text-align:right;
  box-shadow:none;
}
.operational-transport-inline span{
  color:#6b7280;
  font-size:9px;
  font-weight:900;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.operational-transport-inline strong{
  color:#4f5e56;
  font-size:11.5px;
  font-weight:900;
}
.operational-transport-inline:active{opacity:.68}
@media(max-width:430px){
  .operational-with-transport{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .operational-transport-inline span{font-size:8.5px}
}

/* Buyer field card: only show a real selected Inventory cart. */
.buyer-selected-cart{
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px 10px;
  margin-top:8px;
  min-height:54px;
  padding:9px 12px;
  border:1px solid #c9d8e5;
  border-left:4px solid var(--wf-buyer-accent,#4d86b8);
  border-radius:10px;
  background:#fbfdff;
  color:var(--wf-buyer-ink,#285f8d);
  text-align:left;
  box-shadow:none;
}
.buyer-selected-cart-label{
  color:#6b7280;
  font-size:9px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
}
.buyer-selected-cart-copy{
  min-width:0;
  display:grid;
  gap:2px;
}
.buyer-selected-cart-copy strong{
  min-width:0;
  color:#263746;
  font-size:11.5px;
  font-weight:950;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.buyer-selected-cart-copy small{
  min-width:0;
  color:#6a7770;
  font-size:9.5px;
  font-weight:750;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.buyer-selected-cart-open{
  color:var(--wf-buyer-accent,#4d86b8);
  font-size:22px;
  font-weight:700;
  line-height:1;
}
.buyer-selected-cart:active{
  background:#f2f7fb;
}


/* 2026-10-02 — Lead workflow theme pass.
   Structure and behavior stay unchanged. Leads are the neutral/white workflow. */
.work-card.type-lead{
  --type-accent:#8b9790;
  --type-wash:#fafbfa;
  background:#fff;
  border-color:#d8dfdb;
}
.work-card.type-lead .type-badge.lead{
  background:#fff;
  border:1px solid #cfd7d3;
  border-top:4px solid #8b9790;
  color:#45524b;
}
.work-card.type-lead .inline-editor,
.work-card.type-lead .card-inline-tool{
  background:#fbfcfb;
  border-color:#d3dbd7;
}
.work-card.type-lead .inline-editor-title,
.work-card.type-lead .card-inline-tool-head strong{
  color:#45524b;
}
.work-card.type-lead .inline-editor input,
.work-card.type-lead .inline-editor select,
.work-card.type-lead .inline-editor textarea,
.work-card.type-lead .card-inline-tool input,
.work-card.type-lead .card-inline-tool select,
.work-card.type-lead .card-inline-tool textarea{
  background:#fff;
  border-color:#cfd7d3;
}
/* No dark primary blocks inside Lead cards. */
.work-card.type-lead .inline-actions .primary,
.work-card.type-lead .contact-inline-actions button.primary{
  background:#f2f5f3;
  border:1px solid #bfc9c4;
  color:#174f36;
  box-shadow:none;
}
.work-card.type-lead .inline-actions button:not(.danger),
.work-card.type-lead .contact-inline-actions button{
  min-height:46px;
}
.work-card.type-lead .note-composer textarea{
  min-height:96px;
}

/* 2026-10-02 — Lead neutralization audit.
   Lead cards are intentionally generic: gray/white only inside the card.
   Workflow color remains reserved for the outer workflow identity elsewhere. */
.work-card.type-lead{
  --lead-gray-ink:#46504b;
  --lead-gray-text:#5f6964;
  --lead-gray-muted:#747d78;
  --lead-gray-border:#cfd5d2;
  --lead-gray-soft:#f4f5f4;
  --lead-gray-soft-2:#f8f9f8;
  --type-accent:#8b9290;
  --type-wash:#fafafa;
  background:#fff;
  border-color:#d8ddda;
  border-left-color:#8b9290;
}
.work-card.type-lead .work-name{color:#2f3633}
.work-card.type-lead .work-contact,
.work-card.type-lead .work-id,
.work-card.type-lead .work-cart,
.work-card.type-lead .operational-summary strong,
.work-card.type-lead .operational-main>strong,
.work-card.type-lead .latest-note-meta,
.work-card.type-lead .latest-note-empty-text{color:var(--lead-gray-text)}
.work-card.type-lead .next-step-summary span,
.work-card.type-lead .operational-summary span,
.work-card.type-lead .operational-main>span,
.work-card.type-lead .latest-note-label,
.work-card.type-lead .inline-editor label,
.work-card.type-lead .contact-inline-grid label>span{color:var(--lead-gray-muted)}
.work-card.type-lead .next-step-summary strong,
.work-card.type-lead .next-step-tool.overdue .next-step-when strong,
.work-card.type-lead .next-step-tool.today .next-step-when strong,
.work-card.type-lead .next-step-tool.tomorrow .next-step-when strong,
.work-card.type-lead .next-step-tool.upcoming .next-step-when strong,
.work-card.type-lead .next-step-tool.unscheduled .next-step-when strong{color:#3f4743}
.work-card.type-lead .next-step-summary,
.work-card.type-lead .operational-summary,
.work-card.type-lead .latest-note,
.work-card.type-lead .latest-note-empty{border-color:#d9dddb}
.work-card.type-lead .latest-note summary::before{background:#a4aaa7}
.work-card.type-lead .latest-note-body{border-left-color:#a4aaa7;color:#4e5752}
.work-card.type-lead .latest-note-chevron{color:#626b66}
.work-card.type-lead .type-badge.lead{
  background:#f5f6f5;
  border-color:#cdd3d0;
  border-top-color:#8b9290;
  color:#4b5450;
}
.work-card.type-lead .card-menu{border-color:#d2d7d4;box-shadow:0 8px 22px rgba(45,52,48,.12)}
.work-card.type-lead .card-menu button,
.work-card.type-lead .card-menu .danger{background:#fff;color:#4c5550;border-color:#e2e5e3}
.work-card.type-lead .card-menu button:active{background:#f2f3f2}
.work-card.type-lead .card-actions a,
.work-card.type-lead .card-actions button,
.work-card.type-lead .inline-actions button,
.work-card.type-lead .contact-inline-actions button,
.work-card.type-lead .card-inline-tool-head button{
  background:#f5f6f5;
  border-color:#cbd2ce;
  color:#4b5550;
  box-shadow:none;
}
.work-card.type-lead .inline-actions .primary,
.work-card.type-lead .inline-actions .danger,
.work-card.type-lead .contact-inline-actions button.primary{
  background:#eceeec;
  border-color:#bfc7c3;
  color:#3f4844;
}
.work-card.type-lead .inline-editor,
.work-card.type-lead .card-inline-tool,
.work-card.type-lead .contact-inline-editor{
  background:#f4f5f4;
  border-color:#cfd5d2;
}
.work-card.type-lead .inline-editor-title,
.work-card.type-lead .card-inline-tool-head strong{color:#46504b}
.work-card.type-lead .inline-editor input,
.work-card.type-lead .inline-editor select,
.work-card.type-lead .inline-editor textarea,
.work-card.type-lead .card-inline-tool input,
.work-card.type-lead .card-inline-tool select,
.work-card.type-lead .card-inline-tool textarea{
  background:#fff;
  border-color:#cbd2ce;
  color:#303734;
}
.work-card.type-lead .inline-editor input:focus,
.work-card.type-lead .inline-editor select:focus,
.work-card.type-lead .inline-editor textarea:focus,
.work-card.type-lead .card-inline-tool input:focus,
.work-card.type-lead .card-inline-tool select:focus,
.work-card.type-lead .card-inline-tool textarea:focus{
  outline:2px solid rgba(92,101,96,.14);
  border-color:#9da6a1;
}
.work-card.type-lead .operational-transport-pill{
  background:#f4f5f4;
  border-color:#cbd2ce;
  color:#4d5651;
}
.work-card.type-lead .operational-transport-pill small{color:#707974}
/* Nested Inspection / Transportation controls inherit neutral Lead styling. */
.work-card.type-lead .inspection-panel-v2,
.work-card.type-lead .transport-v2{background:#f4f5f4;border-color:#cfd5d2}
.work-card.type-lead .inspection-panel-v2 button,
.work-card.type-lead .transport-v2 button{
  background:#f5f6f5;
  border-color:#cbd2ce;
  color:#4b5550;
  box-shadow:none;
}

/* 2026-10-02 — My Day action neutrality across every workflow card.
   Repair/Lithium/Buyer/Lead identity remains on the outer card + type placard;
   buttons and inline-editor actions stay soft gray. */
#app .work-card .card-actions a,
#app .work-card .card-actions button,
#app .work-card .inline-actions button,
#app .work-card .contact-inline-actions button,
#app .work-card .card-inline-tool-head button{
  background:#f4f5f4;
  border-color:#c8cfcb;
  color:#4b5550;
  box-shadow:none;
  -webkit-text-fill-color:#4b5550;
}
#app .work-card .inline-actions button.primary,
#app .work-card .contact-inline-actions button.primary{
  background:#eceeed;
  border-color:#bfc7c3;
  color:#3f4844;
  -webkit-text-fill-color:#3f4844;
}

/* 2026-10-02 — final Lead-card neutral sweep.
   Lead card internals only; workflow placards for Repair/Lithium/Buyer remain untouched. */
#app .work-card.type-lead :where(
  .card-actions a,
  .card-actions button,
  .inline-actions button,
  .contact-inline-actions button,
  .card-inline-tool-head button,
  .note-composer button,
  .schedule-editor button,
  .next-step-editor button,
  .inspection-panel-v2 button,
  .transport-v2 button
){
  background:#f3f4f3;
  border-color:#c8cfcb;
  color:#4b5550;
  -webkit-text-fill-color:#4b5550;
  box-shadow:none;
}
#app .work-card.type-lead :where(
  .inline-actions .primary,
  .contact-inline-actions .primary,
  .note-composer .primary,
  .schedule-editor .primary,
  .next-step-editor .primary
){
  background:#e9ecea;
  border-color:#bdc5c1;
  color:#3e4742;
  -webkit-text-fill-color:#3e4742;
}
#app .work-card.type-lead :where(
  .inline-editor-title,
  .card-inline-tool-head strong,
  .inspection-required-title,
  .transport-v2-trip,
  .transport-v2-kpis strong
){color:#46504b}
#app .work-card.type-lead :where(
  input,select,textarea
){
  border-color:#cbd2ce;
  background:#fff;
  color:#303734;
}
#app .work-card.type-lead :where(input,select,textarea):focus{
  outline:2px solid rgba(92,101,96,.14);
  border-color:#9da6a1;
}

/* Omni Search focus: preserve list order, scroll the matched operational card into view,
   and briefly mark it so the destination is obvious. */
.work-card.omni-focus-card {
  animation: omniCardFocus 1.6s ease-out;
}
@keyframes omniCardFocus {
  0%, 35% { box-shadow: 0 0 0 4px rgba(207, 171, 55, .34), 0 8px 22px rgba(31, 42, 36, .12); }
  100% { box-shadow: none; }
}

/* 2026-10-05 — Next Step date/time mobile fit.
   iOS native time inputs can exceed a half-width grid cell; stack these two
   fields on phones so both controls remain large, readable, and inside the editor. */
@media(max-width:640px){
  .inline-editor .next-step-datetime{
    grid-template-columns:minmax(0,1fr);
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    overflow:hidden;
  }
  .inline-editor .next-step-datetime>div{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    overflow:hidden;
  }
  .inline-editor .next-step-datetime input{
    display:block;
    width:100%;
    inline-size:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
}

/* 2026-10-05 — quick Schedule card hierarchy.
   The card surfaces a compact Schedule label, the short schedule type, and due date/time.
   The editor uses a small set of common schedule types; detailed context belongs in Notes. */
.next-step-tool .next-step-action small{
  color:#a43f3b;
  font-size:10px;
  letter-spacing:.07em;
}
.next-step-tool.scheduled .next-step-action small{
  color:#424a46;
}
.next-step-tool .next-step-action strong{
  color:#a43f3b;
  font-size:14px;
}
.next-step-tool .next-step-when strong{
  color:#3f4743;
}
.next-step-tool.overdue .next-step-when strong{
  color:var(--danger);
}
.next-step-tool.today .next-step-when strong{
  color:var(--green);
}
.next-step-tool.unscheduled .next-step-when strong{
  color:#a43f3b;
}
.next-step-editor .next-step-custom-row.hidden{
  display:none;
}
.next-step-editor select[name="action"]{
  font-weight:800;
}


/* Step 2A — compact stacked schedule date/time and full-width save */
.next-step-editor .next-step-datetime{
  grid-template-columns:1fr;
  gap:7px;
}
.next-step-editor .next-step-datetime input{
  min-height:52px;
  background:#f3f5f4;
  font-size:18px;
  font-weight:700;
}
.next-step-editor .inline-actions .primary{
  grid-column:1 / -1;
  width:100%;
}


/* Step 2B — schedule card: neutral label/action; Time over full Date at right. */
.next-step-tool .next-step-action small,
.next-step-tool .next-step-action strong,
.next-step-tool.scheduled .next-step-action small,
.next-step-tool.overdue .next-step-action strong,
.next-step-tool.today .next-step-action strong,
.next-step-tool.unscheduled .next-step-action strong{
  color:#1f2937;
}
.next-step-tool .next-step-when{
  text-align:right;
  align-items:flex-end;
}
.next-step-tool .next-step-when strong,
.next-step-tool .next-step-when small,
.next-step-tool.overdue .next-step-when strong,
.next-step-tool.today .next-step-when strong,
.next-step-tool.unscheduled .next-step-when strong{
  color:#1f2937;
  font-size:13px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:0;
}


/* 2026-10-06 — Lead card Notes: latest note visible, history on demand. */
.work-card .card-notes{
  margin:0;
  border-bottom:1px solid #d9dddb;
  background:transparent;
}
.work-card .card-notes>summary{
  position:relative;
  min-height:66px;
  padding:10px 30px 10px 0;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
}
.work-card .card-notes>summary::-webkit-details-marker{display:none}
.work-card .card-notes-copy{
  min-width:0;
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:12px;
  align-items:center;
  width:100%;
}
.work-card .card-notes-title{
  color:#515a55;
  font-size:17px;
  line-height:1.05;
  font-weight:950;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.work-card .card-notes-latest{
  min-width:0;
  color:#5f6964;
  font-size:12.5px;
  line-height:1.35;
  font-weight:750;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.work-card .card-notes-chevron{
  position:absolute;
  right:2px;
  top:50%;
  transform:translateY(-50%);
  color:#626b66;
  font-size:17px;
  font-weight:900;
  line-height:1;
  transition:transform .14s ease;
}
.work-card .card-notes[open] .card-notes-chevron{transform:translateY(-50%) rotate(180deg)}
.work-card .card-notes-history{
  padding:0 0 10px;
  display:grid;
  gap:7px;
}
.work-card .card-note-row{
  padding:9px 10px;
  border:1px solid #d9dddb;
  border-radius:9px;
  background:#f8f9f8;
}
.work-card .card-note-meta{
  margin-bottom:4px;
  color:#777f7b;
  font-size:9.5px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.work-card .card-note-text{
  color:#4e5752;
  font-size:12px;
  line-height:1.4;
  font-weight:650;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.work-card .card-notes-loading,
.work-card .card-notes-empty{
  padding:8px 2px;
  color:#7d8581;
  font-size:11.5px;
  font-weight:750;
}


/* 2026-10-06 — Lead Notes unified source: no legacy accent rail or async loading state. */
.work-card .card-notes,
.work-card .card-notes>summary,
.work-card .card-notes-history,
.work-card .card-note-row{border-left:0!important;box-shadow:none}
.work-card .card-notes::before,
.work-card .card-notes>summary::before{display:none!important;content:none!important}


/* 2026-10-06 — Unified Home card theme across Lead / Repair / Lithium / Buyer. */
#app .work-card .card-notes{
  margin:0;
  border-bottom:1px solid #d9dddb;
  background:transparent;
}
#app .work-card .card-notes>summary{
  min-height:66px;
}
#app .work-card .card-notes-title{
  color:#515a55;
  font-size:17px;
  line-height:1.05;
  font-weight:950;
  letter-spacing:.035em;
  text-transform:uppercase;
}
#app .work-card .card-notes,
#app .work-card .card-notes>summary,
#app .work-card .card-notes-history,
#app .work-card .card-note-row{border-left:0!important;box-shadow:none}
#app .work-card .card-notes::before,
#app .work-card .card-notes>summary::before{display:none!important;content:none!important}


/* 2026-10-06 — Home card typography normalization.
   The schedule time value is the standard information size; only the customer/company name is larger. */
#app .work-card .work-contact,
#app .work-card .work-id,
#app .work-card .work-created,
#app .work-card .work-cart,
#app .work-card .type-badge,
#app .work-card .type-badge .chev,
#app .work-card .next-step-action small,
#app .work-card .next-step-action strong,
#app .work-card .next-step-when strong,
#app .work-card .next-step-when small,
#app .work-card .card-notes-title,
#app .work-card .card-notes-latest,
#app .work-card .card-notes-chevron,
#app .work-card .card-note-meta,
#app .work-card .card-note-text,
#app .work-card .card-notes-empty {
  font-size:13px;
  line-height:1.2;
}
#app .work-card .work-contact,
#app .work-card .work-id,
#app .work-card .work-created,
#app .work-card .work-cart,
#app .work-card .type-badge,
#app .work-card .next-step-action small,
#app .work-card .next-step-action strong,
#app .work-card .next-step-when strong,
#app .work-card .next-step-when small,
#app .work-card .card-notes-title,
#app .work-card .card-notes-latest {
  font-weight:850;
}
#app .work-card .card-notes-title,
#app .work-card .next-step-action small {letter-spacing:0;}
#app .work-card .work-name {font-size:18px;}


/* 2026-10-06 — Repair/Lithium are production jobs, not scheduled Lead workflow. */
#app .work-card.type-repair .work-done-by-summary,
#app .work-card.type-lithium .work-done-by-summary{
  min-height:58px;
  padding:10px 0;
  border-bottom:1px solid #d9dddb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:#1f2937;
}
#app .work-card.type-repair .work-done-by-summary span,
#app .work-card.type-repair .work-done-by-summary strong,
#app .work-card.type-lithium .work-done-by-summary span,
#app .work-card.type-lithium .work-done-by-summary strong{
  font-size:13px;
  line-height:1.2;
  font-weight:850;
}
#app .work-card.type-repair .work-done-by-summary strong,
#app .work-card.type-lithium .work-done-by-summary strong{text-align:right;}

/* Step 5 / focus fix: while a work-card inline editor is open, keep only its active card/date group visible. */
#app .work-list:has(>.work-card.inline-editing)>.work-card:not(.inline-editing){display:none}
#app .calendar-agenda:has(.work-card.inline-editing)>.calendar-date-group:not(:has(.work-card.inline-editing)){display:none}
#app .calendar-date-group:has(.work-card.inline-editing) .work-card:not(.inline-editing){display:none}
#app .job-list-cards:has(>.job-list-card.inline-editing)>.job-list-card:not(.inline-editing){display:none}
