/* ============================================================
   genffice-meeting 전용 — `views.css` 가 덮지 못하는 것만.

   색 규칙은 genffice-event 와 같다. **뜻을 넷으로만 가른다.**

   | 색 | 뜻 |
   |---|---|
   | 초록 | 완료 · 발송됐다 |
   | 주황 | **사람이 정해야 한다** · 확인필요 · 승인 대기 · 담당 미정 |
   | 파랑(옅게) | 기다리는 일 — 회신대기 · 진행중 |
   | 회색 | 그 밖의 사실 (대기 · 메일 없음) |

   「회신대기」 · 「진행중」은 **기다리는 일**이라 옅은 바탕이다. 주황으로 두면
   주관자가 자기가 할 수 없는 일(담당자의 업무)을 붙들고 있는다.
   ============================================================ */

/* 회의 앱의 색 — 형제앱(행사 · 청록)과 한눈에 갈린다 */
:root {
  --accent: #3b5bb5;
  --accent-hover: #2f4a96;
  --accent-press: #253b78;
  --accent-subtle: #eef1fa;
  --accent-border: #c9d3ee;
  --accent-text: #2f4a96;
  --red: #3b5bb5;
  --red-soft: #eef1fa;
  --v-wait: #2c6a8f; --v-wait-bg: #e9f2f8; --v-wait-bd: #c4dcea;
  --v-prog: #5a4bb0; --v-prog-bg: #f0eefb; --v-prog-bd: #d6d0f2;
}
.brand .logo, .stream-head .sh-av { background: linear-gradient(150deg, var(--accent), #6a86d6); }

.vb[data-v="완료"], .vb[data-v="발송"] { background: var(--v-met-bg); color: var(--v-met); }
.vb[data-v="확인필요"], .vb[data-v="발송대기"], .vb[data-v="읽지 못함"], .vb[data-v="사람 몫"], .vb[data-v="담당 미정"],
.vb[data-v="기한 조정 요청"], .vb[data-v="이관 · 불가 요청"], .vb[data-v="중간보고 요청"] {
  background: var(--v-hold-bg); color: var(--v-hold); border-color: var(--v-hold-bd);
}
.vb[data-v="회신대기"] { background: var(--v-wait-bg); color: var(--v-wait); border-color: var(--v-wait-bd); }
.vb[data-v="진행중"], .vb[data-v="일부 완료"] { background: var(--v-prog-bg); color: var(--v-prog); border-color: var(--v-prog-bd); }
.vb[data-v="대기"], .vb[data-v="메일 없음"] { background: var(--bg-subtle); color: var(--text-3); border-color: var(--border-2); }
.vb[data-v="자동"], .vb[data-v="사람이 채움"], .vb[data-v="사람이 정함"], .vb[data-v="승인"] {
  background: var(--accent-subtle); color: var(--accent-text); border-color: var(--accent-border);
}
.vb[data-v^="중간보고 ("], .vb[data-v="최종보고"] { background: var(--accent-subtle); color: var(--accent-text); border-color: var(--accent-border); }
.vb + .vb { margin-left: 4px; }

/* 2열 · 절차 탭 — 번호 원 */
.step-b .sn {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--border-3); font-size: 9.5px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.step-b.ok .sn { border-color: transparent; background: var(--success-subtle); color: var(--success); }
.step-b.now .sn { border-color: var(--accent); color: var(--accent-text); }
.step-b.on .sn { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 2열 · 회의 이름 · 절차 */
.wcase { display: block; width: 100%; padding: 11px 12px 2px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.wcase b { display: block; font-size: var(--fs-12); font-weight: 700; line-height: 1.45; }
.wcase span { display: block; font-size: var(--fs-10); color: var(--text-3); margin-top: 2px; }
.wcase.empty { cursor: default; padding-bottom: 8px; }
.proc { display: grid; gap: 2px; padding: 4px 8px 10px; border-bottom: 1px solid var(--border-1); }
.pr-r { display: flex; gap: 9px; align-items: flex-start; width: 100%; padding: 7px 6px; border: 1px solid transparent; border-radius: var(--r-6);
  background: none; font: inherit; text-align: left; cursor: pointer; position: relative; }
.pr-r:hover { background: var(--bg-hover); }
.pr-r.on { background: var(--bg-panel); border-color: var(--accent-border); }
.pr-r:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 27px; bottom: -5px; width: 1px; background: var(--border-2); }
.pr-n { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--border-3); background: var(--bg-panel); font-size: 10px; font-weight: 750; color: var(--text-3); z-index: 1; }
.pr-r[data-s="done"] .pr-n { border-color: transparent; background: var(--success-subtle); color: var(--success); }
.pr-r[data-s="now"] .pr-n { border-color: var(--accent); background: var(--accent); color: #fff; }
.pr-t { min-width: 0; }
.pr-t b { display: block; font-size: var(--fs-12); font-weight: 650; color: var(--text-1); }
.pr-r[data-s="todo"] .pr-t b { color: var(--text-2); }
.pr-t span { display: block; font-size: var(--fs-10); color: var(--text-3); line-height: 1.55; margin-top: 1px; }
.pr-r[data-s="now"] .pr-t span { color: var(--accent-text); }
.gatebox { margin: 8px 12px 6px; }
.checkbox { margin: 0 12px 6px; padding: 8px 10px; border: 1px solid var(--v-prog-bd); border-radius: var(--r-8); background: var(--v-prog-bg); }
.checkbox b { display: block; font-size: var(--fs-11); font-weight: 700; color: var(--v-prog); }
.checkbox span { display: block; font-size: var(--fs-11); color: var(--v-prog); line-height: 1.6; margin-top: 2px; }
.wl-r .wn .eta { font-style: normal; margin-left: 6px; font-size: var(--fs-10); color: var(--text-3); }
.wl-e { font-size: var(--fs-11); color: var(--text-3); padding: 4px 9px; }
.wlog li.auto::before { border-color: var(--accent); background: var(--accent-subtle); }

/* ============================================================
   4열
   ============================================================ */
.cv-pad { padding: 18px 22px 56px; max-width: 1180px; }
.cv-pad.narrow { max-width: 920px; }
.cvstep { padding: 1px 7px; border-radius: 20px; background: var(--accent); color: #fff; font-size: var(--fs-10); font-weight: 700; letter-spacing: .02em; }
.okpill { padding: 2px 8px; border-radius: 20px; background: var(--success-subtle); color: var(--success); font-size: var(--fs-10); font-weight: 700; }
.sec { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin: 0 0 10px; font-size: var(--fs-14); font-weight: 650; letter-spacing: -.01em; }
.secd { font-size: var(--fs-11); font-weight: 400; color: var(--text-3); }
.blk { margin-top: 26px; }
.blk:first-child { margin-top: 0; }
.blank { padding: 48px 24px; }

.ws-flow.five { grid-template-columns: repeat(5, 1fr); }
.ws-flow .f[data-s="done"] { border-color: var(--accent-border); background: var(--accent-subtle); }
.ws-note { margin: 4px 0 22px; padding: 11px 13px; border-left: 2px solid var(--accent); border-radius: 0 var(--r-6) var(--r-6) 0;
  background: var(--bg-sidebar); font-size: var(--fs-11); color: var(--text-2); line-height: 1.8; }
.ws-note b { font-weight: 650; color: var(--text-1); }
.ws-warn { margin-top: 14px; padding: 10px 13px; border: 1px solid var(--accent-border); border-radius: var(--r-8);
  background: var(--accent-subtle); font-size: var(--fs-11); color: var(--accent-text); line-height: 1.75; }
.ws-warn b { font-weight: 700; }
.ws-p .t { flex: 1; min-width: 0; }
.ws-p .t b { display: block; font-weight: 600; }
.ws-p .t small { display: block; font-size: var(--fs-11); color: var(--text-3); line-height: 1.6; margin-top: 1px; }
.ws-p:disabled { opacity: .55; cursor: progress; }

/* 다음 단계 — 캔버스 맨 아래 */
.stepnav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding: 16px 18px;
  border: 1px solid var(--accent-border); border-radius: var(--r-10); background: var(--accent-subtle); }
.stepnav.done { border-color: #bfe3cb; background: var(--success-subtle); }
.stepnav.hold, .stepnav.wait { border-color: var(--v-hold-bd); background: var(--v-hold-bg); }
.stepnav .sn-t { flex: 1; min-width: 200px; }
.stepnav .sn-t b { display: block; font-size: var(--fs-13); font-weight: 650; color: var(--text-1); }
.stepnav .sn-t span { display: block; margin-top: 3px; font-size: var(--fs-11); color: var(--text-2); line-height: 1.6; }
.stepnav .sn-t span b { display: inline; font-size: inherit; color: var(--accent-text); }
.stepnav.hold .sn-t span b, .stepnav.wait .sn-t span b { color: var(--v-hold); }
.stepnav .btn { flex-shrink: 0; }

/* 입력 — 이름표 위, 칸은 폭을 꽉 채운다 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.grid2.top { align-items: start; gap: 20px; margin-top: 26px; }
.grid2.top .blk { margin-top: 0; }
.one { margin-top: 16px; }
.fld { min-width: 0; }
.fld label { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-12); font-weight: 650; color: var(--text-1); margin-bottom: 6px; }
.fld label .lnk { margin-left: auto; font-weight: 600; }
.fld label .opt { font-size: var(--fs-10); font-weight: 500; color: var(--text-3); }
.fld input[type="text"], .fld textarea, .fld select {
  width: 100%; padding: 9px 11px; font: inherit; font-size: var(--fs-13); line-height: 1.6;
  border: 1px solid var(--border-2); border-radius: var(--r-6); background: var(--bg-panel); color: var(--text-1); resize: vertical; }
.fld textarea.doc-in { font-size: var(--fs-12); min-height: 240px; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.fld .hint { margin-top: 6px; font-size: var(--fs-11); color: var(--text-3); line-height: 1.65; }
.fld .hint b { font-weight: 650; color: var(--text-2); }

.drop { border: 1.5px dashed var(--border-3); border-radius: var(--r-10); background: var(--bg-panel); padding: 38px 18px; text-align: center; transition: border-color .12s, background .12s; }
.drop.on { border-color: var(--accent); background: var(--accent-subtle); }
.drop .di { display: grid; place-items: center; margin-bottom: 8px; color: var(--text-3); }
.drop .di svg { width: 24px; height: 24px; }
.drop .big { font-size: var(--fs-13); font-weight: 650; }
.drop .sm { margin-top: 4px; font-size: var(--fs-11); color: var(--text-3); }
.drop .btns { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.drop.got { text-align: left; padding: 14px 16px; border-style: solid; border-color: var(--accent-border); background: var(--accent-subtle); }
.dg-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dg-i svg { width: 22px; height: 22px; color: var(--accent); }
.dg-t { flex: 1; min-width: 160px; }
.dg-t b { display: block; font-size: var(--fs-13); font-weight: 650; word-break: break-all; }
.dg-t span { display: block; margin-top: 2px; font-size: var(--fs-11); color: var(--text-2); }
.dg-b { display: flex; gap: 6px; }

/* 사람이 채우는 자리 — 빠진 항목 · 담당 미정 · 메일 없음 */
.fillcard { margin-bottom: 20px; padding: 16px 18px; border: 1px solid var(--v-hold-bd); border-radius: var(--r-10); background: var(--v-hold-bg); }
.fc-h b { display: block; font-size: var(--fs-14); font-weight: 700; color: var(--v-hold); }
.fc-h span { display: block; margin-top: 3px; font-size: var(--fs-11); color: var(--text-2); line-height: 1.6; }
.fillcard .grid2 { margin-top: 12px; grid-template-columns: 3fr 2fr; }
.fillcard > .fld { margin-top: 12px; }
.fc-b { display: flex; gap: 6px; margin-top: 12px; }

/* 후속업무 현황 — 회의 화면 맨 위 */
.evmap { border: 1px solid var(--border-1); border-radius: var(--r-10); background: var(--bg-panel); margin-bottom: 24px; overflow: hidden; }
.em-flow { display: flex; align-items: center; gap: 4px; padding: 10px 12px; background: var(--bg-sidebar); border-bottom: 1px solid var(--border-1); }
.em-s { display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border: 1px solid transparent; border-radius: 20px; background: none; font: inherit; font-size: var(--fs-11); font-weight: 600; color: var(--text-3); cursor: pointer; white-space: nowrap; }
.em-s i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-3); background: var(--bg-panel); font-style: normal; font-size: 9.5px; font-weight: 750; }
.em-s[data-s="done"] { color: var(--success); }
.em-s[data-s="done"] i { border-color: transparent; background: var(--success-subtle); }
.em-s[data-s="now"] { color: var(--accent-text); }
.em-s[data-s="now"] i { border-color: var(--accent); background: var(--accent); color: #fff; }
.em-s.on { background: var(--bg-panel); border-color: var(--accent-border); box-shadow: var(--sh-1); }
.em-s:hover { color: var(--text-1); }
.em-a { flex: 1; min-width: 8px; height: 1px; background: var(--border-3); }
.em-wait { padding: 12px 14px; font-size: var(--fs-11); color: var(--text-3); }
.em-pipe { display: flex; align-items: stretch; gap: 6px; padding: 12px 14px 8px; }
.em-n { flex: 1; min-width: 0; padding: 7px 10px; border-radius: var(--r-8); background: var(--bg-sidebar); border-top: 3px solid var(--border-3); }
.em-n b { display: block; font-size: 20px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.em-n b small { font-size: var(--fs-12); font-weight: 600; color: var(--text-3); margin-left: 1px; }
.em-n span { display: block; font-size: var(--fs-11); font-weight: 650; color: var(--text-2); margin-top: 1px; }
.em-n em { display: block; font-style: normal; font-size: var(--fs-10); color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-n[data-t="wait"] { border-top-color: #6fa6c7; }
.em-n[data-t="prog"] { border-top-color: #8b7fd6; }
.em-n[data-t="hold"] { border-top-color: #e0a23a; }
.em-n[data-t="hold"] b { color: var(--v-hold); }
.em-n[data-t="met"] { border-top-color: var(--success); background: var(--success-subtle); }
.em-n[data-t="met"] b { color: var(--success); }
.em-to { flex: 0 0 auto; align-self: center; width: 0; height: 0; border-left: 6px solid var(--border-3); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.em-seats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 14px 12px; }
.es-k { font-size: var(--fs-10); font-weight: 700; color: var(--text-3); margin-right: 2px; }
.es { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border: 1px solid var(--border-1); border-radius: 20px; font-size: var(--fs-11); color: var(--text-1); font-weight: 600; }
.es small { font-size: var(--fs-10); font-weight: 500; color: var(--text-3); }
.es i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.es i[data-v="완료"] { background: var(--success); }
.es i[data-v="확인필요"], .es i[data-v="발송대기"] { background: #e0a23a; }
.es i[data-v="회신대기"] { background: #6fa6c7; }
.es i[data-v="진행중"] { background: #8b7fd6; }
.em-check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-top: 1px dashed var(--v-prog-bd); background: var(--v-prog-bg); }
.em-check > b { font-size: var(--fs-12); font-weight: 700; color: var(--v-prog); }
.em-check > span { font-size: var(--fs-11); color: var(--text-2); }
.em-check .ck-l { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.em-check .ck-l i { font-style: normal; font-size: var(--fs-11); font-weight: 600; padding: 1px 8px; border-radius: 20px; border: 1px dashed var(--v-prog-bd); color: var(--v-prog); background: var(--bg-panel); }
.em-check .ck-l i[data-r="1"] { border-style: solid; border-color: #bfe3cb; color: var(--success); background: var(--success-subtle); }
.em-check .ck-l i[data-r="1"]::before { content: "✓ "; }
.em-check em { margin-left: auto; font-style: normal; font-size: var(--fs-10); color: var(--text-3); }

/* 받은 문서 */
.doc { border: 1px solid var(--border-1); border-radius: var(--r-10); overflow: hidden; background: var(--bg-panel); }
.doc-h { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg-sidebar); border-bottom: 1px solid var(--border-1); }
.dh-i svg { width: 18px; height: 18px; color: var(--accent); }
.dh-t { flex: 1; min-width: 0; }
.dh-t b { display: block; font-size: var(--fs-12); font-weight: 700; }
.dh-t span { display: block; font-size: var(--fs-11); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-b { display: flex; gap: 6px; }
.dh-b a { text-decoration: none; }
div.pdfview { max-height: 820px; overflow-y: auto; padding: 18px; display: grid; gap: 14px; justify-items: center; background: #e9e9ee; }
div.pdfview img { display: block; width: 100%; max-width: 760px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.doc-b { margin: 0; padding: 14px 16px; border: 0; border-radius: 0; max-height: 620px; overflow-y: auto; }

pre.raw { white-space: pre-wrap; font: inherit; font-size: var(--fs-12); line-height: 1.8; color: var(--text-2);
  background: var(--bg-sidebar); border: 1px solid var(--border-1); border-radius: var(--r-8); padding: 12px 14px; margin: 0; }
table.gt tr.miss td { background: var(--v-hold-bg); }
table.gt tr.cur td { background: var(--accent-subtle); }
table.gt td .req, table.gt th .req { font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--accent-text); margin-left: 4px; }
table.gt td.src .sub { margin: 0; }
table.gt td .sub.in { display: inline; margin: 0 0 0 4px; }
.note.hold b { color: var(--v-hold); }
.note.mgr { margin-top: 10px; border-left-color: var(--v-hold); }
.note.mgr b { color: var(--v-hold); }
ol.declist { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; font-size: var(--fs-12); line-height: 1.7; color: var(--text-1); }
.lnk { border: 0; background: none; padding: 0; font: inherit; font-size: var(--fs-11); color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* 회의 목록 */
table.evt td { vertical-align: top; padding: 11px 10px; }
table.evt tr.cur td { background: var(--accent-subtle); }
table.evt td.acts { white-space: nowrap; text-align: right; }
table.evt td.acts .btn + .btn { margin-left: 4px; }
.edots { display: inline-flex; gap: 3px; }
.edots i { width: 14px; height: 5px; border-radius: 3px; background: var(--border-2); }
.edots i[data-s="done"] { background: var(--success); }
.edots i[data-s="now"] { background: var(--accent); }

/* 4 · 완료 회신 관리 — 칸 넷 */
.board { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; margin-bottom: 16px; }
.board.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.col { background: var(--bg-sidebar); border: 1px solid var(--border-1); border-radius: var(--r-10); min-height: 220px; }
.col-h { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--border-1); border-radius: var(--r-10) var(--r-10) 0 0; }
.col-h b { font-size: var(--fs-12); font-weight: 700; }
.col-h em { font-style: normal; font-size: var(--fs-11); font-weight: 700; padding: 0 7px; border-radius: 10px; background: var(--bg-panel); border: 1px solid var(--border-1); font-variant-numeric: tabular-nums; }
.col-h span { flex-basis: 100%; font-size: var(--fs-10); color: var(--text-3); }
.col[data-k="회신 없음"] .col-h { border-top: 3px solid #6fa6c7; }
.col[data-k="진행중"] .col-h { border-top: 3px solid #8b7fd6; }
.col[data-k="확인필요"] .col-h { border-top: 3px solid #e0a23a; }
.col[data-k="완료"] .col-h { border-top: 3px solid var(--success); }
.col-b { padding: 8px; display: grid; gap: 7px; }
.col-e { font-size: var(--fs-11); color: var(--text-3); text-align: center; padding: 18px 0; }

.card { background: var(--bg-panel); border: 1px solid var(--border-1); border-left: 3px solid var(--border-3); border-radius: var(--r-8); padding: 9px 11px; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }
.card[data-v="완료"] { border-left-color: var(--success); }
.card[data-v="회신대기"], .card[data-v="발송대기"] { border-left-color: #6fa6c7; }
.card[data-v="진행중"] { border-left-color: #8b7fd6; }
.card[data-v="확인필요"] { border-color: var(--v-hold-bd); border-left-color: #e0a23a; background: #fffaf0; }
.k-h { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.k-h b { font-size: var(--fs-12); font-weight: 700; }
.k-h .k-o { font-size: var(--fs-10); color: var(--text-3); }
.k-h .vb { margin-left: auto; font-size: 9.5px; padding: 0 6px; }
ul.k-t { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
ul.k-t li { display: flex; gap: 5px; font-size: var(--fs-10); color: var(--text-2); line-height: 1.5; }
ul.k-t li em { flex: 0 0 auto; font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--accent-text); background: var(--accent-subtle); border-radius: 4px; padding: 0 4px; height: fit-content; }
ul.k-t li span { margin-left: auto; flex: 0 0 auto; color: var(--text-3); white-space: nowrap; }
.card[data-v="완료"] ul.k-t li { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--border-3); }
.k-eta { margin-top: 6px; font-size: var(--fs-10); color: var(--v-prog); }
.k-eta b { font-weight: 700; }
.k-r { font-size: var(--fs-11); color: var(--text-1); line-height: 1.6; margin-top: 7px; padding: 6px 8px; background: var(--bg-sidebar); border-radius: var(--r-6); }
.k-r span { display: block; font-size: 9.5px; color: var(--text-3); font-weight: 650; margin-bottom: 2px; }
.k-w { font-size: var(--fs-10); color: var(--text-3); margin-top: 5px; line-height: 1.55; }
.k-d { font-size: var(--fs-10); color: var(--accent-text); margin-top: 5px; line-height: 1.55; }
.k-a { font-size: 9.5px; color: var(--text-3); margin-top: 4px; }
.k-a b { color: var(--v-prog); }
.paste { margin-top: 6px; }

.card .decide { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--v-hold-bd); }
.dq { font-size: var(--fs-11); font-weight: 700; color: var(--v-hold); line-height: 1.5; }
.db { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.db .btn { flex: 1; min-width: 96px; height: 30px; font-size: var(--fs-12); font-weight: 700; }
.dh { font-size: var(--fs-10); color: var(--text-2); line-height: 1.6; margin-top: 6px; }
.dh b { font-weight: 700; color: var(--text-1); }
.paste .fld { margin-top: 6px; }
.paste .fld textarea { font-size: var(--fs-11); padding: 7px 9px; }
.paste .fc-b { margin-top: 6px; }

/* 5 · 보고서 */
.docframe { display: block; width: 100%; height: 900px; margin-top: 18px; border: 1px solid var(--border-1); border-radius: var(--r-10); background: #f3f3f6; }

/* 메일함 */
.mailbox { display: grid; grid-template-columns: 220px 320px 1fr; height: 100%; min-height: 0; }
.mailbox > div { min-height: 0; overflow-y: auto; border-right: 1px solid var(--border-1); }
.mtree { background: var(--bg-sidebar); padding: 10px 8px; }
.mdir { margin-bottom: 10px; }
.md-h { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.md-h svg { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; }
.md-h b { font-size: var(--fs-12); font-weight: 700; line-height: 1.4; }
.md-f { display: flex; width: 100%; padding: 5px 8px 5px 28px; border: 0; border-radius: var(--r-6); background: none; font: inherit; font-size: var(--fs-12); color: var(--text-2); text-align: left; cursor: pointer; }
.md-f:hover { background: var(--bg-hover); }
.md-f.on { background: var(--accent-subtle); color: var(--accent-text); font-weight: 650; }
.md-f em { margin-left: auto; font-style: normal; font-size: var(--fs-10); color: var(--text-3); font-variant-numeric: tabular-nums; }
.mlist { background: var(--bg-panel); }
.ml-h { padding: 11px 14px; border-bottom: 1px solid var(--border-1); position: sticky; top: 0; background: var(--bg-panel); }
.ml-h b { display: block; font-size: var(--fs-12); font-weight: 700; }
.ml-h span { font-size: var(--fs-10); color: var(--text-3); }
.ml-i { display: block; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--border-1); background: none; font: inherit; text-align: left; cursor: pointer; }
.ml-i:hover { background: var(--bg-sidebar); }
.ml-i.on { background: var(--accent-subtle); }
.ml-t { display: flex; align-items: center; gap: 6px; font-size: var(--fs-11); }
.ml-t b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ml-t em { margin-left: auto; font-style: normal; font-size: var(--fs-10); color: var(--text-3); white-space: nowrap; }
.mtag { flex: 0 0 auto; font-size: 9.5px; font-weight: 700; padding: 0 5px; border-radius: 4px; white-space: nowrap; }
.mtag[data-b="sent"] { background: var(--v-wait-bg); color: var(--v-wait); }
.mtag[data-b="inbox"] { background: var(--success-subtle); color: var(--success); }
.mtag[data-b="mgr"], .mtag[data-b="report"] { background: var(--v-hold-bg); color: var(--v-hold); }
.ml-s { font-size: var(--fs-12); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-x { display: flex; align-items: center; gap: 5px; font-size: var(--fs-10); color: var(--text-3); margin-top: 4px; overflow: hidden; white-space: nowrap; }
.ml-x .vb { font-size: 9.5px; padding: 0 6px; }
.mread { background: var(--bg-panel); padding: 22px 26px; }
.mread h2 { font-size: var(--fs-15); font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.mr-h { font-size: var(--fs-11); color: var(--text-2); border-bottom: 1px solid var(--border-1); padding-bottom: 12px; margin-bottom: 16px; display: grid; gap: 4px; }
.mr-h span { display: inline-block; width: 72px; color: var(--text-3); }
.mread pre { white-space: pre-wrap; font: inherit; font-size: var(--fs-12); line-height: 1.85; margin: 0 0 16px; }

.toast { padding: 9px 14px; border-radius: var(--r-8); background: var(--bg-panel); color: var(--text-1);
  border: 1px solid var(--border-2); border-left: 3px solid var(--accent); font-size: var(--fs-12); font-weight: 600; }

@media (max-width: 1500px) {
  .mailbox { grid-template-columns: 190px 260px 1fr; }
}
@media (max-width: 1240px) {
  .grid2, .fillcard .grid2 { grid-template-columns: 1fr; }
  .ws-flow.five { grid-template-columns: repeat(3, 1fr); }
  .em-n em { display: none; }
}

/* 2열 아래 — 주 행동은 한 줄을 다 쓰고, 나머지는 그 아래 나란히 */
.work-foot { flex-wrap: wrap; }
.work-foot .btn.primary:not(:only-child) { flex-basis: 100%; }

/* 시연이 단계 앞에서 기다린다 — 누를 버튼은 늘 서 있는 그 버튼 */
.stepnav.tour { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.stepnav .sn-tour { flex-basis: 100%; margin: -4px 0 2px; font-size: var(--fs-11); font-weight: 600; color: var(--accent-text); }
.stepnav .sn-tour b { font-weight: 700; }
.stepnav .sn-tour::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
  background: var(--accent); vertical-align: 1px; animation: tourPulse 1.4s ease-in-out infinite; }
@keyframes tourPulse { 50% { opacity: .25; } }

/* 설정 */
.set .blk + .blk { margin-top: 30px; }
.set .fld { margin-top: 12px; }
.set .tpl + .tpl { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border-2); }
.set .tpl h4 { font-size: var(--fs-13); font-weight: 700; margin: 0; }
.set textarea.doc-in.mono { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--fs-12); min-height: 260px; line-height: 1.7; }
.set .fld textarea.doc-in:not(.mono) { min-height: 0; }
.set-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.set-foot > .btn:first-child:not(.primary) { margin-right: auto; }
.set-state { font-size: var(--fs-11); color: var(--text-3); }
.set-state.dirty { color: var(--v-hold); font-weight: 650; }
.ph-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ph-k { flex-basis: 100%; font-size: var(--fs-11); color: var(--text-3); margin-bottom: 2px; }
.ph { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 9px; border: 1px solid var(--border-2); border-radius: 20px;
  background: var(--bg-panel); font: inherit; font-size: var(--fs-11); color: var(--text-1); cursor: pointer; }
.ph:hover { border-color: var(--accent); background: var(--accent-subtle); }
.ph b { font-weight: 600; }
.ph code { font-size: 10.5px; color: var(--text-3); }
.set-preview { margin-top: 14px; border: 1px solid var(--border-2); border-radius: var(--r-8); background: var(--bg-panel); overflow: hidden; }
.set-preview.bad { padding: 12px 14px; border-color: var(--v-hold-bd); background: var(--v-hold-bg); color: var(--v-hold); font-size: var(--fs-12); }
.set-preview .pv-h { padding: 10px 14px; border-bottom: 1px solid var(--border-1, var(--border-2)); background: var(--bg-sub, #f7f8f8); }
.set-preview .pv-h span { display: block; font-size: var(--fs-10); color: var(--text-3); margin-bottom: 3px; }
.set-preview .pv-h b { font-size: var(--fs-13); font-weight: 650; }
.set-preview pre { margin: 0; padding: 14px; white-space: pre-wrap; font: inherit; font-size: var(--fs-12); line-height: 1.75; color: var(--text-1); }
.cue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.cue { padding: 12px 14px; border: 1px solid var(--border-2); border-radius: var(--r-8); background: var(--bg-panel); }
.cue-h { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cue-h b { font-size: var(--fs-12); font-weight: 650; }
.cue-h > span:last-child { flex-basis: 100%; font-size: var(--fs-11); color: var(--text-3); line-height: 1.55; }
.cue-l { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.cue-c { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px 2px 9px; border-radius: 20px; background: var(--bg-sub, #f1f3f3);
  border: 1px solid var(--border-2); font-size: var(--fs-11); }
.cue-c button { border: 0; background: none; padding: 0 4px; font-size: 13px; line-height: 1; color: var(--text-3); cursor: pointer; }
.cue-c button:hover { color: var(--v-hold); }
.cue-in { width: 110px; padding: 2px 9px; border: 1px dashed var(--border-2); border-radius: 20px; font: inherit; font-size: var(--fs-11); background: transparent; }
.cue-in:focus { outline: none; border-style: solid; border-color: var(--accent); }
.cue-try { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 14px; }
.cue-try textarea { flex: 1; min-width: 260px; padding: 9px 11px; font: inherit; font-size: var(--fs-12); line-height: 1.6;
  border: 1px solid var(--border-2); border-radius: var(--r-6); resize: vertical; }
.cue-try textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.cue-out { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-6);
  background: var(--bg-sub, #f5f6f6); font-size: var(--fs-12); }
.cue-out em { font-style: normal; font-size: var(--fs-10); color: var(--v-hold); margin-left: auto; }
