/* Responsive refinements; real-device visual and touch QA is still outstanding. */
[hidden]{display:none!important}
button,.chip,.textbtn,.iconbtn,.secondary,.primary{min-height:44px}
.iconbtn{min-width:44px}
.textbtn{padding:10px 5px}
.field input,.field select,.field textarea,.bulkbar input,.scenario-bar select{font-size:16px}
.field,.meta,.hint,.inline-note,.notice,.preview-footer{line-height:1.65}
.meta,.hint,.inline-note,.notice{font-size:12px}
.draft-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;font-size:12px;color:var(--muted)}
.draft-banner p{margin:5px 0 9px}
.draft-banner button{margin:3px 6px 3px 0;max-width:100%;white-space:normal;text-align:left}
.household-choice{margin-top:4px}
.weekly-workspace{padding-bottom:15px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.weekly-workspace .chips{flex-wrap:wrap;overflow:visible}
.weekly-workspace .notice button{display:block;margin-top:8px}
.weekly-workspace .scope-notice .job-actions button{display:inline-flex}
.weekday-services{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.weekday-services .chip{padding:6px 3px;border-radius:8px;font-size:11px;min-width:0;white-space:normal;overflow-wrap:normal}
.weekday-row{grid-template-columns:38px minmax(0,1fr)}
.bulkbar{position:sticky;top:86px;z-index:4;box-shadow:0 4px 12px #183f350a}
.bulkbar .error:empty{display:none}
.selection-guidance{font-size:12px;line-height:1.6;margin:12px 0;color:var(--muted)}
.selection-guidance summary{min-height:44px;padding:10px 0;cursor:pointer}
.selection-guidance ul{padding-left:21px}
.work-card input[type=checkbox]{width:24px;height:24px;margin:10px 0}
.selected-outside{padding:17px;border:2px solid #aec6a4;border-radius:12px;background:#f2f6ec}
.notice-item{padding:12px 0;border-bottom:1px solid var(--line)}
.notice-item summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;cursor:pointer;min-height:44px}
.notice-item summary:before{content:'+';color:var(--green);font-weight:700}
.notice-item[open] summary:before{content:'−'}
.notice-item summary strong{flex:1;min-width:150px;font-size:14px}
.notice-item>p{padding:12px 0;color:var(--ink);font-size:14px;overflow-wrap:anywhere}
.notice-item .badge{font-size:11px}
.flow-dock{display:none}
.flow-error:focus{outline:2px solid #9a4030;outline-offset:3px}
.review-table{table-layout:fixed}
.review-table td{overflow-wrap:anywhere}
.review-table th:first-child,.review-table td:first-child{width:30%}
.review-table th:last-child,.review-table td:last-child{width:30%}
.modal .actions{position:sticky;bottom:-25px;background:var(--cream);padding:12px 0;flex-wrap:wrap;border-top:1px solid var(--line)}
@media(max-width:680px){
  .flow-dock{display:flex;position:fixed;left:10px;right:10px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:19;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 22px #183f3520}
  .flow-dock>div{min-width:0}
  .flow-dock strong,.flow-dock small{display:block;font-size:12px;overflow-wrap:anywhere}
  .flow-dock small{font-size:11px;color:var(--muted);margin-top:3px}
  .flow-dock .primary{flex-shrink:0;max-width:45%;padding:10px 12px;font-size:12px}
  main:has(.flow-dock){padding-bottom:215px}
  .draft-tools{align-items:flex-start;font-size:11px}
  .draft-tools .textbtn{flex-shrink:0}
  .weekday-row{grid-template-columns:32px minmax(0,1fr);gap:5px}
  .weekday-services{gap:3px}
  .weekday-services .chip{font-size:10px;padding:5px 2px}
  .bulkbar{position:static}
  .inline-service-picker{top:72px}
  .notice.critical{flex-wrap:wrap}
  .job-actions{flex-wrap:wrap}
  .job-actions button{flex:1;min-width:100px}
  .modal .actions{bottom:calc(-26px - env(safe-area-inset-bottom));padding-bottom:12px}
  .cal-cell.client-day .calendar-service{font-size:9px;white-space:normal;line-height:1.3}
}
@media(max-width:380px){
  header{padding-left:10px;padding-right:10px}
  main{padding-left:12px;padding-right:12px}
  .flow-grid .panel{padding:12px}
  .weekday-services .chip{font-size:10px}
}
