@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/NotoSansThai-thai.woff2?v=1") format("woff2");
  unicode-range: U+0E01-0E5B,U+200C-200D,U+25CC;
}

@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/NotoSansThai-latin-ext.woff2?v=1") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/NotoSansThai-latin.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar,
.page-shell {
  width: min(100%, 720px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar h1,
.eyebrow,
.card h2 {
  margin: 0;
}

.eyebrow,
.step-label {
  color: var(--accent-on-surface);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

.page-shell {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.card {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.report-form {
  display: grid;
  gap: 12px;
}

.help-text,
.loading-text,
.location-copy {
  color: var(--ink-soft);
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-group-label {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

.project-group-label:first-child {
  margin-top: 0;
}

.project-choice,
.wz-btn,
.icon-button,
.text-button,
.auth-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.project-choice {
  width: 100%;
  padding: 12px;
  text-align: left;
}

.project-choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.wz-btn {
  padding: 10px 18px;
}

.wz-btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.icon-button {
  min-width: 44px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-actions form {
  margin: 0;
}

.text-button {
  padding-inline: 12px;
}

.auth-shell {
  width: min(100%, 480px);
  margin-inline: auto;
  padding: 24px 16px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form h1,
.auth-form h2,
.auth-form p {
  margin: 0;
}

.auth-form input {
  width: 100%;
  padding: 10px 12px;
  font-weight: 400;
}

.form-error {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--signal-red-soft);
  color: var(--ink);
}

.connection-notice {
  width: min(100%, 720px);
  margin-inline: auto;
  padding: 10px 16px;
  background: var(--signal-amber-soft);
  color: var(--ink);
}

.session-locked .report-form,
.session-locked #retryProjects {
  display: none;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.badge.tone-green {
  background: var(--signal-green-soft);
  color: var(--signal-green);
}

.badge.tone-amber {
  background: var(--signal-amber-soft);
  color: var(--signal-amber);
}

.badge.tone-red {
  background: var(--signal-red-soft);
  color: var(--signal-red);
}

.report-result {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--signal-amber-soft);
  color: var(--ink);
}

.report-result.tone-green {
  background: var(--signal-green-soft);
}

.report-result.tone-red {
  background: var(--signal-red-soft);
}

.photo-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.photo-preview-item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.photo-preview-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ground);
}

.photo-remove-btn {
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.help-text.tone-red {
  color: var(--signal-red);
}

.outbox-panel {
  display: grid;
  gap: 10px;
  border-color: var(--signal-amber);
}

.outbox-list {
  display: grid;
  gap: 8px;
}

.outbox-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ground);
}

.outbox-item p {
  margin: 0;
}

.recent-report-list {
  display: grid;
  gap: 10px;
}

.recent-report-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ground);
}

.recent-report-item p {
  margin: 0;
}

@media (min-width: 640px) {
  .page-shell {
    padding-block: 24px;
  }
}

/* ============================================================================
   v3 — จอโฟร์แมน (การ์ด WBS+DoD / งานสั่งการ / bottom sheet รายงาน) มติเจ้าของ 19 ส.ค. 2569
   ตาม docs/mockup_report_v3.html — คัดลอกโครง selector มาเกือบทั้งหมด (ชื่อ token ตรงกับ
   design_system/tokens.css อยู่แล้วทุกตัว ไม่มี hex ใหม่) ปรับแค่ส่วนที่เป็นของปลอมของ mockup ทิ้ง
   (phone-frame bezel, MOCKUP banner, ปุ่มจำลองเน็ตหลุด, ปุ่มดาวน์โหลด PDF — มติตัดออกเฟสนี้)
   ============================================================================ */

.field-shell {
  width: min(100%, 480px);
  margin-inline: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.field-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px 0;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
}
.field-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; }
.project-head { display: flex; align-items: center; gap: 2px; min-width: 0; }
.project-name-btn {
  display: flex; align-items: center; background: none; border: none; padding: 2px 0;
  cursor: pointer; font-family: inherit; color: var(--ink); min-width: 0;
}
.project-name-btn .nm { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-info-btn, .project-chev-btn {
  background: none; border: none; cursor: pointer; font-size: 15px; padding: 4px 5px; line-height: 1; flex: 0 0 auto;
}
.project-chev-btn { color: var(--ink-soft); font-size: 13px; }
.net-status { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.net-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-green); }
.net-status.off .dot { background: var(--signal-red); }
.net-status.off { color: var(--signal-red); }

.queue-badge {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  background: var(--signal-red-soft); color: var(--signal-red); border: none; border-top: 1px solid var(--line);
  padding: 9px 14px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  margin: 0 -14px; width: calc(100% + 28px);
}
.queue-badge .arrow { font-weight: 400; opacity: .7; }
.queue-badge[hidden] { display: none; }

.field-scroll { flex: 1 1 auto; overflow-y: auto; padding: 16px 14px 90px; }
.section-title { font-size: 17px; font-weight: 800; margin: 4px 0 2px; }
.section-sub { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; }
.today-counts { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 0 0 16px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.block-head .bh-lbl { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.block-head .bh-lbl.action { color: var(--steel); }
.block-head .bh-lbl.wbs { color: var(--ink); }
.block-head .bh-count { font-size: 11.5px; color: var(--ink-soft); font-weight: 700; }
.field-block-section { margin-bottom: 22px; }

.task-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 14px 12px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer;
  text-align: left; width: 100%; font-family: inherit; display: block;
  transition: border-color .15s ease, transform .1s ease;
}
.task-card:active { transform: scale(.99); }
.task-card:hover { border-color: var(--accent); }
.task-card .tc-name { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.task-card .tc-dod { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.5; }
.task-card .tc-dod b { color: var(--ink); font-weight: 700; }
.task-card .tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tc-progress-label { display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; color: var(--ink-soft); margin: 0 0 4px; }
.tc-progress-label b { font-size: 12.5px; color: var(--ink); font-weight: 800; }
.tc-progress-label .note { font-size: 10.5px; color: var(--ink-soft); }
.tc-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.tc-progress-fill { height: 100%; background: var(--accent); border-radius: 99px; }
.tc-counter-line { font-size: 11.5px; color: var(--ink-soft); font-weight: 700; margin: 0 0 9px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tc-counter-line .urgent-flag { color: var(--signal-red); font-weight: 800; }
.tc-reject-reason {
  margin-top: 8px; padding: 8px 10px; background: var(--signal-red-soft); border-radius: var(--r-sm);
  font-size: 12px; color: var(--signal-red); line-height: 1.5;
}

.overview-btn {
  width: 100%; border: none; border-radius: var(--r); padding: 16px; background: var(--accent);
  color: var(--accent-ink); font-family: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer;
  min-height: 54px; margin-top: 4px;
}

.action-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--steel);
  border-radius: var(--r); padding: 13px 14px 12px; margin-bottom: 10px; box-shadow: var(--shadow);
  cursor: pointer; text-align: left; width: 100%; font-family: inherit; display: block;
  transition: border-color .15s ease, transform .1s ease;
}
.action-card:active { transform: scale(.99); }
.action-card:hover { border-left-color: var(--steel); box-shadow: 0 0 0 1.5px var(--steel-soft), var(--shadow); }
.action-card .ac-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.action-card .ac-flag { font-size: 13px; }
.action-card .ac-name { font-size: 14.5px; font-weight: 800; color: var(--ink); margin: 0; }
.action-card .ac-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.urgency-pill { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .2px; }
.urgency-pill.u-urgent { background: var(--signal-red-soft); color: var(--signal-red); }
.urgency-pill.u-high { background: var(--signal-amber-soft); color: var(--signal-amber); }
.urgency-pill.u-medium, .urgency-pill.u-low { background: var(--steel-soft); color: var(--steel); }
.due-txt { font-size: 11.5px; color: var(--ink-soft); font-weight: 700; }
.due-txt.overdue { color: var(--signal-red); }
.action-card .ac-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.badge.tone-steel { background: var(--steel-soft); color: var(--steel); }
.badge.tone-accent { background: var(--accent-soft); color: var(--accent); }
.badge.tone-queued { background: var(--surface); color: var(--signal-amber); border: 1.5px dashed var(--signal-amber); }

.field-secondary-btn {
  width: 100%; background: var(--surface); border: 1.5px dashed var(--line); color: var(--ink-soft);
  border-radius: var(--r); padding: 14px; font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; margin-top: 6px; min-height: 52px;
}
.field-secondary-btn:hover { border-color: var(--accent); color: var(--accent); }

.field-empty { text-align: center; padding: 48px 12px 12px; }
.field-empty .ico { font-size: 52px; margin-bottom: 14px; }
.field-empty h3 { font-size: 16px; margin: 0 0 6px; }
.field-empty p { font-size: 13px; color: var(--ink-soft); margin: 0 0 20px; line-height: 1.6; }

.summary-bar {
  position: sticky; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line);
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; z-index: 15;
}
.summary-bar b { font-weight: 800; }
.summary-bar a { color: var(--accent); font-weight: 700; text-decoration: none; }

.wz-btn.ghost { color: var(--ink-soft); background: none; border-color: transparent; }
.wz-btn.block { width: 100%; }
.wz-btn:disabled { opacity: .45; cursor: not-allowed; }

.field-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 32, .5); opacity: 0; pointer-events: none;
  transition: opacity .2s ease; z-index: 30;
}
.field-overlay.open { opacity: 1; pointer-events: auto; }

.field-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; margin-inline: auto; width: min(100%, 480px); max-height: 92vh;
  background: var(--bg); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
  transform: translateY(100%); transition: transform .25s cubic-bezier(.32, .72, 0, 1); z-index: 31;
  display: flex; flex-direction: column;
}
.field-sheet.open { transform: translateY(0); }
.sheet-handle { display: flex; justify-content: center; padding: 8px 0 2px; flex: 0 0 auto; }
.sheet-handle span { width: 38px; height: 4px; border-radius: 99px; background: var(--line); display: block; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 6px 16px 12px; flex: 0 0 auto; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 16px; margin: 0; font-weight: 800; }
.sheet-head .sub { font-size: 11.5px; color: var(--ink-soft); margin: 3px 0 0; }
.sheet-head .close-x { border: none; background: var(--surface); width: 32px; height: 32px; border-radius: 50%; font-size: 16px; color: var(--ink-soft); cursor: pointer; flex: 0 0 auto; }
.sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px 10px; }
.sheet-foot { flex: 0 0 auto; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.sheet-foot .hint { font-size: 11.5px; color: var(--ink-soft); text-align: center; margin: 8px 0 0; line-height: 1.5; }
.sheet-foot .hint.off-hint { color: var(--signal-amber); font-weight: 700; }

.auto-info-strip { background: var(--accent-soft); border-radius: var(--r-sm); padding: 9px 11px; margin-bottom: 10px; }
.auto-info-strip .ai-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink); padding: 2px 0; }
.auto-info-strip .ai-row .ic { font-size: 13px; flex: 0 0 auto; }
.auto-info-strip .ai-row .tx { line-height: 1.4; }
.auto-info-strip .ai-row .tx.captured { color: var(--signal-green); font-weight: 700; }

.dod-box { background: var(--accent-soft); border: 1px solid var(--primary-soft); border-radius: var(--r-sm); padding: 12px 13px; margin-bottom: 16px; }
.dod-box .lbl { font-size: 11.5px; font-weight: 800; color: var(--accent); margin: 0 0 4px; }
.dod-box .txt { font-size: 13px; color: var(--ink); line-height: 1.6; margin: 0; }

.mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mode-btn { border: 2px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 16px 10px; text-align: center; cursor: pointer; font-family: inherit; min-height: 78px; }
.mode-btn .ico { font-size: 26px; display: block; margin-bottom: 6px; }
.mode-btn .lbl { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.mode-btn.success.active { border-color: var(--signal-green); background: var(--signal-green-soft); }
.mode-btn.success.active .lbl { color: var(--signal-green); }
.mode-btn.fail.active { border-color: var(--signal-amber); background: var(--signal-amber-soft); }
.mode-btn.fail.active .lbl { color: var(--signal-amber); }

.collapse-toggle {
  width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; min-height: 48px;
}
.collapse-body { display: none; }
.collapse-body.open { display: block; }

.action-choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.action-choice-btn {
  display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); background: var(--surface);
  border-radius: var(--r); padding: 14px 16px; cursor: pointer; font-family: inherit; min-height: 56px; width: 100%; text-align: left;
}
.action-choice-btn .ico { font-size: 22px; flex: 0 0 auto; }
.action-choice-btn .lbl { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.action-choice-btn.start.active { border-color: var(--steel); background: var(--steel-soft); }
.action-choice-btn.start.active .lbl { color: var(--steel); }
.action-choice-btn.done.active { border-color: var(--signal-green); background: var(--signal-green-soft); }
.action-choice-btn.done.active .lbl { color: var(--signal-green); }
.action-choice-btn.blocked.active { border-color: var(--signal-red); background: var(--signal-red-soft); }
.action-choice-btn.blocked.active .lbl { color: var(--signal-red); }

.field-block { margin-bottom: 18px; }
.field-block > label, .field-block > .flabel { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.field-block .req { color: var(--signal-red); }
.field-block .fhint { font-size: 11.5px; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.5; }

.camera-btn {
  width: 100%; border: none; border-radius: var(--r); padding: 18px; background: var(--accent); color: var(--accent-ink);
  font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; min-height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.camera-btn .n { font-size: 22px; }
.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .rm {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--signal-red);
  color: var(--accent-ink); border: 2px solid var(--bg); font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; font-family: inherit; }
.chip.active { border-color: var(--signal-amber); background: var(--signal-amber-soft); color: var(--signal-amber); }

.stepper-row { display: flex; align-items: center; gap: 14px; }
.stepper-row button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 20px; font-weight: 800; color: var(--accent); cursor: pointer; }
.stepper-row .cnt { font-size: 22px; font-weight: 800; min-width: 34px; text-align: center; }
.stepper-row .unit { font-size: 12.5px; color: var(--ink-soft); }

.field-toast {
  position: fixed; left: 50%; bottom: 78px; transform: translate(-50%, 10px); background: var(--ink); color: var(--surface);
  padding: 11px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none;
  transition: all .2s ease; z-index: 50; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.field-toast.show { opacity: 1; transform: translate(-50%, 0); }

.mini-modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 32, .45); z-index: 40; display: none; align-items: center; justify-content: center; padding: 20px; }
.mini-modal-overlay.open { display: flex; }
.mini-modal { background: var(--surface); border-radius: var(--r); padding: 16px; width: 100%; max-width: 320px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.mini-modal h3 { font-size: 14.5px; margin: 0 0 10px; }
.mini-modal .opt { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-sm); padding: 11px 12px; margin-bottom: 8px; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.mini-modal .opt.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.queue-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.queue-item:last-child { border-bottom: none; }
.queue-item .qi-name { font-weight: 700; }
.queue-item .qi-time { color: var(--ink-soft); font-size: 11.5px; }

.info-block { margin-bottom: 22px; }
.info-block:last-child { margin-bottom: 0; }
.info-label { font-size: 12px; font-weight: 800; color: var(--ink-soft); letter-spacing: .2px; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.info-title { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 0 0 4px; line-height: 1.4; }
.info-sub-row { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 3px; }
.contract-dates { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.days-left-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; padding: 9px 16px; border-radius: 999px; margin-bottom: 10px; }
.days-left-badge.tone-green { background: var(--signal-green-soft); color: var(--signal-green); }
.days-left-badge.tone-amber { background: var(--signal-amber-soft); color: var(--signal-amber); }
.days-left-badge.tone-red { background: var(--signal-red-soft); color: var(--signal-red); }
.days-left-track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.days-left-fill { height: 100%; border-radius: 99px; }
.days-left-fill.tone-green { background: var(--signal-green); }
.days-left-fill.tone-amber { background: var(--signal-amber); }
.days-left-fill.tone-red { background: var(--signal-red); }

.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; margin-bottom: 9px; }
.contact-card:last-child { margin-bottom: 0; }
.contact-card .cc-info { min-width: 0; }
.contact-card .cc-role { font-size: 11px; font-weight: 800; color: var(--ink-soft); margin: 0 0 2px; }
.contact-card .cc-name { font-size: 13.5px; font-weight: 700; color: var(--ink); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-card .cc-call { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 800; text-decoration: none; min-height: 40px; }

.gantt-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 12px 6px; }
.gantt-row { margin-bottom: 12px; }
.gantt-row:last-child { margin-bottom: 8px; }
.gantt-label { font-size: 11.5px; font-weight: 700; color: var(--ink); margin: 0 0 4px; display: block; }
.gantt-track { position: relative; height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.gantt-bar { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--accent); }
.gantt-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-soft); margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); }
.offline-cache-hint { text-align: center; font-size: 11.5px; color: var(--ink-soft); margin-top: 18px; line-height: 1.6; }

@media (min-width: 480px) {
  .field-sheet { max-height: 88vh; }
}

/* ==========================================================================================
   F4 (23 ส.ค. 2569 — เจ้าของสั่ง) จอ "ประวัติของฉัน" — รายงานที่โฟร์แมนคนนี้ส่งเองในโครงการปัจจุบัน
   ห้าม hardcode hex ทุกค่าเรียก token กลางจาก tokens.css (ดู design_system/DESIGN_GUIDE.md)
   ========================================================================================== */
.summary-link-btn {
  border: none; background: none; padding: 0; font-family: inherit; font-size: 13px;
  font-weight: 700; color: var(--accent); cursor: pointer;
}
/* กว้าง/สูงกว่า mini-modal ปกติ เพราะเป็นรายการยาวพร้อมรูปย่อ ไม่ใช่ตัวเลือกไม่กี่ปุ่ม */
.history-overlay .history-panel { max-width: 460px; max-height: 82vh; display: flex; flex-direction: column; }
.history-panel #historyList { overflow-y: auto; flex: 1 1 auto; }
.history-hint { font-size: 12px; color: var(--ink-soft); margin: 0 0 10px; }
.history-empty { font-size: 13px; color: var(--ink-soft); text-align: center; padding: 24px 0; margin: 0; }

.history-row { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; margin-bottom: 9px; background: var(--bg); }
.hr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.hr-date { font-size: 13px; font-weight: 800; color: var(--ink); }
.hr-status { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.hr-status.ok { background: var(--signal-green-soft); color: var(--signal-green); }
.hr-status.bad { background: var(--signal-red-soft); color: var(--signal-red); }
.hr-status.wait { background: var(--signal-amber-soft); color: var(--signal-amber); }
.hr-work { font-size: 13px; color: var(--ink); margin: 0 0 4px; line-height: 1.55; white-space: pre-wrap; }
.hr-pct { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.hr-obstacle { font-size: 12.5px; color: var(--signal-amber); margin: 5px 0 0; line-height: 1.5; }
.hr-reject { font-size: 12.5px; color: var(--signal-red); margin: 5px 0 0; line-height: 1.5; }

.hr-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.hr-thumb { display: block; width: 60px; height: 60px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.hr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-more { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
