/* Homebuilder frame — Schedule. Phone: month grid with trade dots, then the
   selected day, then Upcoming. Desktop: a roomy grid that names each day's
   work, with the day panel and Upcoming in a column beside it. */

.hm-head-add .hm-ic { width: 18px; height: 18px; }
.hm-head-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.hm-sch-subhead { margin: 14px 0 0; padding-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-muted); border-top: 1px solid var(--hm-line); }
@media (max-width: 559px) {
  .hm-head-add { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; box-shadow: var(--shadow-2); }
  .hm-head-add span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hm-head-event span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hm-head-event { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
}

.hm-sch-layout { display: grid; gap: 14px; }
.hm-sch-cal { padding: 10px 10px 12px; transition: opacity var(--motion-base); }
.hm-sch-cal.is-loading { opacity: .55; pointer-events: none; }
.hm-sch-nav { display: flex; align-items: center; gap: 6px; padding: 0 2px 8px; }
.hm-sch-month { margin: 0 4px; font-size: 17px; font-weight: 650; color: var(--hm-ink); white-space: nowrap; }
.hm-btn-icon-sq { width: 36px; min-height: 36px; border-radius: 9px; }
.hm-btn-icon-sq .hm-ic { width: 18px; height: 18px; }

.hm-sch-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.hm-sch-dow { padding: 4px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-align: center; text-transform: uppercase; color: var(--hm-faint); }
.hm-sch-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; min-height: 48px; padding: 5px 0 4px; font: inherit; color: var(--hm-text); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.hm-sch-cell:hover { background: var(--app-surface-2); }
.hm-sch-num { display: grid; place-items: center; width: 30px; height: 30px; font-size: 15px; font-weight: 550; border-radius: 50%; font-variant-numeric: tabular-nums; }
.hm-sch-cell.is-out { color: var(--hm-faint); }
.hm-sch-cell.is-today .hm-sch-num { color: var(--app-accent); font-weight: 750; box-shadow: inset 0 0 0 1.5px var(--app-accent); }
.hm-sch-cell.is-selected .hm-sch-num { color: #fff; background: var(--app-navy); box-shadow: none; }
.hm-sch-dots { display: flex; gap: 3px; height: 6px; }
.hm-sch-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.hm-sch-events { display: none; }

.hm-sch-side { display: grid; gap: 4px; align-content: start; min-width: 0; }
.hm-sch-daypanel { padding: 14px; }
.hm-sch-dayhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--hm-line); }
.hm-sch-dayhead h2 { margin: 0; font-size: 16px; font-weight: 650; color: var(--app-navy); }
.hm-sch-dayhead span { font-size: 12.5px; font-weight: 600; color: var(--hm-muted); white-space: nowrap; }
.hm-sch-none { display: grid; justify-items: center; gap: 8px; padding: 18px 0 6px; text-align: center; }
.hm-sch-none p { margin: 0; font-size: 14px; color: var(--hm-muted); }
.hm-sch-rows { display: grid; }
.hm-sch-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hm-line); }
.hm-sch-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.hm-sch-row-main { flex: 1; min-width: 0; }
.hm-sch-row-main b { display: block; font-size: 14.5px; font-weight: 600; color: var(--hm-ink); overflow-wrap: anywhere; }
.hm-sch-row-main small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--hm-muted); }
.hm-sch-note { margin: 5px 0 0; font-size: 13px; line-height: 1.45; color: var(--hm-text); }
.hm-sch-row-actions { display: flex; flex: none; gap: 2px; }
.hm-sch-row-actions .hm-btn-icon { width: 44px; min-height: 44px; }
.hm-sch-upcoming .hm-section-title { margin-top: 18px; }
.hm-sch-up { padding: 12px 14px; }
.hm-sch-when { flex-direction: column; align-items: flex-end; gap: 1px; font-size: 13px; font-weight: 550; color: var(--hm-muted); white-space: nowrap; }
.hm-sch-when small { font-size: 11.5px; font-weight: 500; color: var(--hm-faint); }

@media (min-width: 1024px) {
  .hm-sch-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  .hm-sch-cal { padding: 14px 14px 16px; }
  .hm-sch-nav { padding-bottom: 12px; }
  .hm-sch-month { font-size: 19px; }
  .hm-sch-grid { gap: 0; border-top: 1px solid var(--hm-line); border-left: 1px solid var(--hm-line); }
  .hm-sch-dow { padding: 8px 0; border-right: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line); background: var(--app-surface-2); }
  .hm-sch-cell { align-items: stretch; gap: 4px; min-height: 104px; padding: 6px; border-radius: 0; border-right: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line); text-align: left; }
  .hm-sch-cell.is-out { background: var(--app-surface-2); }
  .hm-sch-cell.is-selected { background: var(--app-accent-soft); }
  .hm-sch-num { width: 26px; height: 26px; font-size: 13px; }
  .hm-sch-dots { display: none; }
  .hm-sch-events { display: grid; gap: 3px; min-width: 0; }
  .hm-sch-ev { display: block; overflow: hidden; padding: 2px 6px; font-size: 11.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; color: var(--hm-ink); background: color-mix(in srgb, var(--c) 12%, white); border-left: 3px solid var(--c); border-radius: 4px; }
  .hm-sch-more { padding-left: 6px; font-size: 11px; font-weight: 600; color: var(--hm-muted); }
  .hm-sch-side { position: sticky; top: 16px; }
  .hm-sch-upcoming .hm-section-title { margin-top: 20px; }
}
