:root {
  --bg: #f5f6f8; --card: #fff; --line: #e3e6ea; --text: #1f2328; --sub: #5f6670; --muted: #9aa1a9;
  --accent: #1f5fbf; --ok: #2e7d32; --warn: #b26a00; --danger: #c62828; --dark: #1f2a37;
  --r: 10px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
button, input, select { font: inherit; }
.center { text-align: center; padding: 40px 16px; }
.muted { color: var(--muted); }
.sub { color: var(--sub); }

/* 상단 */
.top { position: sticky; top: 0; z-index: 10; background: var(--dark); color: #fff; display: flex; align-items: center;
  gap: 8px; padding: 0 12px; height: 52px; }
.top .brand { font-weight: 600; margin-right: 8px; white-space: nowrap; }
.tabs { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.tabs button { background: none; border: 0; color: #c9d1db; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: rgba(255,255,255,.14); color: #fff; }
.who { font-size: 13px; color: #c9d1db; white-space: nowrap; }
.who button { margin-left: 6px; background: none; border: 1px solid #50606f; color: #c9d1db; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
main { max-width: 980px; margin: 0 auto; padding: 18px 14px 60px; }

/* 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
h1 { font-size: 22px; margin: 4px 0 14px; font-weight: 600; }
h2 { font-size: 16px; margin: 0 0 10px; font-weight: 600; }
h3 { font-size: 14px; margin: 14px 0 6px; font-weight: 600; color: var(--sub); }

/* 프로젝트 판정 */
.proj { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.proj .p { border-radius: 8px; padding: 8px 10px; border-left: 4px solid; }
.proj .p b { display: block; font-size: 14px; }
.proj .p small { color: var(--sub); }
.tone-success { color: var(--ok); } .tone-warning { color: var(--warn); font-weight: 600; }
.tone-danger { color: var(--danger); font-weight: 600; } .tone-accent { color: var(--accent); } .tone-neutral { color: var(--sub); }

/* 사람 */
.person .head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.person .head b { font-size: 18px; }
.slot { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; padding: 6px 0;
  border-top: 1px solid var(--line); }
.slot:first-of-type { border-top: 0; }
.slot .time { font-size: 13px; color: var(--sub); line-height: 1.25; }
.slot .time small { display: block; color: var(--muted); }
.slot.now .time { color: var(--accent); font-weight: 600; }
.slot.now .time small { color: var(--accent); }
.task { border-radius: 8px; padding: 8px 10px; min-height: 40px; display: flex; align-items: center; font-weight: 600; font-size: 14px; }
.task.empty { color: var(--muted); font-weight: 400; background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 6px, #f3f4f6 6px, #f3f4f6 12px); }
.task .pn { font-weight: 400; opacity: .8; margin-right: 6px; }
.res { display: flex; gap: 4px; }
.res button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
.res button:disabled { opacity: .35; cursor: default; }
.res button.on.r-ok { background: #e8f5e9; border-color: var(--ok); color: var(--ok); }
.res button.on.r-no { background: #fdecea; border-color: var(--danger); color: var(--danger); }
.res button.on.r-mv { background: #fff4e0; border-color: var(--warn); color: var(--warn); }
.stage { font-size: 11px; margin-left: 6px; padding: 1px 6px; border-radius: 10px; background: #fff4e0; color: var(--warn); font-weight: 600; }
.next div { display: flex; gap: 10px; font-size: 14px; padding: 2px 0; }
.next .dt { width: 72px; color: var(--sub); flex: none; }
.alerts div { font-size: 14px; padding: 3px 0 3px 16px; position: relative; }
.alerts div::before { content: "●"; position: absolute; left: 0; font-size: 10px; top: 7px; }
.alerts .tone-danger::before { color: var(--danger); } .alerts .tone-warning::before { color: var(--warn); }
.alerts .tone-accent::before { color: var(--accent); }
.alerts div { color: var(--text); font-weight: 400; }

/* 폼 */
.form { max-width: 360px; margin: 60px auto; }
.form label { display: block; font-size: 13px; color: var(--sub); margin: 10px 0 4px; }
.form input, .grid input, .grid select { width: 100%; padding: 9px 10px; border: 1px solid #cfd5db; border-radius: 8px; background: #fff; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; font-weight: 600; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid #cfd5db; font-weight: 400; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid #efc2c2; }
.err { color: var(--danger); font-size: 13px; min-height: 20px; margin-top: 8px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 표 */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--sub); font-weight: 500; font-size: 13px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.badge { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #eef1f4; color: var(--sub); }
.badge.admin { background: #e6effb; color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; align-items: end; }
.grid label { font-size: 12px; color: var(--sub); }
.soon { color: var(--sub); }
.soon li { margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 50; }

.tablewrap { overflow-x: auto; }
table.t td, table.t th { white-space: nowrap; }


/* ── 공정 탭 ─────────────────────────────────────────── */
main.wide { max-width: 1320px; }
.pwrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.pside { position: sticky; top: 66px; }
.ps-sel { display: none; width: 100%; padding: 9px 10px; border: 1px solid #cfd5db; border-radius: 8px; background: #fff; margin-bottom: 12px; }
.ps-list { display: flex; flex-direction: column; gap: 2px; }
.ps-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin: 12px 6px 4px; }
.ps-h:first-child { margin-top: 0; }
.ps-i { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 6px; text-align: left; background: none; border: 0;
  border-radius: 8px; padding: 6px 8px; cursor: pointer; color: var(--text); font-size: 14px; }
.ps-i:hover { background: #eceff3; }
.ps-i.on { background: #e3ebf7; }
.ps-i.dim { opacity: .55; }
.ps-i .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-i small { grid-column: 2; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-i .ti-doc { font-style: normal; color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.dot.big { width: 14px; height: 14px; margin: 0 8px 0 0; vertical-align: 1px; }
.lnk { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: 13px; }
.small { font-size: 12px; } .pad { padding: 4px 8px; } .nowrap { flex-wrap: nowrap; }

.phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.phead h1 { margin: 0 0 4px; }
.ph-sub { font-size: 14px; }
.ph-v { font-size: 13px; margin-top: 2px; }
.ph-r { justify-content: flex-end; }
.title-in { font-size: 22px; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; margin-left: -6px; width: min(520px, 100%); background: transparent; }
.title-in:hover, .title-in:focus { border-color: #cfd5db; background: #fff; }
.seg { display: inline-flex; border: 1px solid #cfd5db; border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { background: none; border: 0; padding: 5px 12px; cursor: pointer; color: var(--sub); font-size: 13px; }
.seg button.on { background: #e3ebf7; color: var(--accent); font-weight: 600; }
.seg button.me.on { background: #fff4e0; color: var(--warn); }
.seg button:disabled { opacity: .35; cursor: default; }
.seg.tiny button { padding: 3px 6px; font-size: 12px; white-space: nowrap; }
.nowrap-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-in::placeholder { color: #b3bac2; }
.use .d-in { width: 52px; }
.warnbox { background: #fff4e0; color: #7a4a00; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 14px; }
.o8-list { margin-top: 6px; font-size: 13px; max-height: 220px; overflow: auto; }
.o8-list div { padding: 2px 0 2px 22px; }
.o8-d { display: inline-block; min-width: 92px; }
.late { color: var(--warn); } .ok { color: var(--ok); }
.num, .dt2 { font-variant-numeric: tabular-nums; }

/* 간단 보기 */
.stable { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.sr { display: grid; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 14px; min-width: 640px; }
.sr.hd { border-top: 0; color: var(--muted); font-size: 12px; background: #fafbfc; padding-top: 6px; padding-bottom: 6px; }
.sr.band { background: #f3f5f8; font-weight: 600; }
.sr.deep { font-size: 13px; color: var(--sub); }
.sr.act { cursor: pointer; } .sr.act:hover { background: #f7f9fc; }
.sr.band.act:hover { background: #eef1f5; }
.sr .no { color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; font-weight: 400; }
.sr .nmc { display: flex; align-items: center; gap: 4px; min-width: 0; }
.sr .nmc .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold { background: none; border: 0; cursor: pointer; color: var(--muted); width: 18px; padding: 0; }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.c-done { background: #e8f5e9; color: var(--ok); } .c-run { background: #e3ebf7; color: var(--accent); }
.c-ext { background: #eeedfe; color: #3c3489; } .c-todo { background: #eef1f4; color: var(--sub); }
.kchip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.dt2 { display: inline-grid; grid-template-columns: 34px 22px 14px 30px; align-items: baseline; font-weight: inherit; }
.dt2 .m { color: var(--sub); font-size: 12px; font-weight: 400; }
.dt2 .d { text-align: right; }
.dt2 .w { color: var(--sub); font-weight: 400; }
.dt2.late, .dt2.late .m, .dt2.late .w { color: var(--warn); }

/* 편집기 */
.etable-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.etable { min-width: 980px; }
.er { display: grid; align-items: center; gap: 6px; padding: 4px 10px; border-top: 1px solid var(--line); font-size: 14px; }
.er.hd { border-top: 0; color: var(--muted); font-size: 12px; background: #fafbfc; padding-top: 7px; padding-bottom: 7px; }
.er.band { background: #f3f5f8; }
.er.band .nm-in { font-weight: 600; }
.er.deep .nm-in { font-size: 13px; color: var(--sub); }
.er.add { display: flex; gap: 14px; padding: 9px 12px; }
.er .no { color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.grip { color: #c0c6cd; cursor: grab; user-select: none; font-size: 12px; letter-spacing: -2px; }
.nm-in, .o-in { width: 100%; border: 1px solid transparent; border-radius: 6px; padding: 5px 6px; background: transparent; font: inherit; }
.nm-in:hover, .o-in:hover { border-color: #e1e5ea; }
.nm-in:focus, .o-in:focus, .d-in:focus { border-color: var(--accent); background: #fff; outline: none; }
.d-in { width: 58px; border: 1px solid #dfe3e8; border-radius: 6px; padding: 4px 6px; font: inherit; text-align: right; }
.k-sel, .s-sel { border: 1px solid #dfe3e8; border-radius: 6px; padding: 4px 4px; font-size: 13px; width: 100%; background: #fff; }
.use { display: flex; align-items: center; gap: 4px; }
.rel-b { background: none; border: 1px dashed #d5dae0; border-radius: 6px; padding: 4px 6px; cursor: pointer; font-size: 13px; text-align: left; width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.rel-b:hover { border-color: var(--accent); }
.rel-b:disabled { cursor: default; }
.savebar { position: sticky; bottom: 12px; margin-top: 12px; display: flex; gap: 8px; align-items: center; justify-content: flex-end;
  background: var(--dark); color: #fff; border-radius: 10px; padding: 8px 10px 8px 14px; font-size: 14px; }
.savebar span { flex: 1; }
.savebar .btn.ghost { background: transparent; color: #fff; border-color: #5b6a79; }

/* 떠 있는 상자 */
.pop { position: absolute; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 200px; max-width: 320px; font-size: 14px; }
.pop-h { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.chk { display: flex; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; }
.rel-t { display: flex; gap: 6px; align-items: center; margin: 6px 0 0 24px; }
.rel-t select { max-width: 220px; padding: 4px; border: 1px solid #cfd5db; border-radius: 6px; }
.rel-t input { padding: 4px; border: 1px solid #cfd5db; border-radius: 6px; }
.menu { display: flex; flex-direction: column; }
.menu button { background: none; border: 0; text-align: left; padding: 7px 6px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.menu button:hover { background: #f0f3f7; }
.res .more { width: 28px; color: var(--sub); }
.grid input[type=color] { padding: 2px; height: 38px; }
table.t input:not([type=color]) { padding: 6px 8px; border: 1px solid #cfd5db; border-radius: 6px; }
table.t input[type=color] { width: 40px; height: 30px; padding: 0; border: 1px solid #cfd5db; border-radius: 6px; }

/* 간단 보기 — 휴대폰 두 줄 */
.mr { padding: 9px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.stable.narrow .mr:first-child { border-top: 0; }
.mr.band { background: #f3f5f8; font-weight: 600; }
.mr.deep { font-size: 13px; color: var(--sub); }
.mr-1 { display: flex; align-items: center; gap: 6px; }
.mr-1 .no { color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; font-weight: 400; min-width: 28px; }
.mr-1 .nmc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.mr-1 .nmc .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-2 { display: flex; gap: 12px; align-items: baseline; margin: 3px 0 0 34px; font-size: 13px; font-weight: 400; flex-wrap: wrap; }
.mr-2 .mc-must { min-width: 100px; }

@media (max-width: 860px) {
  .pwrap { grid-template-columns: 1fr; }
  .pside { position: static; }
}

/* ── 공정 탭 2판: 체크 목록 · 카드 · 두 줄 상세 ────────────── */
.pside { max-height: calc(100vh - 80px); overflow: auto; }
.ps-det > summary { display: none; }
.ps-projs { display: flex; flex-direction: column; gap: 1px; }
.ps-p { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 4px; padding: 5px 6px; border-radius: 8px; }
.ps-p:hover { background: #eceff3; }
.ps-p.on { background: #e9eff8; }
.ps-p .grip { cursor: grab; align-self: center; }
.ps-p small { grid-column: 2; font-size: 12px; padding-left: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-chk { display: flex; align-items: center; gap: 6px; cursor: pointer; min-width: 0; font-size: 14px; }
.ps-chk .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-chk .dot { margin-top: 0; flex: none; }
.chipbtn { background: #fff; border: 1px solid #d5dae0; border-radius: 14px; padding: 2px 10px; font-size: 12px; cursor: pointer; color: var(--sub); }
.chipbtn:hover { border-color: var(--accent); color: var(--accent); }
.ptools { margin-bottom: 12px; }
.lockbtn { background: #eef1f4; border: 1px solid transparent; border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: 13px; color: var(--sub); }
.lockbtn.open { background: #fff4e0; border-color: #f1d29b; color: #7a4a00; }
.row.end { justify-content: flex-end; }

.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; }
.pcard.folded .pc-head { border-bottom: 0; }
.pc-head { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pc-head .fold { margin-top: 2px; }
.pc-head .dot.big { margin: 5px 2px 0 0; flex: none; }
.pc-t { flex: 1; min-width: 0; }
.pc-name { font-size: 17px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pc-v { font-size: 13px; font-weight: 600; }
.gear { background: none; border: 1px solid transparent; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; color: var(--sub); font-size: 17px; line-height: 1; }
.gear:hover { background: #f0f3f7; border-color: #e1e5ea; color: var(--text); }
.gear.sm { width: 26px; height: 26px; font-size: 14px; }
.pausebox { background: #eef1f4; color: var(--sub); font-size: 13px; padding: 7px 14px; border-bottom: 1px solid var(--line); }
.pausebox.now { background: #eeedfe; color: #3c3489; }
.pcard .warnbox { margin: 10px 14px; }
.pcard .stable { border: 0; border-radius: 0; }
.pcard .savebar { margin: 10px; }
.rename-in { width: 100%; font: inherit; padding: 3px 6px; border: 1px solid var(--accent); border-radius: 6px; }
.sr .nm { cursor: default; }

/* 상세 보기 · 공정 데이터: 공정마다 두 줄 */
.etable2 { font-size: 14px; }
.el { border-top: 1px solid var(--line); padding: 6px 12px 8px; }
.el:first-of-type { border-top: 0; }
.el.band { background: #f5f7fa; }
.el.grp-row { padding-bottom: 6px; }
.el.add { display: flex; gap: 14px; align-items: center; padding: 10px 12px; }
.el1 { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.el1 .no { color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; min-width: 34px; }
.el1 .nmc { flex: 1; min-width: 0; }
.el.band .nm-in { font-weight: 600; }
.el.deep .nm-in { font-size: 13px; color: var(--sub); }
.el1 .k-sel { width: 92px; flex: none; border-color: transparent; font-weight: 500; }
.el1 .o-in { width: 110px; flex: none; }
.el2 { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 18px; margin: 4px 0 0 42px; }
.grp-dur { display: inline-flex; gap: 4px; }
.vopt { display: inline-flex; flex-direction: column; align-items: flex-end; min-width: 54px; padding: 3px 8px; border: 1px solid #e1e5ea;
  border-radius: 8px; background: #fff; cursor: pointer; font: inherit; color: var(--text); }
.vopt .vl { font-size: 11px; color: var(--muted); align-self: flex-start; }
.vopt .vn { font-variant-numeric: tabular-nums; font-size: 15px; display: inline-flex; align-items: baseline; gap: 2px; }
.vopt.on { border-color: var(--accent); background: #eef4fc; }
.vopt.on .vl { color: var(--accent); }
.vopt.me.on { border-color: #e0a44a; background: #fff6e6; }
.vopt.me.on .vl { color: var(--warn); }
.vopt:disabled { cursor: default; opacity: .5; }
.vopt.in { cursor: default; min-width: 84px; }
.vopt.in .d-in { width: 58px; border: 0; border-bottom: 1px dashed #c9d0d8; border-radius: 0; padding: 0 2px; font-size: 15px; background: transparent; }
.vopt.in .d-in:focus { border-bottom-color: var(--accent); }
.vopt small { font-size: 12px; color: var(--sub); }
.el2 .grp { display: inline-flex; flex-direction: column; gap: 2px; }
.el2 .grp.grow { flex: 1; min-width: 220px; }
.el2 .gl { font-size: 11px; color: var(--muted); }
.sc-sel { border-radius: 8px; padding: 4px 6px; font-size: 13px; font-weight: 500; border: 1px solid transparent; }
.sc-sel.sc-p { background: #e3ebf7; color: #1f4f99; }
.sc-sel.sc-f { background: #eeedfe; color: #3c3489; }
.sc-sel.sc-u { background: #fff4e0; color: #8a5300; }
.conds { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 30px; padding: 2px 4px; border-radius: 8px; border: 1px dashed transparent; }
.conds.edit { cursor: pointer; }
.conds.edit:hover { border-color: #c9d0d8; }
.cond { font-size: 13px; background: #f3f5f8; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.cond b { font-weight: 600; }
.basic { font-size: 12px; border: 1px solid #cfd5db; color: var(--sub); border-radius: 12px; padding: 1px 10px; background: #fff; }
.basic.free { border-color: #b9d7c7; color: var(--ok); }
.relpop { min-width: 300px; }
.rel-list { margin: 6px 0 0 22px; display: flex; flex-direction: column; gap: 6px; }
.rel-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rel-row select { max-width: 190px; padding: 4px; border: 1px solid #cfd5db; border-radius: 6px; font-size: 13px; }
.rel-row input { padding: 4px; border: 1px solid #cfd5db; border-radius: 6px; }
.pop { max-width: 380px; }
.adj input { padding: 4px 6px; border: 1px solid #cfd5db; border-radius: 6px; }
.grp-in { padding: 3px 8px; border: 1px solid #dfe3e8; border-radius: 6px; width: 140px; font-size: 13px; }

/* 확인창 */
.modal { position: fixed; inset: 0; background: rgba(20, 26, 34, .42); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 12px 12px; overflow: auto; }
.modal-box { background: #fff; border-radius: 12px; padding: 18px 20px; width: min(520px, 100%); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.modal-box h2 { font-size: 18px; }
.modal-box label { display: block; font-size: 12px; color: var(--sub); margin: 8px 0 4px; }
.modal-box input:not([type=checkbox]):not([type=radio]):not([type=color]), .modal-box select { width: 100%; padding: 8px 10px; border: 1px solid #cfd5db; border-radius: 8px; background: #fff; font: inherit; }
.kv { display: grid; grid-template-columns: 86px minmax(0, 1fr); row-gap: 8px; column-gap: 10px; font-size: 14px; }
.opt2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.optcard { text-align: left; background: #fff; border: 1px solid #d5dae0; border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 4px; }
.optcard span { font-size: 13px; color: var(--sub); }
.optcard.on { border-color: var(--accent); background: #eef4fc; }

/* 보관함 */
.ar-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
.ar-g { grid-template-columns: 48px minmax(160px, 1fr) 80px 70px 70px 90px; }
.ar-b { border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .ps-det > summary { display: block; cursor: pointer; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
  .ps-det[open] .ps-list { display: flex; }
  .pside { max-height: none; overflow: visible; }
  .el2 { margin-left: 0; }
  .opt2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .el { padding: 8px 10px; }
  .el1 { flex-wrap: wrap; row-gap: 4px; }
  .el1 .nmc { flex: 1 1 calc(100% - 46px); }
  .el1 .k-sel { width: 84px; }
  .el1 .o-in { width: 96px; }
  .el2 { gap: 8px 12px; }
  .el2 .grp.grow { min-width: 0; flex-basis: 100%; }
  .vopt { min-width: 48px; padding: 3px 6px; }
  .pcard.picking .el.pk-self { top: 82px; }
  .pk-act .btn { padding: 7px 14px; }
  .pc-head { padding: 10px; }
  .top { flex-wrap: wrap; height: auto; padding: 6px 10px 0; row-gap: 0; }
  .top .brand { display: block; flex: 1; font-size: 15px; }
  .who .nm { display: none; }
  .tabs { order: 3; flex: 0 0 100%; padding: 4px 0 6px; }
  .tabs button { padding: 6px 11px; }
  .slot { grid-template-columns: 64px 1fr; }
  .slot .res { grid-column: 2; }
  main { padding-top: 12px; }
}

/* 일시정지 · 바로 쓰는 단추 · 시작 조건 고르기 */
.quick { background: #fff; border: 1px solid #d5dae0; border-radius: 8px; padding: 4px 10px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.quick:hover { border-color: var(--danger); color: var(--danger); }
.quick.resume { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.pcard.paused { border: 2px solid var(--danger); }
.pcard.paused .pc-head { background: #fff5f5; }
.pausebox { background: #fff4e0; color: #7a4a00; }
.pausebox.now { background: var(--danger); color: #fff; font-size: 14px; }
.pausebox.now b { font-weight: 700; }
.room { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.room-h { font-size: 13px; color: var(--sub); margin-bottom: 2px; }
.roomopt { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid #d5dae0;
  border-radius: 10px; padding: 9px 12px; cursor: pointer; font: inherit; flex-wrap: wrap; }
.roomopt.on { border-color: var(--accent); background: #eef4fc; }
.roomopt:disabled { cursor: default; opacity: .55; }
.roomopt .ro-n { font-variant-numeric: tabular-nums; font-size: 14px; }
.roomopt.cust input { width: 150px !important; padding: 5px 8px !important; }
.pc-head .row.nowrap { flex-wrap: nowrap; align-items: center; }
.pcard.picking { border: 2px solid var(--accent); }
.pickbar { background: #eef4fc; border-bottom: 1px solid #cfe0f5; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.pk-t { font-size: 14px; }
.wholebox { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; background: #fff; border: 1px solid #cfe0f5;
  border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.wholebox.on { border-color: var(--accent); background: #e3ebf7; color: var(--accent); }
.pct-in { width: 56px; padding: 2px 6px; border: 1px solid #cfd5db; border-radius: 6px; font: inherit; text-align: right; }
.pk { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; cursor: pointer; flex: none; }
.pk input { width: 23px; height: 23px; cursor: pointer; accent-color: var(--accent); margin: 0; }
.pk-me { font-size: 12px; color: #fff; background: var(--accent); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.pk-no { display: inline-block; width: 32px; flex: none; }
.el.pk-self { background: #e3ebf7; }
.el.pk-on { background: #f3f8ff; }
.pk-how { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.pk-how select { padding: 3px 4px; border: 1px solid #9dbbe6; border-radius: 6px; font-size: 13px; background: #fff; }
.pk-how select { font-size: 14px; padding: 5px 6px; }
.pk-how .pct-in { width: 64px; font-size: 14px; padding: 4px 6px; }
/* 고르는 중: 이름은 글자 길이만큼 → 바로 옆에 조건·% / 자기 줄에 큰 적용·취소 */
.pcard.picking { overflow: clip; }
.pcard.picking .el1 .nmc { flex: 0 1 auto; }
.el1 .fill { flex: 1; }
.nm-t { display: block; padding: 5px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el.band .nm-t { font-weight: 600; }
.el.deep .nm-t { font-size: 13px; color: var(--sub); }
.pk-act { display: inline-flex; gap: 8px; margin-left: 6px; flex: none; }
.pk-act .btn { font-size: 14px; padding: 7px 18px; }
.pcard.picking .el.pk-self { position: sticky; top: 60px; bottom: 10px; z-index: 4; box-shadow: 0 2px 12px rgba(30, 60, 110, .18); }
.el.lock-row { display: flex; gap: 12px; align-items: center; padding: 8px 12px; }
.cond.whole { background: #e3ebf7; color: #1f4f99; }

/* ── 끌기 미리보기 ── */
.dnd-hide { display: none !important; }
.drop-ph { display: flex; align-items: center; gap: 10px; min-height: 34px; margin: 3px 0; padding: 0 12px;
  border: 2px dashed var(--accent); border-radius: 8px; background: #eaf2ff; color: #1d4f99; font-size: 13px;
  animation: ph-in .12s ease-out; box-sizing: border-box; }
.drop-ph .ph-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.drop-ph .ph-s { color: #4a6fa8; white-space: nowrap; margin-left: auto; }
.drop-ph * { pointer-events: none; }
.drop-ph.home { border-color: #b9c3cf; background: #f3f5f8; color: var(--sub); }
.drop-ph.home .ph-s { color: var(--sub); }
.ps-projs .drop-ph { min-height: 30px; margin: 2px 0; }
@keyframes ph-in { from { opacity: 0; transform: scaleY(.6); } to { opacity: 1; transform: none; } }

/* ── 업데이트 6: 남은 일 전환 · 분류 · 긴급/우선 · 보완 · 효율 ── */
.rsw { display: inline-flex; margin-left: 6px; border: 1px solid #d5dae0; border-radius: 6px; overflow: hidden; vertical-align: middle; }
.rsw button { border: 0; background: #fff; font-size: 11px; padding: 1px 6px; cursor: pointer; color: var(--sub); }
.rsw button.on { background: #e9eff8; color: #1d4f99; font-weight: 600; }
.catc { font-size: 12px; color: #4a5560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catc.inh { color: #9aa3ad; font-style: italic; }
.cat-sel { font-size: 13px; padding: 4px 6px; border: 1px solid #c3ccd6; border-radius: 6px; background: #fff; color: #2b3138; max-width: 190px; cursor: pointer; }
.cat-sel.own { border-color: #9dbbe6; background: #eef4fc; color: var(--accent); font-weight: 500; }
.cat-sel.inh { border-style: dashed; border-color: #a9b4c0; color: #4f5a66; }
.cat-sel.none { color: #8a939d; }
.cat-sel option { color: #1f2329; background: #fff; font-weight: 400; }
.cat-sel:disabled { cursor: default; opacity: .75; }
.gl-in { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pchip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.chips .pchip { margin-left: 0; }
.pchip.urg { background: #fcebeb; color: #8f1f1f; }
.pchip.urg.wait { background: #fff; color: #a32d2d; border: 1px dashed #e07a7a; }
.pchip.pri { background: #faeeda; color: #6b4008; }
.pchip.pri.held { background: #f1f2f4; color: #7a828c; font-weight: 500; }
.pchip.rw { background: #eeedfe; color: #3c3489; }
.pchip.late { background: #fff4e0; color: #8a4b00; font-weight: 500; }
.pchip.q { background: #e1f5ee; color: #085041; font-weight: 500; }
.prio-pop { width: 300px; }
.prio-opt { display: block; width: 100%; text-align: left; border: 1px solid #e3e7ec; background: #fff; border-radius: 8px; padding: 7px 10px; margin: 0 0 6px; cursor: pointer; }
.prio-opt b { display: block; font-size: 13px; margin-bottom: 2px; }
.prio-opt span { font-size: 12px; color: var(--sub); line-height: 1.45; }
.prio-opt.on { border-color: var(--accent); background: #eef4ff; }
.prio-opt:disabled { opacity: .55; cursor: default; }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; }
/* 효율 탭 */
.eff-wrap { max-width: 1180px; margin: 0 auto; }
.eff-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.eff-note { font-size: 12px; color: var(--sub); margin: 0 0 12px; line-height: 1.6; }
.eff-tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e7ec; border-radius: 10px; overflow: hidden; font-size: 13px; }
.eff-tbl th { background: #f6f7f9; font-weight: 600; color: var(--sub); font-size: 12px; text-align: left; padding: 8px 10px; border-bottom: 1px solid #e3e7ec; white-space: nowrap; }
.eff-tbl td { padding: 8px 10px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.eff-tbl tr:last-child td { border-bottom: 0; }
.eff-tbl th.sub-h { font-weight: 500; color: #8a929b; }
.kcell { cursor: default; min-width: 74px; }
.kcell.adm { cursor: pointer; }
.kcell.adm:hover { background: #f4f7fb; }
.kcell .kv1 { font-size: 15px; font-weight: 600; }
.kcell .kv1.up { color: #0f6e56; } .kcell .kv1.down { color: #a32d2d; } .kcell .kv1.start { color: #9aa3ad; font-weight: 500; }
.kcell .kv2 { font-size: 11px; color: #8a929b; white-space: nowrap; }
.eff-sec { margin: 22px 0 8px; font-size: 15px; font-weight: 600; }
.cat-tree { background: #fff; border: 1px solid #e3e7ec; border-radius: 10px; padding: 8px 12px; max-width: 560px; }
.cat-tree .ct { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-bottom: 1px solid #f0f2f4; cursor: grab;
  border-top: 2px solid transparent; border-radius: 6px; user-select: none; }
.cat-tree .ct:last-child { border-bottom-color: transparent; }
.cat-tree .ct:hover { background: #f6f8fa; }
.cat-tree .ct .nm { cursor: text; }
.cat-tree .ct input { cursor: text; user-select: text; }
.cat-tree .ct .fill { flex: 1; }
.cat-tree .ct .ct-add { margin-left: 2px; }
.ct-grip { color: #b4bcc5; font-size: 12px; letter-spacing: -2px; }

.cat-tree .ct.dragging-src { opacity: .4; }
.cat-tree .ct.drop-before { border-top-color: var(--accent); }
.cat-tree .ct.drop-after { border-bottom: 2px solid var(--accent); }
.cat-tree .ct.drop-in { background: #e3ebf7; box-shadow: inset 0 0 0 2px var(--accent); }
.qin { width: 64px; }
.eff-scroll { overflow-x: auto; }
.eff-tbl td:first-child, .eff-tbl th:first-child { white-space: nowrap; }
@media (max-width: 640px) {
  .eff-tools .seg { overflow-x: auto; max-width: 100%; }
  .eff-tools .seg button { white-space: nowrap; flex: none; }
  .eff-tbl { font-size: 12px; }
}
.kc { font-size: 13px; font-weight: 600; color: #4a5560; }
.kc.own { color: #0f6e56; } .kc.fixed { color: #1d4f99; } .kc.borrow, .kc.none { color: #9aa3ad; font-weight: 500; } .kc.start { color: #8a4b00; }
.kc small { font-size: 10px; font-weight: 500; }
.kest { font-size: 13px; font-weight: 600; white-space: nowrap; }
.kest small { font-weight: 400; color: var(--sub); font-size: 11px; }
.kcell .kv1.borrow { color: #8a929b; font-weight: 500; }
.own-x { display: inline-block; font-size: 12px; font-weight: 600; color: #3c3489; background: #eeedfe; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.own-x.sm { margin-left: 6px; font-size: 11px; }
.sr.other, .mr.other, .el.other { box-shadow: inset 3px 0 0 #7f77dd; }
.leader { color: var(--dark); }
/* ── 3-2: 팀 · 요청함 ── */
.bell { position: relative; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; padding: 2px 9px; cursor: pointer; margin-right: 6px; }
.bell.on { background: rgba(255,255,255,.15); }
.bell-n { display: none; position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; border-radius: 9px; background: #e24b4a; color: #fff; font-size: 11px; line-height: 17px; text-align: center; padding: 0 4px; font-weight: 700; }
.bell-n.on { display: inline-block; }
.inbox { max-width: 900px; margin: 0 auto; }
.rq { border: 1px solid #e3e7ec; border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: #fff; }
.rq.urgent { border-color: #f09595; }
.rq.later { opacity: .8; }
.rq-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rq-h .pchip { margin-left: 0; }
.rq .kv { margin-top: 6px; }
.rq-detail { margin-top: 4px; }
.later-box summary { cursor: pointer; color: var(--sub); font-size: 13px; margin-top: 8px; }
.ngrp { margin: 8px 0; }
.ngrp-h { font-weight: 600; font-size: 13px; color: var(--sub); margin-bottom: 4px; }
.nt { font-size: 13px; padding: 5px 0; border-bottom: 1px solid #f0f2f4; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.nt .pchip { margin-left: 0; }
.nt.read { color: #8a929b; }
.nt.alert span:nth-child(1) { color: #a32d2d; }
.teamc { border: 1px solid #e3e7ec; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.tm-ppl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.tm-p { background: #f1f2f4; border-radius: 12px; padding: 2px 8px; font-size: 13px; }
.tm-p.lead { background: #eeedfe; color: #3c3489; font-weight: 600; }
.tm-p .lnk { padding: 0; }
.pick-ppl { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0; }
.teamchip { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: #e1f5ee; color: #085041; }
.rankchip { display: inline-block; margin-left: 6px; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #f1f2f4; color: #5f5e5a; }
.pchip.wait-ok { background: #fff; color: #8a4b00; border: 1px dashed #e0b060; }
.own-auto { display: inline-block; font-size: 12px; color: #4a5560; border: 1px dashed #b9c3cf; border-radius: 10px; padding: 0 7px; white-space: nowrap; }
.own-auto small { color: #8a929b; font-size: 10px; }
.own-auto.sm { margin-left: 6px; font-size: 11px; }
.leave-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; } .leave-btns .row { gap: 4px; font-size: 13px; }

/* 업데이트 15: 분야 고르기 · 같은 이름 · 줄 사이 넣기 · 지우기 */
.field-sel { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid #c3ccd6; border-radius: 6px; background: #fff; }
.field-sel.warn { border-color: #e0a64a; background: #fff8ec; color: #7a4a00; }
.nm-in.dup { border-color: var(--danger) !important; background: #fff5f5; }
.dupmsg { display: block; font-size: 11px; color: var(--danger); padding: 0 6px; }
.dupmsg:empty { display: none; }
.el { position: relative; }
.ins { position: absolute; left: 0; right: 0; top: -7px; height: 14px; z-index: 3; cursor: copy; }
.ins::before { content: ""; position: absolute; left: 34px; right: 10px; top: 6px; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity .12s; }
.ins::after { content: "+"; position: absolute; left: 8px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 600; line-height: 21px; text-align: center; opacity: 0; transition: opacity .12s; }
.ins:hover::before, .ins:hover::after { opacity: 1; }
@media (hover: none) { .ins { display: none; } }
.del-x { flex: none; align-self: center; margin-left: auto; width: 28px; height: 28px; border-radius: 7px; border: 1px solid #f1c4c4; background: #fff;
  color: var(--danger); font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1; }
.del-x:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.el1 .del-x { margin-left: 4px; }
/* 3-4 오늘 탭 (앱 첫 화면 · 휴대폰 한 줄): 중요 → 내 하루 블록 → 다른 사람 상자 */
.td-wrap { max-width: 680px; margin: 0 auto; }
.td-date { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 2px 12px; }
.td-date > span:first-child { font-size: 22px; font-weight: 700; }
.td-head { color: var(--sub); font-size: 14px; }
.td-imp { border: 1.5px solid #f2c48d; background: #fffaf2; padding: 10px 14px; }
.td-imp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.td-imp-h .n { background: var(--danger); color: #fff; border-radius: 10px; font-size: 12px; font-weight: 600; padding: 0 7px; }
.imp-r, .imp-n { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid #f3e3cc; font-size: 14px; }
.imp-r .pchip, .imp-n .pchip { margin-left: 0; }
details.imp-n { display: block; }
.imp-t { flex: 1; min-width: 0; }
.td-imp .rq { margin: 6px 0; }
.td-quiet { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 2px 4px 12px; }
.td-me { padding: 12px 12px 6px; }
.td-who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 2px 10px; }
.td-who b { font-size: 16px; }
.td-who .pchip { margin-left: 0; }
.slot.blk { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 0; border: 0; margin-bottom: 10px; align-items: stretch; }
.blk .tm { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--muted); padding-top: 8px; line-height: 1.3; }
.blk .tm b { font-size: 15px; color: var(--text); font-weight: 600; }
.blk .tm small { font-size: 11px; margin-top: 2px; }
.blk.now .tm b, .blk.now .tm small { color: var(--accent); }
.blk .bd { border-radius: 12px; padding: 10px 12px; min-height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border-left: 5px solid; min-width: 0; }
.blk .bd .pn { font-size: 12px; opacity: .85; }
.blk .bd .tn { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.blk .bd .stage { align-self: flex-start; margin: 2px 0 0; }
.blk .bd.empty { background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 6px, #f3f4f6 6px, #f3f4f6 12px); color: var(--muted); border-left-color: #dfe3e8; }
.blk .bd.empty .tn { font-weight: 400; font-size: 14px; }
.blk.now .bd { box-shadow: 0 0 0 2px var(--accent); }
.blk.done .bd { opacity: .55; }
.blk .res { align-self: center; }
.res.ro { min-width: 36px; justify-content: center; }
.rmark { font-size: 18px; font-weight: 700; }
.rmark.r-ok { color: var(--ok); } .rmark.r-no { color: var(--danger); } .rmark.r-mv { color: var(--warn); }
.td-next { font-size: 13px; color: var(--sub); padding: 4px 2px 6px; border-top: 1px solid var(--line); margin-top: 2px; }
.td-next summary { cursor: pointer; padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-next div { display: flex; gap: 10px; padding: 2px 0; }
.td-next .dt { width: 72px; flex: none; color: var(--muted); }
.td-others { margin-top: 6px; }
.td-others-h { width: 100%; display: flex; gap: 8px; align-items: center; background: none; border: 0; padding: 8px 4px; cursor: pointer; font: inherit; text-align: left; color: var(--text); }
.td-others-h .ar { color: var(--muted); width: 14px; }
.pboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pbox { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: var(--text);
  display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pbox.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pb-h { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.pb-bar { display: flex; gap: 3px; }
.pb-bar i { flex: 1; height: 8px; border-radius: 3px; }
.pb-bar i.ok { box-shadow: inset 0 0 0 2px var(--ok); }
.pb-bar i.no { opacity: .35; }
.pb-now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-pick { margin-top: 10px; padding: 12px 12px 6px; }
@media (max-width: 640px) {
  .slot.blk { grid-template-columns: 44px minmax(0, 1fr) 66px; gap: 8px; }
  .slot.blk .res { grid-column: auto; display: grid; grid-template-columns: 31px 31px; gap: 4px; align-content: center; }
  .slot.blk .res.only, .slot.blk .res.ro { display: flex; justify-content: center; }
  .slot.blk .res button { width: 31px; height: 31px; font-size: 14px; border-radius: 7px; }
  .blk .tm b { font-size: 14px; }
  .pboxes { grid-template-columns: 1fr 1fr; }
  .td-date > span:first-child { font-size: 20px; }
}
/* 3-4 2단계: 오늘·내일 칸 바꾸기 */
.seg.mini button { padding: 3px 10px; font-size: 12px; }
.td-who .seg { flex: none; }
.blk .bd .mk { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.blk .bd .mk .stage { margin: 0; }
.pinmark { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #e6eefa; color: var(--accent); }
.pendmark { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #fff; color: #6b4008; border: 1px dashed #e0a64a; }
.blk.pend .bd { outline: 2px dashed #e0a64a; outline-offset: -2px; }
.blk .res .chg { width: auto; padding: 0 10px; height: 34px; border-radius: 8px; border: 1px solid #c9d6ea; background: #fff; color: var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer; }
.blk .res .chg:hover { background: #eef4fc; }
.res.ro { gap: 6px; align-items: center; }
.sc-sel { max-width: 100%; }
.sc-res { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sc-ch div { padding: 1px 0; }
.tone-ok { color: var(--ok); }
@media (max-width: 640px) {
  .slot.blk .res .chg { width: 62px; padding: 0; height: 31px; font-size: 12px; }
}
.force-box { border: 1.5px solid #f09595; background: #fff5f5; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.force-box b { color: var(--danger); }
.row.end .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
/* 4단계: 총력 지원 */
.sp-people { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sp-p { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.row.wrap { flex-wrap: wrap; gap: 6px; }
/* 2시간 목표: 목표 한 줄 → 시작 → 완수 체크 */
.goal { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 6px; font-size: 13px; }
.goal.edit .g-in { flex: 1; min-width: 120px; padding: 6px 8px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 8px;
  background: rgba(255, 255, 255, .9); font: inherit; font-size: 13px; color: #1f2329; }
.goal.edit .g-in:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.goal .g-go { padding: 6px 14px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; font-size: 13px; }
.goal .g-go:disabled { opacity: .5; }
.goal .g-k { font-size: 11px; font-weight: 700; opacity: .7; margin-right: 4px; }
.goal .g-t { font-size: 11px; opacity: .75; }
.goal .g-t.warn { color: var(--warn); opacity: 1; }
.goal.on { background: rgba(255, 255, 255, .6); border-radius: 8px; padding: 4px 8px; }
.goal .lnk { color: inherit; opacity: .75; }
.pb-goal { color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk .res button:disabled { opacity: .35; }
/* 3-5 주간 달력 */
.wk-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.wk-nav { display: flex; align-items: center; gap: 8px; }
.wk-nav b { font-size: 17px; }
.wk-opt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wk-opt select { font-size: 13px; padding: 3px 6px; }
.wk-vt { display: none; }
.wk-filter { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 10px; }
.wk-fg { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wk-chip { border: 1px solid var(--line); border-left: 4px solid var(--c); background: #fff; border-radius: 12px; padding: 2px 10px;
  font: inherit; font-size: 12px; cursor: pointer; color: var(--text); }
.wk-chip.on { background: #e6eefa; border-color: var(--accent); border-left-color: var(--c); color: var(--accent); font-weight: 600; }
.wk-grid { display: grid; grid-template-columns: 78px repeat(7, minmax(0, 1fr)); column-gap: 3px; row-gap: 3px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
/* 사람마다 표 하나 (요일 머리 · 그날 시간 · 프로젝트 줄) */
.wk-tbls { display: flex; flex-direction: column; gap: 12px; }
.wk-tbl { display: grid; grid-template-columns: 140px repeat(7, minmax(0, 1fr)); column-gap: 3px; row-gap: 3px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 8px; }
.wk-tbl.me { border-color: #c9d6ea; }
.wk-ph { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; padding: 2px 4px 2px 2px; min-width: 0; border-right: 1px solid var(--line); }
.wk-pj.wk-sum { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 2px 4px 4px 2px; }
.wk-ph b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-ph small { font-size: 10px; }
.wk-ph.away { grid-row: auto; justify-content: center; }
.wk-ph.away b { font-size: 11.5px; color: #6b3fa0; font-weight: 600; }
.wk-ph.dim { opacity: .45; }
.wk-hr { font-size: 11px; color: #3b4552; white-space: nowrap; }
.wk-hr.ot i { color: #b3561a; font-style: normal; font-weight: 600; }
.wk-hr.k { color: #5b3fa0; }
.wk-pj { grid-column: 1; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; padding: 0 4px 0 2px; border-top: 1px solid #f0f2f5; border-right: 1px solid var(--line); }
.wk-pj span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-pj.cont { border-top: 0; }
.wk-tbl .wk-pj:not(.cont):not(.lab) { border-top: 1px solid #e6e9ee; }
.wk-tbl .wk-lane.pfirst { border-top: 1px solid #e6e9ee; padding-top: 3px; }
.wk-tbl .wk-lane, .wk-tbl .wk-pj { min-height: 26px; }
.wk-vac.fl { background: #fde6d6; color: #a2440f; }
.wk-pj.lab { border-top: 0; }
.wk-pj.dim { opacity: .45; }
.wk-pdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.wk-tbl .wk-dh { display: flex; align-items: center; justify-content: center; gap: 3px; }
.wk-tbl .wk-day { padding: 3px 0 3px; border-top: 0; }
.wk-dh.fl { color: #b3461a; font-weight: 700; }
.wk-fl { border: 0; background: none; padding: 0 2px; font-size: 13px; line-height: 1; cursor: pointer; filter: grayscale(1); opacity: .3; border-radius: 5px; }
.wk-fl:hover:not(:disabled) { opacity: .8; filter: none; background: #fff3ea; }
.wk-fl.on { filter: none; opacity: 1; }
.wk-fl:disabled { cursor: default; }
.wk-fl.dis { filter: grayscale(1); opacity: .15; cursor: default; }
.wk-day.fl { background: #fff6ef; border-radius: 6px; }
.wk-lv.fl { background: #fde6d6; color: #a2440f; }
.wk-lblsel { display: inline-flex; align-items: center; gap: 4px; }
.wk-dh { text-align: center; font-size: 12px; color: var(--sub); padding: 4px 0; }
.wk-dh.today { color: var(--accent); font-weight: 700; }
.wk-dh.we { color: #c0392b; }
.wk-name { grid-column: 1; padding: 8px 2px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.wk-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-name small { font-size: 10px; color: var(--muted); }
.wk-day { text-align: center; padding: 8px 0 2px; border-top: 1px solid var(--line); font-size: 11px; }
.wk-day.today { background: #f3f7fd; }
.wk-day.off { background: #f4f0fb; }
.wk-vac { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: 600; background: #efe7fb; color: #6b3fa0; white-space: nowrap; }
.wk-bar.vac { background: #f4effb; color: #6b3fa0; border-left-color: #b79be0; cursor: default; }
.wk-away-n { justify-content: flex-start; }
.wk-away-n.cont, .wk-away:not(.first) { border-top: 0; }
.wk-away-n small { color: #6b3fa0; font-size: 10px; line-height: 1.2; }
.wk-away.first, .wk-away-n:not(.cont) { border-top: 1px dashed var(--line); padding-top: 6px; }
.wk-on { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: -2px 0 8px; }
.wk-onchip { border: 1px solid var(--accent); background: #e6eefa; color: var(--accent); border-radius: 12px; padding: 2px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.wk-onchip .x { opacity: .7; }
.wv-away { border-top: 1px dashed var(--line); margin-top: 2px; }
.wk-lv { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.wk-lv.lv0 { background: #e6f0fb; color: #185fa5; }
.wk-lv.lv1 { background: #eaf5e2; color: #3b6d11; }
.wk-lv.lv2 { background: #fdf0dc; color: #985a0b; }
.wk-lv.lv3 { background: #fdeaea; color: #a32d2d; }
.wk-day.past .wk-lv { opacity: .65; }
.wk-lane-name { grid-column: 1; }
.wk-lane { grid-column: 2 / 9; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 3px; }
.wk-lane.empty { display: block; padding: 4px; }
.wk-bar { text-align: left; border: 0; border-left: 4px solid; border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; outline-offset: -2px; }
.wk-bar.act { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.wk-bar.dim { background: #f1f2f4 !important; color: #a4abb3 !important; opacity: .75; border-left-color: #d5d9de !important; }
.wk-bar.off { background: repeating-linear-gradient(45deg, #f6f7f8, #f6f7f8 5px, #eef0f2 5px, #eef0f2 10px); color: var(--muted);
  border-left-color: #dfe3e8; text-align: center; cursor: default; }
.wk-bar.pick { outline: 2px solid var(--accent); }
.wk-bar.pre, .wk-bar.post { outline: 2px dashed var(--accent); }
.wk-tag { font-size: 10px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 4px; padding: 0 4px; margin-right: 4px; }
.wk-ot { font-size: 11px; opacity: .8; }
.wk-name.dim, .wk-day.dim { opacity: .45; }
.wk-detail { margin-top: 10px; }
.wk-dt { display: flex; gap: 8px; align-items: center; }
.wk-rel { padding: 1px 0; }
.wk-hint { margin-top: 8px; }
.wk-vert { display: flex; flex-direction: column; gap: 8px; }
.wv-day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.wv-day.today { border-color: var(--accent); }
.wv-dh { font-weight: 700; margin-bottom: 4px; }
.wv-p { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 3px 0; }
.wv-p.dim { opacity: .5; }
.wv-bars { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.wv-bar { font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.wv-bar.dim { background: #f1f2f4; color: #a4abb3; }
@media (max-width: 640px) {
  .wk-vt { display: inline-flex; }
  .wk-grid { grid-template-columns: 42px repeat(7, minmax(0, 1fr)); padding: 4px; column-gap: 1px; }
  .wk-tbl { grid-template-columns: 64px repeat(7, minmax(0, 1fr)); padding: 4px; column-gap: 1px; }
  .wk-hr.k, .wk-pj span { font-size: 10px; }
  .wk-lane { column-gap: 1px; }
  .wk-bar { font-size: 9.5px; padding: 2px 3px; border-left-width: 3px; }
  .wk-ot { display: none; }
  .wk-bp { display: none; }
  .wk-day { font-size: 9px; }
  .wk-lv { font-size: 9px; padding: 0 2px; }
  .wk-dh { font-size: 10px; }
  .wk-name b { font-size: 11px; }
  .wk-nav b { font-size: 15px; }
}

/* 주 휴일 · 여유 주 */
.wk-calm { font-size: 11px; font-weight: 600; border-radius: 10px; padding: 2px 8px; margin-left: 4px; cursor: help; white-space: nowrap; }
.wk-calm.calm { background: #e6f0fb; color: #185fa5; }
.wk-calm.busy { background: #eaf5e2; color: #3b6d11; }
.wk-hol { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: -2px 0 8px; font-size: 13px; }
.wk-pend { color: #985a0b; }
.hol-pick { gap: 4px; margin-right: 14px; }
.wk-owed { color: #985a0b !important; }
.wk-sugg { color: #6b3fa0 !important; font-weight: 600; cursor: help; }
.hour-rule { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.sub-h { font-size: 14px; margin: 10px 0 4px; }
.wk-sep { margin-left: 10px; }
.tm-grid { display: grid; gap: 4px; margin: 8px 0; }
.tm-row { display: grid; grid-template-columns: 56px 190px 1fr; gap: 8px; align-items: center; }
.tm-lv { font-size: 12px; font-weight: 600; }
.wk-vac.fd { background: #e3f4f1; color: #0f6e56; }
.wk-fd { font-size: 12px; border-radius: 10px; padding: 1px 8px; background: #f1f2f4; color: var(--sub); }
.wk-fd.approved { background: #e3f4f1; color: #0f6e56; }
.wk-fd.requested, .wk-fd.cancel_pending { background: #fdf0dc; color: #985a0b; }
.fd-res { min-height: 18px; }
.wk-bar.dragok { cursor: grab; }
.wk-lane.over { background: #eef4fc; outline: 2px dashed #9cbce4; outline-offset: -2px; border-radius: 6px; }
.pl-opts { display: grid; gap: 6px; margin: 8px 0; }
.pl-opt { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.pl-opt input { margin-top: 3px; }
.pl-res { margin: 8px 0; min-height: 18px; display: grid; gap: 4px; }
.pl-route { color: var(--accent); }
.wk-chg { margin-top: 12px; }
.wk-ck { font-size: 11px; background: #f1f2f4; border-radius: 8px; padding: 1px 6px; margin-right: 4px; }
.pl-opt { flex-direction: row !important; }
.pl-opt > input[type=radio] { width: auto !important; flex: none; margin: 4px 0 0; }
.pl-opt select { width: auto !important; display: inline-block; padding: 2px 6px; margin: 0 4px; }
.pl-opt > div { flex: 1; min-width: 0; }
.modal-box label.pl-opt { display: flex; margin: 0; font-size: 13px; color: var(--text, inherit); }
.modal-box label.hol-pick, .modal-box label.row { display: inline-flex; margin: 0 12px 0 0; }
/* 협업 요청 '!' */
.bang { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 8px; padding: 0 6px; margin-right: 4px; cursor: pointer; line-height: 16px; flex: none; }
.bang.req, .bang.late { background: #fcebeb; color: #a32d2d; }
.bang.late { outline: 1px solid #e24b4a; }
.bang.auto { background: #faeeda; color: #854f0b; }
.co-list { display: grid; gap: 6px; margin: 8px 0; }
.co-it { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.co-it > div:nth-child(2) { flex: 1; min-width: 0; }
.co-k { font-size: 11px; border-radius: 8px; padding: 1px 6px; flex: none; background: #fcebeb; color: #a32d2d; }
.co-k.auto { background: #faeeda; color: #854f0b; }
.co-k.must { background: #a32d2d; color: #fff; }
.co-k.late { background: #e24b4a; color: #fff; }
.co-btns { display: flex; gap: 6px; align-items: center; flex: none; }
.co-pane { display: grid; gap: 6px; margin: 6px 0; }
.co-pane:empty { display: none; }
.co-h { font-weight: 600; font-size: 13px; margin-top: 4px; }
.co-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.co-grid > div { background: #f4f5f7; border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.co-grid small { display: block; color: var(--sub); font-size: 11px; }
.co-acts { justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.co-send { display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 6px; }
.co-acts select, .co-acts input[type=date] { width: auto !important; padding: 3px 6px; font-size: 13px; }
.co-acts .row { gap: 6px; flex-wrap: nowrap; }
/* 4 간트 */
.gt-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.gt-nav { display: flex; align-items: center; gap: 8px; }
.gt-nav b { font-size: 16px; min-width: 220px; text-align: center; }
.gt-opt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gt-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sub); margin-left: 6px; cursor: pointer; }
.gt-chk input { margin: 0; }
.gt-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0 0 8px; }
.gt-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.gt-legend i { font-style: normal; }
.lg-bar { display: inline-block; width: 22px; height: 12px; border-radius: 3px; background: #b9c7e3; border: 1px solid #8ea4cf; box-shadow: inset 12px -3px 0 -0px transparent; position: relative; }
.lg-bar::after { content: ""; position: absolute; left: 0; bottom: 0; width: 12px; height: 3px; background: #3f63a8; }
.lg-ext { display: inline-block; width: 22px; height: 12px; border-radius: 3px; border: 1px solid #b9bec5; background: repeating-linear-gradient(45deg, #f1f2f4, #f1f2f4 3px, #dfe2e6 3px, #dfe2e6 6px); }
.lg-sum { display: inline-block; width: 22px; height: 5px; background: #4a5563; border-radius: 1px; }
.lg-base { display: inline-block; width: 22px; height: 5px; border: 1px dashed #8a94a0; border-radius: 2px; }
.lg-dl { color: var(--dark); font-size: 12px; } .lg-fx { color: #6b4fa0; font-size: 10px; }
.gt-scroll { position: relative; overflow: auto; max-height: calc(100vh - 210px); min-height: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.gt-inner { position: relative; }
.gt-head { position: sticky; top: 0; z-index: 6; display: flex; background: #fff; border-bottom: 1px solid var(--line); height: 46px; }
.gt-corner { position: sticky; left: 0; z-index: 7; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; align-items: flex-end;
  justify-content: space-between; padding: 0 10px 5px; font-size: 12px; color: var(--sub); }
.gt-rkh { display: inline-flex; gap: 0; cursor: help; }
.gt-rkh, .gt-rk { width: 64px; flex: none; }
.gt-rkh > span, .gt-rk > span { margin-left: auto; }
.gt-rkh { justify-content: space-between; padding: 0 6px; }
.gt-htl { position: relative; flex: none; }
.gt-hrow { position: relative; height: 23px; }
.gt-hrow.hm { border-bottom: 1px solid #eef0f2; }
.gt-hm { position: absolute; top: 0; height: 23px; border-left: 1px solid #d5d9de; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: visible; }
.gt-hm span { position: sticky; display: inline-block; padding: 3px 6px 0; }
.gt-hd { position: absolute; top: 0; height: 23px; font-size: 11px; color: var(--sub); text-align: center; line-height: 22px; white-space: nowrap; overflow: hidden; }
.gt-hd.wk { text-align: left; padding-left: 3px; border-left: 1px solid #eef0f2; }
.gt-hd.off { color: #b0563a; background: #faf6f4; }
.gt-hd.today { color: #fff; background: var(--danger); border-radius: 4px; font-weight: 600; }
.gt-htoday { position: absolute; bottom: 0; width: 2px; height: 8px; margin-left: -1px; background: var(--danger); }
.gt-body { position: relative; }
.gt-bg { position: absolute; top: 0; z-index: 0; pointer-events: none; }
.gt-off { position: absolute; top: 0; bottom: 0; background: #f7f3f1; }
.gt-off.q { background: #faf7f5; }
.gt-vl { position: absolute; top: 0; bottom: 0; width: 1px; background: #f0f2f4; }
.gt-vl.mo { background: #d5d9de; }
.gt-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(198, 40, 40, .55); z-index: 1; }
.gt-dline { position: absolute; width: 0; border-left: 1.5px dashed rgba(31, 42, 55, .35); }
.gt-dline.bad { border-left-color: rgba(198, 40, 40, .6); }
.gt-row { position: relative; z-index: 1; display: flex; border-bottom: 1px solid #f1f3f5; }
.gt-row.g { background: rgba(244, 246, 248, .75); border-bottom-color: #e6e9ed; }
.gt-row.p { border-bottom-color: #e9ecef; }
.gt-row.sel { background: rgba(31, 95, 191, .05); }
.gt-l { position: sticky; left: 0; z-index: 4; flex: none; display: flex; align-items: center; gap: 4px; background: #fff; border-right: 1px solid var(--line);
  padding: 0 10px 0 6px; font-size: 13px; cursor: pointer; overflow: hidden; white-space: nowrap; user-select: none; }
.gt-row.g .gt-l { background: #f4f6f8; font-size: 13px; }
.gt-row.sel .gt-l { background: #f1f5fc; }
.gt-l.dragging { opacity: .45; }
.gt-l.drop-a { box-shadow: inset 0 3px 0 var(--accent); } .gt-l.drop-b { box-shadow: inset 0 -3px 0 var(--accent); }
.gt-grip { color: #aab2bc; cursor: grab; font-size: 15px; line-height: 1; letter-spacing: -3px; padding: 6px 5px 6px 1px; margin-left: -4px; border-radius: 5px; flex: none; }
.gt-grip:hover { color: #6b7684; background: #eef1f5; }
.gt-tog { border: 0; background: none; padding: 0; width: 22px; height: 22px; flex: none; color: #6b7684; cursor: pointer; font-size: 15px; line-height: 22px; border-radius: 5px; text-align: center; }
.gt-tog:hover { background: #eef1f5; color: #2b3440; }
.gt-tog.sp { cursor: default; width: 22px; }
.gt-tog.sp:hover { background: none; }
.gt-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.gt-pn { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.gt-pn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.gt-pn small { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.gt-pn small .tone-neutral { color: var(--sub); }
.gt-rk { display: inline-flex; justify-content: space-between; padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--sub); border-radius: 6px; cursor: help; }
.gt-rk > span { color: var(--text); }
.gt-rk.diff { background: #fff4e0; color: var(--warn); }
.gt-rebase { flex: none; font-size: 11px; opacity: .8; }
.gt-no { font-size: 11px; flex: none; min-width: 18px; }
.gt-tn { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gt-tn.par { font-weight: 600; }
.gt-ow { margin-left: auto; padding-left: 6px; flex: none; }
.gt-l.done .gt-tn { color: var(--muted); text-decoration: line-through; }
.gt-l.excl .gt-tn { color: var(--muted); }
.gt-r { position: relative; flex: none; }
.gt-bar { position: absolute; top: 5px; height: 20px; border: 1px solid; border-radius: 4px; overflow: hidden; overflow: clip; cursor: pointer; box-sizing: border-box; transition: opacity .12s; }
.gt-bar.ext { background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 4px, #e3e6ea 4px, #e3e6ea 8px); border-color: #b9bec5; border-style: dashed; }
.gt-bar.ext .gt-fill { background: #9aa3ad; }
.gt-fill { position: absolute; left: 0; bottom: 0; height: 4px; }
.gt-lb { position: relative; display: block; padding: 0 6px; font-size: 12px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1f2328; }
.gt-bar .gt-lb { position: sticky; left: var(--gl, 0); display: inline-block; max-width: 100%; vertical-align: top; }
.gt-bar.k-done { opacity: .6; }
.gt-bar.k-done .gt-lb { color: var(--sub); }
.gt-bar.bad { outline: 2px solid var(--danger); outline-offset: 0; }
.gt-bar.warn { outline: 2px solid #e0a040; }
.gt-bar.lift-조율 { box-shadow: inset 0 2px 0 #f0b44a; }
.gt-bar.lift-만회 { box-shadow: inset 0 2px 0 #e07a2a; }
.gt-bar.lift-비상 { box-shadow: inset 0 2px 0 #d63b3b; }
.gt-bar.on { outline: 2.5px solid var(--accent); outline-offset: 1px; z-index: 2; }
.gt-bar.lit { outline: 2px dashed var(--accent); outline-offset: 1px; }
.gt-bar.dim, .gt-sum.dim { opacity: .3; }
.gt-after { position: absolute; top: 5px; height: 20px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; z-index: 1; }
.gt-row.p .gt-after { top: 11px; }
.gt-lb.out { padding: 0; overflow: visible; cursor: pointer; color: var(--text); }
.gt-lb.out.dim { opacity: .35; } .gt-lb.out.on { color: var(--accent); font-weight: 600; }
.gt-lift { font-style: normal; font-size: 10.5px; font-weight: 600; border-radius: 6px; padding: 0 5px; line-height: 15px; }
.gt-lift.l-조율 { background: #fdf1da; color: #8a5a00; }
.gt-lift.l-만회 { background: #fbe2cf; color: #9a4310; }
.gt-lift.l-비상 { background: #fadada; color: #a32d2d; }
.gt-slip { font-size: 11px; font-weight: 600; color: var(--warn); }
.gt-ok { color: var(--ok); font-weight: 700; }
.gt-sum { position: absolute; top: 10px; height: 7px; background: #4a5563; border-radius: 1px; cursor: pointer; }
.gt-sum::before, .gt-sum::after { content: ""; position: absolute; top: 0; width: 0; height: 0; border-top: 6px solid #4a5563; }
.gt-sum::before { left: 0; border-right: 5px solid transparent; transform: translateY(6px); }
.gt-sum::after { right: 0; border-left: 5px solid transparent; transform: translateY(6px); }
.gt-base { position: absolute; top: 23px; height: 5px; border: 1.5px dashed #8a94a0; border-radius: 2px; box-sizing: border-box; pointer-events: auto; }
.gt-pbar { position: absolute; top: 15px; height: 12px; border-radius: 6px; opacity: .9; cursor: pointer; }
.gt-over { position: absolute; top: 15px; height: 12px; border-radius: 0 6px 6px 0;
  background: repeating-linear-gradient(45deg, rgba(198,40,40,.85), rgba(198,40,40,.85) 4px, rgba(198,40,40,.45) 4px, rgba(198,40,40,.45) 8px); }
.gt-dl { position: absolute; top: 9px; transform: translateX(-50%); font-size: 17px; line-height: 22px; z-index: 2; color: var(--dark); cursor: help;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.gt-dl.tone-danger { color: var(--danger); }
.gt-vd { font-size: 12px; font-weight: 600; }
.gt-vd.tone-neutral { font-weight: 400; }
.gt-fx { position: absolute; top: 7px; transform: translateX(-50%); color: #6b4fa0; font-size: 11px; z-index: 2; cursor: help; text-shadow: 0 0 2px #fff; }
.gt-svg { position: absolute; top: 0; z-index: 3; pointer-events: none; overflow: visible; }
.gt-edge { fill: none; stroke: #8a94a0; stroke-width: 1.4; stroke-dasharray: 5 4; opacity: .85; }
.gt-edge.hot { stroke: var(--accent); stroke-width: 1.8; opacity: 1; }
.gt-edge.late { stroke: var(--danger); stroke-width: 1.8; opacity: 1; }
.gt-hint { margin-top: 8px; }
@media (max-width: 760px) {
  .gt-nav b { min-width: 0; font-size: 14px; }
  .gt-scroll { max-height: calc(100vh - 250px); }
  .gt-legend { display: none; }
  .gt-l { font-size: 12px; }
  .gt-ow { display: none; }
  .gt-rebase { display: none; }
}
/* 4-2 간트 끌기 */
.gt-bar.drag { cursor: grab; touch-action: none; }
.gt-h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2; }
.gt-h.l { left: 0; } .gt-h.r { right: 0; }
.gt-bar.drag:hover .gt-h { background: rgba(31, 42, 55, .16); }
.gt-bar.dragging { opacity: .35; }
.gt-bar.pv-old { opacity: .45; }
.gt-ghost { position: absolute; top: 3px; height: 24px; box-sizing: border-box; border: 2px dashed var(--accent); border-radius: 5px;
  background: rgba(31, 95, 191, .14); pointer-events: none; z-index: 5; }
.gt-dl.drag { cursor: ew-resize; touch-action: none; }
.gt-dl.ghost, .gt-dl.pv { color: var(--accent); pointer-events: none; z-index: 5; }
.gt-dl.pv { opacity: .9; }
.gt-dtip { position: fixed; z-index: 1000; background: #1f2a37; color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 6px;
  pointer-events: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.gt-pvbar { position: absolute; top: 3px; height: 24px; box-sizing: border-box; border: 1.8px dashed #4a7fd0; border-radius: 5px;
  background: rgba(31, 95, 191, .07); z-index: 3; }
.gt-pvbar.me { border: 2.2px dashed var(--accent); background: rgba(31, 95, 191, .16); }
.gt-pvp { position: absolute; top: 12px; height: 18px; box-sizing: border-box; border: 2px dashed var(--accent); border-radius: 9px; pointer-events: none; }
.gt-vd.pv { font-weight: 600; }
.gt-row.p .gt-l.dr { touch-action: none; }
.gt-rowghost { position: fixed !important; z-index: 1000; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.2); opacity: .96; pointer-events: none;
  border-radius: 6px; border: 1px solid var(--line); }
.gt-l.dragging { opacity: .35; }
.gt-dropline { position: fixed; height: 3px; background: var(--accent); z-index: 999; pointer-events: none; border-radius: 2px; }
body.gt-dragging, body.gt-dragging * { cursor: grabbing !important; user-select: none !important; }
body.gt-resizing, body.gt-resizing * { cursor: ew-resize !important; user-select: none !important; }
.gt-pv { position: fixed; right: 18px; bottom: 18px; width: 400px; max-width: calc(100vw - 36px); max-height: 72vh; overflow: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.2); padding: 14px; z-index: 900;
  display: flex; flex-direction: column; gap: 8px; }
.gt-pv-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gt-pv-h b { font-size: 15px; }
.gt-pv-x { border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--sub); padding: 0 2px; }
.gt-pv-choice { display: grid; gap: 6px; }
.gt-pv-choice .pl-opt.on { border-color: var(--accent); background: #f3f7fd; }
.gt-pv-choice .pl-opt span { display: flex; flex-direction: column; }
.gt-pv-adj { display: flex; flex-direction: column; gap: 6px; background: #f7f8fa; border-radius: 8px; padding: 8px 10px; }
.gt-pv-adj .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gt-pv-adds { line-height: 1.6; padding-top: 2px; border-top: 1px dashed #dfe3ea; }
.gt-pv-b p { margin: 4px 0; }
.gt-pv-b.busy { opacity: .55; }
.gt-pv-sum { font-weight: 600; }
.gt-pv-bad { color: var(--danger); font-weight: 600; }
.gt-pv-vs { display: grid; gap: 2px; margin: 4px 0; }
.gt-pv-warn { background: #fff6e8; border-radius: 8px; padding: 6px 8px; color: #8a5a00; margin: 4px 0; display: grid; gap: 2px; }
.gt-pv-route { font-weight: 600; color: var(--ok); }
.gt-pv-route.req { color: var(--accent); }
.gt-pv > input { width: 100%; box-sizing: border-box; }
/* 막대 안 담당자가 쉬는 날 (빗금) */
.gt-offseg { position: absolute; top: 0; bottom: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.88) 0 3px, rgba(255,255,255,.25) 3px 6px); }
.gt-bar.ext .gt-offseg { background: rgba(255,255,255,.82); border-left: 1px dashed #c3c8ce; border-right: 1px dashed #c3c8ce; }
.lg-off { display: inline-block; width: 22px; height: 12px; border-radius: 3px; border: 1px solid #8ea4cf;
  background: repeating-linear-gradient(135deg, #fff 0 3px, #b9c7e3 3px 6px); }
.gt-ct { font-size: 10.5px; font-weight: 600; border-radius: 6px; padding: 0 5px; line-height: 15px; background: #e3f1ec; color: #0f6e56; }
/* 5 통계 */
.st-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.st-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-label { font-size: 16px; min-width: 150px; text-align: center; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.st-card { background: #f4f6f8; border-radius: var(--r); padding: 10px 12px; cursor: help; }
.st-card.warn { background: #fff6e8; } .st-card.bad { background: #fdeeee; }
.st-cl { font-size: 12px; color: var(--sub); }
.st-cv { font-size: 22px; font-weight: 600; margin: 2px 0; }
.st-cs { font-size: 11.5px; color: var(--sub); }
.st-chart { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 14px; }
.st-scroll { overflow-x: auto; }
.st-svg { display: block; }
.st-grid { stroke: #eef0f2; stroke-width: 1; }
.st-ax { font-size: 11px; fill: #6b7280; }
.st-std { stroke: #c62828; stroke-width: 1.4; stroke-dasharray: 4 3; }
.st-f { fill: none; stroke: #8a94a0; stroke-dasharray: 3 2; stroke-width: 1.2; }
.st-fe { fill: none; stroke: #e59a2c; stroke-dasharray: 3 2; stroke-width: 1.2; }
.st-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 6px; }
.st-legend span { display: inline-flex; align-items: center; gap: 4px; }
.st-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.st-legend i.fut { border: 1.5px dashed #8a94a0; }
.st-legend i.std { height: 0; border-top: 2px dashed #c62828; border-radius: 0; }
.st-hbars { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 14px; display: grid; gap: 6px; }
.st-hb { display: grid; grid-template-columns: 180px 1fr 150px; gap: 10px; align-items: center; }
.st-hn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.st-ht { display: flex; height: 16px; background: #f4f6f8; border-radius: 4px; overflow: hidden; }
.st-ht i { display: block; height: 100%; }
.st-ht i.b { box-sizing: border-box; border: 1.5px dashed; border-left: 0; background: transparent; }
.st-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { text-align: left; font-weight: 600; color: var(--sub); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: help; }
.st-table td { padding: 8px 10px; border-bottom: 1px solid #f1f3f5; white-space: nowrap; }
.st-fin { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.st-finx.late { color: var(--warn); }
@media (max-width: 760px) {
  .st-hb { grid-template-columns: 100px 1fr; }
  .st-hv { grid-column: 2; }
  .st-label { min-width: 0; }
}
.st-xlsx { margin-left: 6px; text-decoration: none; }
.st-risk { color: var(--danger); font-weight: 600; }
/* 6-1 휴가 */
.lv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.lv-head .sub-h { margin: 0; }
.st-card.ok { background: #eaf6ef; } .st-card.ok .st-cv { color: var(--ok); }
.lv-style { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.lv-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 8px; }
.lv-bh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.lv-sg { display: flex; align-items: center; gap: 10px; border: 1.5px dashed #7da3e0; border-radius: 8px; padding: 8px 10px; }
.lv-sg.warn { border-color: #e2b25a; }
.lv-ic { font-style: normal; width: 24px; text-align: center; font-size: 16px; color: var(--accent); }
.lv-sg.warn .lv-ic { color: var(--warn); font-weight: 700; }
.lv-sgt { flex: 1; display: grid; gap: 2px; }
.lv-dates { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.lv-dates label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.lv-slots { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.lv-reason { width: 100%; box-sizing: border-box; }
.lv-pv { display: grid; gap: 4px; background: #f7f8fa; border-radius: 8px; padding: 8px 10px; }
.lv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 0; border-top: 1px solid #f1f3f5; font-size: 13px; }
.lv-row:first-of-type { border-top: 0; }
.lv-row.past { opacity: .6; }
.lv-st { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 7px; background: #eef1f4; color: var(--sub); }
.lv-st.approved { background: #eaf6ef; color: var(--ok); } .lv-st.requested { background: #eef4fc; color: var(--accent); }
.lv-st.rejected { background: #fdeeee; color: var(--danger); }
.lv-in { width: 130px; } .lv-in.n { width: 70px; }
/* 퇴사 · 직원 정보 */
.btn.ghost.danger-t { color: var(--danger); }
.rt-pv { margin-top: 10px; min-height: 60px; }
.rt-t { margin: 4px 0 6px; }
.rt-t td, .rt-t th { padding: 4px 6px; }
.rt-t select { max-width: 160px; }
.bd-row select, .bd-row input { width: auto !important; min-width: 84px; }
/* 직급 · 전문 분야 · 우선 배치 분류 */
.rank-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #e5e7eb); }
.rank-box .chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 10px; border-radius: 999px; background: #eef2f7; font-size: 13px; }
.rank-box .chip.x { background: #f4f0ff; }
.rank-box .sub { flex-basis: 100%; }
label.fl { display: block; margin-top: 12px; }
.catpick { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; max-height: 220px; overflow: auto; }
.catrow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.catkids { display: inline-flex; flex-wrap: wrap; gap: 4px; padding-left: 6px; border-left: 2px solid #e5e7eb; }
.catc { border: 1px solid #cfd6df; background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 13px; cursor: pointer; }
.catc.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.badge.muted-b { background: #eceff3; color: #6b7280; }
/* 공정 기간: 숫자 + 단위(일 · 시간) */
.dur-in { display: inline-flex; align-items: center; gap: 2px; }
.dur-in .d-unit { padding: 1px 2px; font-size: 12px; height: auto; width: auto; min-width: 0; }
/* 오늘 탭: 블록 안 업무 영역 (목표 체크 목록 · 시작/일시정지) */
.slot.blk.running { box-shadow: 0 0 0 2px #2563eb inset; border-radius: 10px; }
.wk-area { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; color: #1f2937; }
.wk-area.ro { color: inherit; }
.wk-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wk-btn { border: 1px solid #1d4ed8; background: #2563eb; color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 13px; cursor: pointer; font-weight: 600; }
.wk-btn.pause { background: #fff; color: #1d4ed8; }
.wk-st { font-size: 12px; color: #374151; font-variant-numeric: tabular-nums; }
.wk-st.running { color: #1d4ed8; font-weight: 600; }
.wk-st.paused { color: #92400e; }
.wk-goals { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wk-goals li { display: flex; align-items: center; gap: 4px; font-size: 13px; background: rgba(255,255,255,.65); border-radius: 6px; padding: 2px 6px; }
.wk-goals li label { display: flex; align-items: center; gap: 6px; flex: 1; cursor: pointer; }
.wk-goals li.ok span { text-decoration: line-through; color: #6b7280; }
.wk-goals li .x { opacity: .5; }
.wk-goals li:hover .x { opacity: 1; }
.wk-in { width: 100%; font-size: 13px; padding: 4px 8px; border: 1px dashed #94a3b8; border-radius: 6px; background: rgba(255,255,255,.8); }
/* 유연 시각 · 당겨 하기 · 1시간 칸 시각 */
.slot .tm.moved b { color: #1d4ed8; }
.slot .tm .plan-t { display: block; color: #9ca3af; font-size: 11px; text-decoration: line-through; }
.pullmark { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: #ecfdf5; color: #047857; }
.pull-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px 2px; border-top: 1px dashed #e5e7eb; margin-top: 6px; flex-wrap: wrap; }
.pull-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.pull-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; }
.pull-item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tm-grid16 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.tm-grid16 .tm-lvhead { grid-column: 1 / -1; margin-top: 6px; }

/* ── 6-2 반복 업무 · 반복 알림 ── */
.blk .bd.rep { background: #f4f2fd; color: #3c3489; border-left-color: #8b80e0; border-style: solid dashed dashed solid; border-width: 1px 1px 1px 5px; border-color: #d9d4f6 #d9d4f6 #d9d4f6 #8b80e0; }
.blk .bd.rep.proj { background: #eef6f2; color: #0d4d3a; border-color: #cfe6dc #cfe6dc #cfe6dc #2e8b6a; }
.blk .bd.rep .rep-sub { font-size: 12px; opacity: .85; }
.rep-abs { font-size: 12px; color: #8a4b00; }
.rep-lines { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
.rep-line { display: grid; grid-template-columns: 52px 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 10px 7px 0;
  border-radius: 10px; background: #faf9ff; border: 1px dashed #d9d4f6; font-size: 14px; }
.rep-line.alarm { background: #fffaf0; border-color: #f0dcb5; }
.rep-line.absent { background: #f6f7f9; border-color: #dfe3e8; color: var(--sub); }
.rep-line.done { opacity: .6; }
.rep-line .rl-t { text-align: right; font-size: 13px; font-weight: 600; color: var(--text); }
.rep-line .rl-i { text-align: center; }
.rep-line .rl-b { display: flex; flex-direction: column; min-width: 0; }
.rep-line .rl-b b { overflow-wrap: anywhere; }
.rep-line .rl-b small { font-size: 12px; color: var(--sub); }
.rep-line .btn.on { background: #e8f5e9; border-color: var(--ok); color: var(--ok); }
.rep-act { display: flex; gap: 4px; }
.rep-act button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; }
.rep-act button.on.r-ok { background: #e8f5e9; border-color: var(--ok); color: var(--ok); }
.rep-act button.on.r-no { background: #fdecea; border-color: var(--danger); color: var(--danger); }
.rep-act button:disabled { opacity: .35; cursor: default; }
.modal-box:has(.rp-form), .modal-box:has(.rp-wrap) { width: min(640px, 100%); }
.rp-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.rp-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.rp-item.off { opacity: .6; }
.rp-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-h .pchip { margin-left: 0; }
.rp-form { display: flex; flex-direction: column; gap: 10px; }
.rp-form label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 4px; }
.rp-seg { flex-wrap: wrap; }
.rp-seg button { white-space: nowrap; }
.rp-wd { display: inline-flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.rp-wd button { width: 32px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.rp-wd button.on { background: #e3ebf7; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.rp-people { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.rp-prev { background: #f6f8fb; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.modal-box .rp-form select { width: auto; max-width: 100%; margin-top: 6px; margin-right: 6px; }
.modal-box .rp-form .rp-people input, .modal-box .rp-form .sp-p input { width: auto; }
@media (max-width: 640px) {
  .rep-line { grid-template-columns: 44px 18px minmax(0, 1fr) auto; gap: 6px; font-size: 13px; }
  .rp-seg { display: flex; }
}
.wk-rep { font-style: normal; font-size: 10px; margin-left: 3px; }

/* ── 하루 순서 바꾸기 ── */
.blk.mv .bd { position: relative; padding-left: 30px; }
.blk .bd .grip { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 34px; border: 0; background: transparent;
  color: rgba(0,0,0,.35); font-size: 16px; line-height: 1; cursor: grab; touch-action: none; border-radius: 6px; padding: 0; }
.blk .bd .grip:hover { background: rgba(0,0,0,.06); color: rgba(0,0,0,.6); }
.blk .bd .cutline { position: absolute; left: 26px; right: 0; height: 0; border-top: 1px dashed rgba(0,0,0,.14); pointer-events: none; }
@media (hover: hover) {
  .blk .bd .cutline { border-top-color: transparent; }
  .blk .bd .cutline .cut { opacity: 0; transition: opacity .15s; }
  .blk.mv:hover .bd .cutline { border-top-color: rgba(0,0,0,.16); }
  .blk.mv:hover .bd .cutline .cut { opacity: 1; }
}
.blk .bd .cutline .cut { position: absolute; right: 6px; top: -11px; width: 22px; height: 22px; border-radius: 11px; border: 1px solid rgba(0,0,0,.2);
  background: #fff; font-size: 12px; line-height: 1; cursor: pointer; pointer-events: auto; padding: 0; color: #555; }
.blk .bd .cutline .cut:hover { border-color: var(--accent); color: var(--accent); }
.blk.lifting { opacity: .35; }
.od-ghost { position: fixed; z-index: 80; pointer-events: none; opacity: .88; box-shadow: 0 10px 28px rgba(0,0,0,.18); border-radius: 12px; }
.od-ghost .bd .wk, .od-ghost .bd .wk-box, .od-ghost .bd input { display: none; }
.od-ghost .cutline, .od-ghost .grip { display: none; }
.od-line { position: absolute; z-index: 79; height: 0; border-top: 3px solid var(--accent); border-radius: 2px; pointer-events: none; display: none; }
.od-line.same { border-top-color: #c9d1da; }
.od-pend, .od-undo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 2px 10px; }
.od-pend .pchip { margin-left: 0; }
.od-p { border-top: 1px solid var(--line); padding: 6px 0; }
.td-blocks.busy { opacity: .55; pointer-events: none; transition: opacity .2s; }

/* ── 중요 표시 · 시각 약속 ── */
.flagmark { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; background: #fcebeb; color: #791f1f; border-radius: 10px; padding: 1px 8px; }
.flagmark.late { background: #e24b4a; color: #fff; }
.flagmark.late .lnk { color: #fff; }
.blk.marked .bd { box-shadow: inset 0 0 0 1.5px #e24b4a; }
.res .more.flagbtn { font-size: 13px; }
.rep-line.promise { background: #f3f8ff; border-color: #cfe0f5; }
.up-row { border-top: 1px solid var(--line); padding: 8px 0; }
.up-row input { width: auto; flex: 1; min-width: 140px; }
.up-row select { width: auto; }

/* ── 내일로 미루기 (끌어서 오른쪽 끝) ── */
.od-zone { position: fixed; z-index: 78; width: 62px; border-radius: 12px; border: 2px dashed #b9c6d6; background: rgba(240,245,251,.85);
  color: #4a6a8f; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; white-space: pre;
  text-align: center; line-height: 1.5; pointer-events: none; transition: background .15s, border-color .15s; }
.od-zone.left { width: 46px; background: rgba(240,245,251,.7); }
.od-zone.hot { background: #e3ebf7; border-color: var(--accent); color: var(--accent); }
@keyframes odSlideR { from { transform: translateX(48px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes odSlideL { from { transform: translateX(-48px); opacity: .3; } to { transform: none; opacity: 1; } }
.od-slide-r { animation: odSlideR .28s ease-out; }
.od-slide-l { animation: odSlideL .28s ease-out; }
/* 외주 업체 달력 */
.pchip.vd { background: #eef0f6; color: #4b5470; border: 0; cursor: pointer; font-weight: 500; }
.pchip.vd.off { background: #efeafc; color: #5a47b0; }
.pchip.vd:hover { filter: brightness(.96); }
.vd { display: grid; gap: 6px; max-height: 64vh; overflow-y: auto; padding-right: 2px; }
.vd-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text, #222); margin-top: 6px; }
.vd-h .fill { flex: 1; }
.vd-h2 { font-weight: 700; margin-bottom: 2px; }
.vd-task { background: #f6f4fd; border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }
.vd-task .vd-h { margin-top: 0; }
.vd-wd { display: flex; gap: 6px; flex-wrap: wrap; }
.vd-day { width: 38px; height: 34px; border-radius: 8px; border: 1px solid #cfd5db; background: #fff; color: #333; font-weight: 600; cursor: pointer; }
.vd-day.we { color: #8f1f1f; }
.vd-day.on { background: #5a47b0; border-color: #5a47b0; color: #fff; }
.vd-day:disabled { cursor: default; opacity: .8; }
.vd-hol { line-height: 1.7; }
.vd-hd { display: inline-block; background: #fcebeb; color: #8f1f1f; border-radius: 6px; padding: 0 6px; margin: 0 4px 2px 0; font-size: 11.5px; }
.vd-ex { display: grid; gap: 2px; }
.vd-exr { display: flex; gap: 6px; align-items: center; }
.vd-add { flex-wrap: wrap; gap: 6px; }
.vd-add input[type=date] { width: 140px; }
.vd-sum { background: #f4f5f7; border-radius: 8px; padding: 6px 10px; font-weight: 600; font-size: 13px; }
.vd-used { display: grid; gap: 2px; }
.vd-pv { background: #fff8ec; border-radius: 8px; padding: 6px 10px; display: grid; gap: 2px; }
.vd-pv:empty { display: none; }
.vd-mini { display: inline-flex; gap: 2px; }
.vd-mini i { font-style: normal; font-size: 11px; width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 4px; background: #f1f2f4; color: #aab0b8; }
.vd-mini i.on { background: #5a47b0; color: #fff; }
.dm-in { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.modal-box .vd-add input[type=date] { width: 150px !important; flex: 0 0 auto; padding: 6px 8px; }
.modal-box .vd-add input[type=text] { flex: 1 1 120px; width: auto !important; padding: 6px 8px; }
/* 근속 휴가 */
.lv-tenure { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.lv-tn { background: #f4f5f7; border-radius: 10px; padding: 6px 12px; font-size: 13px; }
.lv-tn.on { background: #eef6ee; color: #1f5b2a; }
/* 6-3 생일 · 기념일 */
.an-state { font-size: 12px; font-weight: 500; color: var(--sub); background: #f1f2f4; border-radius: 10px; padding: 1px 8px; vertical-align: middle; }
.an-state.on { color: #0f6e56; background: #e3f1ec; }
.an-grid td, .an-grid th { text-align: center; }
.an-grid td:first-child, .an-grid th:first-child { text-align: left; }
.an-sw { width: 38px; height: 22px; border-radius: 11px; border: 0; background: #d5d9de; position: relative; cursor: pointer; padding: 0; vertical-align: middle; }
.an-sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.an-sw.on { background: #1d9e75; }
.an-sw.on i { left: 19px; }
.an-day { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid #eef0f2; }
.an-day .fill, .an-line .fill { flex: 1; }
.an-rules { display: grid; gap: 4px; }
.an-today { display: grid; gap: 6px; padding: 10px 14px; background: #fff8fb; }
.an-line { display: flex; align-items: center; gap: 8px; }
.an-ic { font-size: 18px; }
.an-wk { margin-left: 4px; font-size: 12px; cursor: default; }
.an-wv { color: var(--sub); }
.bd-pv:empty { display: none; }
.bd-pv { margin: 4px 0; }
.lv-prev { background: #fff8ec; border-radius: 8px; padding: 6px 12px; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lv-prev.untracked { background: #f4f5f7; }
/* 간트 진행 막대 (업데이트 47) */
.gt-bar.pg { background: repeating-linear-gradient(135deg, var(--hb) 0 3px, var(--hl) 3px 4.5px); border: 1px solid; }
.gt-pf { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); }
.gt-fill.x { top: 0; height: auto; background: #aab2bb; }
.gt-bar.pg .gt-lb, .gt-bar.ext .gt-lb { background: rgba(255, 255, 255, .82); border-radius: 3px; margin: 1px 2px; padding: 0 5px; line-height: 16px; }
.gt-bar.par { top: 6px; height: 18px; }
.gt-bar.proj { top: 10px; height: 22px; border-radius: 5px; }
.gt-pcl { position: absolute; top: 12px; height: 18px; line-height: 18px; padding: 0 9px; border-radius: 9px; background: rgba(22, 26, 32, .78); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 3; }
.gt-pcl small { font-weight: 400; opacity: .92; font-size: 11px; }
.gt-pcl.out { background: none; color: var(--text); }
.gt-mk { position: absolute; top: -3px; transform: translateX(-50%); font-size: 10px; line-height: 10px; color: #2b2f36; z-index: 3; cursor: help; }
.gt-mk.p { top: 1px; }
.gt-pace { font-size: 11px; font-weight: 700; border-radius: 8px; padding: 0 6px; line-height: 16px; font-style: normal; }
.gt-pace.late { background: #fde8e8; color: #a32d2d; }
.gt-pace.ahead { background: #e3f4ea; color: #1b6b3a; }
.gt-row.t.l1 { border-top: 1px solid #a3aab2; }
.gt-row.p { border-top: 3px double #8d949c; }
.lg-pg { display: inline-block; position: relative; width: 26px; height: 12px; border-radius: 3px; border: 1px solid #7f8ab0;
  background: repeating-linear-gradient(135deg, #eef0f8 0 3px, #9fa8cc 3px 4.5px); overflow: hidden; vertical-align: -2px; }
.lg-pg b { position: absolute; left: 0; top: 0; bottom: 0; width: 13px; background: #6a78b0; }
.lg-mk { font-style: normal; font-size: 10px; color: #2b2f36; }
.gt-legend .gt-pace { margin-right: 3px; }
.rest-wd { flex-wrap: wrap; gap: 4px 12px; }
.rest-wd .chk { white-space: nowrap; }
.pchip.rs { background: #eaf3ee; color: #2f6b4a; border: 1px solid #b9d8c5; margin-right: 4px; }
.rs-note { margin: 0 14px 8px; padding: 6px 10px; background: #f6faf7; border-left: 3px solid #9cc8ad; border-radius: 4px; line-height: 1.5; }
.rs-chip { display: inline-block; margin-top: 2px; font-size: 12px; padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,.7); border: 1px dashed currentColor; cursor: pointer; }
.rs-pop { min-width: 260px; max-width: 340px; }
.rs-pop .rs-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
.rs-pop .rs-list label { display: flex; gap: 6px; align-items: center; padding: 3px 4px; border-radius: 4px; }
.rs-pop .rs-list label:hover { background: #f2f5f8; }
.rs-pop .rs-list .h { margin-left: auto; color: #8a939d; font-size: 12px; }
.rs-pop input[type=text] { width: 100%; }
.el2.has-rw { flex-wrap: wrap; }
.rw-sum { flex-basis: 100%; margin-top: 4px; padding: 6px 10px; background: #fbf7ee; border-left: 3px solid #e0b860; border-radius: 4px; font-size: 12.5px; line-height: 1.6; }
.rw-sum .rw-top { margin-top: 2px; }
.rw-r { display: inline-block; margin: 0 4px 2px 0; padding: 0 7px; border-radius: 9px; background: #fff; border: 1px solid #ead9b0; }
.rw-r.late { border-color: #f0c2b8; }
.cp-preset { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.cp-new { display: flex; flex-direction: column; gap: 3px; max-height: 180px; overflow: auto; padding: 6px 8px; background: #f7f9fb; border-radius: 6px; }
.tr-i { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid #eef0f3; align-items: center; }
.tr-i .tr-t { grid-column: 1; }
.tr-i .small { grid-column: 1; }
.tr-i .row { grid-column: 2; grid-row: 1 / span 2; gap: 6px; }
.btn.danger { color: #b42318; }
.gt-uns { display: inline-block; padding: 0 7px; border-radius: 9px; background: #fdecea; color: #b42318; border: 1px solid #f3b6ae; font-size: 11.5px; cursor: pointer; white-space: nowrap; pointer-events: auto; }
.uns-pop { width: 380px; max-height: 420px; overflow: auto; }
.uns-i { padding: 6px 0; border-top: 1px solid #f0f2f4; }
.uns-i.root b { color: #b42318; }
.uns-c { margin-left: 6px; font-size: 11px; padding: 0 6px; border-radius: 8px; background: #fdecea; color: #b42318; }
.chip.c-bad { background: #fdecea; color: #b42318; }
.warnbox.bad { background: #fdf1ef; border-color: #f3c3bb; }
.rest-box { margin-top: 10px; padding: 10px 12px; background: #f6f8fb; border-radius: 8px; }
.rest-f { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.rest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rest-row > .muted:first-child { min-width: 92px; font-size: 13px; }
.rest-prev { font-size: 13px; padding: 6px 10px; background: #eef5ff; border-radius: 6px; color: #2a4f86; }
.pcard .savebar.top { position: static; margin: 8px 10px 4px; }
.gt-pn small .gt-uns { margin-right: 4px; padding: 0 5px; font-size: 10.5px; }
.pchip.ad { background: #e8f1fb; color: #1f5b9c; border: 1px solid #bcd5f0; }
.ad-grp .ad-crew { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; margin-left: 6px; padding-left: 6px; border-left: 1px solid #dde3ea; }
.gt-wait { display: inline-block; padding: 0 7px; border-radius: 9px; background: #f1f3f5; color: #5c6670; border: 1px solid #dde2e7; font-size: 11.5px; white-space: nowrap; pointer-events: auto; }
.st-cvd { margin-left: 8px; font-size: 12px; font-weight: 500; vertical-align: middle; }
.st-d { white-space: nowrap; font-size: 11.5px; }
.st-d.up { color: #1f7a45; }
.st-d.down { color: #b42318; }
.st-d.flat { color: #6b7480; }
.st-cmp { margin: -4px 0 8px; }
.st-rb { position: relative; display: inline-flex; align-items: center; width: 150px; height: 16px; }
.st-rb i { position: absolute; left: 0; top: 4px; height: 8px; border-radius: 4px; }
.st-rb i.pl { background: #e6eaef; }
.st-rb i.ac { background: #5b7bb2; opacity: .85; }
.st-rb i.ac.over { background: #d9822b; }
.st-rb i.ac.under { background: #2e9c8f; }
.st-rb b { position: absolute; right: -40px; }
.toast.undo { display: flex; gap: 12px; align-items: center; }
.toast.undo .lnk { color: #9cc3ff; font-weight: 600; }
/* 규모 변수 */
.sv-panel { border: 1px solid var(--line, #e4e2da); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; background: #fbfaf7; }
.sv-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sv-head .muted { flex: 1; min-width: 200px; }
.sv-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sv-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 8px; background: #fff; border: 1px solid #ece9e1; border-radius: 8px; }
.sv-row.own { border-color: #c9b8f0; }
.sv-row input { height: 28px; padding: 2px 6px; font-size: 13px; }
.sv-nm { width: 110px; font-weight: 600; }
.sv-num, .sv-opts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; flex: 1; }
.sv-l { font-size: 12px; color: #777; }
.sv-base, .sv-val { width: 80px; }
.sv-base.need { border-color: #e0a04a; background: #fff8ec; }
.sv-val { font-weight: 600; border-color: #8fb4e8; }
.sv-unit { width: 56px; }
.sv-w { width: 64px; }
.sv-ratio { font-size: 12px; color: #2e6fbf; margin-left: 4px; }
.sv-opt { display: inline-flex; gap: 3px; align-items: center; padding: 2px 6px; border: 1px solid #ece9e1; border-radius: 6px; }
.sv-opt.on { border-color: #8fb4e8; background: #eef5ff; }
.sv-on { width: 90px; }
.sv-om { width: 56px; }
.pchip.own-v { background: #efe9fb; color: #5b45a8; }
.sv-chips { display: inline-flex; gap: 3px; flex-wrap: wrap; margin-left: 4px; }
.sv-chip { font-size: 11px; padding: 1px 7px; border-radius: 10px; border: 1px solid #ddd; background: #f4f3ef; color: #999; cursor: pointer; }
.sv-chip.on { background: #e6f0fd; border-color: #a9c7f0; color: #1f5fae; }
.sv-chip:disabled { cursor: default; opacity: .7; }
.sv-f { font-size: 11px; color: #1f5fae; margin-left: 4px; }
.sv-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 14px 6px; }
.sv-it.own b { color: #5b45a8; }
.pv-list { margin-top: 10px; max-height: 260px; overflow: auto; border-top: 1px solid #eee; padding-top: 6px; }
.pv-h, .pv-r { display: grid; grid-template-columns: 1fr auto 110px; gap: 8px; padding: 2px 0; font-size: 13px; }
.pv-h { color: #888; }
.pv-r b { text-align: right; }
.pv-r.same { color: #999; }
.pv-r.tot { border-top: 1px solid #eee; margin-top: 4px; padding-top: 4px; }

.sv-panel input:not([type=checkbox]):not([type=radio]):not([type=color]) { height: 28px; padding: 2px 6px; font-size: 13px; border-radius: 6px; }
.modal-box .sv-panel { background: #fbfaf7; }
.el2 .grp > .sc-sel { align-self: flex-start; }
.sv-under { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.sv-under .sv-chips { margin-left: 0; }
.modal-box.wide { width: min(780px, 100%); }
.sv-chips { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.sv-chips:disabled { cursor: default; }
.sv-chips .sv-chip { cursor: inherit; }
.sv-ed { font-size: 11px; color: #999; margin-left: 2px; }
.sv-popl { display: flex; flex-direction: column; gap: 4px; padding: 4px 2px; min-width: 150px; }
/* 공정 편집기: 위계 음영 (간트처럼 위 단계일수록 진하게) · 접기 · 여러 개 고르기 */
.etable2 { --pc: #6b88b0; }
.etable2 .el.lv1 { background: color-mix(in srgb, var(--pc) 13%, #fff); box-shadow: inset 4px 0 0 color-mix(in srgb, var(--pc) 80%, #fff); }
.etable2 .el.lv2 { background: color-mix(in srgb, var(--pc) 6%, #fff); box-shadow: inset 4px 0 0 color-mix(in srgb, var(--pc) 48%, #fff); }
.etable2 .el.lv3 { background: color-mix(in srgb, var(--pc) 2.5%, #fff); box-shadow: inset 4px 0 0 color-mix(in srgb, var(--pc) 26%, #fff); }
.etable2 .el.lv4 { background: #fff; box-shadow: inset 4px 0 0 color-mix(in srgb, var(--pc) 14%, #fff); }
.etable2 .el.lv1.grp-row { border-top: 1px solid color-mix(in srgb, var(--pc) 35%, #fff); }
.etable2 .el.pk-self { background: #e3ebf7; }
.etable2 .el.pk-on { background: #f3f8ff; }
.etable2 .el.other { box-shadow: inset 4px 0 0 #7f77dd; }
.etable2 .el.msel-on { background: #fff4d6; }
.etable2 .el.lock-row, .etable2 .el.add { background: #fff; box-shadow: none; }
.etable2 .el.lock-row .fill { flex: 1; }
.fold-t { border: 0; background: none; width: 18px; flex: none; padding: 0; color: #5c6670; cursor: pointer; font-size: 12px; }
.fold-t.sp { display: inline-block; height: 1px; }
.el1 .msel { margin: 0 2px 0 0; flex: none; }
.el.ms-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff8e6; box-shadow: none; position: sticky; top: 52px; z-index: 3; border-bottom: 1px solid #f0dfb3; }
.el.ms-bar select { max-width: 280px; padding: 4px 6px; border-radius: 6px; border: 1px solid #d9cfb5; }
.el1 .gl-in + .conds { font-size: 12px; }
/* 간트: 막대 안 글자는 바탕 상자 없이 (주말 · 빗금이 보이게), 흰 테두리로 읽기 쉽게 */
.gt-bar.pg .gt-lb, .gt-bar.ext .gt-lb { background: none; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.gt-wait { background: none; }
.gt-pcl { background: none; color: #1f2328; font-weight: 600; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 5px #fff; }
.gt-pcl small { opacity: 1; color: #3d4650; }
.gt-bar.pg .gt-lb, .gt-bar.ext .gt-lb { text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.gt-pcl { text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
/* 간트: 위계 음영 (프로젝트 > 주요 공정 > 세부) · 날짜 동그라미 (세로 휴일 음영 없음) */
.gt-row.lv0 { --rt: 13%; } .gt-row.lv1 { --rt: 7%; } .gt-row.lv2 { --rt: 3.5%; } .gt-row.lv3 { --rt: 0%; }
.gt-row.lv0 .gt-r, .gt-row.lv1 .gt-r, .gt-row.lv2 .gt-r { background: color-mix(in srgb, var(--pc) var(--rt), transparent); }
.gt-row.lv0 .gt-l, .gt-row.lv1 .gt-l, .gt-row.lv2 .gt-l { background: color-mix(in srgb, var(--pc) var(--rt), #fff); }
.gt-row.lv0 .gt-l { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--pc) 80%, #fff); }
.gt-row.lv1 .gt-l { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--pc) 48%, #fff); }
.gt-row.lv2 .gt-l { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--pc) 26%, #fff); }
.gt-row.lv3 .gt-l { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--pc) 14%, #fff); }
.gt-row.sel .gt-l { background: #e8effb; }
.gt-hd.off { background: none; }
.gt-dn { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; text-align: center; }
.gt-dn.sun { background: #fde0de; color: #c0392b; font-weight: 600; }
.gt-dn.sat { background: #dfe9fb; color: #1f5fae; font-weight: 600; }
.gt-hd.today .gt-dn { background: none; color: #fff; }
/* 특별 허락 */
.gr-chip { background: #efe9fb !important; color: #5b45a8 !important; }
.wk-name.gr small.gr-chip { border-radius: 8px; padding: 0 6px; display: inline-block; width: fit-content; }
.gr-mine { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
.gr-ln { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.gr-ln > span { flex: 1; }
.gr-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.gr-row .small { grid-column: 1; }
.gr-row .row { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.gr-row.done { opacity: .7; }
.gr-ppl { flex-wrap: wrap; gap: 4px 12px; }
.gr-quick { display: inline-flex; gap: 8px; margin-left: 8px; }
.modal-box .gr-quick + * { margin: 0; }
.nt-box { margin-top: 10px; background: #f4f6f8; border-radius: 8px; padding: 8px 10px; color: var(--sub); }
.modal-box input[type=date] { width: auto; }
/* 공정 줄 지우기: 맨 왼쪽 작은 ✕ (평소엔 옅게, 줄에 마우스를 대면 또렷하게) */
.el1 > .del-x:first-child { margin: 0 4px 0 0; width: 22px; height: 22px; font-size: 11px; border-color: transparent; color: #c9a3a3; background: transparent; }
.el:hover .el1 > .del-x:first-child { border-color: #f1c4c4; color: var(--danger); background: #fff; }
.el1 > .del-x:first-child:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.gt-pfbtn.on { border-color: #8fb4e8; color: #1f5fae; background: #eef5ff; }
.gt-pick { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; min-width: 200px; max-height: 60vh; overflow: auto; }
.gt-pg { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; border-top: 1px solid #eee; }
.gt-pg label.chk:not(.gt-pgh) { padding-left: 16px; }
.gt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin: 0 4px 0 2px; }
/* 설정 화면 (내 설정 · 관리): 왼쪽 분류 + 오른쪽 내용 */
.set-page h1 { margin-bottom: 12px; }
.set-wrap { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start; }
.set-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 64px; }
.set-nav button { text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--sub); cursor: pointer; }
.set-nav button:hover { background: #eef1f5; }
.set-nav button.on { background: #e6eefb; color: #1f5fae; font-weight: 600; }
.set-body > .card:first-child, .set-body > div > .card:first-child { margin-top: 0; }
.set-body h1 { font-size: 18px; }
.pw-card { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.wk-hol.my-work { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: baseline; margin: 0; }
@media (max-width: 760px) {
  .set-wrap { grid-template-columns: 1fr; }
  .set-nav { flex-direction: row; overflow-x: auto; position: static; }
  .set-nav button { white-space: nowrap; }
}
.who .nm-btn { font-weight: 600; }
.who .nm-btn.on { background: rgba(255,255,255,.18); }
.nm-cog { opacity: .7; font-weight: 400; }
/* ⓘ 설명 */
.itip-wrap { display: inline; }
.itip { border: 0; background: none; color: #8a939d; cursor: pointer; font-size: 14px; padding: 0 4px; vertical-align: middle; }
.itip.on, .itip:hover { color: #1f5fae; }
.itip-body { display: none; font-size: 12.5px; color: var(--sub); background: #f4f6f8; border-radius: 8px; padding: 8px 10px; margin: 6px 0; line-height: 1.6; }
.itip-body.open { display: block; }
.mw-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px 16px; align-items: baseline; font-size: 14px; }
.mw-l { color: var(--sub); font-size: 13px; }
.mw-v { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
/* ⚙ 보기 · ⓘ */
.vm-pop { display: flex; flex-direction: column; gap: 10px; padding: 6px 4px; min-width: 260px; }
.vm-row { display: grid; grid-template-columns: 70px auto; gap: 8px; align-items: center; }
.vm-l { font-size: 12px; color: var(--sub); }
.vm-c { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.help-panel { display: none; }
.help-panel.open { display: block; background: #f7f8fa; border: 1px solid #e6e9ee; border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.help-panel .gt-legend, .help-panel .wk-hint { margin: 0; }
.help-btn.on, .vm-btn:hover { border-color: #8fb4e8; color: #1f5fae; }
h2 .itip-wrap, h3 .itip-wrap, h4 .itip-wrap { font-weight: 400; }
h2 .itip-body, h3 .itip-body { font-size: 12.5px; font-weight: 400; margin-top: 8px; }
/* ── 간트: 왼쪽 판(보기 설정 늘 보임 · 프로젝트 · 범례) ── */
main.wide { max-width: 1480px; }
.gt-wrap { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; }
.gs { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; max-height: calc(100vh - 80px); overflow: auto; padding: 2px 4px 12px 0; }
.gs-h { font-size: 11px; color: #8a939d; margin-bottom: 4px; display: flex; gap: 8px; align-items: baseline; }
.gs-h .lnk.tiny { font-size: 11px; padding: 0; }
.tg { display: flex; flex-wrap: wrap; gap: 3px 10px; }
.tg button { border: 0; background: none; padding: 1px 0; color: #6b7480; cursor: pointer; font-size: 12.5px; border-bottom: 1.5px solid transparent; border-radius: 0; }
.tg button:hover { color: #1f2328; }
.tg button.on { color: #1f2328; font-weight: 600; border-bottom-color: #1f2328; }
.gs-ck { display: flex; align-items: center; gap: 6px; color: #4a525c; line-height: 1.85; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-ck input { margin: 0; width: 13px; height: 13px; accent-color: #3a4048; flex: none; }
.gs-gh { color: #8a939d; font-size: 11.5px; margin-top: 4px; }
.gs-dot { width: 7px; height: 7px; border-radius: 4px; flex: none; display: inline-block; }
.gs-hr { border-top: 1px solid #eceef1; }
.gs-legend { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #8a939d; }
.gs-lg { display: flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 16px; height: 6px; border-radius: 3px; flex: none; }
.sw-done { background: #5b7bb2; } .sw-rem { background: #b9c8e2; } .sw-ext { background: #dfe3e8; }
.sw-gap { background: linear-gradient(90deg, #b9c8e2 0 6px, transparent 6px 10px, #b9c8e2 10px); }
.sw-lift { height: 2px; background: #f0b44a; }
.sw-t { width: 16px; text-align: center; font-size: 10px; color: #2b2f36; flex: none; }
.sw-t.late { width: auto; color: #a32d2d; font-weight: 600; font-size: 11px; }
.gs-how { margin-top: 4px; }
.gs-mob summary { cursor: pointer; font-size: 13px; color: var(--sub); padding: 4px 0 8px; }
.gs-mob { position: static; max-height: none; }
@media (max-width: 960px) { .gt-wrap { grid-template-columns: 1fr; } }
/* ── 간트 미니멀: 얇은 막대 · 막대 안 글자 없음 · 옅은 구분선 · 분야 줄은 글자만 ── */
.gt.min .gt-bar { top: 11px; height: 8px; border: 0; border-radius: 4px; }
.gt.min .gt-bar.par { top: 11px; height: 8px; }
.gt.min .gt-bar.proj { top: 16px; height: 10px; border-radius: 5px; }
.gt.min .gt-bar.pg { background: var(--hl); border: 0; }
.gt.min .gt-bar.ext { background: #dfe3e8; border: 0; }
.gt.min .gt-bar .gt-lb, .gt.min .gt-lb.out, .gt.min .gt-pcl { display: none; }
.gt.min .gt-over { top: 16px; height: 10px; }
.gt.min .gt-offseg { background: rgba(255, 255, 255, .9); border: 0; }
.gt.min .gt-pace { background: none; padding: 0; font-weight: 600; }
.gt.min .gt-row { border-bottom-color: #f6f7f9; }
.gt.min .gt-row.p { border-top: 1px solid #e9ecef; }
.gt.min .gt-row.t.l1 { border-top-color: #f0f2f4; }
.gt.min .gt-row.g, .gt.min .gt-row.g .gt-l { background: #fff; }
.gt.min .gt-row.g .gt-l { font-size: 12px; color: #6b7480; }
.gt.min .gt-row.g .gt-l b { font-weight: 600; }
.gt.min .gt-l { border-right-color: #eef0f3; }
.gt.min .gt-head { border-bottom-color: #eceef1; }
.gt.min .gt-tools { margin-bottom: 4px; }
/* 간트: 막대 위 가운데 작은 이름 (끝나는 날) · 이름 칸 글자 크기를 단계마다 */
.gt.min .gt-bar { top: 15px; }
.gt.min .gt-bar.par { top: 15px; }
.gt.min .gt-bar.proj { top: 20px; }
.gt.min .gt-over { top: 20px; }
.gt.min .gt-after { top: 9px; }
.gt.min .gt-row.p .gt-after { top: 15px; }
.gt.min .gt-base { top: 25px; height: 4px; }
.gt.min .gt-mk { top: 23px; transform: translateX(-50%) rotate(180deg); }
.gt.min .gt-mk.p { top: 30px; }
.gt.min .gt-dl { top: 14px; }
.gt.min .gt-fx { top: 13px; }
.gt-tl { display: none; }
.gt.min .gt-tl { display: block; position: absolute; top: 1px; transform: translateX(-50%); font-size: 10.5px; line-height: 13px; color: #4a525c;
  white-space: nowrap; pointer-events: none; z-index: 2; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.gt.min .gt-row.p .gt-tl { top: 4px; font-size: 11.5px; font-weight: 600; color: #2b2f36; }
.gt.min .gt-row.t.lv1 .gt-tl { font-weight: 600; color: #3a4048; }
.gt.min .gt-pn b { font-size: 15px; font-weight: 700; }
.gt.min .gt-row.t .gt-tn { font-size: 12px; color: #4a525c; }
.gt.min .gt-row.t.lv1 .gt-tn { font-size: 13.5px; font-weight: 600; color: #1f2328; }
.gt.min .gt-row.t.lv2 .gt-tn { font-size: 12.5px; }
/* 공정 데이터: 분야별 접기 */
.ps-g { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 6px 8px 2px; font-size: 12px; color: #6b7480; cursor: pointer; text-align: left; }
.ps-g:hover { color: #1f2328; }
.ps-gt { width: 12px; font-size: 10px; }
.ps-i.ps-in { padding-left: 20px; }
/* ── 월간: 날짜(세로) × 프로젝트 · 메인 공정(가로) — 이어진 막대 · 나란한 열 ── */
.mo-sw.ok { background: #cfe9d3; } .mo-sw.warn { background: #f8dcb4; } .mo-sw.bad { background: #f5c6c6; }
.mo-sw.fut { background: #e3e9f3; } .mo-sw.now { height: 2px; background: #e53935; } .mo-sw.off { background: #eceef1; height: 10px; border-radius: 2px; }
.mo-dlk { color: #c0392b; }
.mo-main { min-width: 0; }
.mo-pv p { margin: 6px 0; }
.mo-pv .warn-t { color: #b26a00; }
.mo-vs, .mo-probs { margin: 6px 0; padding-left: 18px; }
.mo-vs li.bad, .mo-probs li { color: #a32d2d; } .mo-vs li.good { color: #2e7d32; }
.mo-sw.ok { background: #cfe9d3; } .mo-sw.warn { background: #f8dcb4; } .mo-sw.bad { background: #f5c6c6; }
.mo-sw.fut { background: #e3e9f3; } .mo-sw.now { height: 2px; background: #e53935; } .mo-sw.off { background: #eceef1; height: 10px; border-radius: 2px; }
.mo-sw.ext { background: #f7f8fa; border: 1px dashed #8a939d; height: 10px; border-radius: 2px; }
.mo-top { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.mo-ym { font-size: 16px; min-width: 104px; text-align: center; }
.mo-tip { margin-left: auto; }
.mo-scroll { overflow: auto; max-height: calc(100vh - 128px); border: 1px solid #eceef1; border-radius: 10px; background: #fff; position: relative; }
.mo-board { display: inline-block; min-width: 100%; }
.mo-head { display: flex; position: sticky; top: 0; z-index: 6; background: #fff; border-bottom: 1px solid #e3e6ea; }
.mo-hd, .mo-dates { position: sticky; left: 0; z-index: 5; background: #fff; width: 64px; min-width: 64px; flex: none; border-right: 1px solid #eceef1; }
.mo-hd { z-index: 7; color: #8a939d; font-size: 11px; padding: 8px 8px; }
.mo-ph { flex: none; padding: 7px 8px 6px; border-top: 3px solid var(--pc); border-left: 1px solid #b9c1cb; box-sizing: border-box; min-width: 0; }
.mo-ph[draggable="true"] { cursor: grab; }
.mo-hg { flex: none; display: flex; flex-direction: column; border-left: 1px solid #b9c1cb; }
.mo-hg .mo-ph { border-left: 0; }
.mo-hs { display: flex; }
.mo-mh { flex: none; padding: 4px 8px 6px; font-size: 11.5px; color: #4a525c; border-top: 1px solid #f0f1f3; border-left: 1px solid #f4f5f7; box-sizing: border-box; }
.mo-mh:first-child { border-left: 0; }
.mo-he { flex: none; width: 150px; color: #8a939d; font-size: 11px; padding: 8px; border-left: 1px solid #eceef1; }
.mo-pn { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; min-width: 0; }
.mo-pn b { overflow: hidden; text-overflow: ellipsis; }
.mo-sub { font-size: 10.5px; color: #8a939d; }
.mo-ppl { font-size: 9.5px; color: #b0b6bd; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-mn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-mno { color: #b0b6bd; margin-right: 4px; font-size: 10.5px; }
.mo-grip { color: #c3c8ce; font-size: 10px; margin-right: -2px; }
.mo-ph.lift { opacity: .45; }
.mo-ph.ins-l { box-shadow: inset 3px 0 0 #5b8def; }
.mo-ph.ins-r { box-shadow: inset -3px 0 0 #5b8def; }
.mo-body { display: flex; position: relative; }
.mo-dr { height: 30px; box-sizing: border-box; display: flex; align-items: center; gap: 3px; padding: 0 6px; border-bottom: 1px solid #f0f1f3; white-space: nowrap; overflow: hidden; }
.mo-dr.off { background: #f3f4f6; }
.mo-dr.past { color: #a0a7ae; }
.mo-dr.past .mo-dn { opacity: .6; }
.mo-dr.today { box-shadow: inset 0 2px 0 #e53935; }
.mo-dn { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; text-align: center; font-weight: 600; font-size: 11.5px; }
.mo-dn.sun { background: #fde0de; color: #c0392b; } .mo-dn.sat { background: #dfe9fb; color: #1f5fae; }
.mo-wd { font-size: 11px; color: #8a939d; }
.mo-hol { font-size: 9px; color: #c0392b; overflow: hidden; text-overflow: ellipsis; max-width: 24px; }
.mo-now { font-size: 9px; color: #e53935; font-weight: 600; }
.mo-col { position: relative; flex: none; border-left: 1px solid #f4f5f7; box-sizing: border-box;
  background-image: linear-gradient(#f0f1f3 1px, transparent 1px); background-size: 100% 30px; background-position: 0 29px; }
.mo-col.first { border-left: 1px solid #b9c1cb; }
.mo-offr { position: absolute; left: 0; right: 0; height: 30px; background: #f3f4f6; }
.mo-b { position: absolute; box-sizing: border-box; border-radius: 5px; padding: 3px 6px; font-size: 11.5px; line-height: 1.3; overflow: hidden; z-index: 2;
  background: color-mix(in srgb, var(--pc) 15%, #fff); border-left: 3px solid var(--pc); color: #2b2f36; display: flex; flex-direction: column; gap: 1px; }
.mo-bt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.mo-bs { font-size: 10px; color: #8a939d; }
.mo-b.st-ok { background: #e2f3e5; border-left-color: #43a05a; color: #1e5a2c; }
.mo-b.st-warn { background: #fdebd2; border-left-color: #e08a1e; color: #7a4a0c; }
.mo-b.st-bad { background: #fbdcdc; border-left-color: #d64545; color: #8a2121; }
/* 외주 · 대기: 옅은 바탕 + 점선 (점 2px · 사이 3px — 실선처럼 보이지 않게 직접 그림) */
.mo-b.ext { --dc: color-mix(in srgb, var(--pc) 60%, #7d8690); border: 0; padding: 4px 7px; color: #59616b; font-weight: 400;
  background:
    repeating-linear-gradient(90deg, var(--dc) 0 2px, transparent 2px 5px) top / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, var(--dc) 0 2px, transparent 2px 5px) bottom / 100% 1.5px no-repeat,
    repeating-linear-gradient(180deg, var(--dc) 0 2px, transparent 2px 5px) left / 1.5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--dc) 0 2px, transparent 2px 5px) right / 1.5px 100% no-repeat,
    color-mix(in srgb, var(--pc) 6%, #fbfcfd); }
.mo-b.ext .mo-bt { font-weight: 400; }
.mo-b.ext.conf { --dc: #7b5fc0; }
/* 외주 '얇게': 칸 왼쪽 가는 세로 막대 · 작은 세로 글씨 */
.mo-th { position: absolute; width: 13px; box-sizing: border-box; border-radius: 4px; z-index: 2; overflow: visible; cursor: default; transition: width .12s, box-shadow .12s;
  --dc: color-mix(in srgb, var(--pc) 60%, #7d8690); border: 1px dashed var(--dc); background: color-mix(in srgb, var(--pc) 7%, #f7f7f5); }
.mo-th > span { display: block; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: -1px; font-size: 10px; line-height: 11px; color: #59616b; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-height: 100%; box-sizing: border-box; padding: 3px 0; }
.mo-th.conf { --dc: #7b5fc0; }
.mo-th:hover { width: 20px; background: color-mix(in srgb, var(--pc) 16%, #fff); z-index: 6; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }
.mo-th:hover > span { font-size: 12px; line-height: 18px; color: #2b2f36; }
.mo-thx { display: none; position: absolute; right: calc(100% + 5px); top: -2px; z-index: 7; background: #fff; border: 1px solid #d5dae1; border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .14); padding: 5px 8px; font-size: 11.5px; line-height: 1.45; color: #4a525c; white-space: nowrap; pointer-events: none; }
.mo-thx b { display: block; font-size: 12.5px; color: #20252b; font-weight: 600; }
.mo-th:hover .mo-thx { display: block; }
/* 메인 공정 끝(막대 이름 뒤) · 프로젝트 마감(줄 아래 빨간 선 + 오른쪽 아래) */
.mo-mki { font-size: .92em; font-weight: 600; color: #3d4550; }
.mo-mki.late { color: #b26a00; } .mo-mki.done { color: #8a939d; }
.mo-dll { position: absolute; left: 0; right: 0; height: 2px; background: #d9534f; opacity: .8; z-index: 4; pointer-events: none; }
.mo-dlp { position: absolute; right: 4px; z-index: 5; font-size: 12px; font-weight: 700; color: #b42318; background: #fff1f0; border: 1px solid #f0a49a;
  border-radius: 4px; padding: 0 6px; line-height: 17px; white-space: nowrap; }
.mo-b.drag { cursor: grab; }
.mo-b.drag:hover { box-shadow: 0 1px 4px rgba(0, 0, 0, .18); z-index: 3; }
.mo-b.lift { opacity: .4; }
.mo-mk { position: absolute; left: 4px; z-index: 3; font-size: 10px; line-height: 12px; padding: 0 4px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #4a525c; white-space: nowrap; pointer-events: auto; }
.mo-mk.late { color: #b26a00; }
.mo-mk.dl { color: #c0392b; font-weight: 600; }
.mo-mk.done { color: #8a939d; }
.mo-pastov { position: absolute; left: 0; right: 0; top: 0; background: rgba(255, 255, 255, .45); z-index: 4; pointer-events: none; }
.mo-todayl { position: absolute; left: 0; right: 0; height: 2px; background: #e53935; z-index: 5; pointer-events: none; }
.mo-evc { position: relative; flex: none; width: 150px; border-left: 1px solid #eceef1; }
.mo-er { height: 30px; box-sizing: border-box; border-bottom: 1px solid #f0f1f3; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: #4a525c; line-height: 26px; }
.mo-er.off { background: #f3f4f6; }
.mo-e { margin-right: 6px; } .mo-e small { color: #b0b6bd; font-size: 9.5px; } .mo-e.vac { color: #8a6d1f; }
.mo-dropl { position: absolute; left: 64px; right: 0; height: 30px; background: rgba(91, 141, 239, .12); border-top: 2px solid #5b8def; z-index: 6; pointer-events: none;
  font-size: 11px; color: #2f5d9b; padding: 2px 8px; box-sizing: border-box; }
body.mo-dragging .mo-pastov { background: rgba(240, 241, 243, .6); }
/* ── 알고리즘 탭 ── */
.al-wrap { max-width: 1180px; margin: 0 auto; }
.al-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.al-head h2 { margin: 0; }
.al-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 960px) { .al-grid { grid-template-columns: 1fr; } }
.al-card { margin: 0; padding: 14px 16px; }
.al-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.al-h b { font-size: 14.5px; }
.al-fx { list-style: none; margin: 0; padding: 0; }
.al-fx li { display: flex; flex-direction: column; padding: 5px 0; border-bottom: 1px solid #f2f3f5; font-size: 13px; }
.al-fx li:last-child { border-bottom: 0; }
.al-fx small { font-size: 11.5px; }
.al-list { list-style: none; margin: 0; padding: 0; }
.al-row { display: flex; align-items: flex-start; gap: 8px; padding: 7px 6px; border-bottom: 1px solid #f2f3f5; border-radius: 6px; font-size: 13px; background: #fff; }
.al-row.al-top { background: #f7f8fa; border-bottom: 0; margin-bottom: 4px; }
.al-row.ed { cursor: grab; }
.al-row.off .al-t b, .al-row.off .al-n { color: #b0b6bd; }
.al-row.lift { opacity: .4; }
.al-row.over { box-shadow: inset 0 2px 0 #5b8def; }
.al-grip { color: #b0b6bd; font-size: 12px; padding-top: 1px; user-select: none; }
.al-n { width: 18px; flex: none; text-align: center; font-weight: 600; color: #3a4048; }
.al-t { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.al-t small { font-size: 11.5px; }
.al-sub { font-size: 12px; color: #4a525c; margin-top: 4px; }
.al-sub label { cursor: pointer; }
.al-pn { margin-top: 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.al-pn.dim { color: #b0b6bd; }
.al-num { width: 52px; padding: 1px 4px; font-size: 12px; }
.al-sw { font-size: 11.5px; color: #6b7480; white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.al-mv { display: flex; flex-direction: column; line-height: 1; }
.al-mv .lnk { padding: 0 2px; font-size: 12px; }
.al-note { margin: 8px 0 0; }
.al-esc { margin: 0; padding-left: 20px; font-size: 13px; line-height: 2; }
.al-bar { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border: 1px solid #eceef1; border-radius: 10px; background: #fff; }
.al-bar .grow { flex: 1; }
.al-pvc { margin: 10px 0 0; }
.al-pvc ul { margin: 6px 0; padding-left: 18px; }
.al-pvc li.bad { color: #a32d2d; } .al-pvc li.good { color: #2e7d32; }
.al-log { margin: 12px 0; }
.al-log ul { margin: 6px 0; padding-left: 18px; line-height: 1.8; }
/* ── 재배치: 페이지 맨 아래 줄 (공정 탭 · 간트 같게) ── */
.rr-bar { margin: 18px 0 8px; padding: 10px 14px; border: 1px dashed #d5d9df; border-radius: 10px; background: #fafbfc; transition: box-shadow .3s; }
.rr-bar.open { border-style: solid; background: #fff; }
.rr-bar.flash { box-shadow: 0 0 0 3px #b9d2fb; }
.rr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rr-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rr-sel { max-width: 320px; font-size: 13px; padding: 4px 6px; }
.rr-panel:not(:empty) { margin-top: 10px; border-top: 1px solid #eceef1; padding-top: 8px; }
.rr-row { display: flex; align-items: flex-start; gap: 6px 16px; flex-wrap: wrap; padding: 4px 0; }
.rr-h { font-size: 11.5px; color: #8a939d; width: 44px; flex: none; padding-top: 3px; }
.rr-ck { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.rr-ck.none { color: #b0b6bd; cursor: default; }
.rr-res ul { margin: 4px 0; padding-left: 18px; }
.rr-res li.bad { color: #a32d2d; } .rr-res li.good { color: #2e7d32; }
.rr-go { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.rr-go > .rr-note { margin-right: auto; }
.rr-lock.on { border-color: #e0a33a; color: #9a5d00; background: #fff7e8; }
.rr-recent:not(:empty) { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; padding-top: 6px; border-top: 1px dotted #e3e6ea; color: #4a525c; }
.rr-pend { color: #9a5d00; }
.rr-bar .btn:disabled { opacity: .4; cursor: not-allowed; }
.al-bar .btn:disabled { opacity: .4; cursor: not-allowed; }
/* ── 날짜 지정 · 외주 확정 · 다른 프로젝트 연결 · 줄 ⚙ ── */
.pchip.fix { background: #eef3fb; color: #2f5d9b; border-color: #d3e0f3; }
.pchip.conf { background: #f3f0fa; color: #5a3f99; border-color: #ddd3f1; }
.pchip.conf.late { background: #fdecec; color: #a32d2d; border-color: #f3c9c9; }
.cond.xp { background: #f3f0fa; border-color: #ddd3f1; color: #4a3485; }
.pk-x { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.xl-list { max-height: 340px; overflow: auto; border: 1px solid #eceef1; border-radius: 8px; margin-top: 8px; padding: 4px 0; }
.xl-o { display: flex; gap: 8px; align-items: center; padding: 4px 8px; font-size: 13px; cursor: pointer; }
.xl-o.on { background: #eef4ff; }
.row-gear { width: 22px; flex: none; }
.row-gear.sp { display: inline-block; }
.gt-cf { font-size: 10.5px; color: #5a3f99; white-space: nowrap; }
.gt-cf.late { color: #a32d2d; font-weight: 600; }
details.gt-chg > summary { cursor: pointer; list-style: revert; margin: 0 0 6px; }
details.gt-chg:not([open]) > summary { margin: 0; }
.mo-ph[draggable="true"] { cursor: grab; }
.mo-ph.lift { opacity: .45; }
.mo-ph.ins-l { box-shadow: inset 3px 0 0 #5b8def; }
.mo-ph.ins-r { box-shadow: inset -3px 0 0 #5b8def; }
.mo-grip { color: #c3c8ce; font-size: 10px; margin-right: -2px; }
/* 공정 줄 오른쪽 끝: ⚙ · ✕ · ⋮⋮ · ☐ */
.el1 .el-rc { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; padding-left: 6px; }
.el1 .el-rc .del-x { margin-left: 0; width: 26px; height: 26px; }
.el1 .el-rc .del-x.sp { visibility: hidden; border: 0; }
.el1 .el-rc .row-gear.sp { width: 26px; }
.grip.big { font-size: 17px; letter-spacing: -3px; padding: 2px 6px; border-radius: 6px; line-height: 1; color: #9aa2ab; }
.grip.big:hover { background: #eef1f4; color: #4a525c; }
.grip.big.off { color: #d5d9de; cursor: not-allowed; }
.grip.big.off:hover { background: none; }
.el1 .msel.big { width: 18px; height: 18px; margin: 0; accent-color: #3a4048; cursor: pointer; }
.el1 .msel.big:disabled { cursor: not-allowed; opacity: .45; }
.ps-nm { display: flex; align-items: center; gap: 6px; min-width: 0; cursor: pointer; border-radius: 5px; padding: 1px 3px; margin-left: -3px; }
.ps-nm:hover { background: #eef1f4; }
.ps-nm:hover .nm { text-decoration: underline; text-underline-offset: 2px; }
.pcard-hold.flash > .pcard { box-shadow: 0 0 0 3px #b9d2fb; transition: box-shadow .3s; }
.el1 .el-lc { display: flex; align-items: center; gap: 4px; flex: none; margin-right: 2px; }
/* 관리 → 사람: 한 사람 한 묶음 (가로 스크롤 없이) */
.pp-list { display: flex; flex-direction: column; }
.pp { padding: 12px 2px; border-bottom: 1px solid #eef0f2; }
.pp:first-child { border-top: 1px solid #eef0f2; }
.pp-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pp-n { font-size: 15px; }
.pp-acc { margin-left: auto; color: #6b7480; }
.pp-acc.off { color: #a32d2d; }
.pp-sub { margin-top: 2px; }
.pp-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 4px 16px; margin: 8px 0 6px; font-size: 13px; }
@media (max-width: 760px) { .pp-info { grid-template-columns: 1fr; } }
.pp-kv { display: flex; flex-direction: column; min-width: 0; }
.pp-k { font-size: 11px; color: #8a939d; }
.pp-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pp-al { font-size: 11px; color: #b0b6bd; width: 28px; flex: none; }
.pp-act .btn.small { padding: 3px 10px; }
.perm-t th.c, .perm-t td.c { text-align: center; width: 90px; }
.pw-help { margin-top: 14px; }
.pw-help summary { cursor: pointer; }
.pw-help p { margin: 6px 0; line-height: 1.5; }
/* 알고리즘: 조건별 부하 */
.al-fxr { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.al-ld { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #8a939d; white-space: nowrap; font-variant-numeric: tabular-nums; }
.al-ld i { display: inline-block; height: 5px; border-radius: 3px; background: #e7a75a; }
.al-row .al-ld { margin-left: auto; align-self: center; }
.al-cnt { margin-left: 8px; font-size: 11px; color: #8a939d; font-variant-numeric: tabular-nums; }
.al-load { margin-top: 14px; }
.al-bar2 { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #f1f3f5; margin: 6px 0 8px; }
.al-bar2 i { display: block; height: 100%; }
.al-lg2 { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #4a525c; }
.al-lg2 i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.al-opt { margin-top: 8px; font-size: 13px; }
.al-opt label { cursor: pointer; }

/* 간트 ⚙ 공정 설정 줄 */
.gt-set { margin-left: auto; flex: none; width: 22px; height: 22px; border: 0; background: none; border-radius: 5px; color: #aab2bc; font-size: 14px; line-height: 22px; padding: 0; cursor: pointer; }
.gt-set:hover { background: #eef1f5; color: #2b3440; }
.gt-set.on { background: #e6efff; color: #1f5fbf; }
.gt-set.sp { cursor: default; }
.gt-set.sp:hover { background: none; }
.gt-row.s { background: #f6f8fb; border-top: 1px solid #dde3ea; border-bottom: 1px solid #dde3ea; box-sizing: border-box; }
.gt-set-p { position: sticky; left: 0; z-index: 5; box-sizing: border-box; height: 100%; overflow: hidden; padding: 9px 14px 8px 14px; display: flex; flex-direction: column; gap: 6px; }
.gse-h { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.gse-h .gt-pv-x { margin-left: auto; }
.gse-grid { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }
.gse-grid > span:empty { display: none; }
.gse-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gse-fl { font-size: 11px; color: var(--muted, #8a939d); }
.gse-f input:not([type=checkbox]), .gse-f select { width: 100%; box-sizing: border-box; height: 28px !important; min-height: 0; margin: 0 !important; font-size: 12.5px; padding: 2px 7px; }
.gse-f .seg.mini button { height: 28px; padding: 0 9px; white-space: nowrap; }
.gse-f input[type=date] { min-width: 132px; }
.gse-f > .row:has(input[type=checkbox]) { height: 28px; }
.gse-f .row { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.gse-f .row select { width: 46%; } .gse-f .row input[type=date] { width: 54%; }
.gse-f .seg.dis { opacity: .5; }
.gse-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gse-btns { display: flex; gap: 6px; flex: none; }
.gse-imp b { font-weight: 600; }

/* ── + 추가 (월간 · 주간 빈칸) ── */
.add-plus { position: absolute; z-index: 6; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 16px; line-height: 21px; text-align: center; cursor: pointer;
  box-shadow: 0 2px 6px rgba(31,95,191,.35); opacity: .9; }
.add-plus:hover { opacity: 1; transform: scale(1.1); }
.add-plus[hidden] { display: none; }
.wk-lane { position: relative; }
.ad-pop { position: fixed; z-index: 60; width: 330px; max-width: calc(100vw - 16px); font-size: 13px; padding: 10px 12px 10px; }
.ad-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ad-head b { font-size: 14px; }
.ad-past { font-size: 11px; color: #8a6d1f; background: #fbf3df; border-radius: 6px; padding: 0 6px; }
.ad-x { margin-left: auto; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; }
.ad-tabs { margin-bottom: 8px; }
.ad-grid { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 6px 8px; align-items: center; }
.ad-k { color: var(--sub); font-size: 12px; }
.ad-in { width: 100%; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; min-width: 0; }
.ad-in.sm { width: auto; }
.ad-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ad-ppl { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ad-chip { display: inline-flex; align-items: center; gap: 2px; background: #eef3fb; color: #1f4f99; border-radius: 10px; padding: 1px 4px 1px 8px; font-size: 12px; }
.ad-chip button { border: 0; background: none; color: #6a83a8; cursor: pointer; padding: 0 2px; }
.ad-addp { padding: 2px 4px; font-size: 12px; }
.ad-note { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.ad-foot { margin-top: 10px; }
.ad-btns { display: flex; justify-content: flex-end; gap: 6px; }
.ad-pv { font-size: 12px; background: #f6f8fa; border-radius: 8px; padding: 6px 8px; margin-bottom: 8px; line-height: 1.6; }
.ad-pv .bad { color: var(--danger); } .ad-pv .warn-t { color: var(--warn); }
.mo-e.once { color: #4b4f9c; }
.wk-sch { font-size: 11.5px; border-left: 3px solid #8e86d8; background: #f1f0fc; color: #3c3489; border-radius: 6px; padding: 3px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wk-sch b { font-weight: 600; }
.wk-sch.c-보고 { background: #eef6f1; color: #23573b; border-left-color: #5aa77c; }
.wk-sch.c-기타 { background: #f5f5f3; color: #4a4a45; border-left-color: #a9a79f; }
.wk-sch.abs { opacity: .5; text-decoration: line-through; }
.wk-schi { margin-right: 3px; }
.wk-addl span { font-size: 11.5px; }
.wk-tbl .wk-addr, .wk-tbl .wk-addl { min-height: 22px; }

/* ── 주간 시간표 ── */
.wg-wrap { margin-top: 6px; }
.wg-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.wg-who { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
.wg-grid { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wg-row { display: grid; grid-template-columns: 48px repeat(7, minmax(0, 1fr)); }
.wg-head { border-bottom: 1px solid var(--line); background: #fafbfc; }
.wg-hd { padding: 6px 6px 5px; font-size: 12.5px; text-align: center; border-left: 1px solid #f0f2f5; }
.wg-hd.today b { color: var(--accent); }
.wg-hd.we b { color: #c0392b; }
.wg-hd.fl { background: #fff6e6; } .wg-hd.lt { background: #f1f6fd; }
.wg-hh { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 11.5px; color: var(--sub); min-height: 20px; flex-wrap: wrap; }
.wg-fc { background: #fdebc8; color: #8a5a00; border-radius: 8px; padding: 0 5px; font-weight: 600; }
.wg-fc.lt { background: #dfeafb; color: #1f4f99; }
.wg-flb { border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 11px; padding: 0 6px; cursor: pointer; line-height: 18px; }
.wg-flb:hover { border-color: #e0a440; }
.wg-undo { display: block; margin: 2px auto 0; font-size: 11px; }
.wg-gut { position: relative; border-right: 1px solid var(--line); }
.wg-gut span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 10.5px; color: var(--muted); }
.wg-gut span:first-child { transform: none; }
.wg-col { position: relative; border-left: 1px solid #f0f2f5; }
.wg-col.past { background: #fafafa; }
.wg-col.today { background: #fbfdff; }
.wg-col.off { background: repeating-linear-gradient(135deg, #f7f8fa 0 6px, #f1f3f6 6px 12px); }
.wg-hl { position: absolute; left: 0; right: 0; border-top: 1px dashed #edf0f3; }
.wg-offl { position: absolute; top: 40%; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); }
.wg-b { position: absolute; left: 3px; right: 3px; border-left: 3px solid #b9c1cb; background: #eef1f4; color: #39414a; border-radius: 0 6px 6px 0;
  padding: 2px 5px; font-size: 11.5px; line-height: 1.3; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; }
.wg-b.drag { cursor: grab; }
.wg-b.drag:hover { box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.wg-b.lift { opacity: .35; }
.wg-b.empty { background: transparent; border: 1px dashed #d6dbe1; border-left-width: 1px; }
.wg-b.rep { background: #f1f0fc; color: #3c3489; border-left-color: #8e86d8; }
.wg-b.rec { opacity: .75; }
.wg-bp { font-size: 10px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-bt { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-bh { font-size: 10px; opacity: .75; }
.wg-cut { position: absolute; left: -2px; right: -2px; height: 0; border: 0; border-top: 1px dashed transparent; background: none; padding: 0;
  font-size: 11px; line-height: 0; color: transparent; cursor: pointer; text-align: left; }
.wg-b:hover .wg-cut { border-top-color: rgba(216,90,48,.55); color: #c4502a; }
.wg-cut:hover { border-top: 2px dashed #d85a30 !important; }
.wg-cutl { position: absolute; left: 2px; height: 14px; border: 0; background: #fff2ec; color: #b4472a; font-size: 10px; border-radius: 7px; padding: 0 6px;
  cursor: pointer; z-index: 3; box-shadow: 0 0 0 1px #f3c9b8; }
.wg-end { position: absolute; left: 2px; right: 2px; height: 0; border-top: 2px solid #9aa1a9; cursor: ns-resize; z-index: 4; touch-action: none; }
.wg-end span { position: absolute; right: 0; top: 1px; font-size: 10px; color: var(--sub); background: #fff; border-radius: 6px; padding: 0 4px; white-space: nowrap;
  opacity: 0; transition: opacity .12s; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.wg-end:hover span, .wg-end.drag span { opacity: 1; }
.wg-end span { pointer-events: none; }
.wg-end:hover, .wg-end.drag { border-top-color: #e0a440; }
.wg-end.fl { border-top-color: #e0a440; } .wg-end.fl span { color: #8a5a00; }
.wg-end.lt { border-top-color: #6d97d6; }
.wg-end::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px; }
.wg-drop { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--accent); z-index: 5; pointer-events: none; }
.wg-drop { font-size: 10px; color: var(--accent); line-height: 14px; text-align: right; padding-right: 4px; }
.wg-foot { margin-top: 6px; }
.fl-dlg .fl-row { gap: 8px; margin-bottom: 8px; align-items: center; }
.fl-dlg select { max-width: 100%; }
.fl-pv { background: #f6f8fa; border-radius: 8px; padding: 8px 10px; margin: 4px 0 8px; transition: opacity .15s; }
.fl-pv.busy { opacity: .5; }
.fl-days { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 4px; font-size: 13px; }
.fl-d.me b { color: #b86e00; }
.wk-fl.lt { color: #1f5fbf; font-weight: 700; }

/* ── 지연된 일 (오늘 탭) ── */
.dly-card { border: 1px solid #f1d3a6; background: #fff9ef; border-radius: 10px; padding: 8px 12px; margin: 6px 0 10px; }
.dly-h { margin-bottom: 4px; font-size: 13.5px; }
.dly-i { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; border-top: 1px dashed #f1e0c4; font-size: 13px; }
.dly-i:first-of-type { border-top: 0; }
.dly-i .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dly-n { flex: 1; min-width: 160px; }
.dly-b { display: flex; gap: 6px; }
.latemark { display: inline-block; background: #fde7c7; color: #8a5200; border-radius: 6px; padding: 0 6px; font-size: 11.5px; font-weight: 600; margin-right: 4px; }

/* ── + 업무 넣기 (종류 · 자리) ── */
.ad-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.ad-tc { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 7px; text-align: left; cursor: pointer; font: inherit; font-size: 11px; line-height: 1.35; color: var(--sub); }
.ad-tc b { display: block; font-size: 12.5px; color: var(--text); font-weight: 600; }
.ad-tc.on { border: 1.5px solid var(--accent); background: #eef4fd; }
.ad-num { width: 70px !important; }
.ad-place { margin-top: 8px; font-size: 12px; background: #f6f8fa; border-radius: 8px; padding: 6px 8px; line-height: 1.5; }
.ad-ext { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; color: var(--sub); margin-top: 3px; }
.ad-at { font-size: 11.5px; color: #1f4f99; background: #eef3fb; border-radius: 6px; padding: 0 6px; }
.ad-pop { width: 360px; }
.wg-plus { position: absolute; left: 50%; transform: translate(-50%, -50%); z-index: 7; min-width: 22px; height: 22px; padding: 0 6px; border: 0; border-radius: 11px;
  background: var(--accent); color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; box-shadow: 0 2px 6px rgba(31,95,191,.35); white-space: nowrap; }
.wg-plus.edge { font-size: 11px; }
.wg-plus[hidden] { display: none; }
.wg-pend { position: absolute; left: 6px; right: 6px; border: 1.5px dashed #9aa1a9; border-radius: 6px; background: rgba(255,255,255,.75); color: var(--sub);
  font-size: 11px; padding: 2px 5px; z-index: 2; overflow: hidden; }

/* 같은 이름 · 생년월일 꼬리표 (사람 추가 · 정보) */
.same-box { margin: 10px 0; padding: 10px 12px; border: 1px solid #f0d6a8; background: #fffaf0; border-radius: 10px; display: grid; gap: 8px; }
.same-h { color: var(--warn); font-weight: 600; font-size: 14px; }
.same-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.same-row.me { align-items: flex-start; border-top: 1px dashed #f0d6a8; padding-top: 8px; }
.same-row.me > b { padding-top: 6px; }
.same-row .bd-row { flex-wrap: wrap; }
.same-pv { color: var(--text); }
/* 퇴사자: 통계에서 빼기 · 목록에서 빼기 · 휴지통 */
.rt-act { white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.rt-trash { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.rt-tr { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* 오늘 탭: 끌어서 순서 · ✂ 1시간씩 · ＋ 그 시각에 넣기 */
.td-blocks.edit .slot.blk { margin-bottom: 0; }
.td-gap { position: relative; height: 12px; }
.td-gap.end { height: 22px; }
.td-gap .td-gp { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: none; z-index: 3; border: 1px solid var(--accent); background: #fff;
  color: var(--accent); border-radius: 10px; font-size: 11px; padding: 0 7px; height: 18px; line-height: 16px; cursor: pointer; white-space: nowrap; }
.td-gap::before { content: ""; position: absolute; left: 60px; right: 0; top: 50%; border-top: 2px dashed transparent; }
.td-gap:hover .td-gp, .td-gap.end .td-gp { display: block; }
.td-gap.end .td-gp { opacity: .55; } .td-gap.end:hover .td-gp { opacity: 1; }
.td-gap:hover::before { border-top-color: #b9cdf0; }
.td-gap.drop::before { border-top: 3px solid var(--accent); }
.blk .tm.drag { cursor: grab; user-select: none; }
.td-grip { color: #b8bfc8; font-size: 12px; letter-spacing: -3px; line-height: 1; margin-bottom: 2px; }
.blk .tm.drag:hover .td-grip { color: var(--accent); }
.slot.blk.lift { opacity: .35; }
.slot.blk.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.slot.blk.drop-after { box-shadow: 0 3px 0 var(--accent); }
.td-ticks { display: none; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 6px; font-size: 12px; font-weight: 400; }
.slot.blk:hover .td-ticks { display: flex; }
.td-tk { display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,.7); border-radius: 8px; padding: 0 4px; color: var(--text); }
.td-tk button { border: 0; background: none; cursor: pointer; font-size: 13px; padding: 0 3px; color: var(--sub); }
.td-tk .td-cut:hover { color: var(--danger); } .td-tk .td-add:hover { color: var(--accent); }
.td-join { font-size: 12px; }
.add-plus.lab { width: 52px; height: 18px; margin: -9px 0 0 -26px; border-radius: 9px; font-size: 11px; line-height: 18px; font-weight: 600; white-space: nowrap; }

/* 89: 담당 여러 명 (👥 함께 · 나눠서) */
.crew-b { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 1px 7px; font-size: 12px; line-height: 20px; cursor: pointer; color: #5b6673; }
.crew-b:hover:not(:disabled) { border-color: #9bb8dc; background: #f3f7fc; }
.crew-b.on { background: #eaf2fc; border-color: #a9c6ea; color: #1f5b9c; font-weight: 600; }
.crew-b:disabled { opacity: .45; cursor: default; }
.pchip.crew { background: #eef3fb; color: #24548f; border: 1px solid #c5d6ef; }
.pchip.crew.sp { background: #f2f6ef; color: #3f6a2a; border-color: #cfe0c3; }
.pchip.crew.late { background: #fff1e3; color: #9a4a00; border-color: #f2c99b; }
.jointmark { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #eaf2fc; color: #1f5b9c; }
.jointmark.ro { background: #f1f2f4; color: #5b6673; }
.cr-dlg { min-width: min(460px, 86vw); }
.cr-dlg .pl-opt { margin-bottom: 6px; }
.cr-dlg .pl-opt.on { border-color: #9bb8dc; background: #f5f9fe; }
.cr-dlg .pl-opt.dis { opacity: .5; cursor: default; }
.cr-dlg .pl-opt small { display: block; margin-top: 2px; }
.cr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 8px; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.cr-p { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px; border-radius: 6px; }
.cr-p.on { background: #f3f7fc; }
.cr-p .chk { display: inline-flex; align-items: center; gap: 4px; }
.cr-lead { color: #9aa3ad; display: inline-flex; align-items: center; gap: 2px; }
.cr-lead.on { color: #1f5b9c; font-weight: 600; }
.cr-p:not(.on) .cr-lead { visibility: hidden; }
.cr-start { margin-top: 10px; }
.cr-start .row { gap: 8px; align-items: center; }
.cr-sum { margin: 10px 0 0; padding: 6px 10px; background: #f6f8fa; border-radius: 7px; }
.gse-f .crew-b { line-height: 24px; }
.cr-p label { flex-direction: row !important; margin: 0 !important; }
.cr-p input[type=checkbox], .cr-p input[type=radio] { width: auto !important; margin: 0 2px 0 0; flex: none; }
.cr-start input[type=date], .cr-start input[type=time] { display: inline-block; }
.modal-box .cr-p label { display: inline-flex; font-size: 13px; color: var(--text, inherit); }
.modal-box .cr-p label.cr-lead { font-size: 12px; color: #9aa3ad; }
.modal-box .cr-p label.cr-lead.on { color: #1f5b9c; }
.modal-box .cr-start input[type=date] { width: 150px !important; padding: 6px 8px; }
.modal-box .cr-start input[type=time] { width: 110px !important; padding: 6px 8px; }
/* 91: 함께 시작 — 앞 공정 확인 */
.cr-ready { margin: 8px 0 2px; padding: 7px 10px; border-radius: 7px; background: #f3f7fc; border: 1px solid #d6e3f3; display: grid; gap: 3px; line-height: 1.5; }
.cr-ready:empty { display: none; }
.cr-ready.bad { background: #fff5ec; border-color: #f2c99b; }
.cr-ready .cr-early { color: #9a4a00; font-weight: 600; }
.cr-ready .cr-sug .lnk { margin-left: 4px; }
/* 92: 결과 단추 글자(완료 · 미완료 · 타업무) — 자리는 그대로, 글자만 들어가게 폭만 */
.res button.rl { width: auto; min-width: 48px; padding: 0 8px; font-size: 13px; font-weight: 600; letter-spacing: -0.2px; }
.rep-act button.rl { width: auto; min-width: 46px; padding: 0 7px; font-size: 12.5px; font-weight: 600; }
.rmark.rl { font-size: 13px; }
@media (max-width: 640px) {
  .slot.blk { grid-template-columns: 44px minmax(0, 1fr) 94px; }
  .slot.blk .res { grid-template-columns: 45px 45px; }
  .slot.blk .res button.rl, .slot.blk .res button.more { width: 45px; min-width: 0; padding: 0; font-size: 12px; letter-spacing: -0.4px; }
  .slot.blk .res .chg { width: 94px; }
}
/* 92: 알림 체크 — ☐ 띄워 두기 · ☐ 확인 / 띄워 둔 알림은 맨 위 · 강조 */
.nchk { display: inline-flex; flex-direction: column; gap: 2px; margin-left: auto; flex: none; font-size: 12px; color: var(--sub); }
.nchk .nck { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; margin: 0; }
.nchk .nck input { width: auto; margin: 0; }
.imp-n .imp-t { flex: 1; min-width: 0; }
.imp-n.pin { background: #fff3c4; border-top-color: #f0d98a; margin: 0 -14px; padding: 8px 14px; }
.pchip.pin { background: #fde58a; color: #6b4e00; }
.inbox .nt .nt-x { flex: 1; min-width: 0; }
.inbox .nt { align-items: center; }
.inbox .ngrp.pin { background: #fff8dc; border: 1px solid #f0d98a; border-radius: 8px; padding: 4px 10px; margin-bottom: 10px; }
.inbox .ngrp.pin .nt { border-bottom-color: #f3e5ad; }
