:root {
  --bg: #f3f5f8;
  --card: #ffffff;
  --ink: #1f2933;
  --sub: #616e7c;
  --line: #d9e0e7;
  --brand: #1d4e89;
  --brand-ink: #ffffff;
  --ok: #1e7e4f;
  --warn: #b7791f;
  --bad: #c0392b;
  --ok-bg: #e3f4ea;
  --warn-bg: #fdf1d8;
  --bad-bg: #fbe5e2;
  --chip-bg: #e8eef5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171d;
    --card: #1b232c;
    --ink: #e6ebf0;
    --sub: #9aa8b6;
    --line: #2f3b47;
    --brand: #5b9bd9;
    --brand-ink: #0c1722;
    --ok: #5fd18f;
    --warn: #f0b84a;
    --bad: #ff8a7a;
    --ok-bg: #173325;
    --warn-bg: #3a2e12;
    --bad-bg: #3d1d19;
    --chip-bg: #263341;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 16px; line-height: 1.5;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.3; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
.muted { color: var(--sub); font-size: 14px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 480px; }

.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 16px; background: var(--brand); color: var(--brand-ink);
}
.topbar strong { font-size: 17px; }
.topbar .sub { margin-left: 8px; font-size: 13px; opacity: .85; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.grid { display: grid; gap: 12px; }

.stat { text-align: center; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.stat .num { font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat .lbl { font-size: 13px; color: var(--sub); margin-top: 4px; }
.stat.warn .num { color: var(--warn); }
.stat.bad .num { color: var(--bad); }
.stat.ok .num { color: var(--ok); }

label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
.req { color: var(--bad); }
input, select, textarea {
  width: 100%; padding: 12px; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-weight: 600; }
.check input { width: 22px; height: 22px; }

.btn {
  display: inline-block; padding: 12px 18px; font: inherit; font-weight: 700; border: 0; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); cursor: pointer; min-height: 46px;
}
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: 14px; }
.btn.danger { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.topbar .btn.ghost { color: var(--brand-ink); }

.msg { padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.msg.err { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }

.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--chip-bg); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--card);
  border-top: 1px solid var(--line); z-index: 10;
}
.tabbar button {
  flex: 1; padding: 12px 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--sub);
  background: transparent; border: 0; cursor: pointer; min-height: 52px;
}
.tabbar button[aria-selected="true"] { color: var(--brand); border-top: 3px solid var(--brand); padding-top: 9px; }
body.driver main { padding-bottom: 76px; }

/* 관리자 메뉴: 대메뉴는 글자 탭 + 밑줄, 소메뉴는 옅은 띠 위의 알약. 좌우 여백을 본문(.wrap) 너비에 맞춘다 */
.nav, .subnav { display: flex; overflow-x: auto; scrollbar-width: none; padding-left: max(16px, calc((100% - 1100px) / 2 + 16px)); padding-right: 16px; }
.nav::-webkit-scrollbar, .subnav::-webkit-scrollbar { display: none; }
.nav { gap: 4px; background: var(--card); border-bottom: 1px solid var(--line); }
.nav button {
  position: relative; flex: 0 0 auto; padding: 14px 14px 12px; font: inherit; font-size: 15px; font-weight: 700;
  color: var(--sub); background: none; border: 0; cursor: pointer; min-height: 50px; transition: color .15s;
}
.nav button:hover { color: var(--ink); }
.nav button[aria-selected="true"] { color: var(--brand); }
.nav button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand);
}

/* 조건 칸은 왼쪽부터 같은 폭으로, 실행 버튼(.f-go)은 같은 줄 맨 오른쪽 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.filters > div { flex: 0 1 200px; min-width: 140px; }
.filters label { margin: 0 0 2px; }
.filters > .f-go { flex: 0 0 auto; min-width: 0; margin-left: auto; display: flex; gap: 8px; }
/* 조건이 여러 줄인 화면: 구분선 아래 오른쪽 끝에 버튼 (안내·체크는 왼쪽), 맨 오른쪽이 주 버튼 */
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.actions > .muted, .actions > .check { margin-right: auto; }
@media (max-width: 700px) {
  .filters > div { flex: 1 1 calc(50% - 4px); }
  .filters > .f-go { flex: 1 1 100%; margin-left: 0; }
  .filters > .f-go .btn, .actions .btn { flex: 1; }
  .actions > .muted, .actions > .check { flex: 1 1 100%; margin-right: 0; }
}

/* 관리자 화면: 버튼·입력칸 크기를 하나로 맞춘다 (보통 44px, 표 안의 작은 버튼 34px) */
body.admin input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), body.admin select { padding: 0 12px; height: 44px; }
body.admin .btn { min-height: 44px; min-width: 96px; padding: 9px 20px; }
body.admin .btn.small { min-height: 34px; min-width: 0; padding: 6px 12px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 13px; color: var(--sub); padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--chip-bg); }
.tbl td.right, .tbl th.right { text-align: right; }
/* 기사 목록: 칸 폭 고정, 관리 버튼은 같은 크기로 나란히 */
.tbl-drivers { table-layout: fixed; }
.tbl-drivers td { overflow-wrap: anywhere; }
.row-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.row-acts .btn { min-width: 72px; white-space: nowrap; }
@media (max-width: 700px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; background: var(--card); }
  .tbl td { border: 0; padding: 4px 8px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl td::before { content: attr(data-label); color: var(--sub); font-size: 13px; text-align: left; flex: 0 0 auto; }
  .tbl-drivers td .row-acts { flex: 1; max-width: 300px; }
}

img.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; background: var(--chip-bg); }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 16px; z-index: 50; }
.modal { background: var(--card); border-radius: 14px; max-width: 640px; width: 100%; padding: 18px; margin: auto; }
/* 사진 크게 보기 (data.js openGallery): PC에서는 창을 넓게, 확대하면 상자 안에서 끌어서 옮긴다 */
.modal.modal-wide { max-width: min(1100px, 96vw); }
.gal-box { overflow: auto; max-height: 76vh; display: flex; align-items: center; justify-content: center; background: var(--chip-bg); border-radius: 8px; }
.gal-img { display: block; max-width: 100%; max-height: 76vh; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.gal-box.zoomed { display: block; cursor: grab; }
.gal-box.zoomed:active { cursor: grabbing; }
.gal-box.zoomed .gal-img { max-width: none; max-height: none; cursor: zoom-in; }
.gal-bar { justify-content: center; margin-top: 10px; }
.gal-zoom { min-width: 72px; text-align: center; font-weight: 700; font-size: 14px; }
dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--sub); font-size: 14px; }
dl.kv dd { margin: 0; word-break: break-word; }
.login-box { margin-top: 8vh; }
.switch { display: flex; gap: 8px; margin-bottom: 8px; }
.switch button { flex: 1; }
.locnote { border: 1px solid var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: 14px; line-height: 1.55; }
.locnote strong { display: block; color: var(--warn); margin-bottom: 2px; }
.locnote details { margin-top: 8px; }
.locnote summary { cursor: pointer; color: var(--sub); }
.locnote ul { margin: 6px 0; padding-left: 18px; }
.locnote li { margin: 4px 0; }

/* 결과 보고 작성 (휴대폰 기준: 한 줄에 한 질문, 누르기 쉬운 크기, 모든 선택지는 같은 모양) */
.help { display: block; font-size: 13px; font-weight: 400; color: var(--sub); margin-top: 2px; }
.rp-sec { padding: 16px 14px; }
.rp-h { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 4px; }
.rp-no { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.rp-me { margin: 10px 0 0; padding: 10px 12px; background: var(--chip-bg); border-radius: 8px; font-size: 15px; }
.q { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.q-t { display: block; font-weight: 700; font-size: 15px; margin: 0 0 8px; padding: 0; }
.q .help { margin: -4px 0 8px; }
.q-sub { margin-top: 12px; padding: 2px 0 2px 12px; border-left: 3px solid var(--brand); }
.q-sub .q { margin-top: 14px; }
.q-sub .q:first-child { margin-top: 0; }
.q-err { outline: 2px solid var(--bad); outline-offset: 6px; border-radius: 6px; }
/* 선택지: 같은 너비의 버튼을 가로로. 고르면 파랗게 채워진다 */
.opts { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.opt {
  position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 50px; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); font-weight: 600; font-size: 15px; line-height: 1.3; cursor: pointer;
  user-select: none; -webkit-tap-highlight-color: transparent; overflow-wrap: anywhere;
}
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-d { display: block; font-size: 12px; font-weight: 400; color: var(--sub); margin-top: 3px; }
.opt:has(input:checked) { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.opt:has(input:checked) .opt-d { color: inherit; opacity: .85; }
.opt:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.opt:active { transform: scale(.98); }
/* 예상 만족도 5단계: 한 줄 같은 크기, 고른 칸 색으로 좋음·보통·나쁨 구분 */
.sat-lbl { font-size: 14px; font-weight: 600; color: var(--sub); margin: 12px 0 6px; }
.q legend + .sat-lbl { margin-top: 0; }
.scale { gap: 6px; }
.scale .opt { min-height: 56px; padding: 6px 2px; font-size: 13.5px; }
.scale .opt[data-tone="mid"]:has(input:checked) { background: #6b7785; border-color: #6b7785; color: #fff; }
.scale .opt[data-tone="bad"]:has(input:checked) { background: var(--bad); border-color: var(--bad); color: #fff; }
/* 여러 개 고르는 목록 (설명한 기능 항목) */
.checks { display: grid; gap: 6px; }
.chk { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 11px 12px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 500; font-size: 15px; cursor: pointer; }
.chk input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; accent-color: var(--brand); }
.chk:has(input:checked) { border-color: var(--brand); background: var(--chip-bg); }
.linkbtn { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; padding: 0 0 0 6px; cursor: pointer; text-decoration: underline; }
.counter { text-align: right; font-size: 13px; color: var(--sub); margin-top: 4px; }
/* 제출 버튼 줄: 작성하는 동안 화면 아래(탭 바로 위)에 붙어 있다 */
.rp-actions { position: sticky; bottom: 60px; z-index: 6; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-top: 4px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
.rp-actions .msg { margin: 0 0 8px; }
.rp-btns { display: flex; gap: 8px; }
.rp-btns .btn { flex: 1; min-height: 50px; }
.rp-btns #repSubmit { flex: 2; }
/* 결과 보고 작성: 사진 종류마다 여러 장 */
.pgroup { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; margin-top: 10px; }
.pg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 8px; }
.pg-grid:empty { display: none; }
.pg-item { position: relative; }
.pg-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; display: block; background: var(--chip-bg); }
/* 사진 보관: 디스크 막대, 날짜별 내려받기 단추 */
.bar { height: 12px; border-radius: 6px; background: var(--chip-bg); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ok, #2e7d32); }
.bar span.warn { background: var(--bad); }
.ph-tbl { table-layout: fixed; width: 100%; }
.ph-tbl .w-n { width: 110px; }
.ph-tbl .w-b { width: 120px; }
.ph-tbl .num { text-align: right; }
.ph-tbl td { vertical-align: middle; }
.ph-tbl .ph-mrow td { background: var(--chip-bg); font-weight: 700; padding-top: 6px; padding-bottom: 6px; }
.pg-state { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 3px 0; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; text-align: center; }
.pg-state.fail { background: #c0392b; cursor: pointer; font-weight: 600; }
.pg-del { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.pg-btns { display: flex; gap: 8px; margin-top: 10px; }
.pg-btns .btn { flex: 1; }

/* 결과 보고 보기 */
.rv-sec { margin-top: 12px; }
.rv-sec h3 { font-size: 14px; color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 6px; }
.rv-list { margin: 0; padding-left: 18px; }
.neg { color: var(--bad); font-weight: 700; }
.rv-notebox { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.rv-pgroup { margin-top: 8px; break-inside: avoid; }
.rv-plabel { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.rv-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.rv-photos img { width: 100%; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; background: var(--chip-bg); }
/* 기사별 성과표 */
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.sc-kpis .num small { font-size: 14px; font-weight: 400; color: var(--sub); margin-left: 2px; }
.sc-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.sc-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 80px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.sc-bar { position: relative; height: 12px; border-radius: 6px; background: var(--chip-bg); }
.sc-fill { display: block; height: 100%; border-radius: 6px; background: var(--brand); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sc-avg { position: absolute; top: -3px; width: 2px; height: 18px; background: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sc-val { text-align: right; white-space: nowrap; }
.sc-up { color: var(--ok); }
@media (max-width: 520px) { .sc-row { grid-template-columns: 100px minmax(0, 1fr) 70px; font-size: 13px; } }
.rv-hist { margin: 0; padding-left: 18px; }
.rv-hist li { margin-bottom: 10px; }
.rv-memo { white-space: pre-wrap; background: var(--bad-bg); color: var(--bad); border-radius: 6px; padding: 6px 8px; margin-top: 4px; }
.rv-chg { margin-top: 6px; font-size: 13px; }
.rv-chg td { vertical-align: top; white-space: pre-wrap; }
.rv-old { color: var(--sub); text-decoration: line-through; }
.rv-nophoto { height: 120px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 8px; color: var(--sub); }
.files { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.files a, .files span.f { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; word-break: break-all; }
.files a:hover { border-color: var(--brand); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 품질 관리 (월간 실적·품질 지표) */
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } .cols-2 { grid-template-columns: 1fr; } }
.stat .num small { font-size: 14px; font-weight: 400; color: var(--sub); margin-left: 2px; }
.q-warn { background: var(--warn-bg); color: var(--warn); font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.q-sub { font-size: 15px; margin: 0 0 8px; }
.q-bar { display: grid; grid-template-columns: 84px minmax(0, 1fr) 36px; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 14px; }
.q-bar strong { text-align: right; }
.sc-fill.q-mid { background: var(--warn); }
.sc-fill.q-bad { background: var(--bad); }
/* 관리자 메뉴: 대메뉴(.nav) + 소메뉴(.subnav) */
.nav-badge { margin-left: 6px; padding: 0 7px; font-size: 12px; }
.subnav { gap: 6px; padding-top: 10px; padding-bottom: 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav button {
  flex: 0 0 auto; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--sub);
  background: transparent; border: 1px solid transparent; border-radius: 99px; cursor: pointer; min-height: 34px; transition: background .15s, color .15s;
}
.subnav button:hover { color: var(--ink); background: var(--card); }
.subnav button[aria-selected="true"] { color: var(--brand); background: var(--card); border-color: var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

/* 기사 정보 수정 팝업: 계정 상태·삭제 (아래쪽에 따로) */
.acct-zone { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.acct-row + .acct-row { border-top: 1px solid var(--line); }
.acct-row .muted { margin-top: 2px; font-size: 13px; }

/* 관리자 계정: 메뉴 권한 체크 */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.check-inline { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.check-inline input { width: 18px; height: 18px; flex: 0 0 auto; }
.check-inline:has(input:checked) { border-color: var(--brand); background: var(--chip-bg); }

/* 쪽지 */
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.seg button {
  padding: 8px 14px; font: inherit; font-weight: 600; border: 1px solid var(--line); border-radius: 99px;
  background: var(--card); color: var(--ink); cursor: pointer; min-height: 40px;
}
.seg button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.msg-badge { margin-left: 6px; padding: 0 7px; font-size: 12px; }
.msg-prev { overflow-wrap: anywhere; }
.tbl tr.unread td { font-weight: 700; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); margin-top: 8px; }
.msg-recips { margin: 6px 0; font-size: 14px; }
.msg-recips summary { cursor: pointer; color: var(--sub); }
.msg-recips ul { margin: 6px 0 0; padding-left: 18px; }
.pick { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: grid; gap: 10px; }
.pick-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; }
.pick-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--brand); }
.pick-item { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; padding: 4px 2px; cursor: pointer; }
.pick-head input, .pick-item input { width: 18px; height: 18px; flex: 0 0 auto; }
.pick-item[hidden] { display: none; }

/* 접속·작업 기록: 시각·구분·결과·IP는 한 줄로 */
.tbl-audit td:nth-child(1), .tbl-audit td:nth-child(3), .tbl-audit td:nth-child(7), .tbl-audit td:nth-child(8) { white-space: nowrap; }
.tbl-audit .chip { white-space: nowrap; }
