/* HQ-only: A's comparison workspace + B's priority queue.
   2026-10-13 — 현장 화면 규격(DESIGN.md)에 맞춘다: 강조 파랑 · 패널 10px/조작 6px 모서리 · 구획선은 옅게, 입력 칸 테두리는 진하게(조작 요소는 알아봐야 한다). */
#hqScreen {
    --hq-bg: #f5f6f8; --hq-surface: #fff; --hq-hover: var(--chip-neutral); --hq-row-hover: var(--ds-surface-hov);
    --hq-line: #e4e7eb; --hq-field-line: #cfd4da; --hq-text: #20252b; --hq-muted: #555e68;
    --hq-blue: var(--primary); --hq-accent-soft: #eef3fe; --hq-shadow: 0 1px 2px rgb(16 24 40 / 5%);
    flex-direction: column; height: 100dvh; background: var(--hq-bg); color: var(--hq-text);
    color-scheme: light; font: 16px/1.55 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}
#hqScreen *, #hqScreen *::before, #hqScreen *::after { box-sizing: border-box; letter-spacing: 0; }
#hqScreen .hq-view { flex: 1; min-height: 0; display: block; overflow: auto; width: 100%; height: 100%; }
#hqScreen button, #hqScreen input, #hqScreen select { font: inherit; color: inherit; min-height: 44px; border-radius: var(--ds-radius-input); }
#hqScreen button { cursor: pointer; background: transparent; border: 0; min-width: 44px; transition: background-color .15s ease, color .15s ease; }
#hqScreen button:hover:not(:disabled) { background: var(--hq-hover); }
#hqScreen button:disabled { cursor: default; opacity: .45; }
#hqScreen input, #hqScreen select { padding: 8px 12px; background: var(--hq-surface); border: 1px solid var(--hq-field-line); min-width: 0; max-width: 100%; }
#hqScreen :is(button,input,select):focus-visible { outline: 2px solid var(--hq-blue); outline-offset: 3px; }
#hqScreen :is(h1,h2,h3,h4,p) { margin: 0; }
#hqScreen h1 { font-size: 24px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
#hqScreen h2 { font-size: 18px; font-weight: 650; }
#hqScreen h3 { font-size: 16px; font-weight: 650; }
#hqScreen small { display: block; font-size: 14px; font-weight: 400; color: var(--hq-muted); }
#hqScreen .hqm-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#hqScreen .hqm-icon-btn { display: inline-flex; justify-content: center; align-items: center; width: 44px; min-width: 44px; padding: 0; }
#hqScreen .hqm-icon-btn[aria-pressed=true] { color: var(--hq-blue); background: var(--hq-accent-soft); }
#hqScreen .hqm-quiet { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hq-field-line); padding: 8px 12px; font-size: 14px; }
#hqScreen .hqm-muted, #hqScreen .hqm-range { color: var(--hq-muted); font-size: 14px; }
.hqm-shell { display: grid; grid-template-columns: 204px minmax(0,1fr); min-height: 100%; }
.hqm-sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; padding: 28px 14px 20px; background: var(--hq-surface); border-right: 1px solid var(--hq-line); color: var(--hq-text); }
.hqm-brand { font-size: 20px; font-weight: 700; padding: 0 10px; white-space: nowrap; }
.hqm-company { margin: 26px 10px 24px; padding-bottom: 24px; border-bottom: 1px solid var(--hq-line); }
.hqm-company strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.hqm-company span { display: block; font-size: 14px; color: var(--hq-muted); margin-top: 6px; }
.hqm-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
#hqScreen .hqm-sidebar nav button { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 48px; padding: 12px 14px; }
#hqScreen .hqm-sidebar nav button[aria-current=page] { color: var(--hq-blue); background: var(--hq-accent-soft); font-weight: 700; }
.hqm-sidebar-foot { margin-top: auto; padding: 28px 10px 0; display: flex; flex-direction: column; align-items: flex-start; color: var(--hq-muted); font-size: 14px; }
#hqScreen .hqm-sidebar-foot button { min-width: 44px; padding: 8px; }
.hqm-workarea { min-width: 0; }
.hqm-topbar { min-height: 76px; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--hq-line); background: var(--hq-surface); }
.hqm-crumb { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--hq-muted); }
.hqm-scope { display: flex; gap: 12px; align-items: center; min-width: 0; }
.hqm-scope select { width: 188px; }
.hqm-search { display: flex; align-items: center; gap: 10px; width: 260px; min-width: 0; padding-left: 12px; border: 1px solid var(--hq-field-line); border-radius: var(--ds-radius-input); background: var(--hq-surface); color: var(--hq-muted); margin: 0; font-weight: 400; }
#hqScreen .hqm-search input { border: 0; background: transparent; width: 100%; padding-left: 0; font-size: 14px; }
.hqm-content { padding: 30px 32px 48px; max-width: 1500px; margin: 0 auto; }
.hqm-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
#hqScreen .hqm-page-head p { color: var(--hq-muted); font-size: 14px; margin-top: 8px; }
.hqm-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#hqScreen .hqm-tools select { font-size: 14px; width: auto; }
.hqm-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--hq-surface); border: 1px solid var(--hq-line); border-radius: var(--ds-radius-card); overflow: hidden; box-shadow: var(--hq-shadow); margin-bottom: 24px; }
.hqm-metrics > div { display: flex; align-items: flex-start; flex-direction: column; gap: 6px; padding: 20px 22px; border-right: 1px solid var(--hq-line); }
.hqm-metrics > div:last-child { border-right: 0; }
.hqm-metrics span { font-size: 15px; color: var(--hq-muted); }
.hqm-metrics strong { font-size: 30px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; }
#hqScreen .hqm-metrics strong small { display: inline; margin-left: 6px; }
.hqm-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.hqm-overview { display: grid; grid-template-columns: minmax(0,1fr) 288px; grid-template-areas: "comparison priority"; align-items: start; gap: 20px; }
.hqm-comparison { grid-area: comparison; }
.hqm-comparison, .hqm-panel { min-width: 0; padding: 20px; background: var(--hq-surface); border: 1px solid var(--hq-line); border-radius: var(--ds-radius-card); box-shadow: var(--hq-shadow); }
.hqm-comparison > .hqm-section-head { padding-bottom: 16px; border-bottom: 1px solid var(--hq-line); }
.hqm-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--hq-hover); font-size: 14px; white-space: nowrap; }
.hqm-section-head h2 span { font-size: 14px; color: var(--hq-muted); font-weight: 400; margin-left: 8px; }
.hqm-table-wrap { width: 100%; overflow-x: auto; }
#hqScreen table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
#hqScreen caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
/* 머리줄 높이 = 정렬 단추 44px 하나(위아래 여백 0) — 2026-10-13: 68px → 44px */
#hqScreen th { padding: 0 14px; height: 44px; vertical-align: middle; background: var(--hq-hover); color: var(--hq-text); font-weight: 700; font-size: 14px; text-align: left; }
#hqScreen .hqm-sort { min-width: 44px; min-height: 44px; width: 100%; padding: 0; color: inherit; font: inherit; text-align: inherit; line-height: 1.5; }
#hqScreen .hqm-sort span { display: inline-block; width: 1em; margin-right: 3px; }
/* 정렬 안 된 열의 ↕ 는 숨긴다(다섯 칸에 다 달리면 표가 시끄럽다) — 마우스를 올리거나 키보드로 가면 보인다 */
#hqScreen th[aria-sort="none"] .hqm-sort span { opacity: 0; transition: opacity .15s ease; }
#hqScreen th[aria-sort="none"] .hqm-sort:is(:hover,:focus-visible) span { opacity: .55; }
/* 왼쪽 정렬 열은 화살표를 글자 뒤로 — 숨긴 화살표가 앞자리를 차지하면 제목이 칸 내용보다 오른쪽으로 밀린다.
   ★넓은 화면에만 — 이 선택자가 휴대폰의 `.hqm-sort { display: none }` 보다 세서, 밖에 두면 숨긴 제목 단추에 키보드 초점이 다시 들어간다 */
@media(min-width:761px) {
    #hqScreen th:not(.hqm-number) .hqm-sort { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 3px; }
    #hqScreen th:not(.hqm-number) .hqm-sort span { margin-right: 0; }
}
#hqScreen thead th:first-child { border-radius: var(--ds-radius-input) 0 0 6px; }
#hqScreen thead th:last-child { border-radius: 0 6px 6px 0; }
#hqScreen .hqm-sort-mobile { display: none; }
#hqScreen th[aria-sort]:not([aria-sort="none"]) { color: var(--hq-text); }
#hqScreen td { padding: 12px 14px; border-bottom: 1px solid var(--hq-line); vertical-align: middle; overflow-wrap: anywhere; }
#hqScreen tbody tr { transition: background-color .15s ease; }
/* 마우스가 있는 기기에서만 — 휴대폰은 누른 뒤 :hover 가 그 줄에 남아 회색으로 굳는다 */
@media(hover:hover) { #hqScreen tbody tr:hover { background: var(--hq-row-hover); } }
.hqm-site-table { min-width: 680px; }
.hqm-site-table th:first-child { width: 21%; }
.hqm-site-table th:nth-child(2) { width: 19%; }
.hqm-site-table th:nth-child(3), .hqm-site-table th:nth-child(4) { width: 15%; }
#hqScreen .hqm-number { text-align: right; font-variant-numeric: tabular-nums; }
#hqScreen .hqm-link { color: var(--hq-text); min-width: 44px; max-width: 100%; padding: 6px 0; text-align: left; font-size: 15px; font-weight: 600; line-height: 1.5; }
#hqScreen .hqm-number .hqm-link { text-align: right; padding-inline: 0; }
#hqScreen td:first-child .hqm-link { color: var(--hq-text); font-size: 16px; font-weight: 600; }
.hqm-remarks { font-size: 14px; word-break: keep-all; }
.hqm-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--hq-muted); }
.hqm-pagination > div { display: flex; align-items: center; gap: 8px; }
.hqm-priority { grid-area: priority; position: sticky; top: 20px; min-width: 0; background: var(--hq-surface); border: 1px solid var(--hq-line); border-radius: var(--ds-radius-card); overflow: hidden; box-shadow: var(--hq-shadow); }
.hqm-priority > .hqm-section-head { padding: 20px; margin: 0; border-bottom: 1px solid var(--hq-line); }
.hqm-priority > .hqm-section-head p { margin-top: 6px; }
#hqScreen .hqm-priority-row { display: grid; grid-template-columns: minmax(0,1fr) 20px; gap: 8px; width: 100%; text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--hq-line); border-radius: 0; }
.hqm-priority-row strong { font-size: 15px; }
.hqm-priority-row span { color: var(--hq-muted); font-size: 14px; word-break: keep-all; }
.hqm-priority-row span { grid-column: 1; }
.hqm-priority-row svg { grid-column: 2; grid-row: 1; }
.hqm-priority-list > button:last-child { border-bottom: 0; }
.hqm-progress { padding: 20px; border-top: 1px solid var(--hq-line); }
.hqm-progress > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hqm-progress strong { font-size: 20px; font-variant-numeric: tabular-nums; }
#hqScreen .hqm-progress strong small { display: inline; }
.hqm-progress progress { display: block; appearance: none; width: 100%; height: 6px; margin: 16px 0; border: 0; background: var(--hq-hover); accent-color: var(--hq-muted); }
.hqm-progress progress::-webkit-progress-bar { background: var(--hq-hover); }
.hqm-progress progress::-webkit-progress-value { background: var(--hq-muted); }
.hqm-progress progress::-moz-progress-bar { background: var(--hq-muted); }
#hqScreen .hqm-progress p + p { margin-top: 12px; }
.hqm-site-block { padding: 22px 0; border-top: 1px solid var(--hq-line); }
.hqm-site-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.hqm-site-columns > div { display: flex; flex-direction: column; align-items: flex-start; }
.hqm-site-columns span { color: var(--hq-muted); font-size: 14px; }
.hqm-record-tabs, .hqm-status-tabs { display: flex; align-items: center; gap: 24px; }
.hqm-record-tabs { border-bottom: 1px solid var(--hq-line); margin-bottom: 22px; flex-wrap: wrap; }
#hqScreen :is(.hqm-record-tabs,.hqm-status-tabs) button { border-bottom: 2px solid transparent; padding: 8px 0; border-radius: 0; }
#hqScreen :is(.hqm-record-tabs,.hqm-status-tabs) button[aria-pressed=true] { color: var(--hq-blue); font-weight: 600; border-bottom-color: var(--hq-blue); }
.hqm-filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
#hqScreen .hqm-range { margin-bottom: 14px; }
.hqm-record-table { min-width: 680px; }
.hqm-record-table th:first-child { width: 130px; }
.hqm-record-table th:last-child { width: 160px; }
#hqScreen .hqm-record-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; font-weight: 600; padding: 6px 0; overflow-wrap: anywhere; }
.hqm-record-link svg { color: var(--hq-muted); }
.hqm-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--hq-muted); font-size: 14px; }
#hqScreen .hqm-notice { color: var(--hq-muted); font-size: 14px; padding: 12px 0; }
.hqm-empty { padding: 44px 16px; text-align: center; color: var(--hq-muted); }
.hqm-more { display: flex; justify-content: center; margin-top: 18px; }
#hqScreen .hqm-footnote { margin-top: 28px; color: var(--hq-muted); font-size: 14px; }
#hqScreen dialog.hqm-drawer { margin: 0 0 0 auto; inset: 0; width: min(960px,92vw); max-width: 100vw; height: 100dvh; max-height: none; border: 0; border-left: 1px solid var(--hq-line); border-radius: var(--ds-radius-card) 0 0 12px; padding: 0; background: var(--hq-surface); color: var(--hq-text); }
/* 상세창은 오른쪽에서 밀려 들어온다 — 어디서 나왔는지 보이게. 닫을 때는 바로 닫는다(기다리게 하지 않는다) */
#hqScreen dialog.hqm-drawer[open] { animation: hqm-drawer-in .22s cubic-bezier(.2,.8,.2,1); }
#hqScreen dialog.hqm-drawer[open]::backdrop { animation: hqm-fade-in .22s ease-out; }
@keyframes hqm-drawer-in { from { transform: translateX(32px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes hqm-fade-in { from { opacity: 0; } }
.hqm-drawer::backdrop { background: rgba(0,0,0,.45); }
.hqm-drawer-shell { height: 100%; display: flex; flex-direction: column; }
.hqm-drawer header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--hq-line); }
.hqm-drawer header > div { min-width: 0; }
.hqm-drawer header span { color: var(--hq-muted); font-size: 14px; }
#hqScreen .hqm-drawer header h2 { margin-top: 6px; font-size: 20px; overflow-wrap: anywhere; }
.hqm-drawer-body { overflow-y: auto; flex: 1; min-height: 0; padding: 28px 40px; }
.hqm-drawer dl { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 12px; font-size: 15px; margin: 0 0 24px; }
.hqm-drawer dt { color: var(--hq-muted); }
.hqm-drawer dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hqm-drawer section { border-top: 1px solid var(--hq-line); margin-top: 24px; padding-top: 24px; }
#hqScreen .hqm-drawer h3 { margin-bottom: 16px; }
.hqm-raw { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.9; }
.hqm-document { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hq-line); }
#hqScreen .hqm-document h3 { font-size: 20px; text-align: center; margin-bottom: 24px; }
#hqScreen .hqm-document h4 { font-size: 18px; margin-bottom: 24px; overflow-wrap: anywhere; }
.hqm-document .hqm-raw { margin-bottom: 24px; }
.hqm-demo-document { margin-top:28px; border-top:1px solid var(--hq-line); padding-top:20px; }
.hqm-document-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.hqm-paper-window { width:100%; max-width:100%; overflow-x:auto; border:1px solid var(--hq-line); background:#fff; }
.hqm-paper-size { position:relative; }
.hqm-document-frame { position:absolute; left:0; top:0; width:794px; height:1123px; border:0; transform-origin:top left; }
#hqScreen .hqm-document p { margin-top: 20px; }
#hqScreen .hqm-menu, #hqScreen .hqm-menu-scrim, .hqm-mobile-close { display: none; }
.hqm-detail-content { max-width: 1260px; }
.hqm-detail-content > .hqm-table-wrap { background: var(--hq-surface); border: 1px solid var(--hq-line); border-radius: var(--ds-radius-card); box-shadow: var(--hq-shadow); }
.hqm-detail-content .hqm-record-tabs { padding: 0 16px; background: var(--hq-surface); border: 1px solid var(--hq-line); border-radius: var(--ds-radius-card); }
#hqScreen .hqm-detail-content thead th { border-radius: 0; }
.hqm-enter { animation: hqm-enter .18s ease-out; }
@keyframes hqm-enter { from { opacity: .7; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media(prefers-reduced-motion:reduce) {
    .hqm-enter, #hqScreen dialog.hqm-drawer[open], #hqScreen dialog.hqm-drawer[open]::backdrop { animation: none; }
    #hqScreen :is(button, tbody tr, .hqm-sort span) { transition: none; }
}
@media(max-width:1280px) {
    .hqm-overview { grid-template-columns: minmax(0,1fr); grid-template-areas: "priority" "comparison"; }
    .hqm-priority { position: static; }
    .hqm-priority-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    #hqScreen .hqm-priority-list > button { border-bottom: 1px solid var(--hq-line); }
    .hqm-progress { padding: 18px 20px; }
}
@media(max-width:1100px) {
    .hqm-shell { grid-template-columns: 176px minmax(0,1fr); }
    .hqm-sidebar { padding-left: 10px; padding-right: 10px; }
    .hqm-brand { font-size: 18px; padding: 0 5px; }
    .hqm-topbar { flex-wrap: wrap; }
    .hqm-topbar, .hqm-content { padding-left: 24px; padding-right: 24px; }
}
@media(max-width:760px) {
    .hqm-shell { display: block; }
    .hqm-sidebar { display: none; position: fixed; top: 0; left: 0; z-index: 15; width: 224px; }
    .hqm-shell.menu-open .hqm-sidebar { display: flex; }
    #hqScreen .hqm-shell.menu-open .hqm-menu-scrim { display: block; position: fixed; inset: 0; z-index: 14; width: 100%; height: 100dvh; border-radius: 0; background: rgba(0,0,0,.5); }
    #hqScreen .hqm-menu { display: inline-flex; }
    .hqm-mobile-close { display: flex; justify-content: flex-end; margin-bottom: 8px; }
    .hqm-topbar { padding: 10px 16px; gap: 12px; }
    .hqm-scope { width: 100%; gap: 8px; }
    .hqm-scope select { width: 140px; }
    .hqm-search { flex: 1; width: auto; }
    .hqm-content { padding: 24px 16px 36px; }
    .hqm-page-head { flex-wrap: wrap; }
    .hqm-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hqm-metrics > div { padding: 16px; border-bottom: 1px solid var(--hq-line); }
    .hqm-metrics > div:nth-child(2n) { border-right: 0; }
    .hqm-metrics > div:nth-last-child(-n+2) { border-bottom: 0; }
    .hqm-metrics span { font-size: 14px; }
    .hqm-priority-list { grid-template-columns: minmax(0,1fr); }
    .hqm-priority > .hqm-section-head, .hqm-progress { padding: 16px; }
    #hqScreen .hqm-priority-row { padding: 16px; }
    .hqm-comparison, .hqm-panel { padding: 16px; }
    .hqm-comparison > .hqm-section-head { gap: 12px; }
    .hqm-comparison .hqm-tools { width: 100%; justify-content: flex-end; }
    .hqm-priority-row { overflow-wrap: anywhere; }
    #hqScreen .hqm-priority-row { grid-template-columns: minmax(0,1fr) 20px; gap: 8px; }
    .hqm-priority-row span { grid-column: 1; }
    .hqm-priority-row svg { grid-column: 2; grid-row: 1; }
    .hqm-site-columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .hqm-site-columns > div:first-child { grid-column: 1/-1; }
    .hqm-record-tabs { gap: 20px; }
    .hqm-status-tabs { gap: 16px; flex-wrap: wrap; }
    #hqScreen .hqm-status-tabs button { font-size: 14px; }
    #hqScreen dialog.hqm-drawer { width: 100%; border-left: 0; border-radius: 0; }
    .hqm-drawer header, .hqm-drawer-body { padding: 20px; }
    /* ponytail: one semantic table becomes labeled rows on mobile, sharing paging, actions and data with desktop. */
    #hqScreen :is(.hqm-site-table,.hqm-record-table) { display: block; min-width: 0; }
    #hqScreen :is(.hqm-site-table,.hqm-record-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    #hqScreen .hqm-sort { display: none; }
    #hqScreen .hqm-sort-mobile { display: inline; }
    #hqScreen :is(.hqm-site-table,.hqm-record-table) tbody { display: block; }
    #hqScreen .hqm-site-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px 0; border-bottom: 1px solid var(--hq-line); }
    #hqScreen .hqm-site-table td { display: block; min-width: 0; padding: 8px; border: 0; text-align: left; }
    #hqScreen .hqm-number .hqm-link { text-align: left; }
    #hqScreen .hqm-site-table td:first-child, #hqScreen .hqm-site-table .hqm-remarks { grid-column: 1/-1; }
    #hqScreen .hqm-site-table td::before { display: block; content: attr(data-label); color: var(--hq-muted); font-size: 14px; }
    #hqScreen .hqm-site-table:not(.hqm-menu-table) td:nth-child(2) { grid-column: 1/-1; }
    #hqScreen .hqm-site-table .hqm-remarks { background: var(--hq-hover); margin: 8px; padding: 12px; border-radius: var(--ds-radius-input); }
    /* 휴대폰에서는 '특이사항 없음' 회색 칸을 매 현장마다 그리지 않는다 — 칸이 없으면 문제없는 현장이다 */
    #hqScreen .hqm-site-table .hqm-remarks:is(.hqm-calm,.hqm-muted) { display: none; }
    #hqScreen .hqm-site-table .hqm-remarks::before { font-weight: 600; margin-bottom: 6px; }
    #hqScreen .hqm-record-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 16px; border-bottom: 1px solid var(--hq-line); }
    #hqScreen .hqm-record-table td { display: block; padding: 0; border: 0; }
    #hqScreen .hqm-record-table td:first-child { font-size: 14px; color: var(--hq-muted); }
    #hqScreen .hqm-record-table td:nth-child(2) { grid-column: 1/-1; grid-row: 2; margin-top: 8px; }
    #hqScreen .hqm-record-table td:last-child { grid-column: 2; grid-row: 1; font-size: 14px; text-align: right; }
    .hqm-pagination { gap: 8px; }
    .hqm-record-tabs { gap: 16px; }
}

/* 2-30 — 결재 첨부(바이트로 받아 화면 안에서만) · 승인 후 수정 표시 · 공고문 안건/당부 */
#hqScreen .hqm-edited { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--hq-line); border-radius: var(--ds-radius-input); background: var(--hq-surface); font-size: 14px; }
#hqScreen .hqm-files-sec { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hq-line); }
#hqScreen .hqm-files { display: grid; gap: 12px; margin: 12px 0; }
#hqScreen .hqm-file img { display: block; max-width: 100%; height: auto; border: 1px solid var(--hq-line); border-radius: var(--ds-radius-input); }
#hqScreen .hqm-file-pdf { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--hq-line); border-radius: var(--ds-radius-input); color: var(--hq-blue); text-decoration: none; }
#hqScreen .hqm-document h5 { margin: 16px 0 6px; font-size: 15px; font-weight: 650; }
#hqScreen .hqm-document :is(ol, ul) { margin: 0; padding-left: 22px; line-height: 1.8; }

/* 2026-10-08: supporting text 14px/600, names and headings 700, long original text 400. */
#hqScreen { font-weight: 600; }
#hqScreen :is(.hqm-crumb,.hqm-company span,.hqm-sidebar-foot,.hqm-page-head p,.hqm-metrics span,.hqm-section-head h2 span,.hqm-remarks,.hqm-pagination,.hqm-muted,.hqm-range,.hqm-preview,.hqm-notice,.hqm-footnote,th,small,nav button,.hqm-status-tabs button,.hqm-record-tabs button,.hqm-tools select,.hqm-quiet,.hqm-link,td) { font-size: 14px; font-weight: 600; }
#hqScreen :is(h1,h2,h3,.hqm-brand,.hqm-company strong,.hqm-metrics strong,td:first-child .hqm-link,.hqm-record-link,.hqm-priority-row strong) { font-weight: 700; }
#hqScreen td:first-child .hqm-link, #hqScreen .hqm-record-link { font-size: 16px; }
#hqScreen .hqm-raw { font-weight: 400; }

/* 2026-10-13: 표 머리줄은 굵게(700). 위 10-08 블록이 th 를 600 으로 내리므로 그 뒤에서 더 센 선택자로 덮는다 */
#hqScreen thead :is(th, .hqm-sort) { font-weight: 700; color: var(--hq-text); }
