/* Codex fallback choice draft: actual shrink/wrap constraints, not page clipping. */
html, body { height: auto; min-width: 0; }
body.collector-view { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
html[data-look] body.collector-view .screen {
  width: 100%; max-width: 460px; min-width: 0; min-height: 0; flex: 1 0 auto;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}
html[data-look] body.collector-view :is(#screen-onboard,#screen-consent,#screen-branch,#screen-photo,#screen-text) { padding-bottom: 0; }
html[data-look] body.collector-view :is(.home-main,.pad-main,.records-main,.export-main) {
  flex: 1 0 auto; min-width: 0; width: 100%; padding: 12px 20px 16px; gap: 12px; overflow: visible;
}
html[data-look] body.collector-view .topbar { min-height: 56px; padding: 6px 16px; padding-top: max(6px,env(safe-area-inset-top)); gap: 8px; }
html[data-look] body.collector-view :is(.topbar-title,.pf-info,.field,.time-block,.today-stat,.rec-top) { min-width: 0; overflow-wrap: anywhere; }
html[data-look] body.collector-view .topbar-title { font-size: 16px; }
html[data-look] body.collector-view .studio-wordmark { letter-spacing: 0; }
html[data-look] body.collector-view .icon-btn { min-width: 44px; min-height: 44px; flex-shrink: 0; }
html[data-look] body.collector-view .nav-back { font-size: 23px; font-weight: 400; }
html[data-look] body.collector-view :is(input,textarea,select) { min-width: 0; max-width: 100%; box-sizing: border-box; }
html[data-look] body.collector-view :is(.inp,.big-input,input[type=date],input[type=datetime-local]) { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 11px 10px; font-size: 16px; }
input::-webkit-date-and-time-value { min-width: 0; text-align: left; }
input::-webkit-datetime-edit { min-width: 0; padding: 0; }
html[data-look] body.collector-view :is(button,.range-dates,.modal-actions,.miss-actions) { max-width: 100%; }
html[data-look] body.collector-view button { min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
html[data-look] body.collector-view a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
html[data-look] body.collector-view :is(.range-dates,.modal-actions,.miss-actions,.rec-top) { flex-wrap: wrap; }
html[data-look] body.collector-view .range-dates .field { flex: 1 1 150px; }
html[data-look] body.collector-view .mode-card:is(.live,.recall) {
  display: grid; grid-template-columns: 40px minmax(0,1fr) 16px; align-content: center; align-items: center;
  gap: 4px 12px; min-height: 124px; padding: 18px; width: 100%; overflow: visible;
  color: #173d2b; border: 2px solid #557562; border-radius: 18px; box-shadow: 0 3px 10px #173d2b0a; background: #fff;
}
html[data-look] body.collector-view .mode-card.live { background: #f5faf6; }
html[data-look] body.collector-view .mode-card .mc-emoji { display: grid; place-items: center; width: 40px; height: 44px; border-radius: 12px; background: #173d2b; grid-column: 1; grid-row: 1 / 3; color: #fff; margin: 0; padding: 0; }
html[data-look] body.collector-view .mode-card .mc-main { grid-column: 2; grid-row: 1; font-size: 24px; line-height: 1.4; font-weight: 650; max-width: 100%; margin: 0; letter-spacing: 0; }
html[data-look] body.collector-view .mode-card .mc-sub { grid-column: 2; grid-row: 2; max-width: 100%; padding: 0; color: #405c4b; font-size: 12px; line-height: 1.6; }
html[data-look] body.collector-view .mc-direction { grid-column: 3; grid-row: 1 / 3; display: flex; color: #335f47; }
html[data-look] body.collector-view .mc-direction .design-icon { width: 16px; height: 20px; }
html[data-look] body.collector-view .today-card { padding: 8px 0 10px; margin: 0; }
html[data-look] body.collector-view .today-stat .n { font-size: 27px; }
html[data-look] body.collector-view .today-stat .l { margin-top: 5px; }
html[data-look] body.collector-view .home-main>p { margin: 0 !important; }
html[data-look] body.collector-view .tabbar { width: calc(100% - 24px); max-width: 436px; bottom: max(8px,env(safe-area-inset-bottom)); padding: 5px; }
html[data-look] body.collector-view .tab { min-width: 0; min-height: 53px; }
html[data-look] body.collector-view .miss-nudge { margin: 0; padding: 8px 10px; }
html[data-look] body.collector-view .miss-actions { margin-left: auto; }
html[data-look] body.collector-view .rec { min-width: 0; gap: 10px; }
html[data-look] body.collector-view .rec .thumb { width: 60px; height: 60px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html[data-look] body.collector-view .photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 10px; min-width: 0; }
html[data-look] body.collector-view .photo-strip { display: contents; }
html[data-look] body.collector-view .photo-strip .ph { width: 100%; height: auto; aspect-ratio: 1; min-width: 0; }
html[data-look] body.collector-view .photo-strip .ph img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
html[data-look] body.collector-view .photo-add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; aspect-ratio: 1; padding: 8px; border: 1px solid #d8dfda; border-radius: 12px; background: #edf0ed; color: #65766a; font: inherit; font-size: 12px; }
.photo-add-plus { display: block; position: relative; width: 28px; height: 28px; }
.photo-add-plus::before,.photo-add-plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.photo-add-plus::before { width: 28px; height: 2px; top: 13px; left: 0; }
.photo-add-plus::after { width: 2px; height: 28px; top: 0; left: 13px; }
.photo-method-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 15px; font-weight: 600; color: #243d2f; }
.photo-method-label span { color: #637267; font-size: 12px; font-weight: 400; }
.photo-method { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; border: 1px solid #dbe2dd; border-radius: 99px; background: #e9eeea; }
html[data-look] body.collector-view .photo-method button { min-width: 0; min-height: 44px; margin: 0; padding: 10px 8px; border: 0; border-radius: 99px; background: transparent; color: #5b6a60; font: inherit; font-size: 15px; font-weight: 500; }
html[data-look] body.collector-view .photo-method button[aria-selected=true] { background: #fff; color: #173d2b; font-weight: 650; box-shadow: 0 1px 4px #173d2b15; }
.photo-method button:focus-visible,.photo-add-tile:focus-visible { outline: 2px solid #256654; outline-offset: 3px; }
.photo-method-panel p { margin: 0; line-height: 1.65; font-size: 13px; }
.photo-method-panel textarea { display: block; margin: 0; }
html[data-look] body.collector-view .photo-strip .ph-x { width: 44px; height: 44px; top: 0; right: 0; border: 0; background: #173d2bcc; }
html[data-look] body.collector-view .photo-strip .ph-x { font-size: 18px; }
html[data-look] body.collector-view #photo-recognize { border: 1px solid #173d2b; background: #173d2b; color: #fff; min-height: 48px; }
html[data-look] body.collector-view #photo-recognize[aria-disabled=true] { background: #eef2ef; color: #43584a; border-color: #a9b9ae; }
html[data-look] body.collector-view #photo-choice-hint { margin: 0; line-height: 1.6; }
html[data-look] body.collector-view [aria-disabled=true] { color: var(--mut); }
html[data-look] body.collector-view .onboard { min-height: 0; padding: 28px 22px 18px; gap: 12px; }
html[data-look] body.collector-view .modal-backdrop { padding: 12px; overflow: auto; }
html[data-look] body.collector-view .modal { min-width: 0; max-height: calc(100dvh - 24px); overflow: auto; }
html[data-look] body.collector-view .rec-day-header {
  position: sticky; top: var(--wm-records-header-height, calc(50px + max(6px, env(safe-area-inset-top)))); z-index: 8;
  min-width: 0; max-width: 100%; margin: 0; padding: 6px 0; background: #f6f7f8; color: #173d2b;
  border-bottom: 1px solid #cedbd1; scroll-margin-top: calc(var(--wm-records-header-height, 56px) + 8px);
}
.rec-date-picker { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; }
.rec-date-display { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; min-height: 44px; padding: 6px 10px; border: 0; background: transparent; color: #173d2b; font: inherit; font-size: 20px; font-weight: 650; text-align: left; }
.rec-date-display>span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rec-calendar-icon { display: inline-flex; flex: none; }
html[data-look] body.collector-view #rec-date { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; max-width: 100%; min-height: 44px; margin: 0; opacity: 0; cursor: pointer; }
/* Native touch target overlays the whole header without adding a second row.
   The visible button remains keyboard-accessible; app.js owns showPicker. */
.rec-date-picker:focus-within { outline: 2px solid #256654; outline-offset: 2px; }
html[data-look] body.collector-view .beian { flex: none; margin-top: auto; padding: 0 12px 4px; text-align: center; }
html[data-look] body.collector-view .beian a { min-height: 44px; color: #4d6055; font-size: 11px; text-decoration: none; line-height: 1.4; }
.wm-rec-dialog { min-width: 0; max-width: calc(100vw - 16px); max-height: calc(100dvh - 24px); overflow: auto; }
.wm-rec-panel { min-width: 0; max-height: none; overflow: visible; overflow-wrap: anywhere; }
.wm-rec-inline-status { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.wm-rec-reminder { margin: 0; }
.wm-rec-wait-panel { padding-top: 30px; text-align: center; }
.wm-rec-wait-panel .wm-rec-dialog-title { margin: 8px 36px 8px; font-size: 22px; font-weight: 650; }
.wm-rec-wait-visual { display: grid; place-items: center; width: 76px; height: 76px; margin: 12px auto; border-radius: 50%; background: #edf4ee; color: #205c43; }
.wm-rec-wait-visual .wm-rec-spinner { width: 36px; height: 36px; border-width: 3px; margin: 0; }
.wm-rec-wait-idle { font-size: 15px; font-weight: 600; }
.wm-rec-wait-status { margin: 12px 0; color: #405c4b; font-size: 14px; line-height: 1.65; }
.wm-rec-wait-hint { min-height: 3em; margin: 12px 0 16px; color: #4d6055; font-size: 13px; line-height: 1.6; }
.wm-rec-wait-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.wm-rec-wait-actions button { min-width: 0; min-height: 48px; font-size: 14px; padding: 10px 8px; }
.wm-rec-wait-back { margin-top: 8px; border-color: transparent; background: transparent; font-size: 13px; font-weight: 400; }
.wm-rec-wait-actions.wm-rec-wait-actions-single { grid-template-columns: minmax(0,1fr); margin-top: 24px; }
.wm-rec-wait-actions-single button { min-height: 48px; }
.wm-rec-wait-panel .wm-rec-dialog-title { margin: 12px 0 20px; }
@media (max-width:360px) { .wm-rec-wait-panel { padding-left: 12px; padding-right: 12px; } }
.wm-rec-photos { display: grid; grid-template-columns: repeat(auto-fit,minmax(80px,1fr)); gap: 8px; margin-bottom: 12px; }
.wm-rec-photo-open { min-width: 0; border: 1px solid #d7e0d5; border-radius: 10px; padding: 4px; background: #fff; }
.wm-rec-photo-open img { display: block; width: 100%; height: 100px; object-fit: contain; }
.wm-rec-zoom { width: min(700px,calc(100vw - 16px)); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 12px; margin: auto; border: 1px solid #d7e0d5; border-radius: 14px; background: #fbfcf8; color: #173d2b; }
.wm-rec-zoom::backdrop { background: #0a1b13cc; }
.wm-rec-zoom-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.wm-rec-zoom-controls button { min-width: 44px; min-height: 44px; border: 1px solid #d7e0d5; border-radius: 8px; background: #fff; color: #173d2b; }
.wm-rec-zoom-viewport { width: 100%; height: min(60vh,480px); height: min(60dvh,480px); overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
.wm-rec-zoom-image { display: block; width: 100%; max-width: none; height: auto; }
@media (max-width:360px) {
  html[data-look] body.collector-view :is(.home-main,.pad-main,.records-main,.export-main) { padding-left: 12px; padding-right: 12px; }
  html[data-look] body.collector-view .mode-card:is(.live,.recall) { padding: 14px; }
}
@media (max-height:650px) {
  html[data-look] body.collector-view .home-main { gap: 8px; padding-top: 4px; padding-bottom: 8px; }
  html[data-look] body.collector-view .home-main>p { display: none; }
  html[data-look] body.collector-view .mode-card:is(.live,.recall) { min-height: 100px; padding-block: 10px; }
  html[data-look] body.collector-view .today-card { padding-top: 4px; padding-bottom: 6px; }
  html[data-look] body.collector-view .today-stat .n { font-size: 23px; }
}
