/* Work surfaces: preserve input sizes and give lists/document content more room. */
.workspace-tools {
  border: 1px solid var(--doc-border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-main);
  align-self: flex-start;
  min-width: 0;
  box-shadow: var(--shadow-xs);
}
.workspace-tools[open] { border-color: #c7d2fe; }
.workspace-tools > summary:hover { color: var(--accent); }
.workspace-tools > summary {
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: var(--fs-base);
  font-weight: 600;
}
.workspace-tools > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.workspace-tools-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}
.workspace-tools-content button { min-height: 44px; }
#quoteAuxActions > .flex { flex-wrap: wrap; }
#view-expense .expense-payment-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px;
  background: var(--card-bg);
  border-top: 1px solid var(--doc-border);
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.5;
}
#view-expense .expense-payment-status:empty { display: none; }
#homeTopTodoBlock > div { padding: 12px 16px; }
#homeTopTodoBlock #homeTopTodoList { max-height: 220px; overflow-y: auto; }
.home-top-order-editor {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--doc-border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-main);
}
.home-top-order-editor[hidden] { display: none; }
.home-top-order-editor h3 { font-size: var(--fs-title); font-weight: 800; }
.home-top-order-editor p { margin: 8px 0 12px; font-size: var(--fs-base); color: var(--text-sub); }
.home-top-order-editor ol { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.home-top-order-editor li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-base); }
.home-top-order-actions { display: flex; flex-shrink: 0; gap: 8px; }
.home-top-order-actions button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: var(--fs-title);
  cursor: pointer;
}
.home-top-order-actions button:disabled { opacity: 0.35; cursor: default; }
.home-top-order-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-top-order-done {
  margin-top: 12px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 800;
  cursor: pointer;
}
/* 🏠 홈 업무 요약 — home-header.js (2026-10-28 실데이터 시안 v2): 인사 · 오늘 할 일 3장 · 7일 안 일정 · 정리할 것 */
.hh-wrap { margin-bottom: 16px; color: var(--text-main); }
.hh-greet { margin: 4px 2px 14px; }
.hh-date { color: var(--text-sub); font-size: var(--fs-meta); font-weight: 700; }
.hh-hi { margin-top: 2px; font-size: 22px; font-weight: 900; word-break: keep-all; }
/* 홈 맨 위 한 줄 — 왼쪽 인사, 오른쪽 «⋯». 홈에서는 화면 제목(전사 마스터 대시보드)을 감춘다(2026-10-28 v3 시안) */
#homeToolbar .home-greet-slot { margin-right: auto; min-width: 0; }
#homeToolbar .home-greet-slot:empty { display: none; }
#homeToolbar .hh-greet { margin: 0; }
body:has(#view-home.active) #pageHeaderEl { display: none; }
.pl-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: var(--fs-badge); font-weight: 800; vertical-align: 1px; white-space: nowrap; }
.pl-chip-mine { background: #e0e7ff; color: #3730a3; }
.pl-chip-warn { background: #fef3c7; color: #92400e; }
.pl-mine-toggle { flex-shrink: 0; min-height: 36px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #64748b; font-size: 12px; font-weight: 700; cursor: pointer; }
.pl-mine-toggle[aria-pressed="true"] { border-color: #4f46e5; background: #eef2ff; color: #3730a3; }
.home-mine-chip { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: var(--fs-badge); font-weight: 800; vertical-align: 1px; white-space: nowrap; }
/* 🏠 홈 v3 배치(PC 1280~, 2026-10-28 사장님 «화면 정리 다 하고») — DOM 순서는 그대로(위젯 순서 편집 _ensureHomeTopLayout·테스트가 읽는다), 자리만 격자로.
   ① 근태를 인사 줄 오른쪽(«⋯» 왼쪽)에 한 줄로 ② 내 할 일 · 나의 일정 나란히 — dense 라 둘 사이에 다른 위젯이 있어도 할 일 옆 빈칸을 채운다.
   ⚠ 근태 칸 오른쪽 여백(190px) = «⋯ 내보내기·알림·편집» 버튼 자리. 버튼 글자를 바꾸면 같이 본다. */
@media (min-width: 1280px) {
  #view-home.active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; grid-auto-flow: row dense; align-items: start; }
  #view-home.active > * { grid-column: 1 / -1; min-width: 0; }
  #view-home.active > #homeToolbar { grid-row: 1; }
  #view-home.active > #clockWidget { grid-row: 1; justify-self: end; align-self: center; z-index: 1; max-width: calc(100% - 520px);
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 190px 12px 0 !important; padding: 6px 12px 6px 16px !important; }
  #view-home.active > #clockWidget > #clockTodayInfo { margin: 0 !important; padding: 0 !important; border: 0 !important; }
  #view-home.active > #homeTopTodoBlock { grid-column: 1; }
  #view-home.active > #myScheduleWidget { grid-column: 2; }
  /* 2026-11-01 시안 A3 — 달력이 보이면(.home-duo, home-widgets.js) 달력이 왼쪽 넓은 칸(두 줄 차지), 내 할 일·나의 일정은 오른쪽에 쌓인다 */
  #view-home.active.home-duo { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
  #view-home.active.home-duo > #homeTopCalendarBlock { grid-column: 1; grid-row: span 2; }
  #view-home.active.home-duo > #homeTopTodoBlock, #view-home.active.home-duo > #myScheduleWidget { grid-column: 2; }
  /* 달력이 두 줄을 차지하면 남는 높이가 두 줄에 나뉘어 할 일과 나의 일정 사이가 벌어진다 → 오른쪽 카드를 줄 높이만큼 늘려 왼쪽 달력과 끝선을 맞춘다 */
  #view-home.active.home-duo > #homeTopTodoBlock { align-self: stretch; display: flex; flex-direction: column; }
  #view-home.active.home-duo > #homeTopTodoBlock > * { flex: 1; }
  #view-home.active.home-duo #homeTopTodoList { max-height: 560px; }   /* 오른쪽 칸은 달력만큼 길다 — 220px 에서 잘리던 묶음(이번 주)을 보인다 */
  #view-home.active.home-duo > #myScheduleWidget { align-self: stretch; }
  /* 업무 요약을 낮게 — «7일 안 일정»은 옆 달력과 같은 내용이라 숨기고, «정리할 것» 줄은 가로 칸으로 */
  #view-home.home-duo .hh-cols > .hh-box.hh-week { display: none; }
  #view-home.home-duo .hh-cols { grid-template-columns: minmax(0, 1fr); }
  #view-home.home-duo .hh-cols > .hh-box:not(.hh-week) { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); column-gap: 20px; }
  #view-home.home-duo .hh-cols > .hh-box > .hh-box-h { grid-column: 1 / -1; }
  #view-home.home-duo .hh-cols > .hh-box > .hh-row { border-top: 0; flex-wrap: wrap; gap: 2px 8px; }
}
/* 내 할 일 묶음 머리(지난 일·오늘·이번 주) */
.home-todo-group { margin: 10px 2px 4px; font-size: var(--fs-meta); font-weight: 800; color: #64748b; }
.home-todo-group:first-child { margin-top: 0; }
.home-todo-group.is-late { color: #dc2626; }
/* 🏠 홈 진행 프로젝트 «줄 목록» (PC 901~, v3) — _renderProjTable(project-views.js)의 칸·줄 클릭·«열기»는 그대로, 표 머리는 숨긴다.
   1줄 = 프로젝트명 · 내 담당 ……… 계약금액 / 2줄 = 발주처 · PM · 기간 · 폴더 · 상태 (이름 칸은 display:contents 로 두 줄을 줄에 올린다) */
@media (min-width: 901px) {
  #view-home .fin-home-proj-table { display: block; min-width: 0 !important; }
  #view-home .fin-home-proj-table > thead { display: none; }
  #view-home .fin-home-proj-table > tbody { display: block; }
  #view-home .fin-home-proj-table > tbody > tr:not(:has(> td + td)), #view-home .fin-home-proj-table > tbody > tr:not(:has(> td + td)) > td { display: block; }
  #view-home .fin-home-proj-table > tbody > tr:has(> td + td) { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; position: relative; padding: 12px 170px 12px 4px; }
  #view-home .fin-home-proj-table > tbody > tr:has(> td + td) > td { padding: 0 !important; text-align: left !important; }
  #view-home .fin-home-proj-table > tbody > tr:has(> td + td) > td:nth-child(2) { display: contents; }
  #view-home .fin-home-proj-table > tbody > tr:has(> td + td) > td:nth-child(2) > div:first-child { order: 1; flex: 0 0 100%; }
  #view-home .fin-home-proj-table > tbody > tr:has(> td + td) > td:nth-child(2) > div:last-child { order: 2; margin-top: 0 !important; font-size: var(--fs-meta) !important; }
  #view-home .fin-home-proj-table > tbody > tr:has(> td + td) > td:nth-child(3) { order: 3; color: #94a3b8 !important; font-size: var(--fs-meta) !important; }
  #view-home .fin-home-proj-table > tbody > tr:has(> td + td) > td:nth-child(1) { order: 4; font-size: var(--fs-meta) !important; }
  #view-home .fin-home-proj-table > tbody > tr:has(> td + td) > td:nth-child(4) { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); font-size: var(--fs-base) !important; }
  #view-home .fin-home-proj-table > tbody > tr:has(> td + td) > td:nth-child(5) { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
}
/* 📊 프로젝트 개요 두 칸(PC 1100~, 2026-10-28 v3 시안 proj-pdash) — 짧은 입구 줄 둘(내수표 예산 · 마감 전 확인)을 나란히. 순서·내용은 그대로.
   둘 다 있을 때만(한쪽만 보이는 역할·상태면 빈 칸이 생기지 않게 종전처럼 전폭) */
@media (min-width: 1100px) {
  #view-dashboard.active:has(> .pb-entry):has(> #projectCloseoutEntry) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  #view-dashboard.active:has(> .pb-entry):has(> #projectCloseoutEntry) > * { grid-column: 1 / -1; min-width: 0; }
  #view-dashboard.active:has(> .pb-entry):has(> #projectCloseoutEntry) > .pb-entry { grid-column: 1; }
  #view-dashboard.active:has(> .pb-entry):has(> #projectCloseoutEntry) > #projectCloseoutEntry { grid-column: 2; }
}
.hh-sec { margin: 0 2px 8px; font-size: var(--fs-body); font-weight: 900; }
.hh-queue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.hh-q { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; min-height: 76px; padding: 14px 16px; border: 1px solid var(--doc-border); border-radius: 14px; background: var(--card-bg); color: var(--text-sub); text-align: left; cursor: pointer; }
.hh-q.on { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.hh-q:hover { border-color: var(--accent); }
.hh-q:focus-visible, .hh-row:focus-visible, .hh-wk:focus-visible, .hh-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hh-q-t { font-size: var(--fs-meta); font-weight: 800; word-break: keep-all; }
.hh-q-n { color: var(--text-main); font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hh-q:not(.on) .hh-q-n { color: var(--text-sub); }
.hh-q-sub { font-size: var(--fs-meta); font-weight: 700; color: #b91c1c; }
.hh-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.hh-box { min-width: 0; padding: 14px 16px; border: 1px solid var(--doc-border); border-radius: 14px; background: var(--card-bg); }
.hh-box-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.hh-box-h h3 { font-size: var(--fs-body); font-weight: 900; }
.hh-link { min-height: 32px; border: 0; background: none; color: var(--accent); font-size: var(--fs-meta); font-weight: 800; cursor: pointer; white-space: nowrap; }
.hh-wk, .hh-row { display: flex; align-items: baseline; gap: 10px; width: 100%; min-height: 40px; padding: 8px 0; border: 0; border-top: 1px dashed var(--doc-border); background: none; color: var(--text-main); text-align: left; cursor: pointer; }
.hh-box-h + .hh-wk, .hh-box-h + .hh-row { border-top: 0; }
.hh-wk-d { flex-shrink: 0; min-width: 44px; color: var(--text-sub); font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
.hh-wk-t { min-width: 0; font-size: var(--fs-base); font-weight: 800; word-break: keep-all; overflow-wrap: anywhere; }
.hh-wk-s { min-width: 0; color: var(--text-sub); font-size: var(--fs-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-row[hidden] { display: none; }
.hh-row-label { flex: 1; min-width: 0; color: var(--text-sub); font-size: var(--fs-base); word-break: keep-all; }
.hh-row-val { flex-shrink: 0; font-size: var(--fs-base); font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hh-row-go { flex-shrink: 0; max-width: 40%; color: var(--accent); font-size: var(--fs-meta); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-wk:hover .hh-wk-t, .hh-row:hover .hh-row-label { color: var(--accent); }
.hh-empty { padding: 8px 0; color: var(--text-sub); font-size: var(--fs-meta); }
@media (max-width: 900px) {
  .hh-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  /* 폰은 오늘 할 일을 한 줄씩 — 세 칸이면 «22건 · ₩8,391,809»가 넘친다 */
  .hh-queue { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hh-q { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; min-height: 0; padding: 12px 14px; }
  .hh-q-t { flex: 1; }
  .hh-q-sub { flex-basis: 100%; }
}
.calendar-view-modes,
.calendar-period-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.calendar-period-nav { padding: 4px; background: var(--bg-main); border-radius: 10px; }
.calendar-nav-button,
.calendar-view-button,
#dashCalViewMode #calCopyModeBtn {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-main);
  font-size: var(--fs-base);
  font-weight: 700;
}
.calendar-view-button.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.calendar-nav-button:focus-visible,
.calendar-view-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#dashCalMonthDisplay { font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
.meeting-form-row,
.meeting-outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.meeting-outcomes { grid-template-columns: minmax(0, 1fr); align-items: start; }
.meeting-outcome-card { background: #fff; border: 1px solid var(--doc-border); border-radius: 16px; padding: 16px; }
.meeting-outcome-heading { margin: -16px -16px 16px; padding: 12px 16px; border-radius: 15px 15px 0 0; }
.meeting-outcome-actions { display: grid; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--doc-border); }
.meeting-viewer-body > * { flex-shrink: 0; min-width: 0; }
.meeting-viewer-body { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 16px; padding: 20px; overflow-y: auto; }
.meeting-section-label { font-size: var(--fs-base); font-weight: 800; }
.meeting-transcribe > summary { min-height: 44px; padding: 12px 16px; cursor: pointer; color: #5b21b6; font-size: var(--fs-base); font-weight: 700; }
.meeting-transcribe > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.meeting-transcribe-body { padding: 0 16px 16px; }
#meetingViewerModal .meeting-transcribe p,
#meetingViewerModal #mvRecStatus,
#meetingViewerModal #mvActionsTodoNote,
#meetingViewerModal #mvActionsWbsNote { font-size: var(--fs-base); line-height: 1.6; }
#meetingViewerModal #mvRecStatus { margin-left: 8px; }
#meetingViewerModal button,
#meetingModal button { min-height: 44px; }
#meetingModal input:not([type="hidden"]),
#meetingModal select { min-height: 44px; }
#meetingViewerModal button[aria-label="닫기"],
#meetingModal button[aria-label="닫기"] { min-width: 44px; }
#meetingViewerModal textarea { font-size: var(--fs-body); }
#meetingViewerModal #mvHeader { padding: 20px; border-radius: 16px; }
#meetingViewerModal #mvHeader > div { flex-wrap: wrap; gap: 12px; }
#meetingViewerModal #mvBadgeProj { font-size: var(--fs-base); }
#meetingViewerModal #mvHeader .text-xs { font-size: var(--fs-base); }
@media screen {
  #view-wbs #wbsTable { min-width: 1080px; table-layout: fixed; }
  #view-wbs #wbsTable th { white-space: normal; }
  #view-wbs #wbsTable th:nth-child(9) { white-space: nowrap; padding-left: 2px; padding-right: 2px; }
  #view-wbs #wbsTable td:nth-child(4),
  #view-wbs #wbsTable td:nth-child(5) { min-width: 145px; }
}
@media (max-width: 768px) {
  #attendWorkspaceTabs { flex-wrap: nowrap; overflow-x: auto; padding: 3px 3px 8px; }
  #attendWorkspaceTabs button { flex-shrink: 0; }
  #attendTodayBalance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #attendTodayBalance > div { min-width: 0; }
  #quoteAuxActions > .flex { width: 100%; }
  #view-expense .expense-payment-status { padding: 12px; }
  .meeting-form-row,
  .meeting-outcomes { grid-template-columns: minmax(0, 1fr); }
  .meeting-viewer-body { padding: 12px; }
  #meetingModal input,
  #meetingModal select,
  #meetingModal textarea,
  #meetingViewerModal textarea { font-size: 16px; }
  #meetingModal .p-6 { padding: 16px; }
  #meetingViewerModal #mvHeader { padding: 16px; }
}
@media print {
  .workspace-tools { display: none !important; }
}
/* 🏠 홈 «경영 한눈에»(관리자, 2026-11-01 시안 B) — home-widgets.js renderHomeCeo */
.home-ceo { padding: 18px 20px; border: 1px solid var(--doc-border); border-radius: 16px; background: var(--card-bg); }
.home-ceo-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.home-ceo-h h3 { font-size: var(--fs-title); font-weight: 900; }
.home-ceo-note { color: var(--text-sub); font-size: var(--fs-meta); }
.home-ceo-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.home-ceo-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid var(--doc-border); border-radius: 12px; }
.home-ceo-kpi-l, .home-ceo-kpi small { color: var(--text-sub); font-size: var(--fs-meta); overflow-wrap: anywhere; }
.home-ceo-kpi b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.home-ceo-kpi.is-red b { color: #dc2626; }
.home-ceo-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, .9fr) 64px 64px minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 8px; width: 100%;
  min-height: 52px; padding: 8px 6px; border: 0; border-top: 1px solid #f1f5f9; background: none; text-align: left; cursor: pointer; color: var(--text-main); }
.home-ceo-row:hover { background: #f8fafc; }
.home-ceo-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.home-ceo-row-h { min-height: 32px; cursor: default; color: var(--text-sub); font-size: var(--fs-meta); border-top: 0; border-bottom: 1px solid var(--doc-border); }
.home-ceo-row-h:hover { background: none; }
.home-ceo-name { display: flex; flex-direction: column; min-width: 0; }
.home-ceo-name b { font-weight: 800; word-break: keep-all; overflow-wrap: anywhere; }
.home-ceo-name small, .home-ceo-pm { color: var(--text-sub); font-size: var(--fs-meta); }
.home-ceo-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-ceo-num.is-mute { color: var(--text-sub); font-size: var(--fs-meta); white-space: normal; }
.home-ceo-sig { display: flex; flex-wrap: wrap; gap: 4px; }
.home-ceo-chip { font-style: normal; font-size: var(--fs-badge); font-weight: 800; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.home-ceo-chip.is-red { background: #fee2e2; color: #b91c1c; } .home-ceo-chip.is-amber { background: #fef3c7; color: #92400e; } .home-ceo-chip.is-green { background: #d1fae5; color: #047857; }
.home-ceo-empty { padding: 12px 6px; color: var(--text-sub); font-size: var(--fs-meta); }
@media (max-width: 900px) {
  .home-ceo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-ceo-row-h { display: none; }
  .home-ceo-row { grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row; row-gap: 4px; }
  .home-ceo-row > .home-ceo-name { grid-column: 1 / -1; }
  .home-ceo-row > .home-ceo-pm, .home-ceo-row > .home-ceo-num { display: inline; }
  .home-ceo-row > .home-ceo-num::before { color: var(--text-sub); font-size: var(--fs-meta); margin-right: 4px; }
  .home-ceo-row > .home-ceo-num:nth-child(3)::before { content: '일정'; } .home-ceo-row > .home-ceo-num:nth-child(4)::before { content: '수금'; } .home-ceo-row > .home-ceo-num:nth-child(5)::before { content: '내수율'; }
  .home-ceo-row > .home-ceo-sig { grid-column: 1 / -1; }
}

/* 회의록에만 적용: 공용 패널의 뒤로 버튼은 그대로 쓰고 중복 닫기 버튼은 감춘다. */
body:has(#meetingViewerModal:not(.hidden)) #rightPanelTopbar .rp-tb-close { display: none; }
#meetingViewerModal { padding: 56px 0 0 !important; overflow: hidden; }
#meetingViewerModal > div, #meetingViewerModal .meeting-viewer-body { height: 100%; }
.meeting-record-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.meeting-record-actions button { flex: 1 1 auto; min-height: 44px; padding: 10px 12px; border: 1px solid #c4b5fd; border-radius: 12px; font-size: var(--fs-base); font-weight: 800; }
.meeting-record-primary { background: #7c3aed; color: #fff; }
.meeting-record-secondary { background: #fff; color: #6d28d9; }
.meeting-record-help { margin-top: 8px; color: #6d28d9; }
.meeting-content-toggle { display: block; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #2563eb; font-size: var(--fs-base); font-weight: 800; }
.meeting-content-toggle[hidden] { display: none; }

/* 2026-11-03 폰 정리: 기존 PC 배치와 769~900px 표 규칙은 유지한다. */
.project-save-short, .project-back-short, .issue-mobile-card { display: none; }
.quote-list-filters, .todo-view-segment { display: contents; }
@media screen and (max-width: 768px) {
  /* 왼쪽 손잡이를 상단의 예약된 44px 칸으로 이동한다. */
  #appTopbar { padding-left: 48px !important; }
  #appTopbar .topbar-logo, #appTopbar .topbar-left > .w-px { display: none; }
  #appTopbar .topbar-left { flex: 1; min-width: 0; overflow: hidden; }
  #appTopbar .topbar-sections {
    min-width: 0; max-width: 100%; overflow-x: auto; flex-wrap: nowrap;
    padding-right: 22px; scroll-padding-inline: 10px 22px;
    mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent);
  }
  #appTopbar .topbar-section-btn { min-width: 44px; min-height: 44px; font-size: var(--fs-base); }
  #appTopbar .mobile-topbar-right { flex: 0 0 auto; margin-left: 4px; padding-right: 0; }
  #appTopbar .mobile-topbar-icon { width: 44px; height: 44px; }
  body.compact-sidebar #leftPanelHandle {
    top: 4px; left: 2px; width: 44px; height: 44px; z-index: 41;
    border-radius: 10px; background: #f1f5f9; color: #475569; font-size: var(--fs-title);
  }
  .project-mobile-header { margin-bottom: 4px !important; padding: 0 !important; }
  .project-mobile-header > :first-child { display: none; }
  .project-mobile-header #topbarActionsWrapper { width: 100%; min-width: 0; }
  .project-mobile-header #topbarActions {
    display: flex; align-items: center; width: 100%; min-width: 0; gap: 6px; flex-wrap: nowrap;
  }
  .project-mobile-header #btnReturnWorkspaceBoardV31 { order: 0; flex-shrink: 0; }
  #projectMobileName { order: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-title); font-weight: 800; }
  .project-mobile-header .project-save-button { order: 2; flex-shrink: 0; }
  .project-mobile-header #topbarActions button { min-width: 44px; min-height: 44px; font-size: var(--fs-meta) !important; }
  .project-mobile-header .project-save-long, .project-mobile-header .project-back-long { display: none; }
  .project-mobile-header .project-save-short, .project-mobile-header .project-back-short { display: inline; }
  #projectMobileMore { position: relative; order: 3; flex-shrink: 0; }
  #projectMobileMore > summary { display: grid; place-items: center; width: 44px; min-height: 44px; cursor: pointer; list-style: none; border: 1px solid #e2e8f0; border-radius: 8px; }
  #projectMobileMore > summary::-webkit-details-marker { display: none; }
  .project-mobile-extra { position: absolute; right: 0; top: 100%; z-index: 45; display: flex; flex-direction: column; gap: 8px; padding: 10px; width: max-content; max-width: calc(100vw - 24px); max-height: 50vh; overflow: auto; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px #0f172a1a; }
  #projectContextStrip { margin: 0 0 10px; padding: 6px 10px; border-radius: 10px; }
  #projectContextStrip .pcs-title, #projectContextStrip .pcs-actions { display: none; }
  #projectContextStrip .pcs-main { width: 100%; min-width: 0; }
  #projectContextStrip .pcs-meta { margin: 0; display: flex; flex-wrap: nowrap; align-items: center; overflow: hidden; gap: 8px; }
  #projectContextStrip .pcs-chip { display: block; flex: 0 1 auto; min-width: 0; padding: 0; border: 0; background: transparent; font-size: var(--fs-badge); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #projectContextStrip .pcs-save { order: -1; flex-shrink: 0; }
  #projectContextStrip .pcs-chip[hidden] { display: none; }

  /* 카드로 바꾸는 두 표만 지정한다. tbody block은 카드 폭을 보존한다. */
  body:not(.pdf-exporting) #contractsTable table,
  body:not(.pdf-exporting) #view-issues .doc-table { display: block !important; width: 100%; min-width: 0 !important; overflow: visible !important; }
  body:not(.pdf-exporting) #contractsTable thead,
  body:not(.pdf-exporting) #view-issues .doc-table thead,
  body:not(.pdf-exporting) #view-issues .doc-table colgroup { display: none; }
  body:not(.pdf-exporting) #contractsTable tbody,
  body:not(.pdf-exporting) #issueBody { display: block; width: 100%; }
  body:not(.pdf-exporting) #contractsTable tbody > tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px;
    padding: 12px; margin-bottom: 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
  }
  body:not(.pdf-exporting) #contractsTable td { display: block; min-width: 0; padding: 0 !important; border: 0; white-space: normal !important; overflow-wrap: anywhere; }
  body:not(.pdf-exporting) #contractsTable td * { white-space: normal !important; overflow-wrap: anywhere; }
  body:not(.pdf-exporting) #contractsTable td:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  body:not(.pdf-exporting) #contractsTable td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  body:not(.pdf-exporting) #contractsTable td:nth-child(3) { grid-column: 2; grid-row: 3; text-align: right; align-self: center; font-weight: 800; }
  body:not(.pdf-exporting) #contractsTable td:nth-child(4) { grid-column: 1 / -1; grid-row: 4; text-align: left; }
  body:not(.pdf-exporting) #contractsTable td:nth-child(4) > div { display: inline; }
  body:not(.pdf-exporting) #contractsTable td:nth-child(5) { grid-column: 1; grid-row: 3; text-align: left; }
  body:not(.pdf-exporting) #issueBody > tr { display: block; margin-bottom: 10px; border: 1px solid #e2e8f0; border-radius: 12px; }
  body:not(.pdf-exporting) #issueBody > tr > td:not(.issue-mobile-card):not([colspan]) { display: none; }
  body:not(.pdf-exporting) #issueBody > tr > .issue-mobile-card { display: block; width: 100%; padding: 12px !important; white-space: normal !important; text-align: left; }
  body:not(.pdf-exporting) #issueBody > tr > td[colspan] { display: block; width: 100%; white-space: normal !important; }
  #issueBody .issue-mobile-card * { white-space: normal !important; overflow-wrap: anywhere; }
  .issue-mobile-kind { display: inline-block; padding: 3px 8px; border-radius: 8px; background: #eef2ff; color: #4338ca; font-weight: 700; font-size: var(--fs-badge); }
  .issue-mobile-title { display: block; width: 100%; min-height: 44px; text-align: left; font-weight: 700; font-size: var(--fs-body); }
  .issue-mobile-title:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
  .issue-mobile-meta { margin-top: 4px; line-height: 1.6; color: #64748b; font-size: var(--fs-meta); }

  #attendWorkspaceTabs { padding-right: 24px; scroll-padding-right: 24px; mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); }
  #attendWorkspaceTabs > button { min-height: 44px; }
  #global-assets .assets-navigation { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-right: 20px; mask-image: linear-gradient(to right, #000 calc(100% - 14px), transparent); }
  #global-assets .assets-navigation .inventory-tabs { display: flex; flex-wrap: nowrap; width: auto; flex-shrink: 0; }
  #global-assets .assets-navigation button { flex: 0 0 auto; white-space: nowrap; min-height: 44px; }

  #global-quotelist .quote-list-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 8px; }
  #global-quotelist #quoteListSearch { grid-column: 1 / -1; width: 100%; min-width: 0; }
  #global-quotelist .quote-list-filters { display: flex; min-width: 0; gap: 8px; overflow-x: auto; padding-right: 12px; }
  #global-quotelist .quote-list-filters > select { flex: 0 0 auto; width: auto; max-width: 180px; }
  #global-quotelist .quote-list-tools input, #global-quotelist .quote-list-tools select { min-height: 44px; font-size: var(--fs-title); }
  #global-quotelist .quote-list-tools > button { min-width: 44px; min-height: 44px; padding-inline: 8px; }
  #global-todo .todo-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  #global-todo .todo-heading { grid-column: 1; grid-row: 1; min-width: 0; }
  #global-todo .todo-tools { display: contents; }
  #global-todo .todo-add { grid-column: 2; grid-row: 1; min-height: 44px; }
  #global-todo #todoSearch { grid-column: 1 / -1; width: 100%; }
  #global-todo #todoProjectFilter, #global-todo #todoMemberFilter { min-width: 0; width: 100%; }
  #global-todo .todo-view-segment { grid-column: 1 / -1; display: flex; gap: 0; width: 100%; border-radius: 12px; background: #f1f5f9; }
  #global-todo #todoViewToggle { display: contents; }
  #global-todo .todo-view-segment button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 2px; white-space: nowrap; }
  #global-todo .todo-tools > input, #global-todo .todo-tools > select { min-height: 44px; font-size: var(--fs-title); }
}

/* 폰 문서 편집: 저장·계산용 DOM과 가로 스크롤 표의 열 배치는 유지한다. */
@media screen and (max-width: 768px) {
  /* «◀» 손잡이는 화면 가운데 오른쪽 끝에서 카드를 덮었다. 오른쪽만 비우면 화면이 왼쪽으로 쏠린다(2026-11-03 사장님 지적)
     → 좌우 여백은 그대로 두고 손잡이를 아래 결재 띠 옆 오른쪽 아래 버튼으로 옮긴다. 본문 끝은 그만큼 비운다. */
  body:not(.pdf-exporting) :is(#view-estimate, #view-quote, #view-expense) {
    box-sizing: border-box;
    min-width: 0;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  #rightPanelHandle {
    top: auto; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none;
    width: 52px; min-width: 52px; height: 52px; min-height: 52px;
    border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  }
  body.right-panel-open #rightPanelHandle { display: none !important; }
  /* 결재 띠가 있으면 손잡이 자리만큼 띠 오른쪽을 비운다 */
  body:has(#rightPanelHandle.active) .view-section.active .apv-bar-act { right: 76px; }

  body:not(.pdf-exporting) :is(#view-estimate, #view-quote, #view-expense) :is(button, summary) {
    min-width: 44px !important;
    min-height: 44px !important;
    touch-action: manipulation;
  }
  /* 행 입력도 높이는 확보하되 표의 열 폭·글자 크기·가로 스크롤은 유지한다. */
  body:not(.pdf-exporting) :is(#view-estimate, #view-quote, #view-expense)
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
    min-height: 44px !important;
  }
  body:not(.pdf-exporting) :is(#view-estimate, #view-quote, #view-expense)
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea):not(#estimateTable *, #quoteEditTable *) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  body:not(.pdf-exporting) :is(#view-estimate, #view-quote, #view-expense)
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea):not(#estimateTable *, #quoteEditTable *, #quoteReceiverCompany, .est-int-input) {
    font-size: 16px !important;
  }
  body:not(.pdf-exporting) :is(#view-estimate, #view-quote, #view-expense)
  label:not([hidden]):not(.hidden):has(> :is(input[type="checkbox"], input[type="radio"])) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
  }
  :is(#estTabInfo, #expTabInfo) > div { min-width: 0; max-width: 100%; }
  :is(#estTabInfo, #expTabInfo) input { min-width: 0; }
  :is(#estTabInfo, #expTabInfo) input[type="date"] { flex: 1 1 auto; }
  :is(#estTabInfo, #expTabInfo) label { margin-left: 0; }

  /* 행 안 아이콘도 이웃과 떨어진 36px 영역을 갖는다. 표의 display/열 폭은 바꾸지 않는다. */
  body:not(.pdf-exporting) :is(#estimateTable, #quoteEditTable) button {
    min-width: 36px !important;
    min-height: 36px !important;
    margin: 2px;
  }
  #quotePricingCard .quote-pricing-row { flex-wrap: wrap; gap: 8px; }
  #quotePricingCard :is(input, select) { min-width: 0; }

  /* 예전 20px 높이 규칙을 푼다. 지출 카드의 세로 행은 내용 높이로 늘어난다. */
  body:not(.pdf-exporting) #view-expense #expBody tr.exp-row {
    padding: 12px !important;
    gap: 8px !important;
  }
  body:not(.pdf-exporting) #view-expense #expBody tr.exp-row td :is(input, select, textarea) {
    min-height: 44px !important;
    height: auto !important;
    max-height: none !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  body:not(.pdf-exporting) #view-expense #expBody tr.exp-row td input[type="checkbox"] {
    width: 44px !important;
    height: 44px !important;
  }
  #view-expense #expBody tr.exp-row > td.exp-ready-cell { min-height: 44px !important; }
  #expenseEntryActions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; text-align: left; }
  #expenseEntryActions > button { flex: 1 1 120px; white-space: normal; }

  /* 지출 상세는 body 아래 별도 서랍이므로 문서 선택자와 분리한다. */
  .exp-drawer :is(button, .exp-dw-pay) { min-width: 44px; min-height: 44px; }
  .exp-drawer .exp-dw-field :is(input, select, textarea) { min-height: 44px; }
  .exp-drawer-body { grid-template-columns: minmax(0, 1fr); }
  .exp-drawer-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* Mobile sweep 3 — common type floor (2026-11-03).
 * Paper previews and compact calendar cells keep their original scale.
 * No root token override: a paper must not inherit a mobile badge token. */
@media screen and (max-width: 768px) {
  body:not(.pdf-exporting) :is(
    #global-assets .assets-table th,
    .assets-secondary,
    .assets-photo-placeholder,
    .assets-status,
    .assets-empty .assets-empty-hint,
    .assets-photo-hint,
    .assets-tools .btn,
    .assets-section-help,
    .assets-field-help,
    .assets-editor-attachments .assets-photo-grid > p,
    .assets-history-list p,
    .assets-guide-role,
    [data-cal-root] .cal-day-event-period,
    [data-cal-root] .cal-day-event-worker,
    .cal-week-weekday,
    .cal-week-today,
    .cal-week-holiday,
    .cal-week-event-project,
    .cal-week-event-worker,
    .cal-week-empty,
    body.compact-sidebar .ctx-nav-item .todo-badge-style,
    body.compact-sidebar .ctx-nav-item [class*="Badge"],
    #myScheduleWidget .ms-list-item,
    body.compact-sidebar #leftPanelHandle,
    .est-workspace-label,
    .est-workspace-state p,
    #estListView .est-document-open > span:last-child,
    .est-int-head span,
    .est-int-note,
    .est-int-paid-detail,
    #estimateTable thead th,
    .quote-table thead th,
    #view-estimate .nae-unit-btn,
    .version-list-number,
    .version-list-meta,
    .version-list-difference,
    .version-list-chip,
    .version-list-menu-note,
    .fin-apv-count,
    .fin-trs-summary-basis,
    #finDashboardContainer .fin-overview-meta,
    #finDashboardContainer .fin-overview-proj-table .fop-status span,
    .trs-chip,
    #financeTreasuryContainer .trs-m-date,
    #financeTreasuryContainer .trs-m-cat,
    .ecs-note,
    .ecf-head p,
    .ecf-ch span,
    .ecf-f > label,
    .ecf-note,
    .ecf-chip,
    .ecf-dot,
    .ecf-step span,
    .ti-q-head,
    .ti-q-age,
    .ti-q-t2,
    .ti-q-tag,
    .ti-q-date,
    .ti-l-head span,
    .ti-l-grp,
    .ti-l-item,
    .ti-l-t2,
    .ti-l-amt small,
    .ti-l-foot,
    .ti-chip,
    .ti-drawer-kicker,
    .ti-dw-label,
    .ti-dw-note,
    .ti-dw-sub,
    .ti-dw-mono,
    .ti-dw-check,
    .ti-sync-info,
    .ti-more-label,
    .ti-sync-note,
    .ti-sync .fin-tax-guide,
    .ti-l-state,
    .ec-kpi-label,
    .ec-kpi-go,
    .ec-all,
    .ec-group,
    .ec-t2,
    .ec-chip,
    .ec-btn,
    .ec-note,
    .fin-apv-section-count,
    .fin-apv-card-status,
    .fin-apv-card-summary,
    .fin-apv-card-meta,
    .trsd-kpi .fin-trs-summary-label,
    .trsd-note,
    .trsd-sec-note,
    .trsd-sec-btn,
    .trsd-q-t,
    .trsd-q-sub,
    .trsd-q-act,
    .trsd-t2,
    .trsd-badge,
    .ir-pill,
    .ir-empty,
    .ir-group-head span + span,
    .ir-item,
    .ir-t2,
    .ir-steps,
    .ir-caret,
    .ir-st,
    .apvn-route-steps span,
    .apvn-route small,
    .apvn-references,
    .apvn-ref-add,
    .apvn-leave-notice,
    .apvd-step,
    .fin3-note,
    .fin3-kpi-l,
    .fin3-kpi-s,
    .fin3-basis,
    .fin3-thead th,
    .pipe-grp-amt,
    .pipe-grp-sub,
    .pipe-stage-chip,
    .ccd-tag,
    .ccd-hold,
    .ccd-meta,
    .ccd-chip,
    .ccd-memo,
    .ccd-link,
    .ccd-note,
    .apvn-half-sub,
    .apvn-half-hint,
    .apvn-half-prompt,
    #projectListContainer .pl-budget-summary,
    #todoSummary .todo-summary-note,
    .bids-list-layout .bids-list-status,
    .meeting-card-type,
    .meeting-card-sub,
    .meeting-card-stat,
    .meeting-pane-empty,
    .meeting-pane-meta,
    .meeting-pane-who,
    .meeting-menu-description,
    .mr-muted,
    .mr-error,
    .mr-kind,
    .mr-card details,
    .msgr-video-meta,
    .msgr-video-card > .msgr-video-status,
    html.honest-native-desktop #saveStatus,
    .native-install-current,
    .native-install-download span,
    .native-install-note,
    #projectContextStrip .pcs-chip,
    #projectContextStrip .pcs-btn,
    .mand-clock-bypass,
    .quote-th-label,
    .quote-input-sm,
    .quote-input-xs,
    .quote-grand-word,
    .seal-text-fallback,
    .proposal-badge,
    .proposal-btn-green,
    .proposal-btn-purple,
    .proposal-btn-red,
    .proposal-btn-ghost,
    .att-mobile-row .amr-date,
    .att-mobile-row .amr-time,
    .fin-est-list-table td,
    .fin-exp-list-table td,
    .fin-quote-list-table td,
    #estModeBar .est-mode-btn,
    #estModeBar #estTplSaveBtn,
    #estModeBar #estTplLoadBtn,
    #topbarActionsWrapper .btn,
    #topbarActions .btn,
    .quote-receiver-supplier > div:first-child > div.border-b-2,
    .quote-receiver-supplier input[type="text"],
    .quote-receiver-supplier input[type="date"],
    .quote-receiver-supplier #quoteReceiverBizNum,
    .quote-receiver-supplier #quoteReceiverAddr,
    .quote-receiver-supplier #quoteReceiverEmail,
    .quote-receiver-supplier table.w-full td,
    .quote-supplier-table th,
    .quote-supplier-table td,
    .quote-supplier-table input,
    .quote-th-vertical,
    #rightPanelTopbar .rp-tb-action,
    #rightPanelFooter .rp-fb-status,
    #rightPanelFooter .rp-fb-status .rp-fb-badge,
    #rightPanelFooter .rp-fb-save,
    .right-slide-panel .rp-meta-label,
    .right-slide-panel .fin-est-list-table td,
    .right-slide-panel .fin-quote-list-table td,
    .right-slide-panel .fin-exp-list-table td,
    #clockWidget #clockWidgetStatus,
    #estimateTable,
    #estimateTable td input,
    #estimateTable td select,
    .quote-table,
    .quote-table td input,
    #view-estimate #summarySupply,
    #view-estimate table.w-full td,
    #view-estimate table.w-full th,
    #expBody tr.exp-row td,
    #expBody tr.exp-row td:nth-child(4),
    #expBody tr.exp-row td:nth-child(10),
    #expBody tr.exp-row td input,
    #expBody tr.exp-row td textarea,
    #expBody tr.exp-row td select,
    #expBody tr.exp-row td button,
    #expBody tr.exp-row td:nth-child(5) textarea,
    .fop-line2,
    .trs-m-date,
    .trs-m-cat,
    .trs-m-txt,
    .gg-note,
    .gg-meta-txt,
    .gg-b,
    .gg-legend,
    .gg-table thead th,
    .gg-table thead th.gg-dnum,
    .gg-table tbody td.gg-lft,
    .gg-table tbody td.gg-lft.gg-c-date,
    .gg-table tbody td.gg-lft.gg-c-days,
    .gg-table tbody td.gg-lft.gg-c-owner,
    .gg-table tbody td.gg-lft.gg-c-client,
    .gg-caret,
    .gg-badge-tmp,
    .gg-bar,
    .gg-bar.gg-bsub,
    .gg-rb,
    .gg-foot,
    .gg-f > span,
    .gg-err,
    .gg-vt,
    .gg-chkwrap,
    .gg-compact .gg-table thead th.gg-dnum,
    .gg-compact .gg-bar,
    .gg-compact .gg-table tbody td.gg-lft,
    .gg-compact .gg-empty,
    .gg-compact .gg-table tbody td.gg-lft.gg-c-date,
    .gg-badge-won,
    .gg-badge-unsaved,
    .gg-table thead th.gg-wcol,
    .gg-li,
    .gg-li-sub,
    .gg-li-dday,
    .gg-li-cl,
    .gg-li-date,
    .gg-noperiod,
    .gg-badge-noperiod,
    .gg-inline-date,
    .gg-inline-task,
    .gg-addbtn,
    .gg-sc,
    .gg-table thead th.gg-mcol,
    .gg-pen,
    .gg-divlabel,
    .gg-lidiv,
    .gg-ph,
    .gg-cellpen,
    .gg-bkicon,
    .gg-badge-prop,
    .msgr-phase,
    .msgr-roomav,
    .msgr-ibtxt,
    .msgr-ibgo,
    .msgr-ibx,
    .msgr-theme-control p,
    .msgr-theme-menu,
    .msgr-raillabel,
    .msgr-av-rail,
    .msgr-av,
    .msgr-av-sm,
    .msgr-fixitem,
    .msgr-acchead,
    .msgr-accic,
    .msgr-room-cnt,
    .msgr-room-client,
    .msgr-room-lock,
    .msgr-room-at,
    .msgr-room-last,
    .msgr-room-by,
    .msgr-unread,
    .msgr-tab,
    .msgr-tabbadge,
    .msgr-daysep span,
    .msgr-orgbadge,
    .msgr-guest,
    .msgr-msgat,
    .msgr-reaction,
    .msgr-reactn,
    .msgr-threadn,
    .msgr-threadat,
    .msgr-readmark,
    .msgr-secrethead,
    .msgr-secretnote,
    .msgr-tool,
    .msgr-segbtn,
    .msgr-scopebar .msgr-segbtn,
    .msgr-scopehint,
    .msgr-sidetab,
    .msgr-filesearch,
    .msgr-filechip,
    .msgr-filedate,
    .msgr-filename,
    .msgr-filemeta,
    .msgr-aihead,
    .msgr-aitone,
    .msgr-aix,
    .msgr-aiwarn,
    .msgr-aiblock,
    .msgr-aisub,
    .msgr-aiapply,
    .msgr-aiagain,
    .msgr-ainote,
    .msgr-aiundo,
    .msgr-schedempty,
    .msgr-filebtn,
    .msgr-filenote,
    .msgr-scanbtn,
    .msgr-mentionhead,
    .msgr-mentionname,
    .msgr-mentionrole,
    .msgr-mentionempty,
    .msgr-invoksub,
    .msgr-invurl,
    .msgr-invpinlabel,
    .msgr-invpinwarn,
    .msgr-kick,
    .msgr-tahit,
    .msgr-lightcap,
    .msgr-presence,
    .msgr-sidemeta,
    .msgr-sidedesc,
    .msgr-cardhead,
    .msgr-bmby,
    .msgr-bmage,
    .msgr-bmtext,
    .msgr-groupname,
    .msgr-groupcnt,
    .msgr-invite,
    .msgr-personrole,
    .msgr-level,
    .msgr-root .msgr-segbtn,
    .msgr-empty,
    .msgr-emptysub,
    .msgr-fl,
    .msgr-fh,
    .msgr-chip,
    .msgr-dlgerr,
    .msgr-btn,
    .msgr-invres .msgr-link,
    .msgr-file,
    .msgr-filedl,
    .msgr-filesz,
    .msgr-temprow,
    .msgr-olderbtn,
    .msgr-sys span,
    .msgr-threadsub,
    .msgr-threadsep,
    .msgr-threadfollow,
    .msgr-threadbc,
    .msgr-fromthread,
    .msgr-parentbartxt,
    .msgr-parentbargo,
    .msgr-room-parent,
    .msgr-carecnt,
    .msgr-bmdone,
    .msgr-menuitem,
    .msgr-menunote,
    .msgr-tempaxis,
    .msgr-tempmood,
    .msgr-tempdeg,
    .msgr-tempnote,
    .msgr-tabx,
    .msgr-tabdotunread,
    .msgr-quoteby,
    .msgr-carequote-text,
    .msgr-quotego,
    .msgr-pinmain,
    .msgr-pinx,
    .msgr-ufilter,
    .msgr-room-pin,
    .msgr-room-mute,
    .msgr-datechip,
    .msgr-edited,
    .msgr-clihint,
    .msgr-clirow,
    .msgr-clirow.is-head,
    .msgr-clip-sechead .msgr-btn,
    .msgr-clip-sectitle,
    .msgr-clip-secsub,
    .msgr-clip-memo,
    .msgr-clip-alabel,
    .msgr-clip-achip,
    .msgr-clip-ax,
    .msgr-clip-aempty,
    .msgr-clip-aadd,
    .msgr-clip-roomname,
    .msgr-clip-roomat,
    .msgr-homechip,
    .msgr-homechipn,
    .msgr-carerow-room,
    .msgr-carerow-txt,
    .msgr-acccaret,
    .msgr-accunread,
    .msgr-notibadge,
    .msgr-notiread,
    .msgr-notiall,
    body.msgr-popout .msgr-phase,
    .msgr-deleted,
    .msgr-typing,
    .msgr-bmdue,
    .msgr-bmdueinput,
    .msgr-overdue,
    .msgr-invfilechip,
    .msgr-invfilex,
    .msgr-botbadge,
    .msgr-bottitle,
    .msgr-botat,
    .msgr-botbody,
    .msgr-caremsg .msgr-caretext,
    .msgr-av-xs,
    .msgr-quotefoot,
    .msgr-team-stat-label,
    .msgr-team-stat-detail,
    .msgr-teamme,
    .msgr-teamrole,
    .msgr-clip-dbval,
    .msgr-phonechip,
    .msgr-phone-tab,
    .msgr-phone-fixed .msgr-room-bot,
    .msgr-phone-badge,
    .msgr-swipe-actions button,
    .msgr-phone-undo,
    .msgr-accname,
    .msgr-sheetquote,
    .msgr-roomheadcli,
    html.msgr-chat-window .msgr-roomheadcli,
    .msgr-quote,
    .msgr-quotetext,
    .msgr-clisec,
    .msgr-clisec-car,
    .msgr-toolitem-hint,
    .msgr-company-state,
    .msgr-company-steps,
    .msgr-cli-chips .msgr-btn,
    .msgr-cli-logo,
    .msgr-cli-summary,
    .msgr-cli-count,
    .msgr-cli-badge,
    .msgr-cli-status-note,
    .msgr-cli-warning,
    .msgr-cli-persontext small,
    .msgr-cli-table th,
    .msgr-cli-table-group .msgr-clisec,
    .ps-notice,
    .ps-note small,
    .ps-field,
    .ps-attachments input,
    .pb-metric span,
    .pb-review-kind,
    .closeout-badge,
    .quote-workflow-heading p,
    .quote-review-status,
    .quote-review-details dt,
    .quote-review-totals dt,
    .quote-review-note,
    .topbar-section-btn,
    .ctx-section-header,
    .ctx-nav-item,
    .ctx-more-toggle,
    .ctx-more-toggle .cmt-chev,
    .nav-item,
    .btn-new-tab,
    .event-modal label,
    .est-tooltip .est-tip,
    .history-item,
    .gantt-bar,
    .gantt-header-cell,
    .role-badge,
    .my-sched-toggle,
    .est-cat-btn,
    .est-cat-dropdown div,
    #cmdPalette .cmd-item .cmd-sub,
    #cmdPalette .cmd-item .cmd-kbd,
    #cmdPalette .cmd-group-label,
    .settings-scope,
    .settings-field small,
    .settings-hint,
    #companySettingsStatus,
    .settings-shortcuts small,
    .fab-item .fab-label,
    #clockWorkType,
    .ctx-section-header span.global-badge,
    .app-topbar .topbar-section-btn,
    .mob-sub-item,
    .folder-tab,
    .btn,
    .stat-card [class*="text-xs"],
    .stat-card [class*="text-[9px]"],
    .stat-card p,
    .proj-type-card .type-name,
    .proj-type-card .type-desc,
    .proj-type-badge,
    .widget-drag-handle,
    .widget-toggle-btn,
    .home-edit-done-bar,
    .ro-section-header,
    .bg-white.p-4.rounded-xl button,
    .global-tab,
    #ctx-project .v48-nav-group-toggle,
    .fin-nav-item,
    #financeSidebar,
    .naesu-table th,
    .naesu-table .nae-in,
    .naesu-table .nae-date,
    .naesu-table .nae-num,
    .naesu-table .nae-sub-label,
    .naesu-table .nae-bot-label,
    .naesu-table .nae-bot-desc,
    .nae-pct,
    .nae-disc-note,
    .naesu-table .nae-sub-add,
    .naesu-table .nae-empty-add,
    .naesu-table .nae-pre,
    .est-group-del,
    .est-price-order .est-orderprice-input,
    body.est-mode-internal .est-pay-chips-m .est-pay-chip,
    #view-plan .plan-head,
    #view-plan .plan-phase-meta,
    #view-plan .plan-sides button,
    #view-plan .plan-state,
    .plan-copy-tab,
    .plan-copy-del,
    .plan-copy-item span,
    #view-plan .plan-chip,
    #view-plan .plan-legend,
    #view-plan .plan-event-flag,
    #view-plan .plan-bar-tip,
    #view-plan .plan-week,
    .wbs-mcard-status,
    .wbs-mcard-meta,
    .select-search-group,
    .select-search-more,
    .pma-top,
    .pma-meta,
    .pma-count,
    .pma-hint,
    .pma-note,
    #view-expense .exp-sum-cell span,
    #view-expense .exp-sum-cell small,
    .exp-chip,
    .exp-drawer-kicker,
    .exp-dw-lock,
    .exp-dw-label,
    .exp-dw-note,
    .exp-dw-sum,
    .exp-dw-proof-state,
    .hh-date,
    .pl-chip,
    .pl-mine-toggle,
    .home-mine-chip,
    .home-todo-group,
    .hh-q-t,
    .hh-q-sub,
    .hh-link,
    .hh-wk-d,
    .hh-wk-s,
    .hh-row-go,
    .hh-empty,
    .home-ceo-note,
    .home-ceo-kpi-l,
    .home-ceo-kpi small,
    .home-ceo-row-h,
    .home-ceo-name small,
    .home-ceo-pm,
    .home-ceo-num.is-mute,
    .home-ceo-chip,
    .home-ceo-empty,
    .project-mobile-header #topbarActions button,
    .issue-mobile-kind,
    .issue-mobile-meta,
    .text-\[6px\],
    .text-\[7px\],
    .text-\[8px\],
    .text-\[9px\],
    .text-\[10px\],
    .text-\[11px\],
    .text-\[12px\],
    [style*="font-size:6px"],
    [style*="font-size: 6px"],
    [style*="font-size:7px"],
    [style*="font-size: 7px"],
    [style*="font-size:8px"],
    [style*="font-size: 8px"],
    [style*="font-size:8.5px"],
    [style*="font-size: 8.5px"],
    [style*="font-size:9px"],
    [style*="font-size: 9px"],
    [style*="font-size:9.5px"],
    [style*="font-size: 9.5px"],
    [style*="font-size:10px"],
    [style*="font-size: 10px"],
    [style*="font-size:10.5px"],
    [style*="font-size: 10.5px"],
    [style*="font-size:11px"],
    [style*="font-size: 11px"],
    [style*="font-size:11.5px"],
    [style*="font-size: 11.5px"],
    [style*="font-size:12px"],
    [style*="font-size: 12px"],
    .text-xs
  ):not(:where(.quote-paper, .quote-paper *, [data-print-paper], [data-print-paper] *, .cal-day, .cal-day *, .gantt-bar, .gantt-bar *, .gantt-header-cell, .gg-dnum, .gg-wcol, .gg-bar, .gg-bar *, .fc-daygrid-day-frame, .fc-daygrid-day-frame *)) { font-size: var(--mobile-type-floor, var(--fs-meta)) !important; }
  body:not(.pdf-exporting) :is(#global-assets .assets-inventory td, #finDashboardContainer .fin-overview-proj-table td, #financeTreasuryContainer .fin-trs-table tr.trs-open td[data-label], .fin-payroll-table td, .fin-ec-table td, .fin-trs-table td, .fin-vendor-table td, .fin-cashflow-table td, .fin-vat-table td, .fin-daily-table td, .fin-card-table td, .fin-budget-table td, .fin-rep-pnl-table td, .fin-rep-proj-table td, .fin-rep-recv-table td, .fin-overview-proj-table td, .fin-quote-list-table td, .fin-expenses-list-table td, .fin-att-table td, .fin-vendor-db-table td, .fin-client-db-table td, .fin-crew-table td, .fin-home-proj-table td, .fin-pipeline-quote-table td, .fin-trs-recent-table td, .fin-trs-vendor-table td, .fin-est-list-table td, .fin-exp-list-table td, .fin-pnl-cat-table td, .fin-pnl-inc-table td, .fin-trs-pnl-month-table td, .fin-trs-pnl-proj-table td, .fin-dashboard-bva-table td, .fin-trs-table tr.trs-open td[data-label], #expBody tr.exp-row.bg-red-50 > td.exp-ready-cell, .home-ceo-row > .home-ceo-num):not(:where(.quote-paper, .quote-paper *, [data-print-paper], [data-print-paper] *, .cal-day, .cal-day *, .gantt-bar, .gantt-bar *, .gantt-header-cell, .gg-dnum, .gg-wcol, .gg-bar, .gg-bar *, .fc-daygrid-day-frame, .fc-daygrid-day-frame *))::before { font-size: var(--mobile-type-floor, var(--fs-meta)) !important; }
  body:not(.pdf-exporting) :is(.est-price-order .est-orderprice-input):not(:where(.quote-paper, .quote-paper *, [data-print-paper], [data-print-paper] *, .cal-day, .cal-day *, .gantt-bar, .gantt-bar *, .gantt-header-cell, .gg-dnum, .gg-wcol, .gg-bar, .gg-bar *, .fc-daygrid-day-frame, .fc-daygrid-day-frame *))::placeholder { font-size: var(--mobile-type-floor, var(--fs-meta)) !important; }
  body:not(.pdf-exporting) :is(#expBody tr.exp-row > td:nth-child(13) > .exp-pay:not(:checked) + .exp-pay-flag, #expBody tr.exp-row > td.exp-ready-cell):not(:where(.quote-paper, .quote-paper *, [data-print-paper], [data-print-paper] *, .cal-day, .cal-day *, .gantt-bar, .gantt-bar *, .gantt-header-cell, .gg-dnum, .gg-wcol, .gg-bar, .gg-bar *, .fc-daygrid-day-frame, .fc-daygrid-day-frame *))::after { font-size: var(--mobile-type-floor, var(--fs-meta)) !important; }
  body:not(.pdf-exporting) :is(button, summary, [role="button"]):not(:where(.quote-paper, .quote-paper *, [data-print-paper], [data-print-paper] *, .cal-day, .cal-day *, .gantt-bar, .gantt-bar *, .gantt-header-cell, .gg-dnum, .gg-wcol, .gg-bar, .gg-bar *, .fc-daygrid-day-frame, .fc-daygrid-day-frame *)) { --mobile-type-floor: 13px; }
  body:not(.pdf-exporting) :is(input, select, textarea):not(:where(.quote-paper, .quote-paper *, [data-print-paper], [data-print-paper] *, .cal-day, .cal-day *, .gantt-bar, .gantt-bar *, .gantt-header-cell, .gg-dnum, .gg-wcol, .gg-bar, .gg-bar *, .fc-daygrid-day-frame, .fc-daygrid-day-frame *)) { --mobile-type-floor: var(--fs-title); }
  @layer base {
    body:not(.pdf-exporting) :is(button, summary, [role="button"]):not(:where(.quote-paper, .quote-paper *, [data-print-paper], [data-print-paper] *, .cal-day, .cal-day *, .gantt-bar, .gantt-bar *, .gantt-header-cell, .gg-dnum, .gg-wcol, .gg-bar, .gg-bar *, .fc-daygrid-day-frame, .fc-daygrid-day-frame *)) { font-size: max(13px, 1em); }
  }
}

/* Mobile sweep 3 — fields, one-level cards and explicit help disclosures. */
@media screen and (max-width: 768px) {
  body:not(.pdf-exporting) .mobile-field-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px !important;
  }
  body:not(.pdf-exporting) :is(#estTabInfo, #expTabInfo) { padding: 12px !important; }
  body:not(.pdf-exporting) .mobile-field {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 2px !important;
    min-width: 0;
  }
  body:not(.pdf-exporting) .mobile-field > :is(label, span):first-child { font-size: var(--fs-meta) !important; }
  body:not(.pdf-exporting) .mobile-field > :is(input, select, textarea) {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 44px;
    font-size: var(--fs-title) !important;
  }
  body:not(.pdf-exporting) .mobile-field-grid > :is(.ml-auto, label, .ecf-row-in, .mobile-field-wide) {
    grid-column: 1 / -1;
    margin-left: 0 !important;
  }
  body:not(.pdf-exporting) .mobile-field-grid > .ml-auto { justify-content: flex-end; flex-wrap: wrap; }
  body:not(.pdf-exporting) .mobile-field > label:not(:first-child) { min-height: 44px; flex-wrap: wrap; }
  body:not(.pdf-exporting) :is(#estTabInfo, #expTabInfo) > .ml-auto > span { display: inline; }

  body:not(.pdf-exporting) :is(#view-estimate, #view-quote, #view-expense) > :is(.mb-4, .mb-5, .mb-6) { margin-bottom: 8px !important; }
  body:not(.pdf-exporting) #view-estimate #estModeBar.est-workspace { padding: 10px 12px !important; gap: 8px; }
  body:not(.pdf-exporting) :is(.est-workspace-state, .exp-sum-cell, .exp-sum-total) {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px 10px !important;
  }
  body:not(.pdf-exporting) .est-workspace-state { background: #eff6ff; }
  body:not(.pdf-exporting) :is(.exp-sum-grid, #estWorkspaceStatus) { gap: 8px; }
  body:not(.pdf-exporting) #view-expense :is(.exp-sum-cell b, .exp-sum-total > b) {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* The older phone rule hid whole guides. Keep the title and its disclosure,
     while respecting the existing dismiss action's inline display:none. */
  body:not(.pdf-exporting) .mobile-help-banner:not([style*="display: none"]):not([style*="display:none"]) {
    display: block !important;
    padding: 8px 12px;
    margin-bottom: 8px !important;
  }
  /* Tailwind base has [hidden] display:none!important. Important declarations
     in a layer beat unlayered ones, so phone-only visibility must share base. */
  @layer base {
    body:not(.pdf-exporting) .mobile-help-toggle[hidden] { display: inline-flex !important; }
    body:not(.pdf-exporting) #projectContextStrip .pcs-mobile-summary[hidden] { display: block !important; }
  }
  body:not(.pdf-exporting) .mobile-help-toggle[hidden] {
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-width: 44px;
    min-height: 44px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  body:not(.pdf-exporting) .mobile-help-copy:not(.mobile-help-open) { display: none !important; }
  body:not(.pdf-exporting) .mobile-help-copy.mobile-help-open { display: block !important; }
  body:not(.pdf-exporting) #projectContextStrip .pcs-mobile-summary {
    width: 100%;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: #334155;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body:not(.pdf-exporting) #projectContextStrip .pcs-mobile-summary::after { content: ' ▾'; }
  body:not(.pdf-exporting) #projectContextStrip .pcs-mobile-summary[aria-expanded="true"]::after { content: ' ▴'; }
  body:not(.pdf-exporting) #projectContextStrip .pcs-meta { display: flex; flex-wrap: wrap; overflow: visible; gap: 4px 8px; }
  body:not(.pdf-exporting) #projectContextStrip .pcs-chip { white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; max-width: 100%; }
  body:not(.pdf-exporting) #projectContextStrip.pcs-mobile-collapsed .pcs-meta > .pcs-chip:not(.pcs-save) { display: none; }
  body:not(.pdf-exporting) #projectContextStrip .pcs-save { flex-basis: 100%; }
  body:not(.pdf-exporting) :is(.mobile-help-toggle, .pcs-mobile-summary):focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
}
