/* Engineer view (spec 22): phone first, big tap targets, a four-item bottom bar. */
.field-col { min-width: 0; display: flex; flex-direction: column; }
.field-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px;
  background: rgba(245, 166, 35, 0.16); border-bottom: 1px solid rgba(245, 166, 35, 0.45); color: var(--ink); font-weight: 600;
}
.field-main { flex: 1; max-width: 760px; width: 100%; }
@media (max-width: 900px) { .bottom-nav.field-nav { grid-template-columns: repeat(4, 1fr); } .bottom-nav.field-nav a { font-size: 0.75rem; min-height: 48px; } }

.field-list { gap: 10px; }
a.list-item.field-card { color: inherit; text-decoration: none; min-height: 56px; align-items: center; }
.list-item.field-card.static { cursor: default; }
.field-when { font-weight: 700; color: #7fb4ff; margin-bottom: 2px; }
.field-note { white-space: pre-wrap; margin-top: 4px; }

.field-back { display: inline-block; padding: 10px 0; color: var(--ink-2); text-decoration: none; min-height: 44px; }
.field-badges { margin: -6px 0 12px; flex-wrap: wrap; }
.field-section { margin-bottom: 14px; }
.field-section h2 { font-size: 1.1rem; margin: 0 0 10px; }
.field-address { font-size: 1.05rem; margin: 0 0 12px; }

.btn.field-big { min-height: 52px; width: 100%; font-size: 1.02rem; font-weight: 600; text-decoration: none; }
.field-actions { display: grid; gap: 10px; margin: 6px 0 12px; }
.field-actions.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 380px) { .field-actions.three { grid-template-columns: 1fr; } }

.field-tasks { display: grid; gap: 4px; }
.field-tasks .check { min-height: 44px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--edge); flex-wrap: wrap; }
.field-tasks .check input { width: 22px; height: 22px; }
.field-tasks .check.done > span:first-of-type { text-decoration: line-through; opacity: 0.65; }
.field-task-note { flex-basis: 100%; padding-left: 30px; }
.field-times { margin: 0 0 10px; padding-left: 20px; }

/* Diary (1.3.0, spec 24): month calendar, then the day in one-hour slots. */
.cal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-title { flex: 1; text-align: center; font-size: 1.05rem; margin: 0; }
.btn.cal-arrow { min-width: 44px; min-height: 44px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; touch-action: pan-y; }
.cal-head { text-align: center; font-size: 0.72rem; color: var(--ink-3); padding: 2px 0; }
.cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; border-radius: 10px; color: inherit; text-decoration: none; border: 1px solid transparent; }
.cal-day.out { color: var(--ink-3); }
.cal-day.today { border-color: var(--blue); }
.cal-day.today .cal-num { font-weight: 700; }
.cal-day.selected { background: var(--blue-soft); border-color: #7fb4ff; }
.cal-count { font-size: 0.68rem; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #7fb4ff; color: #0f1f3d; font-weight: 700; line-height: 16px; text-align: center; }
.field-day-title { font-size: 1.1rem; margin: 6px 0 10px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slot { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; align-items: start; }
.slot-time { font-weight: 700; color: var(--ink-2); padding-top: 12px; }
.slot.empty .slot-time { padding-top: 0; font-weight: 400; color: var(--ink-3); font-size: 0.8rem; }
.slot-free { font-size: 0.8rem; color: var(--ink-3); border-bottom: 1px dashed var(--edge); padding-bottom: 2px; }
.office-app-link { font-weight: 600; }

/* On my way and working offline (1.6.0, spec 28) */
.sync-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 12px; font-size: 0.85rem; border-bottom: 1px solid var(--edge); }
.sync-strip.ok { color: var(--ink-3); }
.sync-strip.info { background: var(--blue-soft); color: var(--ink); }
.sync-strip.warn { background: rgba(245, 158, 11, 0.16); color: var(--ink); border-bottom-color: var(--amber); }
.sync-strip.error { background: rgba(239, 68, 68, 0.16); color: var(--ink); border-bottom-color: var(--red); }
.sync-text { flex: 1 1 auto; font-weight: 600; }
.sync-failed { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--edge); }
.sync-card { padding-top: 10px; padding-bottom: 10px; }
.field-lock { border-left: 4px solid var(--amber); }
.field-omw { width: 100%; }
.office-notes { border: 2px solid var(--amber); background: rgba(245, 158, 11, 0.12); }
.office-note-row { padding: 6px 0; border-bottom: 1px solid var(--edge); }
.office-note-row:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.offline-note { border-left: 4px solid var(--amber); padding: 8px 10px; margin: 8px 0; background: rgba(245, 158, 11, 0.12); border-radius: var(--radius-sm); }

.field-shell a:focus-visible, .field-shell button:focus-visible, .field-nav a:focus-visible, .field-shell input:focus-visible { outline: 3px solid #7fb4ff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .field-shell * { transition: none !important; } }
