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

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

   | 색 | 뜻 |
   |---|---|
   | 초록 | 수락 · 확정 · 발송됐다 |
   | 주황 | **사람이 정해야 한다** · 판단보류 · 승인 대기 |
   | 빨강 | 거절 · 불참 |
   | 회색 | 그 밖의 사실 (대기 · 발송불가) |

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

:root { --v-wait: #2c6a8f; --v-wait-bg: #e9f2f8; --v-wait-bd: #c4dcea; }

.vb[data-v="수락"], .vb[data-v="발송"] { background: var(--v-met-bg); color: var(--v-met); }
.vb[data-v="거절"], .vb[data-v="무응답"] { background: var(--v-short-bg); color: var(--v-short); }
.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="초대중"], .vb[data-v="회신 관리"] { background: var(--v-wait-bg); color: var(--v-wait); border-color: var(--v-wait-bd); }
.vb[data-v="대기"], .vb[data-v="발송불가"], .vb[data-v="메일 없음"], .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="승인"], .vb[data-v="섭외 완료"] {
  background: var(--accent-subtle); color: var(--accent-text); border-color: var(--accent-border);
}
.vb + .vb { margin-left: 4px; }
.vb[data-v="무응답"] { margin-left: 0; }

/* 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; }
.wl-r .wn .pr { font-style: normal; display: inline-block; min-width: 18px; margin-right: 6px; font-size: var(--fs-10); font-weight: 700; color: var(--accent-text); }
.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열 — KAFE 뼈대 (views.css 에서 가져온 것)
   ============================================================ */
.cv-pad { padding: 18px 22px 56px; max-width: 1120px; }
.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; }
.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 {
  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 { 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: 30px 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; }
.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="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-n[data-t="short"] { border-top-color: #e59a9a; }
.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-gap { flex: 0 0 12px; border-left: 1px dashed var(--border-2); margin-left: 6px; }
.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 dashed var(--border-3); border-radius: 20px; font-size: var(--fs-11); color: var(--text-3); }
.es i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.es:has(i[data-v]) { border-style: solid; border-color: var(--border-1); color: var(--text-1); font-weight: 600; }
.es i[data-v="수락"] { background: var(--success); }
.es i[data-v="판단보류"] { background: #e0a23a; }
.es i[data-v="초대중"] { background: #6fa6c7; }

/* 받은 문서 */
.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; }
.pdfview { display: block; width: 100%; height: 760px; border: 0; background: #e9e9ee; }
div.pdfview { height: auto; max-height: 780px; overflow-y: auto; padding: 18px; display: grid; gap: 14px; justify-items: center; }
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; }
.doc-b.scroll { padding: 0; max-height: 460px; overflow: auto; }
table.sheetv th, table.sheetv td { white-space: nowrap; }
table.sheetv thead th { position: sticky; top: 0; z-index: 1; }

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 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 tr.cutline td { border-bottom: 2px solid var(--accent); }
.note.hold b { color: var(--v-hold); }

/* 명단 보강 */
.addbox { margin-top: 22px; border: 1px solid var(--border-1); border-radius: var(--r-10); background: var(--bg-panel); }
.addbox.open { padding-bottom: 14px; }
.addbox .fold { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 12px 16px; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.addbox .fold b { font-size: var(--fs-13); font-weight: 700; }
.addbox .fold span { font-size: var(--fs-11); color: var(--text-3); }
.addbox .fold i { margin-left: auto; font-style: normal; font-size: var(--fs-11); color: var(--accent-text); font-weight: 600; }
.addbox > .fld, .addbox > .fc-b { padding: 0 16px; }
.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; }

/* 초대메일 첨부 */
.att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.att a { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--border-2); border-radius: var(--r-6);
  background: var(--bg-sidebar); font-size: var(--fs-11); color: var(--text-1); text-decoration: none; }
.att a:hover { border-color: var(--accent-border); background: var(--accent-subtle); }
.att svg { width: 13px; height: 13px; color: var(--text-3); }
.att em { font-style: normal; color: var(--text-3); font-size: var(--fs-10); }
.mr-h .att { display: inline-flex; margin: 0; }
.ml-s .clip { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; color: var(--text-3); }

/* 행사 목록 */
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(176px, 1fr)); align-items: start; margin-bottom: 16px; }
.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); }
.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 var(--success); border-radius: var(--r-10) var(--r-10) 0 0; }
.col[data-k="판단보류"] .col-h { border-top: 3px solid #e0a23a; border-radius: var(--r-10) var(--r-10) 0 0; }
.col[data-k="초대중"] .col-h { border-top: 3px solid #6fa6c7; border-radius: var(--r-10) var(--r-10) 0 0; }
.col[data-k="불참 · 제외"] .col-h { border-top: 3px solid #e59a9a; border-radius: var(--r-10) var(--r-10) 0 0; }
.col[data-k="예비"] .col-h { border-top: 3px solid var(--border-3); border-radius: var(--r-10) var(--r-10) 0 0; }
.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-color: var(--v-hold-bd); border-left-color: #e0a23a; background: #fffaf0; }
.card[data-v="거절"] { border-left-color: #e59a9a; opacity: .82; }
.card.stale { border-color: var(--v-hold-bd); border-left-color: #e0a23a; background: #fffaf0; }
.card.stale .k-a b { color: var(--v-hold); }
.card[data-v="발송불가"] { opacity: .7; }
.k-h { display: flex; align-items: center; gap: 6px; }
.k-h em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--accent-text); background: var(--accent-subtle); border-radius: 4px; padding: 0 5px; }
.k-h b { font-size: var(--fs-12); font-weight: 700; }
.k-h .vb { margin-left: auto; font-size: 9.5px; padding: 0 6px; }
.k-o { font-size: var(--fs-10); color: var(--text-3); margin-top: 3px; }
.k-t { font-size: var(--fs-10); color: var(--text-2); margin-top: 2px; }
.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; }
.card[data-v="판단보류"] .k-w { color: var(--v-hold); font-weight: 600; }
.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; }
.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); }
.db { display: flex; gap: 6px; margin-top: 7px; }
.db .btn { flex: 1; height: 30px; font-size: var(--fs-12); font-weight: 700; }
.btn.danger { background: var(--bg-panel); border-color: #e59a9a; color: var(--v-short); }
.btn.danger:hover:not(:disabled) { background: var(--v-short-bg); border-color: var(--v-short); }
.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; }
.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="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; }

/* 토스트 — 방금 한 일만 말한다. 배경에 가깝게 두고 accent 로만 표시한다 */
.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 + .fld { margin-top: 14px; }
.set .fld { margin-top: 12px; }
.set textarea.doc-in.mono { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--fs-12); min-height: 320px; 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; }
.fld.inline { display: flex; align-items: center; gap: 10px; }
.fld.inline label { margin: 0; }
.fld input.num { width: 72px; padding: 7px 9px; font: inherit; font-size: var(--fs-13); border: 1px solid var(--border-2); border-radius: var(--r-6); text-align: center; }
.fld input.num:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.fld .unit { font-size: var(--fs-12); color: var(--text-2); }
label.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; cursor: pointer; }
label.check input { margin-top: 3px; accent-color: var(--accent); }
label.check b { display: block; font-size: var(--fs-12); font-weight: 650; }
label.check small { display: block; font-size: var(--fs-11); color: var(--text-3); margin-top: 2px; }

/* 시연이 중간보고를 기다린다 — 초록 버튼 하나 */
.btn.primary.pulse { animation: midPulse 1.6s ease-in-out infinite; }
@keyframes midPulse { 50% { box-shadow: 0 0 0 4px var(--accent-subtle); } }
.stepnav.mid .btn.primary { animation: midPulse 1.6s ease-in-out infinite; }
