/* Field-readable presentation for the selected Crew UI improvements. */
.hello { padding-block: 12px; }
.hello .g { font-size: 20px; line-height: 1.35; }
.hello .d { font-size: 14px; }
.nextstep .nst { font-size: 24px; line-height: 1.3; }
.nextstep { min-height: 108px; }
.yd-scope { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 1.5; }
.yd-scope span { color: var(--muted); flex-shrink: 0; }
.job .name, .tdtitle { overflow-wrap: anywhere; }
.job .sub, .job .jtime { font-size: 15px; line-height: 1.5; }
.job .jtime { margin-top: 12px; font-weight: 750; }
.job .sub { color: var(--muted); }
.job .jprog { flex-wrap: wrap; }
.job .jprog span { font-size: 14px; white-space: normal; }
.cu-card { background: var(--surface-2); }
.wkday { position: relative; min-height: 80px; }
.wkday.today { background: var(--surface); color: var(--text); }
.wkday.sel { background: var(--ink); color: var(--surface); outline: 2px solid var(--ink); outline-offset: 2px; }
.wkday.today::after { content: "Today"; font-size: 11px; font-weight: 800; display: block; }
.wkday.today .dd { text-decoration: underline; text-underline-offset: 4px; }
.wkday .dot { flex-shrink: 0; }
.cal-preview, .context-line, .reference-stamp, .connection-note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.context-line { margin: 6px 0 16px; overflow-wrap: anywhere; }
.task-state { display: inline-flex; padding: 3px 8px; border-radius: 5px; background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 750; line-height: 1.4; border: 1px solid var(--line); }
.task-blocker { display: block; color: var(--danger); font-size: 14px; line-height: 1.5; margin-top: 6px; white-space: normal; }
.task-blocker span { display: block; color: var(--text); }
.task-state.tk-stuck { border-color: var(--danger); }
.task-state.tk-running { border-color: var(--st-running); }
.task-state.tk-next { border-color: var(--st-next); }
.task-state.tk-done { border-color: var(--st-done); }
.yd-row, .rsrow, .jt-row { gap: 12px; }
.yd-row .yd-tt, .rsx, .jt-t { min-width: 0; }
.rsx .task-state, .jt-t .task-state { margin-top: 6px; }
.jt-film { padding: 6px 2px 12px; gap: 10px; scroll-padding: 6px; }
.fstage { min-width: 100px; opacity: 1 !important; color: var(--text); }
.fstage .fk { font-size: 15px; }
.fstage .fn { font-size: 13px; white-space: normal; }
.fstage.on { outline: 2px solid var(--brand-700); outline-offset: 2px; }
.stage-help { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.current-status { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.current-status b { display: block; font-size: 14px; color: var(--muted); }
.so-row { display: block; padding: 12px 0; }
.so-item { display: block; font-size: 15px; }
.so-val { display: block; font-size: 20px; line-height: 1.4; margin-top: 4px; }
.so-datum { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.so-stage, .sn-h { font-size: 16px; }
.sn-row { grid-template-columns: minmax(85px, 1fr) 2fr; gap: 12px; }
.sn-k, .sn-v, .scope { font-size: 16px; line-height: 1.55; }
details.tools > summary { font-size: 16px; line-height: 1.5; padding-block: 16px; }
.tools .tl { font: inherit; min-height: 44px; text-align: left; }
.glist .gl { border-radius: 5px; }
.section-note { margin: 8px 16px 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sheet-help { background: var(--gold-soft); color: var(--gold-ink); padding: 12px; margin-bottom: 12px; font-size: 15px; line-height: 1.5; }
.sheet-help:empty { display: none; }
.field-error { color: var(--danger); font-weight: 700; font-size: 15px; line-height: 1.5; margin: 8px 0; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.micbtn { width: auto; min-width: 44px; padding-inline: 12px; font-size: 14px; }
.photo-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.pthumb { display: flex; flex-direction: column; width: auto; height: auto; overflow: visible; }
.pthumb img { width: 100%; height: 130px; object-fit: contain; background: var(--surface-2); }
.pthumb .pdel { position: static; width: auto; height: auto; border-radius: 6px; background: var(--surface); color: var(--danger); font-size: 14px; margin-top: 4px; }
.pthumb small { overflow-wrap: anywhere; font-size: 13px; }
.rh { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.rchip { white-space: normal; max-width: 100%; line-height: 1.5; font-size: 15px; }
.rnote, .rwhy, .nt-body { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.nt-type { font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.nt-title { font-size: 17px; margin-bottom: 6px; }
.al-cap { font-size: 14px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.al-cap span { display: block; }
.instr { flex-wrap: wrap; }
.instrm { min-width: 180px; }
.instrgot { white-space: normal; }
.instrl { font-size: 14px; }
.instrt { font-size: 16px; line-height: 1.5; }
.hr-row { display: grid; grid-template-columns: 1fr; gap: 5px; }
.hr-j { font-size: 16px; }
.hr-w { font-variant-numeric: tabular-nums; font-size: 17px; }
.hr-auto { font-size: 14px; }
.hr-pending { color: var(--gold-ink); background: var(--gold-soft); padding: 12px; font-size: 15px; }
.jt-ask-a { font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.set-row { gap: 20px; align-items: flex-start; }
.set-row .k, .set-row .v { font-size: 15px; line-height: 1.5; }
.set-row .v { max-width: 60%; overflow-wrap: anywhere; }
.rtile { text-align: left; align-items: flex-start; font-size: 16px; }
.rtile small { display: block; font-weight: 500; font-size: 14px; line-height: 1.45; color: var(--muted); }
.sf-plan dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px; margin: 12px 0; }
.sf-plan dt { font-weight: 700; }
.sf-plan dd { margin: 0; overflow-wrap: anywhere; }
.supplier-card { padding: 16px; border-bottom: 1px solid var(--line); }
.supplier-card h3 { margin: 0 0 8px; font-size: 17px; }
.supplier-location { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.5; }
.rc-line li { opacity: 1; }
.rc-t { min-width: 100px; }
.rc-actual { font-size: 14px; color: var(--muted); display: block; margin-top: 4px; }
button, [role="button"], summary, input:not([type="hidden"]), select, .qbtn, a.tbtn { min-height: 44px; }
button { overflow-wrap: anywhere; }
:where(button, a, input, textarea, select, summary, [role="button"]):focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; }
.tabbar button { min-width: 44px; }
.tabbar .tl { font-size: 13px; }
.back { flex-shrink: 0; }
#tdBack { width: auto; padding-inline: 10px; font-size: 15px; }
[role="dialog"] { overflow-y: auto; overscroll-behavior: contain; padding-top: max(12px, env(safe-area-inset-top)); }
[role="dialog"] .sheet-card, .reportgrid { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; width: min(100%, 620px); box-sizing: border-box; }
.sheet-title { font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.sheet-actions { position: sticky; bottom: 0; background: var(--surface); padding-block: 12px; gap: 12px; }
.sheet-actions button { min-height: 48px; }
.sheet-card textarea { font-size: 16px; min-height: 100px; }
.sheet-card input { font-size: 16px; }
.fin-acts, .dl-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.fin-acts button, .dl-acts button { flex: 1 1 180px; white-space: normal; line-height: 1.45; }
.ui-loading { border: 1px solid var(--line); }
.ui-unavailable, .loadwarn { border: 1px solid var(--danger); color: var(--danger); background: var(--surface); }
@media (max-width: 380px) {
  .nextstep { flex-wrap: wrap; }
  .nextstep .nsm { flex-basis: 70%; }
  .nextstep .nst { font-size: 22px; }
  .tiles { grid-template-columns: 1fr; }
  .wkday { padding-inline: 2px; }
  .wkday .dn { font-size: 12px; }
}
@media (min-width: 700px) {
  .sheet-card, .reportgrid { margin-inline: auto; }
  .al-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Keep dense controls in rows of useful width on a field phone. */
#hours, #sweep { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.dl-acts { flex-direction: row; }
.jt-row { flex-wrap: wrap; }
.jt-row .jt-t { flex: 1 1 55%; }
.jt-row .connection-note { flex: 1 0 100%; }
.jt-t .task-state { display: table; text-transform: none; }
.so-val { text-align: left; color: var(--text); }
.so-stage { color: var(--gold-ink); }
#alertsBtn { min-width: 44px; }
button.matquick { min-height: 44px; }
.sf-row { flex-wrap: wrap; }
.sf-row .field-error { flex: 1 0 100%; }
.supplier-link { display: flex !important; align-items: center; min-height: 44px; font-size: 15px; }
.jt-ask-t { font-size: 16px; font-weight: 500; line-height: 1.6; white-space: pre-wrap; }
.jt-ask-source { font-size: 14px; font-weight: 750; color: var(--muted); margin-bottom: 10px; }
#pending { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
#pending.hidden { display: none; }

button.matplanbtn { min-height: 44px; }
.jt-prog span, .prog .lbl, .rc-note, .rc-lbl, .matplan, .matshort, .so-by, .tdsec, .rss, .rsfoot, .rmeta, .nt-meta, .stepnote, .stepby, .preqchip, .fin-sub, .sw-sub, .fd-chip small { font-size: 14px; line-height: 1.5; }
.matname, .rst, .jt-t, .tdnote, .sw-tt, .cu-t { font-size: 16px; line-height: 1.5; }
.instrgot small { display: block; font-size: 13px; }
.sheet-card .micbtn { font-size: 14px; }
.rc-go, .sheet-save { background: var(--brand-700); color: var(--surface); }
.fstage.st-empty, .fstage.st-later { color: var(--muted); }

.hr-week { gap: 16px; flex-wrap: wrap; }
.hr-wt { font-size: 16px; line-height: 1.5; }
.hr-wh { white-space: nowrap; }

.wkday.sel .dn, .wkday.sel .dd, .wkday.sel.today .dd { color: var(--surface); }
.scope-orientation { font-size: 16px; line-height: 1.55; margin: 0 0 12px; }
.scope-summary > summary { font-size: 15px; }
#calCacheNote { padding: 10px 18px; }

.instr { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
.instr .instrm { min-width: 0; }
.instr .instrl { font-size: 14px; line-height: 1.5; text-transform: none; letter-spacing: 0; color: var(--danger); }
.instr .instrt { font-size: 16px; line-height: 1.5; }
.instr .instrgot { grid-column: 2; justify-self: start; max-width: 100%; white-space: normal; }
.fin-acts { flex-direction: row; }
.jt-row.locked, .step.locked { opacity: 1; }

.hr-day.hr-empty-day { display: flex; align-items: baseline; gap: 16px; padding: 10px 4px; margin: 0; background: transparent; box-shadow: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.hr-empty-day .hr-t { flex: 1; margin: 0; }
.hr-empty-day .hr-h { display: none; }
.hr-empty-day .hr-empty { padding: 0; font-size: 14px; }

/* Attached reference photos need the same safe target as capture controls. */
.rsp-x { min-width: 44px; min-height: 44px; }

/* Workflow forms share the existing token system and expand with the keyboard. */
.ux-tools { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.ux-tools .tbtn { min-height:44px; white-space:normal; }
