/* 프로젝트관리 — 차량운행일지·자산관리(add-on 공통) 디자인 기준 값을 그대로 쓴다. 아래 "프로젝트관리 화면" 부분만 이 서비스용 */
@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: url('/fonts/Pretendard-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: url('/fonts/Pretendard-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700 800; font-display: swap; src: url('/fonts/Pretendard-Bold.woff2') format('woff2'); }

:root {
  --primary: #0E6E6B; --primary-h: #0A4F4D; --primary-bg: #E6F2F1;
  --t1: #101828; --t2: #475467; --t3: #5F6879; --t4: #646D7E; /* H5: 보조 글도 흰 바탕 대비 4.5:1 이상 */
  --page: #F2F4F7; --panel: #F8FAFB; --line: #E4E7EC; --input: #CFD6DD; --btn-line: #D7DDE4;
  --danger: #B42318; --danger-bg: #FEE4E2; --danger-line: #E5B0AA; --warn: #B54708; --warn-bg: #FFF3E4;
  --info: #175CD3; --info-bg: #EFF4FF;
  --notice-bg: #F2FAF9; --notice-line: #9FD0CD; --warn-card: #FFFBF5; --warn-card-line: #F0D9BC;
  --overlay: rgba(16, 24, 40, .45);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Pretendard', 'Apple SD Gothic Neo', system-ui, sans-serif; color: var(--t1); background: var(--page); -webkit-font-smoothing: antialiased; font-size: 13px; }
a { color: var(--primary); text-decoration: none; } a:hover { color: var(--primary-h); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary) !important; box-shadow: 0 0 0 2px rgba(14, 110, 107, .15); }
button:focus-visible, [data-click]:focus-visible, a:focus-visible, [tabindex]:focus-visible, .cb:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } /* H4: 키보드로 이동할 때 지금 위치 */
.lrow:focus-visible, .trow:focus-visible, .bcard:focus-visible, .nitem:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--t2); } .faint { color: var(--t3); } .fainter { color: var(--t4); }
.hidden { display: none !important; }

/* 상태 배지: 점 + 글자, pill, 11.5px/700 */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.dashed { border: 1px dashed currentColor; }
.tag { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 700; background: var(--primary-bg); color: var(--primary-h); }
.tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.gray { background: #EEF2F6; color: #344054; } .tag.line { background: #fff; border: 1px solid var(--line); color: var(--t2); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--btn-line); background: #fff; color: #344054; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--panel); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; } .btn.primary:hover { background: var(--primary-h); }
.btn.danger { color: var(--danger); border-color: var(--danger-line); background: #fff; } .btn.danger:hover { background: #FFFBFA; }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.outline { color: var(--primary); border-color: var(--primary); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--t2); }
.btn:disabled, .btn.disabled { background: #F2F4F7 !important; color: #B0B7C3 !important; border-color: var(--line) !important; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--input); border-radius: 6px; overflow: hidden; background: #fff; }
.seg button { height: 34px; padding: 0 14px; border: 0; background: #fff; color: var(--t2); font-weight: 600; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--input); }
.seg button.on { background: var(--primary); color: #fff; }
.seg.dark button.on { background: var(--t1); }

/* 입력 */
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--input); border-radius: 6px; background: #fff; }
.textarea { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2398A2B3'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 30px; }
.input.err { border-color: #D92D20; background: #FFFBFA; }
.err-text { color: var(--danger); font-size: 12px; font-weight: 600; margin-top: 5px; }
.field-hint { color: var(--t4); font-size: 12px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check .box { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--input); display: flex; align-items: center; justify-content: center; background: #fff; flex: none; }
.check.on .box { background: var(--primary); border-color: var(--primary); }
.check.on .box::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* 안내 */
.notice { background: var(--notice-bg); border: 1px solid var(--notice-line); border-radius: 10px; padding: 12px 14px; color: var(--primary-h); line-height: 1.5; }
.warnbox { background: var(--warn-card); border: 1px solid var(--warn-card-line); border-radius: 10px; padding: 12px 14px; color: var(--warn); line-height: 1.5; font-weight: 600; }
.errbox { background: #FFFBFA; border: 1px solid #F3C7C2; border-radius: 10px; padding: 12px 14px; color: var(--danger); line-height: 1.5; }

/* 토스트 · 오버레이 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(8px); background: #101828; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: .18s; z-index: 1000; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: 460px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 40px rgba(16,24,40,.18); }
.modal .mh { padding: 22px 24px 6px; font-size: 17px; font-weight: 800; }
.modal .mb { padding: 8px 24px 4px; color: var(--t2); line-height: 1.6; }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 24px 22px; }
.label { font-weight: 700; font-size: 13px; color: var(--t1); margin: 14px 0 7px; }

/* 사진 */
.photos { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.photos .ph { width: 56px; height: 56px; border-radius: 8px; background: #EEF2F6 center/cover no-repeat; position: relative; border: 1px solid var(--line); }
.photos .ph b { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #101828; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.photos .add { height: 56px; padding: 0 12px; border: 1px dashed var(--btn-line); border-radius: 8px; display: flex; align-items: center; color: var(--t2); cursor: pointer; background: #fff; font-weight: 600; }

/* ── 모바일 (구성원 · 관리자 모바일) ─────────────── */
.mobile { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: #fff; display: flex; flex-direction: column; position: relative; font-size: 14px; }
@media (min-width: 600px) { body.m-body { background: #E4E7EC; } .mobile { box-shadow: 0 0 0 1px var(--line); } }
.mtop { height: 56px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid #EEF0F3; flex: none; position: sticky; top: 0; background: #fff; z-index: 20; }
.mtop .ttl { font-size: 17px; font-weight: 800; }
.mtop .ctr { position: absolute; left: 50%; transform: translateX(-50%); font-size: 16px; font-weight: 700; white-space: nowrap; }
.mtop .left { color: var(--t2); cursor: pointer; font-size: 14.5px; }
.mtop .right { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 14px; font-weight: 600; }
.mbody { flex: 1; padding: 16px; overflow-y: auto; }
.mfoot { position: sticky; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #EEF0F3; flex: none; z-index: 10; }
.mbtn { width: 100%; height: 50px; border-radius: 10px; border: 1px solid var(--primary); background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mbtn.sec { background: #fff; color: #344054; border-color: var(--btn-line); }
.mbtn.soft { background: #F2F4F7; color: #344054; border-color: #F2F4F7; }
.mbtn.warn { background: var(--warn); border-color: var(--warn); } .mbtn.danger { background: var(--danger); border-color: var(--danger); }
.mbtn:disabled { background: #F2F4F7; color: #B0B7C3; border-color: var(--line); cursor: not-allowed; }
.mbtn + .mbtn, .mbtn + .linkbtn { margin-top: 8px; }
.linkbtn { display: block; width: 100%; text-align: center; padding: 10px; color: var(--t2); font-weight: 600; cursor: pointer; background: none; border: 0; }
.msec { font-size: 15px; font-weight: 800; margin: 20px 0 10px; } .msec:first-child { margin-top: 4px; }
.msec .n { color: var(--primary); } .msec .g { color: var(--t4); font-weight: 600; }
.todo { border-radius: 12px; border: 1px solid var(--notice-line); background: var(--notice-bg); padding: 14px; margin-bottom: 10px; }
.todo .tt { font-weight: 800; color: var(--primary-h); font-size: 15px; }
.todo .ts { color: var(--t2); font-size: 12.5px; margin: 4px 0 12px; }
.todo .mbtn { height: 42px; font-size: 14.5px; }
.todo.warn { background: var(--warn-card); border-color: var(--warn-card-line); } .todo.warn .tt { color: var(--warn); } .todo.warn .mbtn { background: var(--warn); border-color: var(--warn); }
.todo.danger { background: #FFFBFA; border-color: #F3C7C2; } .todo.danger .tt { color: var(--danger); } .todo.danger .mbtn { background: var(--danger); border-color: var(--danger); }
.arow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF0F3; cursor: pointer; }
.arow:last-child { border-bottom: 0; }
.thumb { width: 46px; height: 46px; border-radius: 10px; background: #EEF2F6 center/cover no-repeat; color: var(--t3); font-size: 10.5px; display: flex; align-items: center; justify-content: center; flex: none; text-align: center; line-height: 1.2; padding: 2px; }
.arow .nm { font-weight: 700; font-size: 15px; line-height: 1.3; }
.arow .no { color: var(--t4); font-size: 12px; margin-top: 2px; }
.arow .rt { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.due { font-size: 12px; font-weight: 800; }
.empty { text-align: center; padding: 48px 12px; color: var(--t2); }
.empty .ic { width: 64px; height: 64px; border-radius: 16px; background: #F2F4F7; margin: 0 auto 18px; }
.empty .et { font-size: 16px; font-weight: 800; color: var(--t1); margin-bottom: 6px; }
.photo-hero { height: 180px; background: #EEF2F6 center/cover no-repeat; margin: -16px -16px 16px; display: flex; align-items: center; justify-content: center; color: var(--t4); font-size: 12px; }
.aname { font-size: 20px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -.01em; }
.infobox { background: var(--panel); border-radius: 10px; padding: 4px 14px; margin: 14px 0; }
.infobox .r { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EEF0F3; font-size: 13.5px; }
.infobox .r:last-child { border-bottom: 0; }
.infobox .r span:first-child { color: var(--t2); } .infobox .r span:last-child { font-weight: 700; text-align: right; }
.fold { border-top: 1px solid #EEF0F3; }
.fold .fh { display: flex; justify-content: space-between; padding: 14px 0; cursor: pointer; font-weight: 600; }
.fold .fh span:last-child { color: var(--t4); font-size: 12.5px; }
.fold .fb { padding-bottom: 12px; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; } .kv span:first-child { color: var(--t3); }
.hist-i { padding: 8px 0; border-bottom: 1px dashed #EEF0F3; font-size: 13px; } .hist-i:last-child { border-bottom: 0; } .hist-i .t { color: var(--t4); font-size: 12px; }
.pick { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.pick.on { border: 2px solid var(--primary); background: var(--notice-bg); padding: 11px 13px; }
.pick.off { opacity: .5; cursor: not-allowed; }
.pick .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--input); flex: none; display: flex; align-items: center; justify-content: center; }
.pick.on .radio { border-color: var(--primary); } .pick.on .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.pick .pt { font-weight: 700; } .pick .ps { font-size: 12.5px; color: var(--primary-h); font-weight: 600; margin-top: 2px; }
.pick.off .ps { color: var(--t4); }
.pick .ck { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; background: var(--primary); display: none; align-items: center; justify-content: center; }
.pick.on .ck { display: flex; } .pick .ck::after { content: ''; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { border: 1px solid var(--input); border-radius: 8px; padding: 8px 4px; text-align: center; cursor: pointer; background: #fff; color: #344054; }
.chip b { display: block; font-size: 14px; } .chip small { font-size: 11.5px; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; height: 44px; width: 120px; flex: none; }
.stepper.on { border-color: var(--primary); }
.stepper button { width: 40px; height: 100%; border: 0; background: none; font-size: 20px; color: var(--primary); cursor: pointer; }
.stepper button:disabled { color: var(--input); cursor: default; }
.stepper span { flex: 1; text-align: center; font-weight: 800; font-size: 15px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF0F3; }
.srow .sn { font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .srow .su { font-size: 12px; color: var(--t4); margin-top: 3px; }
.reqcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.reqcard .top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--t4); }
.reqcard .tt { font-weight: 800; font-size: 15px; margin: 4px 0 8px; }
.reqcard .reason { margin-top: 10px; background: #FFFBFA; border: 1px solid #F3C7C2; color: var(--danger); border-radius: 8px; padding: 10px; font-size: 12.5px; }
.reqcard.phase2 { border-style: dashed; border-color: var(--notice-line); }
.done { text-align: center; padding: 64px 16px 24px; }
.done .circ { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; font-weight: 800; }
.done .circ.err { background: var(--danger-bg); color: var(--danger); } .done .circ.warn { background: var(--warn-bg); color: var(--warn); }
.done .dt { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.done .db { color: var(--t2); line-height: 1.6; }
.locbox { margin: 20px auto 0; max-width: 340px; background: var(--notice-bg); border: 1px solid var(--notice-line); border-radius: 10px; padding: 14px; }
.locbox small { display: block; font-weight: 700; color: var(--primary-h); } .locbox b { font-size: 16px; }
.sheet-bg { position: fixed; inset: 0; background: var(--overlay); z-index: 400; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 480px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; }
.sheet .st { font-size: 18px; font-weight: 800; margin-bottom: 6px; } .sheet .sb { color: var(--t2); margin-bottom: 14px; line-height: 1.5; }
.scanfab { display: flex; align-items: center; justify-content: center; gap: 8px; }
.scanfab svg { width: 20px; height: 20px; }
.scanner { position: fixed; inset: 0; background: #000; z-index: 600; display: flex; flex-direction: column; color: #fff; }
.scanner video { flex: 1; width: 100%; object-fit: cover; }
.scanner .frame { position: absolute; left: 50%; top: 42%; width: 240px; height: 240px; transform: translate(-50%, -50%); border: 3px solid #fff; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.scanner .bar { padding: 16px; background: #101828; display: flex; flex-direction: column; gap: 10px; }
.scanner .bar input { height: 46px; border-radius: 10px; border: 0; padding: 0 12px; color: #101828; }
.rolebar { display: flex; gap: 6px; padding: 8px 16px; background: var(--panel); border-bottom: 1px solid #EEF0F3; font-size: 12.5px; align-items: center; }
.rolebar button { height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--t2); font-weight: 700; cursor: pointer; }
.rolebar button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.notiitem { padding: 12px 0; border-bottom: 1px solid #EEF0F3; cursor: pointer; } .notiitem.unread .nt { font-weight: 800; } .notiitem .nd { font-size: 12px; color: var(--t4); margin-top: 3px; }
.dot-badge { display: inline-flex; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; align-items: center; justify-content: center; }

/* ── PC 관리자 ─────────────────────────────────── */
.gnb { height: 56px; background: #101828; color: #fff; display: flex; align-items: center; padding: 0 28px; position: sticky; top: 0; z-index: 50; }
.gnb .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; padding-right: 22px; margin-right: 22px; border-right: 1px solid #344054; color: #fff; }
.gnb .logo i { width: 26px; height: 26px; border-radius: 6px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; }
.gnb nav { display: flex; gap: 26px; height: 100%; }
.gnb nav a { color: #98A2B3; font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; height: 100%; }
.gnb nav a.on { color: #fff; font-weight: 700; border-bottom-color: var(--primary); }
.gnb nav a .cnt { background: var(--primary); color: #fff; border-radius: 9px; font-size: 11px; padding: 1px 6px; font-weight: 800; }
.gnb .user { margin-left: auto; background: #1D2939; padding: 7px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.page { max-width: 1280px; min-width: 1200px; margin: 0 auto; padding: 26px 28px 60px; }
@media (max-width: 1200px) { .page { min-width: 0; } }
.ph1 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ph1 h1 { font-size: 21px; font-weight: 700; margin: 0; } .ph1 .sub { color: var(--t4); font-size: 14px; }
.ph1 .rt { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.cards5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; cursor: pointer; }
.ccard.on { border: 2px solid var(--primary); padding: 15px 17px; }
.ccard .cl { color: var(--t2); font-size: 13.5px; } .ccard .cv { font-size: 26px; font-weight: 800; margin-top: 6px; } .ccard .cv small { font-size: 13px; color: var(--t2); font-weight: 500; margin-left: 2px; }
.phase2 { border: 1px dashed #F3C7C2; background: #FFFBFA; border-radius: 10px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; color: #344054; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12.5px; color: var(--t2); font-weight: 600; background: var(--panel); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid #EEF0F3; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: #FAFBFC; }
.table tr.sel td { background: var(--notice-bg); }
.table td.r, .table th.r { text-align: right; } .table td.c, .table th.c { text-align: center; }
.t-nm { font-weight: 700; } .t-sub { font-size: 12px; color: var(--t4); margin-top: 2px; }
.t-late { color: var(--danger); font-weight: 800; font-size: 12px; }
.cb { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--input); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; vertical-align: middle; }
.cb.on { background: var(--primary); border-color: var(--primary); }
.cb.on::after { content: ''; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.selbar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--primary-bg); border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.selbar b { color: var(--primary-h); }
.cardh { padding: 16px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14.5px; }
.cardh .g { color: var(--t4); font-weight: 600; }
.detail { display: grid; grid-template-columns: 400px 1fr; gap: 16px; align-items: start; }
.dl .r { display: flex; padding: 10px 0; border-bottom: 1px solid #EEF0F3; font-size: 13px; }
.dl .r span:first-child { width: 118px; color: var(--t2); flex: none; } .dl .r span:last-child { font-weight: 500; }
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl .i { position: relative; padding-bottom: 18px; }
.tl .i::before { content: ''; position: absolute; left: -24px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--input); }
.tl .i:first-child::before { background: var(--primary); }
.tl .it { font-weight: 700; } .tl .im { color: var(--t3); font-size: 12px; margin-top: 3px; }
.tl .note { display: inline-block; margin-top: 7px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; font-size: 12.5px; }
.tl .pimg { width: 88px; height: 70px; border-radius: 8px; background: #EEF2F6 center/cover no-repeat; display: inline-block; margin: 7px 6px 0 0; border: 1px solid var(--line); cursor: zoom-in; }
.form-grid { display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; align-items: center; }
.form-grid .req::after { content: ' *'; color: var(--danger); }
.form-grid2 { display: grid; grid-template-columns: 140px 1fr 110px 1fr; gap: 12px 16px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.steps div { display: flex; align-items: center; gap: 10px; padding: 16px 22px; background: var(--panel); color: var(--t4); font-weight: 600; border-bottom: 2px solid transparent; }
.steps div.on { background: #fff; color: var(--t1); font-weight: 700; border-bottom-color: var(--primary); }
.steps div.done { color: var(--t2); }
.steps i { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; background: #EEF2F6; color: var(--t4); }
.steps .on i { background: var(--primary); color: #fff; } .steps .done i { background: var(--primary-bg); color: var(--primary-h); }
.drop { border: 1.5px dashed var(--btn-line); border-radius: 10px; padding: 34px; text-align: center; cursor: pointer; background: #fff; }
.drop.on { border-color: var(--primary); background: var(--notice-bg); }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat3 > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.stat3 .v { font-size: 26px; font-weight: 800; } .stat3 .v small { font-size: 13px; font-weight: 500; }
.stat3 .ok { background: var(--notice-bg); border-color: var(--notice-line); color: var(--primary-h); }
.stat3 .bad { background: #FFFBFA; border-color: #F3C7C2; color: var(--danger); }
.setnav { width: 220px; padding: 12px; border-right: 1px solid var(--line); flex: none; }
.setnav a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--t2); font-weight: 600; margin-bottom: 4px; cursor: pointer; }
.setnav a.on { background: var(--primary-bg); color: var(--primary-h); font-weight: 700; }
.listbox { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; align-items: center; margin-bottom: 8px; gap: 8px; }
.sheetprev { background: #fff; width: 420px; aspect-ratio: 210 / 297; margin: 24px auto; box-shadow: 0 6px 24px rgba(16,24,40,.12); display: grid; }
.sheetprev .cell { border: 1px dashed var(--line); display: flex; align-items: center; gap: 4px; padding: 3px; overflow: hidden; }
.sheetprev .cell.used { border-color: #F2F4F7; background: repeating-linear-gradient(45deg, #fafafa 0 4px, #fff 4px 8px); }
.sheetprev .cell.on { border: 1px dashed var(--t4); }
.sheetprev .cell img { flex: none; }
.sheetprev .cell .ln { font-size: 5.5px; font-weight: 700; line-height: 1.2; } .sheetprev .cell .lno { font-size: 7px; font-weight: 800; line-height: 1.15; word-break: break-all; }
.userpick { border: 1px solid var(--line); border-radius: 8px; max-height: 190px; overflow-y: auto; margin-top: 6px; }
.userpick div { display: flex; justify-content: space-between; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #EEF0F3; }
.userpick div:last-child { border-bottom: 0; }
.userpick div.on { background: var(--primary-bg); font-weight: 700; }
.imgview { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.m-body .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* ── 사용자 메뉴 (관리자 PC·구성원 PC 오른쪽 위) ── */
.gnb .user .caret { font-size: 10px; color: #98A2B3; }
.gnb-btn { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid #344054; background: transparent; color: #D0D5DD; font-weight: 600; font-size: 12.5px; cursor: pointer; }
.gnb-btn:hover { background: #1D2939; color: #fff; }
.umenu-bg { position: fixed; inset: 0; z-index: 400; }
.umenu { position: fixed; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 36px rgba(16,24,40,.18); overflow: hidden; }
.umenu .uh { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.umenu .uh span:not(.tag) { color: var(--t3); } .umenu .uh .tag { margin-left: auto; }
.umenu .uscroll { max-height: min(420px, calc(100vh - 220px)); overflow-y: auto; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.umenu .ug { padding: 12px 16px 6px; font-size: 12px; font-weight: 700; color: var(--t2); display: flex; align-items: baseline; gap: 6px; }
.umenu .ug small { font-weight: 500; color: var(--t4); }
.umenu .ui { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 16px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 13.5px; color: var(--t1); }
.umenu .ui:hover { background: var(--panel); }
.umenu .ui span { color: var(--t3); font-size: 12.5px; }
.umenu .ui.on { background: var(--primary-bg); } .umenu .ui.on b { color: var(--primary-h); }
.umenu .ui i { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--primary-h); }
.umenu .ulinks { display: flex; flex-direction: column; padding: 6px 0; }
.umenu .ulinks a, .umenu .ulinks button { padding: 9px 16px; font-size: 13.5px; text-align: left; border: 0; background: none; cursor: pointer; color: #344054; font-weight: 600; }
.umenu .ulinks a:hover, .umenu .ulinks button:hover { background: var(--panel); }
.umenu .unote { padding: 10px 16px 12px; font-size: 11.5px; color: var(--t4); line-height: 1.5; background: var(--panel); border-top: 1px solid var(--line); }

/* ── 구성원 PC 화면 ── */
.btn.lg { height: 42px; font-size: 14.5px; }
.thumb.pc { width: 40px; height: 40px; border-radius: 8px; font-size: 10px; }
.todo-pc { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #EEF0F3; border-left: 3px solid var(--primary); }
.todo-pc:last-child { border-bottom: 0; }
.todo-pc .tt { font-weight: 800; color: var(--primary-h); } .todo-pc .ts { color: var(--t2); font-size: 12.5px; margin-top: 3px; }
.todo-pc .btn { margin-left: auto; }
.todo-pc.warn { border-left-color: var(--warn); background: var(--warn-card); } .todo-pc.warn .tt { color: var(--warn); }
.todo-pc.danger { border-left-color: var(--danger); background: #FFFBFA; } .todo-pc.danger .tt { color: var(--danger); }
.split { display: grid; grid-template-columns: 1fr 400px; gap: 16px; align-items: start; }
.split .pick { margin-bottom: 8px; }
.chips.pc .chip { padding: 10px 4px; }
.pc-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-weight: 600; cursor: pointer; }
.noti-pc { padding: 14px 20px; border-bottom: 1px solid #EEF0F3; cursor: pointer; } .noti-pc:last-child { border-bottom: 0; }
.noti-pc:hover { background: #FAFBFC; } .noti-pc.unread .nt { font-weight: 800; } .noti-pc .nd { font-size: 12px; color: var(--t4); margin-top: 3px; }
.btn.warn-solid { background: var(--warn); border-color: var(--warn); color: #fff; }

/* ══ 프로젝트관리 화면 ═══════════════════════════════════ */
.loading { padding: 80px 0; text-align: center; color: var(--t3); }
.page.wide { max-width: 1440px; }
.page.narrow { max-width: 760px; min-width: 0; }
.gnb .gnb-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.gnb .gnb-r .user { margin-left: 0; }
.gnb .un { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell { position: relative; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: #D0D5DD; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bell:hover { background: #1D2939; color: #fff; }
.bell .dot-badge { position: absolute; top: 2px; right: 0; }
.toast .toast-x { margin-left: 8px; background: none; border: 0; color: #C9CED6; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast .toast-act { margin-left: 10px; background: none; border: 0; color: #9FD0CD; font-weight: 800; cursor: pointer; padding: 0; }
.input.sm, .select.sm { height: 30px; font-size: 12.5px; padding: 0 10px; } .select.sm { padding-right: 26px; background-position: right 10px center; }
.seg.sm button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.slim { padding: 8px 12px; margin-bottom: 12px; font-size: 12.5px; }
.tag.danger { background: var(--danger-bg); color: var(--danger); }

/* 사람 동그라미 */
.av { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 700; flex: none; letter-spacing: -.03em; }
.av.sm { width: 24px; height: 24px; font-size: 9.5px; } .av.xs { width: 20px; height: 20px; font-size: 8.5px; }
.av.none { background: #EEF2F6; color: var(--t4); border: 1px dashed var(--input); }
.av.more { background: #EEF2F6; color: var(--t2); }
.avs { display: inline-flex; } .avs .av { box-shadow: 0 0 0 2px #fff; } .avs .av + .av { margin-left: -6px; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; flex: none; }

/* 업무 한 줄 */
.trow { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid #EEF0F3; cursor: pointer; }
.trow:hover { background: #FAFBFC; } .trow:last-child { border-bottom: 0; }
.trow.sm { padding: 8px 4px; }
.tcheck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--input); background: #fff; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; }
.tcheck:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-bg); }
.tcheck.on { background: var(--primary); border-color: var(--primary); }
.tcheck.on::after, .tcheck:hover:not(:disabled)::after { content: ''; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.tcheck:hover:not(.on):not(:disabled)::after { border-color: var(--primary); }
.tcheck:disabled { cursor: default; opacity: .6; }
.tmain { flex: 1; min-width: 0; }
.tt { font-weight: 600; font-size: 13.5px; line-height: 1.35; word-break: break-all; }
.is-done .tt, .strike { text-decoration: line-through; color: var(--t4); }
.tsub { font-size: 12px; color: var(--t3); margin-top: 3px; display: flex; align-items: center; }
.tmeta { display: flex; align-items: center; gap: 8px; flex: none; }
.due { font-size: 12px; font-weight: 700; color: var(--t2); white-space: nowrap; }
.due.late { color: var(--danger); } .due.soon { color: var(--warn); } .due.none { color: var(--t4); font-weight: 500; }
.subc { font-size: 11.5px; color: var(--t3); font-weight: 600; white-space: nowrap; } .subc.ok { color: var(--primary); }

/* 빠른 입력 */
.qcard { padding: 14px 16px; margin-bottom: 14px; } .qcard.slim { padding: 10px 12px; }
.qrow { display: flex; gap: 8px; align-items: flex-start; } .qrow .qi { flex: 1; }
.qsel { width: 210px; flex: none; }
.qi.big .input { height: 42px; font-size: 14.5px; }
.qprev { min-height: 20px; margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qhelp { font-size: 12px; color: var(--t4); } .qhelp code { background: #F2F4F7; border-radius: 4px; padding: 1px 5px; color: var(--t2); font-family: inherit; font-weight: 700; }
.qc { font-size: 12px; background: var(--primary-bg); color: var(--primary-h); border-radius: 999px; padding: 2px 9px; } .qc.warn { background: var(--warn-bg); color: var(--warn); font-weight: 600; }

/* 내 업무 */
.home-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.htabs { margin-bottom: 10px; } .htabs small { font-weight: 800; margin-left: 2px; opacity: .8; }
.hlist { overflow: hidden; }
.hgh { padding: 12px 20px 8px; font-weight: 800; font-size: 13px; background: var(--panel); border-bottom: 1px solid #EEF0F3; }
.hgh span { color: var(--t4); margin-left: 4px; } .hgh.late { color: var(--danger); } .hgh.soon { color: var(--warn); }
.mproj { display: block; padding: 12px 18px; border-bottom: 1px solid #EEF0F3; color: var(--t1); }
.mproj:hover { background: #FAFBFC; color: var(--t1); } .mproj:last-child { border-bottom: 0; }
.mp1 { display: flex; align-items: center; gap: 6px; } .mp1 b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp2 { display: flex; justify-content: space-between; font-size: 12px; color: var(--t3); margin-top: 6px; }
.bar { height: 6px; background: #EEF2F6; border-radius: 3px; overflow: hidden; margin-top: 8px; } .bar i { display: block; height: 100%; border-radius: 3px; }
.empty.sm { padding: 28px 12px; } .empty .ic { display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--t4); font-weight: 800; }

/* 프로젝트 목록 */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.pgrid.dim .pcard { opacity: .75; }
.pcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px; color: var(--t1); position: relative; overflow: hidden; }
.pcard:hover { border-color: var(--primary); color: var(--t1); box-shadow: 0 4px 14px rgba(16,24,40,.06); }
.pcbar { position: absolute; left: 0; top: 0; right: 0; height: 4px; }
.pc1 { display: flex; align-items: center; gap: 8px; } .pc1 b { font-size: 15.5px; flex: 1; }
.pc2 { color: var(--t3); font-size: 12.5px; margin-top: 4px; }
.pc3 { font-size: 12.5px; color: var(--t2); margin-top: 8px; }
.pc4 { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12.5px; }
.pc-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; color: var(--t2); margin-right: 8px; }

/* 모달 · 새 프로젝트 */
.modal.wide { width: 760px; }
.modal .mh { display: flex; align-items: center; gap: 10px; } .modal .mh .mx { margin-left: auto; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcard { border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; }
.tcard:hover { border-color: var(--primary); } .tcard.on { border: 2px solid var(--primary); padding: 13px; background: var(--notice-bg); }
.tcard .tn { font-weight: 800; font-size: 14.5px; color: var(--t1); } .tcard .td { font-size: 12.5px; margin: 4px 0 8px; }
.tcard .tpl-l { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11.5px; margin-top: 4px; }
.tcard .tpl-l span { color: var(--t4); width: 56px; } .tcard .tpl-l i { font-style: normal; background: #F2F4F7; border-radius: 4px; padding: 1px 6px; color: var(--t2); } .tcard .tpl-l i.ms { background: #fff; border: 1px solid var(--line); }
.drange { display: flex; align-items: center; gap: 8px; } .drange .input { width: 150px; }
.mlist { margin-bottom: 8px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #EEF0F3; }
.mrow:last-child { border-bottom: 0; } .mrow > .faint { flex: 1; } .mrow .select.sm { width: 150px; } /* L2: "프로젝트 책임자"가 잘리지 않게 */
.addrow { display: flex; gap: 8px; margin-top: 12px; }

/* 프로젝트 머리 */
.phead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pcolor { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.phn { flex: 1; min-width: 0; } .phrow { display: flex; align-items: center; gap: 10px; }
.phead h1 { font-size: 21px; margin: 0; font-weight: 700; } .phead .sub { color: var(--t3); font-size: 12.5px; margin-top: 3px; }
.phead .rt { display: flex; align-items: center; gap: 12px; }
.ptabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ptabs a { padding: 10px 2px; color: var(--t3); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptabs a.on { color: var(--t1); font-weight: 800; border-bottom-color: var(--primary); }

/* 목록 */
.ltable { overflow: hidden; }
.lrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) 130px 150px 60px 140px; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid #EEF0F3; cursor: pointer; }
.lrow:hover { background: #FAFBFC; }
.lhead { background: var(--panel); font-size: 12px; color: var(--t2); font-weight: 600; cursor: default; padding: 9px 16px; } .lhead:hover { background: var(--panel); }
.lt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; } .lt .tt { margin-right: 2px; }
.la { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-width: 0; white-space: nowrap; overflow: hidden; }
.ld { font-size: 12.5px; color: var(--t2); white-space: nowrap; } .lm { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgh { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #FCFCFD; border-bottom: 1px solid #EEF0F3; cursor: pointer; font-size: 13px; }
.caret2 { display: inline-block; color: var(--t4); transition: transform .12s; font-size: 11px; } .caret2.open { transform: rotate(90deg); }
.ladd { padding: 6px 16px 8px 54px; border-bottom: 1px solid #EEF0F3; }
.ladd .input, .badd .input { border-color: transparent; background: transparent; height: 32px; padding: 0 8px; }
.ladd .input:hover, .badd .input:hover { background: var(--panel); } .ladd .input:focus, .badd .input:focus { background: #fff; }

/* 보드 */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.bcol { width: 290px; flex: none; background: #EEF1F4; border-radius: 10px; padding: 10px; }
.bch { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.bcl { min-height: 40px; display: flex; flex-direction: column; gap: 8px; border-radius: 8px; transition: background .1s; }
.bcl.over { background: rgba(14,110,107,.08); }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.bcard:hover { border-color: #B8C0CC; } .bcard.dragging { opacity: .4; }
.bcard .bt { font-weight: 600; line-height: 1.4; display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.bcard.is-done .bt { color: var(--t4); text-decoration: line-through; }
.bcard .bm { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; font-size: 11.5px; }
.bcard .bf { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.bmarker { height: 3px; background: var(--primary); border-radius: 2px; }
.badd { margin-top: 6px; }

/* 간트 */
.gantt { overflow: auto; max-height: calc(100vh - 290px); min-height: 300px; position: relative; }
.ghead { display: flex; position: sticky; top: 0; z-index: 6; background: #fff; border-bottom: 1px solid var(--line); width: max-content; min-width: 100%; }
.gname { width: 280px; flex: none; position: sticky; left: 0; z-index: 4; background: #fff; border-right: 1px solid var(--line); padding: 0 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; overflow: hidden; white-space: nowrap; }
.gname span:not(.av):not(.t-late):not(.faint) { overflow: hidden; text-overflow: ellipsis; }
.gcorner { z-index: 7; font-weight: 700; color: var(--t2); font-size: 12.5px; }
.gtl { position: relative; height: 52px; flex: none; }
.gmonths div { position: absolute; top: 0; height: 22px; line-height: 22px; font-size: 12px; font-weight: 700; color: var(--t2); padding-left: 6px; border-left: 1px solid var(--line); white-space: nowrap; }
.gdays .gd { position: absolute; top: 22px; height: 30px; font-size: 11px; text-align: center; color: var(--t2); line-height: 1.1; padding-top: 3px; border-left: 1px solid #F2F4F7; }
.gdays .gd small { display: block; font-size: 9.5px; color: var(--t4); } .gdays .gd.we { color: var(--t4); background: #FAFBFC; } .gdays .gd.td { color: #fff; background: var(--danger); border-radius: 4px; } .gdays .gd.td small { color: #fff; }
.gbody { position: relative; width: max-content; min-width: 100%; }
.gover { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.gover i { position: absolute; top: 0; bottom: 0; background: rgba(242,244,247,.7); }
.gtoday { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--danger); opacity: .7; z-index: 3; }
.grow { display: flex; height: 38px; border-bottom: 1px solid #F2F4F7; }
.grow .gname { cursor: pointer; } .grow .gname:hover { background: var(--panel); }
.grow.gmh { background: #FCFCFD; } .grow.gmh .gname { background: #FCFCFD; cursor: default; }
.gtrack { position: relative; flex: none; z-index: 2; }
.gbar { position: absolute; top: 8px; height: 22px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #fff; display: flex; align-items: center; overflow: hidden; white-space: nowrap; user-select: none; touch-action: none; }
.gbar.drag { cursor: grab; } .gbar.active { cursor: grabbing; box-shadow: 0 4px 10px rgba(16,24,40,.25); z-index: 5; }
.gbar .gl { padding: 0 10px; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.gbar .hs, .gbar .he { width: 8px; align-self: stretch; cursor: ew-resize; flex: none; } .gbar .hs:hover, .gbar .he:hover { background: rgba(255,255,255,.35); }
.g-대기 { background: #98A2B3; } .g-진행 { background: var(--primary); } .g-완료 { background: #9FD0CD; color: var(--primary-h); } .g-보류 { background: #F0B774; }
.gbar.late { background: var(--danger); }
.gout { position: absolute; top: 11px; font-size: 12px; color: var(--t2); white-space: nowrap; pointer-events: none; }
.gms { position: absolute; top: 12px; width: 14px; height: 14px; background: var(--t1); transform: rotate(45deg); border-radius: 2px; } .gms.late { background: var(--danger); }
.gset { position: absolute; top: 8px; height: 22px; border: 1px dashed var(--btn-line); border-radius: 6px; background: #fff; color: var(--t3); font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 0 8px; white-space: nowrap; }
.gset:hover { border-color: var(--primary); color: var(--primary); }
.gnone { position: absolute; left: 12px; top: 11px; font-size: 12px; color: var(--t4); }

/* 설정 */
.setgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sec { margin-bottom: 16px; } .secb { padding: 14px 20px 18px; }
.swatch { display: flex; gap: 8px; } .swatch button { width: 26px; height: 26px; border-radius: 7px; border: 0; cursor: pointer; } .swatch button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--t1); }
.msd { color: var(--t1); font-size: 12px; }
.lifebtns { display: flex; gap: 8px; }

/* 업무 상세 패널 */
.drawer-bg { position: fixed; inset: 0; background: rgba(16,24,40,.2); z-index: 300; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 680px; max-width: 100vw; background: #fff; z-index: 310; box-shadow: -12px 0 32px rgba(16,24,40,.14); display: flex; flex-direction: column; animation: dslide .16s ease-out; }
@keyframes dslide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.dtop { display: flex; align-items: center; gap: 8px; padding: 12px 16px 12px 22px; border-bottom: 1px solid var(--line); font-size: 12.5px; min-height: 52px; }
.dtop a { color: var(--t2); font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dproj { display: inline-flex; align-items: center; }
.dtr { margin-left: auto; display: flex; gap: 4px; }
.dbody { flex: 1; overflow-y: auto; padding: 18px 22px 30px; }
.donebtn { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--btn-line); background: #fff; color: var(--t2); font-weight: 700; cursor: pointer; }
.donebtn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.donebtn.on { background: var(--primary-bg); border-color: var(--notice-line); color: var(--primary-h); }
.dtitle { display: block; width: 100%; border: 1px solid transparent; border-radius: 8px; font-size: 20px; font-weight: 800; padding: 6px 8px; margin: 12px -8px 10px; resize: none; line-height: 1.35; background: transparent; field-sizing: content; min-height: 42px; }
.dtitle:hover:not(:disabled) { border-color: var(--line); } .dtitle:disabled { color: var(--t1); }
.props { display: grid; grid-template-columns: 76px 1fr; gap: 10px 12px; align-items: center; font-size: 13px; }
.props > span { color: var(--t3); font-weight: 600; }
.props .select.sm, .props > .input.sm { max-width: 320px; }
.props .drange .input { width: 140px; }
.chipsl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px; background: #F2F4F7; font-size: 12.5px; font-weight: 600; }
.pchip b { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--t3); } .pchip b:hover { background: #E4E7EC; }
.pchip-add { width: 140px !important; border-style: dashed; }
.dsec { font-weight: 800; font-size: 13.5px; margin: 22px 0 8px; } .dsec .faint { font-weight: 600; margin-left: 4px; }
.subs .qi { margin-top: 4px; } .subs .qi .input { border-style: dashed; }
.dtabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 24px 0 12px; }
.dtabs button { border: 0; background: none; padding: 8px 0; font-weight: 600; color: var(--t3); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.dtabs button.on { color: var(--t1); font-weight: 800; border-bottom-color: var(--primary); }
.cmt { display: flex; gap: 10px; padding: 10px 0; } .cb2 { flex: 1; min-width: 0; }
.cmt .ch { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.cmt .ct { margin-top: 4px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; } .mention { color: var(--info); }
.cnew { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; } .cnew .textarea { min-height: 60px; }
.dfoot { margin-top: 24px; font-size: 12px; }

/* 알림 패널 */
.npanel-bg { position: fixed; inset: 0; z-index: 390; }
.npanel { position: fixed; top: 60px; right: 20px; width: 380px; max-height: calc(100vh - 80px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 36px rgba(16,24,40,.18); z-index: 395; display: flex; flex-direction: column; }
.nph { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.npb { overflow-y: auto; }
.nitem { padding: 12px 16px; border-bottom: 1px solid #EEF0F3; cursor: pointer; } .nitem:hover { background: var(--panel); } .nitem:last-child { border-bottom: 0; }
.nitem .nt { line-height: 1.45; color: var(--t2); } .nitem.unread .nt { color: var(--t1); font-weight: 700; } .nitem.unread { background: #FBFEFE; box-shadow: inset 3px 0 0 var(--primary); }
.nitem .nd { font-size: 12px; color: var(--t4); margin-top: 3px; }

/* 전체 현황 */
.cards6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.cards6 .ccard { cursor: default; } .cards6 .ccard.bad .cv { color: var(--danger); } .cards6 .ccard.warn .cv { color: var(--warn); } .cards6 .ccard.ok .cv { color: var(--primary); }
.tlbar { position: relative; height: 10px; background: #F2F4F7; border-radius: 5px; overflow: hidden; }
.tlbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; } .tlbar .el { background: #D0D5DD; } .tlbar .pr { top: 3px; bottom: 3px; }
.dash2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.wbar { position: relative; height: 8px; background: #F2F4F7; border-radius: 4px; overflow: hidden; }
.wbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); border-radius: 4px; } .wbar i.late { background: var(--danger); }

/* 휴대폰 아래 탭 */
.btabs { display: none; }

/* ── 좁은 화면 (태블릿·휴대폰) ── */
@media (max-width: 1100px) {
  .home-grid, .setgrid, .dash2 { grid-template-columns: 1fr; }
  .cards6 { grid-template-columns: repeat(3, 1fr); }
  .lrow { grid-template-columns: 28px minmax(0, 1fr) 110px 120px; } .lrow > :nth-child(5), .lrow > :nth-child(6) { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .gnb { padding: 0 14px; } .gnb nav { display: none; } .gnb .logo { border-right: 0; } .gnb .un, .gnb .caret { display: none; } .gnb .user { padding: 4px; background: transparent; }
  .page, .page.wide { padding: 16px 14px 90px; min-width: 0; }
  .ph1 { flex-wrap: wrap; } .ph1 .rt { margin-left: 0; width: 100%; justify-content: space-between; }
  .qrow { flex-wrap: wrap; } .qsel { width: 100%; flex: 0 0 100%; } .qrow .qi { flex: 1 1 0; min-width: 0; } .qrow > .btn { flex: none; } /* R6: ?·× 는 입력칸 오른쪽 한 줄에 */
  .htabs { display: flex; overflow-x: auto; } .htabs button { flex: none; }
  .trow { padding: 12px 14px; } .tmeta .tag { display: none; }
  .pgrid { grid-template-columns: 1fr; }
  .phead { flex-wrap: wrap; } .phead .rt { width: 100%; justify-content: space-between; }
  .ptabs { gap: 18px; overflow-x: auto; }
  .filters .input.sm { width: 100% !important; } .filters > div[style] { margin-left: 0 !important; }
  .lhead { display: none; }
  .lrow { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 11px 12px; } .lrow .la span:not(.av) { display: none; } .lrow > :nth-child(4) { grid-column: 2; font-size: 12px; margin-top: -4px; }
  .ladd { padding-left: 12px; }
  .bcol { width: 82vw; }
  .gname { width: 150px; } .gantt { max-height: none; }
  .cards6 { grid-template-columns: repeat(2, 1fr); }
  .table th, .table td { padding: 9px 10px; }
  .card .table { display: block; overflow-x: auto; }
  .drawer { width: 100vw; } .dbody { padding: 16px 16px 40px; }
  .props { grid-template-columns: 64px 1fr; } .props .drange { flex-wrap: wrap; } .props .drange .input { width: 132px; }
  .modal.wide { width: 100%; } .tgrid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; gap: 6px; } .drange .input { width: auto; flex: 1; }
  .addrow { flex-wrap: wrap; } .mrow { flex-wrap: wrap; }
  .npanel { right: 8px; left: 8px; width: auto; }
  .btabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); z-index: 200; }
  .btabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--t3); font-weight: 700; font-size: 13px; }
  .btabs a.on { color: var(--primary); box-shadow: inset 0 2px 0 var(--primary); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.props > .seg, .props > .chipsl { justify-self: start; }
.form-grid > .seg, .form-grid > .swatch { justify-self: start; }
.toast.show { pointer-events: auto; }

/* ── 업무 설명 편집기 (TipTap) ── */
.edstate { font-size: 12px; font-weight: 600; color: var(--t4); margin-left: 6px; } .edstate.ok { color: var(--primary); } .edstate.wait { color: var(--t3); } .edstate.bad { color: var(--danger); }
.ed-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px 6px; border: 1px solid var(--input); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--panel); position: sticky; top: -18px; z-index: 5; }
.edb { height: 28px; min-width: 28px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: #344054; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.edb:hover { background: #E4E7EC; } .edb.on { background: var(--primary-bg); color: var(--primary-h); }
.eds { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.ed-sub { flex-basis: 100%; display: flex; align-items: center; gap: 4px; padding: 4px 2px 0; font-size: 12px; color: var(--t3); }
.ed-sub .input { flex: 1; }
.ed-slot .ed-host { border: 1px solid var(--input); border-radius: 0 0 8px 8px; background: #fff; }
.ed-slot.ro .ed-host { border: 0; }
.ed-host .ProseMirror { min-height: 150px; padding: 12px 14px; outline: none; line-height: 1.65; font-size: 13.5px; word-break: break-word; }
.ed-slot.ro .ed-host .ProseMirror { min-height: 0; padding: 4px 0; }
.ed-host .ProseMirror:focus-visible { outline: none; }
.ed-host:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(14,110,107,.12); }
.ed-host .ProseMirror > * + * { margin-top: .55em; }
.ed-host .ProseMirror p { margin: 0; }
.ed-host .ProseMirror h2 { font-size: 17px; font-weight: 800; margin: .9em 0 .3em; } .ed-host .ProseMirror h3 { font-size: 15px; font-weight: 800; margin: .8em 0 .25em; }
.ed-host .ProseMirror ul, .ed-host .ProseMirror ol { padding-left: 22px; margin: .3em 0; }
.ed-host .ProseMirror li p { margin: 0; }
.ed-host .ProseMirror blockquote { border-left: 3px solid var(--notice-line); background: var(--notice-bg); margin: .5em 0; padding: 6px 12px; color: var(--t2); border-radius: 0 6px 6px 0; }
.ed-host .ProseMirror code { background: #F2F4F7; border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
.ed-host .ProseMirror pre { background: #101828; color: #F2F4F7; border-radius: 8px; padding: 10px 12px; overflow-x: auto; } .ed-host .ProseMirror pre code { background: none; color: inherit; padding: 0; }
.ed-host .ProseMirror hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0; }
.ed-host .ProseMirror a { color: var(--info); text-decoration: underline; }
.ed-host .ProseMirror img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: .5em 0; }
.ed-host .ProseMirror img.ProseMirror-selectednode { outline: 3px solid var(--primary); }
.ed-host .ProseMirror table { border-collapse: collapse; width: 100%; table-layout: fixed; margin: .6em 0; overflow: hidden; }
.ed-host .ProseMirror th, .ed-host .ProseMirror td { border: 1px solid #D0D5DD; padding: 6px 8px; vertical-align: top; position: relative; min-width: 40px; }
.ed-host .ProseMirror th { background: var(--panel); font-weight: 700; text-align: left; }
.ed-host .ProseMirror .selectedCell::after { content: ''; position: absolute; inset: 0; background: rgba(14,110,107,.12); pointer-events: none; }
.ed-host .ProseMirror .tableWrapper { overflow-x: auto; }
.ed-host .ProseMirror p.is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; color: var(--t4); pointer-events: none; height: 0; }
.ed-host .ProseMirror-gapcursor::after { border-top-color: var(--t1); }
@media (max-width: 760px) { .ed-toolbar { top: -16px; } .edb { height: 32px; } }

/* ── 로그인 (시험 계정 고르기) ── */
.login-body { background: var(--page); }
.login-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 24px 60px; }
.login-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.login-head h1 { font-size: 22px; margin: 0 0 4px; }
.login-logo { width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; flex: none; }
.login-groups { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 16px; margin-top: 16px; align-items: start; }
.lgrp { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.lgh2 { display: flex; align-items: baseline; gap: 8px; font-size: 15px; } .lgd { font-size: 12.5px; margin: 4px 0 12px; }
.lcard { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font: inherit; color: inherit; }
.lcard:hover { border-color: var(--primary); background: var(--notice-bg); } .lcard:disabled { opacity: .6; cursor: wait; }
.lc1 { display: flex; align-items: center; gap: 10px; } .lc1 b { font-size: 14.5px; } .lc1 .tag { margin-left: auto; }
.lc2 { font-size: 12.5px; color: var(--t2); margin-top: 8px; line-height: 1.5; }
.lc3 { font-size: 12px; color: var(--warn); margin-top: 6px; font-weight: 600; }
.login-others { margin-top: 18px; } .login-others summary { cursor: pointer; font-weight: 700; color: var(--t2); padding: 6px 0; }
.login-other-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
@media (max-width: 900px) { .login-groups { grid-template-columns: 1fr; } .login-other-list { grid-template-columns: 1fr 1fr; } }

/* ── v0.4 ── */
.nmore { padding: 12px 16px; text-align: center; font-size: 12.5px; }
/* D18: 창 너비가 1200px 언저리일 때 스크롤바 폭만큼 가로로 밀리던 문제 — 최소 너비를 없애고 칸이 내용 때문에 넓어지지 않게 */
.page { min-width: 0; }
.setgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.home-grid > *, .dash2 > *, .setgrid > * { min-width: 0; }
.drange { min-width: 0; flex-wrap: wrap; } .drange .input { min-width: 0; }
@media (max-width: 1100px) { .setgrid, .home-grid, .dash2 { grid-template-columns: minmax(0, 1fr); } }
/* D19: 보드 칸이 화면에 맞게 줄어든다 (5칸이 1180px 창에 들어감). 칸이 더 많으면 옆으로 밀어서 봄 */
.bcol { width: auto; flex: 1 1 210px; min-width: 200px; max-width: 320px; }
@media (max-width: 760px) { .bcol { flex: none; width: 82vw; max-width: none; } }
.modal .mb.pre { white-space: pre-line; }

/* ── v0.5 개선 제안 ── */
.htabrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .htabrow .htabs { margin-bottom: 0; }
.ordb { display: inline-flex; gap: 2px; } .ordb .btn.sm { width: 26px; padding: 0; height: 26px; font-size: 10px; } .ordb .btn:disabled { opacity: .3; }
.sch-ms { padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--primary-h); background: var(--primary-bg); border-bottom: 1px solid #EEF0F3; }
.dwarn { flex-basis: 100%; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--warn); }
.hlist-s { margin-top: 8px; padding: 8px 12px; background: var(--panel); border-radius: 8px; font-size: 13px; line-height: 1.7; max-height: 150px; overflow: auto; }
.hopt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; cursor: pointer; }
.hopt:hover { background: var(--panel); } .hopt.on { border-color: var(--primary); background: var(--primary-bg); }
.hopt .rd { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--input); flex: none; margin-top: 2px; } .hopt.on .rd { border: 5px solid var(--primary); }
.hopt b { display: block; font-size: 13.5px; } .hopt small { color: var(--t3); font-size: 12px; }
.nmoreg { display: block; width: 100%; text-align: left; padding: 6px 16px 8px 30px; font-size: 12.5px; color: var(--primary); background: #fff; border: 0; border-bottom: 1px solid #EEF0F3; cursor: pointer; font-weight: 600; }
.nitem.sub { padding-left: 30px; background: var(--panel); }
.mbox { position: fixed; z-index: 2000; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(16,24,40,.16); padding: 4px; }
.mbi { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 13.5px; height: 38px; }
.mbi .mdept { color: var(--t3); font-size: 12px; margin-left: auto; } .mbi.on, .mbi:hover { background: var(--primary-bg); }
.mbh { padding: 5px 8px 3px; font-size: 11px; color: var(--t4); border-top: 1px solid #EEF0F3; margin-top: 2px; }

/* ── v0.6 사용성 평가 반영 ── */
button.ccard { text-align: left; font: inherit; color: inherit; width: 100%; } button.ccard:hover { border-color: var(--primary); } .ccard.sel { border: 2px solid var(--primary); padding: 15px 17px; }
.donebtn:disabled { opacity: .45; cursor: not-allowed; background: var(--panel); border-style: dashed; } /* U10: 잠긴 버튼은 잠긴 것처럼 */
/* M1 내 업무 */
.addline { display: block; width: 100%; text-align: left; padding: 11px 16px; margin-bottom: 10px; border: 1px dashed var(--btn-line); border-radius: 10px; background: #fff; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.addline:hover { border-color: var(--primary); background: var(--primary-bg); }
.qcard.slim { margin-bottom: 10px; } .qrow { display: flex; gap: 8px; align-items: flex-start; } .qrow .qi { flex: 1; min-width: 0; } .qhbtn { width: 32px; font-weight: 800; }
.qhelpbox { margin-top: 10px; padding: 12px 14px; background: var(--panel); border-radius: 8px; font-size: 13px; color: var(--t2); }
.qhelpbox table { margin-top: 8px; border-collapse: collapse; width: 100%; } .qhelpbox td { padding: 4px 10px 4px 0; vertical-align: top; } .qhelpbox code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-family: inherit; font-weight: 700; color: var(--t1); }
.onb { padding: 16px 18px; margin-bottom: 14px; border-color: var(--notice-line); background: var(--notice-bg); }
.onbh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .onbh b { font-size: 15px; }
.onbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.onbs div { background: #fff; border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line); } .onbs i { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; align-items: center; justify-content: center; margin-right: 6px; }
.onbs b { font-size: 14px; } .onbs span { display: block; margin-top: 6px; font-size: 13px; color: var(--t2); line-height: 1.5; }
/* H2 여러 개 선택·담당 바로 고르기 */
.selbar { position: sticky; top: 64px; z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; background: #fff; border: 2px solid var(--primary); border-radius: 10px; box-shadow: 0 6px 18px rgba(16,24,40,.08); }
.selbar .select.sm { width: 150px; }
.lrow.picked { background: var(--primary-bg); } .lrow .cb, .lgh .cb { margin: 0; }
.la-sel { border: 1px solid transparent; background: transparent; font: inherit; color: var(--t1); padding: 3px 4px; border-radius: 6px; max-width: 100%; min-width: 0; flex: 1; cursor: pointer; }
.la-sel:hover, .la-sel:focus { border-color: var(--input); background: #fff; } .la-sel.none { color: var(--warn); font-weight: 600; }
.unb { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 10px; }
/* L6 간트 범례·내 업무 */
.gbar.mine { box-shadow: inset 0 0 0 2px #101828; }
.glegend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--t2); } .glegend span { display: inline-flex; align-items: center; gap: 6px; }
.glegend .lg { display: inline-block; width: 18px; height: 10px; border-radius: 3px; font-style: normal; } .glegend .lg.late { background: var(--danger); } .glegend .lg.mine { background: #fff; box-shadow: inset 0 0 0 2px #101828; }
.glegend .lg.ms { width: auto; height: auto; color: var(--t1); } .glegend .lg.today { width: 2px; height: 14px; background: var(--danger); border-radius: 0; }
/* M2 업무 상세: 자주 쓰는 속성만 위로 */
.dhead { display: flex; flex-direction: column; gap: 8px; }
.pcore { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 8px 0 4px; }
.pcore label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t3); } .pcore label .select { width: 150px; } .pcore label.wide { flex-basis: 100%; }
.pcore .drange { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .pcore .drange .input { width: 150px; }
.pmore { display: block; width: 100%; text-align: left; margin: 4px 0 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--t2); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmore:hover { border-color: var(--primary); }
.dlock { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cact { margin-left: auto; display: flex; gap: 2px; } .cact .btn { height: 22px; }
.cedit { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.cmt.hl { background: #FFF8E6; border-radius: 10px; box-shadow: 0 0 0 2px #F5C76B; animation: hlfade 3s ease-out 1.5s forwards; }
@keyframes hlfade { to { background: transparent; box-shadow: none; } }
/* H1 알림 종류 표시 */
.nkind { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--info, #175CD3); border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
.nitem.k-request .nkind { background: var(--warn); }
/* M7 전체 검색 */
.gsearch { position: relative; } .gsearch .input { width: 240px; background: #1D2939; border-color: #344054; color: #fff; } .gsearch .input::placeholder { color: #98A2B3; }
.gsres { position: absolute; top: 40px; right: 0; width: 420px; max-height: 70vh; overflow: auto; background: #fff; color: var(--t1); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(16,24,40,.2); z-index: 60; }
.gsi { padding: 10px 14px; border-bottom: 1px solid #EEF0F3; cursor: pointer; } .gsi:hover, .gsi:focus { background: var(--primary-bg); } .gsi b { display: block; font-size: 14px; } .gsi span { font-size: 12.5px; color: var(--t3); } .gsi.none { color: var(--t3); cursor: default; }
.gsmore { display: block; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--primary); }
mark { background: #FFE58F; color: inherit; border-radius: 2px; padding: 0 1px; }
.tl-list { max-height: 60vh; overflow: auto; padding: 0 !important; }
@media (max-width: 760px) {
  .gsearch { display: none; } .onbs { grid-template-columns: 1fr; } .gsres { width: calc(100vw - 28px); }
  .pcore label .select, .pcore .drange .input { width: auto; flex: 1; } .pcore label { flex: 1 1 100%; } .selbar { top: 56px; }
}
.dhead .donebtn { align-self: flex-start; }
.pcore label > span:first-child { flex: none; white-space: nowrap; }

.gsi.on { background: var(--primary-bg); box-shadow: inset 3px 0 0 var(--primary); }
.ferr { color: var(--danger); font-size: 12.5px; font-weight: 600; margin-top: 4px; } .input.bad, .select.bad { border-color: var(--danger) !important; }
.errbox.slim { padding: 10px 12px; font-size: 13px; }
/* N10: 현황 표가 좁은 화면에서 두 줄로 꺾이지 않게 — 프로젝트 이름만 말줄임, 사유 문장은 줄바꿈 허용 */
.dtbl th, .dtbl td { white-space: nowrap; } .dtbl td.dname { max-width: 240px; overflow: hidden; text-overflow: ellipsis; } .dtbl .t-sub { white-space: normal; max-width: 220px; }
.onbmini { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; } .onbmini .addline { flex: 1; }

/* ── v0.7 투입 현황 ── */
.alcard { padding: 0; overflow-x: auto; }
.alrow { display: grid; grid-template-columns: 300px minmax(560px, 1fr); border-bottom: 1px solid #EEF0F3; }
.alrow > .alname { padding: 9px 14px; border-right: 1px solid var(--line); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; justify-content: center; position: sticky; left: 0; background: #fff; z-index: 2; }
.alhead { background: var(--panel); font-size: 12.5px; font-weight: 700; color: var(--t2); position: sticky; top: 0; z-index: 3; } .alhead > .alname { background: var(--panel); }
.altrack { position: relative; min-height: 36px; }
.alhead .altrack { height: 34px; }
.almon { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); padding: 9px 6px; white-space: nowrap; overflow: hidden; }
.altoday { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); opacity: .55; z-index: 1; pointer-events: none; }
.albar { position: absolute; height: 22px; border-radius: 6px; background: var(--c); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; overflow: hidden; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.albar span { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; }
.albar.masked { background: repeating-linear-gradient(45deg, #D0D5DD, #D0D5DD 4px, #F2F4F7 4px, #F2F4F7 8px); color: var(--t2); }
.albar.zero { background: #fff; color: var(--t2); box-shadow: inset 0 0 0 1px var(--c); border: 1px dashed var(--c); }
.albar.ended { opacity: .45; } .albar.edit { cursor: pointer; } .albar.edit:hover { filter: brightness(1.1); box-shadow: 0 0 0 2px #101828; }
.albar.proj { opacity: .85; height: 24px; }
.alproj > .alname { background: #FCFCFD; } .alproj { background: #FCFCFD; } .alsub > .alname { padding-left: 34px; flex-direction: row; align-items: center; gap: 6px; }
.alst { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--t2); }
.ld { display: inline-block; min-width: 42px; text-align: center; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.ld.free { background: #E6F2F1; color: #0A4F4D; } .ld.part { background: #EFF4FF; color: #175CD3; } .ld.full { background: #EEF2F6; color: #344054; } .ld.over { background: #FEE4E2; color: #B42318; }
.alfree { position: absolute; left: 12px; top: 10px; font-size: 12.5px; color: var(--t3); }
@media (max-width: 760px) { .alrow { grid-template-columns: 170px minmax(520px, 1fr); } .alst { flex-direction: column; align-items: flex-start; gap: 2px; } }
.altag { white-space: nowrap; font-size: 12px; }
.alnav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } @media (max-width: 760px) { .alnav { margin-left: 0; } .alnav > span.faint { min-width: 0 !important; } }

/* v0.7.1 R5: 태블릿 폭에서 현황 표가 화면을 밀지 않게 — 표만 옆으로 넘기고, 좁으면 덜 중요한 열을 감춤 */
.tscroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 1000px) { .dtbl .c-tl, .field-hint.c-tl { display: none; } }
@media (max-width: 700px) { .dtbl .c-mgr { display: none; } }
.onb, .onbmini { scroll-margin-top: 72px; } /* R9 */
/* v0.7.1 R10: 책임자 빼기 — 프로젝트마다 넘길 사람 */
.modal.co { width: 620px; }
.coall { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; padding: 8px 10px; background: var(--panel); border-radius: 8px; flex-wrap: wrap; } .coall .select { flex: 1; min-width: 180px; }
.corows { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; }
.corow { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #EEF0F3; } .corow:last-child { border-bottom: 0; }
.corow .coname { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .corow .coname small { display: block; color: var(--t3); font-size: 12px; }
.corow .select { width: 100%; }
@media (max-width: 760px) { .modal.co { width: 100%; } .corow { grid-template-columns: 1fr; gap: 4px; } }
/* v0.7.1 태블릿 폭(761~1200px)에서 위 메뉴 글자가 세로로 쪼개지던 것 — 한 줄 유지, 간격·찾기칸을 줄이고 좁으면 로고 글자·이름을 감춤 */
.gnb .logo, .gnb nav a { white-space: nowrap; flex: none; }
.gnb nav { min-width: 0; }
@media (max-width: 1200px) and (min-width: 761px) {
  .gnb { padding: 0 16px; } .gnb nav { gap: 16px; } .gnb .logo { padding-right: 14px; margin-right: 14px; }
  .gsearch .input { width: 170px; }
}
@media (max-width: 960px) and (min-width: 761px) {
  .gnb .logo { font-size: 0; gap: 0; } .gnb .logo i { font-size: 13px; }
  .gnb .un, .gnb .caret { display: none; } .gnb .user { padding: 4px; }
  .gnb nav { gap: 13px; } .gnb nav a { font-size: 14px; } .gsearch .input { width: 130px; }
}
