@font-face{
  font-family:"Pretendard Variable";
  font-weight:45 920;
  font-style:normal;
  font-display:swap;
  /* 로컬 파일 우선, 배포 환경에서 누락/미로딩 시 CDN 폴백 */
  src:url("fonts/PretendardVariable.woff2") format("woff2"),
      url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@1.3.9/packages/pretendard/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2");
}
:root{
  --bg:#f7f8fa;--panel:#fff;--sidebar:#f3f5f7;--line:#e5e7eb;--line-strong:#d7dbe0;
  --text:#1f2933;--muted:#7b818a;--subtle:#a0a6ae;--active:#e9edf1;
  --green:#0d8f63;--green-soft:#e9f8f1;--amber:#b7791f;--amber-soft:#fff6df;
  --blue:#5266d4;--blue-soft:#eef1ff;--red:#c0392b;--red-soft:#fdeceb;--radius:10px;
  /* ── 역할별 색 (기획/개발/디자인/QA) — 앱 전역 단일 출처 ── */
  --role-plan:#5266d4;--role-plan-bg:#eef1ff;
  --role-dev:#0d8f63;--role-dev-bg:#e6f5ee;
  --role-design:#d97706;--role-design-bg:#fbf0e2;
  --role-qa:#c0392b;--role-qa-bg:#fdeceb;
  --role-other:#9aa2aa;--role-other-bg:#eef0f2;
}
/* 역할 색 토큰: 요소에 g-* 클래스를 붙이면 --rc(막대·점·글자)와 --rc-bg(칩 배경)를 상속 */
.g-plan{--rc:var(--role-plan);--rc-bg:var(--role-plan-bg)}
.g-dev{--rc:var(--role-dev);--rc-bg:var(--role-dev-bg)}
.g-design{--rc:var(--role-design);--rc-bg:var(--role-design-bg)}
.g-qa{--rc:var(--role-qa);--rc-bg:var(--role-qa-bg)}
.g-other{--rc:var(--role-other);--rc-bg:var(--role-other-bg)}
/* 역할 색 점 (표·리스트에서 작업 앞에 표시) */
.role-dot{width:8px;height:8px;border-radius:3px;flex:0 0 auto;display:inline-block;background:var(--rc,var(--role-other))}
*{box-sizing:border-box}
html{scrollbar-gutter:stable;overflow-y:scroll}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{
  /* Space Grotesk = 라틴/숫자, 한글은 Pretendard 폴백 */
  font-family:"Space Grotesk","Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,
  "Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  font-size:13px;line-height:1.5;
}
button,input,select{font:inherit}button{cursor:pointer}
.app{min-height:100vh;display:grid;grid-template-columns:196px 1fr}
.sidebar{position:sticky;top:0;height:100vh;background:var(--sidebar);border-right:1px solid var(--line);padding:14px 8px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:9px;padding:4px 8px 22px;font-weight:500;font-size:13px}
.brand-mark{width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:6px;background:#fff;color:#5b6169;font-size:12px}
.nav-group{margin-bottom:10px}.nav-label{padding:8px 8px 6px;font-size:11px;color:var(--subtle)}
.nav-item{width:100%;border:0;background:transparent;color:#3e454d;display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:7px;text-align:left;margin-bottom:2px}
.nav-item:hover{background:#eceff2}.nav-item.active{background:var(--active);font-weight:500}
.icon{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;color:#5b636c;flex:0 0 auto}
.icon svg{width:15px;height:15px;display:block}
.soon-chip{margin-left:auto;display:inline-flex;align-items:center;font-size:9px;font-weight:500;line-height:1;padding:3px 5px;border-radius:5px;background:#e3e7ec;color:#79818b;text-transform:uppercase;letter-spacing:.03em}
.nav-count{margin-left:auto;display:none;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;font-size:10px;font-weight:600;line-height:1;border-radius:999px;background:var(--blue-soft);color:var(--blue)}
.nav-count.show{display:inline-flex}
.project-tree{position:relative;margin:2px 0 8px 22px;padding-left:13px;border-left:1px dashed #c8cdd3}
.project-tree-item{position:relative;display:block;width:100%;border:0;background:transparent;color:#5d6670;text-align:left;padding:6px 6px 6px 10px;border-radius:6px;font-size:11px;line-height:1.35;text-decoration:none}
.project-tree-item::before{content:"";position:absolute;left:-14px;top:50%;width:11px;border-top:1px dashed #c8cdd3}
.project-tree-item{cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}
.project-tree-item:hover{background:#eceff2;color:#2f3740}.project-tree-item.active{color:#1f2933;font-weight:500;background:#eef0f2}
.project-tree-empty{display:block;padding:6px 10px;font-size:11px;color:var(--subtle)}
.divider{height:1px;background:var(--line-strong);margin:8px 0 10px}.sidebar-bottom{margin-top:auto}
.portal-status{display:flex;align-items:center;gap:8px;padding:10px 8px 4px;border-top:1px solid var(--line-strong);color:#4c555e}
.dot{width:9px;height:9px;border-radius:50%;background:#1fac71}
.content-wrap{min-width:0}
.topbar{height:58px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:5}
.topbar-title{font-size:13px;font-weight:500}.topbar-actions{display:flex;gap:8px;align-items:center}
.search{width:240px;border:1px solid var(--line-strong);border-radius:7px;background:#fff;padding:8px 10px;outline:none}
.btn{border:1px solid var(--line-strong);background:#fff;color:#252c33;border-radius:7px;padding:8px 11px;font-weight:500}
.btn.primary{background:#183f32;border-color:#183f32;color:#fff}
.btn.danger{background:var(--red);border-color:var(--red);color:#fff}
.btn.danger:hover{filter:brightness(.94)}
.btn.danger-ghost{background:#fff;border-color:var(--red-soft);color:var(--red)}
.btn.danger-ghost:hover{background:var(--red-soft)}
.btn-icon{display:inline-flex;align-items:center;justify-content:center;padding:8px;color:#4c535a}
.btn-icon svg{display:block}
.btn-icon.is-spinning svg{animation:spin .7s linear infinite}
.main{padding:34px clamp(24px,2.4vw,48px) 56px;max-width:2200px;margin:0 auto}
.page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:24px}
.eyebrow{color:var(--muted);font-size:12px;margin-bottom:3px}
h1{margin:0;font-size:28px;letter-spacing:-.03em;font-weight:500}
.page-description{margin-top:8px;color:var(--muted);font-size:13px}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.summary{border:1px solid var(--line);background:#fff;border-radius:var(--radius);padding:16px 17px}
.summary-label{color:var(--muted);font-size:11px;margin-bottom:5px}.summary-value{font-size:23px;font-weight:500}
.summary-meta{color:var(--subtle);font-size:11px;margin-top:3px}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.panel-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line)}
.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tab{border:0;background:transparent;color:var(--muted);padding:6px 8px;border-radius:6px;font-size:12px}
.tab.active{background:#f0f2f4;color:#23292f;font-weight:500}
.filter{border:1px solid var(--line-strong);background:#fff;border-radius:7px;padding:7px 9px;color:#4c535a;font-size:12px}
table{width:100%;border-collapse:collapse;table-layout:fixed}
thead th{background:#fafbfc;color:#7f868f;font-size:11px;font-weight:500;text-align:left;border-bottom:1px solid var(--line);padding:11px 14px}
tbody td{border-bottom:1px solid var(--line);padding:13px 14px;vertical-align:middle;color:#3a4148;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfd}
tbody tr.row-link{cursor:pointer}
.project-link{color:inherit;text-decoration:none;display:block}
.project-cell{display:flex;align-items:flex-start;gap:10px;min-width:0}
.project-icon{flex:0 0 auto;width:28px;height:28px;border-radius:7px;border:1px solid var(--line-strong);background:#f7f8fa;display:grid;place-items:center;font-size:11px;color:#5a626b}
.project-name{font-size:12.5px;font-weight:500;color:#242b31;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-cell>div{min-width:0}
.project-meta{color:var(--subtle);font-size:10.5px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner{display:flex;align-items:center;gap:7px;min-width:0}
.owner-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e9ecef;color:#4a525a;font-size:9.5px;font-weight:500;border:1px solid #dfe3e7}
.status{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:500;padding:4px 7px;border-radius:999px;white-space:nowrap}
.status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.status.progress{background:var(--blue-soft);color:var(--blue)}       /* 진행중: 파랑 */
.status.waiting{background:var(--amber-soft);color:var(--amber)}       /* 대기: 노랑 */
.status.done{background:var(--red-soft);color:var(--red)}              /* 완료: 빨강 */
.status.review{background:#f1f3f5;color:#727982}                       /* 보류 등 나머지: 회색 */
.progress-wrap{display:flex;align-items:center;gap:8px}.progress-bar{width:74px;height:4px;background:#edf0f2;border-radius:999px;overflow:hidden}
.progress-fill{height:100%;background:#405a50;transition:width .3s ease}.progress-text{color:#687078;font-size:10.5px;min-width:30px}
/* progress 3구간 색상 (3/6/9): 회색 → 파랑 → 빨강 */
.progress-fill.p-low{background:#9aa2aa}          /* 하: 회색 */
.progress-fill.p-mid{background:var(--blue)}      /* 중: 파랑 */
.progress-fill.p-high{background:var(--red)}      /* 상: 빨강 */
.more{border:0;background:transparent;color:#949aa1;font-size:18px;line-height:1;border-radius:6px;padding:2px 6px;transition:background .15s,color .15s}
.more:hover{background:#eceff2;color:#5b636c}

/* 행 메뉴(···: 수정/삭제) */
.row-menu{position:absolute;z-index:60;min-width:132px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 30px rgba(20,24,28,.16);padding:5px}
.row-menu[hidden]{display:none!important}
.row-menu-item{width:100%;display:flex;align-items:center;gap:9px;border:0;background:transparent;color:#3e454d;padding:8px 9px;border-radius:6px;text-align:left;font-size:12.5px}
.row-menu-item svg{width:15px;height:15px;flex:0 0 auto;color:#7b818a}
.row-menu-item:hover{background:#f1f3f5}
.row-menu-item.danger{color:var(--red)}
.row-menu-item.danger svg{color:var(--red)}
.row-menu-item.danger:hover{background:var(--red-soft)}
.empty-row td{padding:40px 14px;text-align:center;color:var(--subtle)}
.loading-row td{padding:40px 14px;text-align:center;color:var(--muted)}
.spinner{display:inline-block;width:13px;height:13px;border:2px solid #d7dbe0;border-top-color:#5a626b;border-radius:50%;vertical-align:-2px;margin-right:4px;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ── 상세 페이지 ─────────────────────────── */
.detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}
.breadcrumb{color:var(--subtle);font-size:11px;margin-bottom:8px}
.detail-title-row{display:flex;align-items:center;gap:10px}
.detail-title-row h1{font-size:26px}
.detail-actions{display:flex;gap:8px}
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
.section-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:14px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.section-head h2{margin:0;font-size:13px;font-weight:500}
.section-body{padding:16px}
.description{color:#555e67;font-size:12px;line-height:1.75;white-space:pre-line}
.overview-edit{border:0;background:transparent;color:#7b818a;width:28px;height:28px;border-radius:6px;display:grid;place-items:center;font-size:14px}
.overview-edit:hover{background:#f0f2f4;color:#30373e}
.overview-editor{width:100%;min-height:150px;resize:vertical;border:1px solid var(--line-strong);border-radius:8px;padding:12px;font:inherit;color:#424a52;line-height:1.75;outline:none;display:none}
.overview-actions{display:none;gap:8px;margin-top:10px;justify-content:flex-end}
.overview-card.editing .description{display:none}
.overview-card.editing .overview-editor{display:block}
.overview-card.editing .overview-actions{display:flex}
.assignee-groups{display:flex;flex-direction:column}
.assignee-group{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:start;padding:8px 0;border-bottom:1px solid var(--line);min-height:0}
.assignee-group:last-child{border-bottom:0}
.role{color:var(--muted);font-size:11px}
.assignee-list{display:flex;flex-wrap:wrap;gap:5px}
.assignee-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 7px 3px 4px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#30373e;font-size:10.5px;font-weight:500}
.assignee-chip.empty{color:var(--subtle);font-weight:500;background:#fafbfc}
.assignee-chip .avatar{width:19px;height:19px;font-size:8px}
.add-assignee{width:23px;height:23px;border:1px dashed var(--line-strong);border-radius:50%;background:#fff;color:#7b818a;font-size:13px}
.task-table{width:100%;border-collapse:collapse;table-layout:fixed}
.task-table th,.task-table td{padding:11px 12px;font-size:11px;border-bottom:1px solid var(--line);text-align:left}
.task-table th{background:#fafbfc;color:var(--subtle)}
.task-table tr:last-child td{border-bottom:0}
.check{width:15px;height:15px;border:1px solid var(--line-strong);border-radius:4px;display:inline-grid;place-items:center;color:#fff;background:#fff;font-size:10px}
.check.done{background:#183f32;border-color:#183f32}
.side-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:14px}
.side-head{padding:13px 14px;border-bottom:1px solid var(--line);font-size:12px;font-weight:500}
.side-body{padding:14px}
.side-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:11.5px}
.side-row:last-child{border-bottom:0}
.side-row span:first-child{color:var(--subtle)}
.side-row strong{font-weight:500}
/* Project summary 내부 Note. 블록 (기존 Overview) */
.side-note{margin-top:6px;padding-top:6px}
.side-card .side-body .side-row:last-of-type{border-bottom:0}
.side-note-head span{color:var(--subtle);font-size:11.5px}
.side-note .description{font-size:11.5px;line-height:1.7;color:#424a52;white-space:pre-wrap;word-break:break-word;min-height:8px}
/* Project summary 수정 아이콘 */
.side-edit{border:0;background:transparent;color:#7b818a;width:26px;height:26px;border-radius:6px;display:grid;place-items:center;padding:0}
.side-edit svg{width:14px;height:14px}
.side-edit:hover{background:#f0f2f4;color:#30373e}
/* ── 간트차트 ─────────────────────────── */
.gantt-legend{display:flex;gap:12px;align-items:center}
.gl-item{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;color:var(--muted)}
.gl-dot{width:9px;height:9px;border-radius:3px;display:inline-block}
/* 역할별 색상 (기획/개발/디자인/QA) */
.gl-dot.g-plan{background:var(--role-plan)}.gl-dot.g-dev{background:var(--role-dev)}
.gl-dot.g-design{background:var(--role-design)}.gl-dot.g-qa{background:var(--role-qa)}.gl-dot.g-other{background:var(--role-other)}
.gantt-scroll{overflow-x:auto;padding:6px 16px 16px}
.gantt-empty{color:var(--subtle);font-size:11px;padding:16px 0}
.gantt-inner{width:100%}
.gantt-row{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;min-height:30px}
.gantt-name{font-size:11px;color:#3e454d;padding-right:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gantt-track{position:relative;height:24px}
.gantt-head{min-height:24px;margin-bottom:4px;border-bottom:1px solid var(--line)}
.gantt-head .gantt-track{height:20px}
.gantt-grid-line{position:absolute;top:0;bottom:0;border-left:1px dashed #edeff2;pointer-events:none}
.gantt-head .gantt-grid-line{border-left-color:var(--line)}
.gantt-tick-label{position:absolute;top:3px;margin-left:5px;font-size:10px;color:var(--subtle);white-space:nowrap}
.gantt-today{position:absolute;top:0;bottom:0;border-left:1.5px solid var(--red);z-index:2;pointer-events:none}
.gantt-bar{position:absolute;top:4px;height:16px;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.gantt-bar-label{position:absolute;top:0;height:24px;display:flex;align-items:center;font-size:9.5px;line-height:1;color:#4c535a;white-space:nowrap;pointer-events:none;z-index:1}
.gantt-bar-label.after{padding-left:6px}
.gantt-bar-label.before{padding-right:6px}
.gantt-bar-label.inside{color:#fff;padding-left:7px;font-weight:500}
.gantt-bar.g-plan{background:var(--role-plan)}    /* 기획 */
.gantt-bar.g-dev{background:var(--role-dev)}      /* 개발 */
.gantt-bar.g-design{background:var(--role-design)}/* 디자인 */
.gantt-bar.g-qa{background:var(--role-qa)}        /* QA */
.gantt-bar.g-other{background:var(--role-other)}  /* 기타/미지정 */
.gantt-unscheduled{position:absolute;left:2px;top:5px;font-size:10px;color:var(--subtle)}
/* 마일스톤(리뷰 등) */
.gl-dot.milestone{width:8px;height:8px;background:#7c5cd6;border-radius:1px;transform:rotate(45deg)}
.gantt-ms-row .gantt-name{color:#6a4fc0;font-weight:500}
.gantt-ms-line{position:absolute;top:0;bottom:0;border-left:1px dashed #b8a6ec;pointer-events:none;z-index:1}
.gantt-ms{position:absolute;top:0;bottom:0;display:flex;align-items:center;margin-left:-4px;z-index:3;pointer-events:none}
.gantt-ms-dot{width:8px;height:8px;background:#7c5cd6;transform:rotate(45deg);border-radius:1px;box-shadow:0 0 0 2px #fff}
.gantt-ms-label{position:absolute;top:0;height:24px;display:flex;align-items:center;font-size:9.5px;color:#6a4fc0;font-weight:500;white-space:nowrap;pointer-events:none;z-index:3}
.gantt-ms-label.after{padding-left:9px}
.gantt-ms-label.before{padding-right:9px}
.side-note-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.side-note-head span{color:var(--subtle);font-size:11.5px}
.side-note .overview-edit{width:24px;height:24px;font-size:13px}
.side-note .description{font-size:11.5px;line-height:1.7;color:#424a52;white-space:pre-wrap;word-break:break-word}
.side-note .overview-editor{min-height:96px;padding:9px;font-size:11.5px;line-height:1.6}
/* 좁은 사이드 컬럼에서 Assignees는 라벨을 위로 쌓아 표시 */
.side-card .assignee-group{grid-template-columns:1fr;gap:6px;padding:9px 0}
.side-card .assignee-group .role{font-size:11px}
.priority{font-size:11px;color:#5f666d}
.project-link{color:inherit;text-decoration:none;display:block}
@media(max-width:1000px){
  .detail-layout{grid-template-columns:1fr}
  .detail-header{flex-direction:column}
}

/* ── 멤버 페이지 ─────────────────────────── */
.member-cell{display:flex;align-items:center;gap:10px;min-width:0}
.member-cell .avatar{width:30px;height:30px;font-size:11px;overflow:hidden}
.avatar.has-photo{background:none;border:1px solid var(--line);padding:0}
.avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.member-name{font-size:12.5px;font-weight:500;color:#242b31;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-en{color:var(--subtle);font-size:10.5px;margin-top:1px}
.team-tag{display:inline-block;font-size:11px;font-weight:500;color:#43506b;background:#eef1f9;border-radius:6px;padding:2px 8px;white-space:nowrap}
.role-cell{color:#4c535a}
.country-badge{display:inline-block;font-size:9px;font-weight:500;letter-spacing:.03em;color:#6b7580;background:#eef0f2;border:1px solid var(--line);border-radius:4px;padding:1px 5px;margin-left:6px;vertical-align:middle}
.email-cell{color:inherit}
.email-cell a{color:inherit;text-decoration:none}
.email-cell a:hover{text-decoration:underline}
@media(max-width:1000px){.app{grid-template-columns:1fr}.sidebar{display:none}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:24px 18px 40px}.topbar{padding:0 18px}.panel{overflow:auto}table{min-width:980px}}

/* ─────────────── 프로젝트 상세 페이지 ─────────────── */
.status.blocked{background:var(--red-soft);color:var(--red)}
.priority{font-size:11px;color:#5f666d}
.footer-note{margin-top:12px;color:var(--subtle);font-size:11px;text-align:right}
.detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}
.breadcrumb{color:var(--subtle);font-size:11px;margin-bottom:8px}
.detail-title-row{display:flex;align-items:center;gap:10px}
.detail-title-row h1{font-size:26px}
.detail-actions{display:flex;gap:8px}
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
.section-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:14px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.section-head h2{margin:0;font-size:13px;font-weight:500}
.section-body{padding:16px}
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}
.info-item{min-height:66px;padding:12px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.info-label{color:var(--subtle);font-size:10.5px;margin-bottom:5px}
.info-value{color:#30373e;font-size:12px;font-weight:500}
.description{color:#555e67;font-size:12px;line-height:1.75;white-space:pre-line}
.overview-edit{border:0;background:transparent;color:#7b818a;width:28px;height:28px;border-radius:6px;display:grid;place-items:center;font-size:14px}
.overview-edit:hover{background:#f0f2f4;color:#30373e}
.overview-editor{width:100%;min-height:150px;resize:vertical;border:1px solid var(--line-strong);border-radius:8px;padding:12px;font:inherit;color:#424a52;line-height:1.75;outline:none;display:none}
.overview-actions{display:none;gap:8px;margin-top:10px;justify-content:flex-end}
.overview-card.editing .description{display:none}
.overview-card.editing .overview-editor{display:block}
.overview-card.editing .overview-actions{display:flex}
.assignee-groups{display:flex;flex-direction:column}
.assignee-group{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:start;padding:8px 0;min-height:0;border-bottom:1px solid var(--line)}
.assignee-group:last-child{border-bottom:0}
.assignee-list{display:flex;flex-wrap:wrap;gap:5px}
.assignee-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 7px 3px 4px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#30373e;font-size:10.5px;font-weight:500}
.assignee-chip.empty{color:var(--subtle);font-weight:500;background:#fafbfc}
.assignee-chip .avatar{width:19px;height:19px;font-size:8px}
.add-assignee{width:23px;height:23px;border:1px dashed var(--line-strong);border-radius:50%;background:#fff;color:#7b818a;font-size:13px}
.people-list{display:flex;flex-direction:column}
.person-row{display:grid;grid-template-columns:110px 1fr 92px;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}
.person-row:last-child{border-bottom:0}
.role{color:var(--muted);font-size:11px}
.person{display:flex;align-items:center;gap:8px;min-width:0}
.person-name{font-size:12px;font-weight:500;color:#30373e}
.person-task{color:var(--subtle);font-size:10.5px;margin-top:2px}
.assignment-state{justify-self:end;font-size:10.5px;padding:4px 7px;border-radius:999px;background:#f2f4f6;color:#6c747c}
.assignment-state.assigned{background:var(--green-soft);color:var(--green)}
.task-table{width:100%;border-collapse:collapse;table-layout:fixed}
.task-table th,.task-table td{padding:11px 12px;font-size:11px;border-bottom:1px solid var(--line)}
.task-table th{background:#fafbfc;color:var(--subtle);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.check{width:15px;height:15px;border:1px solid var(--line-strong);border-radius:4px;display:inline-grid;place-items:center;color:#fff;background:#fff;font-size:10px}
.check.done{background:#183f32;border-color:#183f32}
.side-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:14px}
.side-head{padding:13px 14px;border-bottom:1px solid var(--line);font-size:12px;font-weight:500}
.side-body{padding:14px}
.side-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:11.5px}
.side-row:last-child{border-bottom:0}
.side-row span:first-child{color:var(--subtle)}
.side-row strong{font-weight:500}
.note-area{width:100%;min-height:150px;resize:vertical;border:1px solid var(--line-strong);border-radius:8px;padding:11px 12px;font:inherit;color:#424a52;outline:none;background:#fbfcfd}
.note-area:focus{border-color:#9ea6ae;background:#fff}
.note-meta{display:flex;justify-content:space-between;margin-top:9px;color:var(--subtle);font-size:10.5px}
tbody tr.row-link{cursor:pointer}
/* New project 모달 */
.modal-overlay{position:fixed;inset:0;background:rgba(20,24,28,.42);display:flex;align-items:center;justify-content:center;z-index:50;padding:20px}
.modal-overlay[hidden]{display:none!important}
.modal-card{width:100%;max-width:560px;max-height:90vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px rgba(20,24,28,.22);display:flex;flex-direction:column}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px}
.modal-head h2{margin:0;font-size:16px;font-weight:500}
.modal-close{border:0;background:transparent;font-size:20px;line-height:1;color:var(--muted);cursor:pointer;padding:2px 6px;border-radius:6px}
.modal-close:hover{background:var(--active);color:var(--text)}
.modal-body{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;padding:8px 20px 18px}
.modal-body .field{display:flex;flex-direction:column;gap:5px;min-width:0}
.modal-body .field-full{grid-column:1 / -1}
.modal-body .field>span{font-size:11px;font-weight:500;color:var(--muted)}
.modal-body .field>span em{color:var(--red);font-style:normal}
.modal-body input,.modal-body select,.modal-body textarea{border:1px solid var(--line-strong);border-radius:8px;padding:8px 10px;font:inherit;font-size:12px;background:#fff;color:var(--text);outline:none;width:100%}
.modal-body input:focus,.modal-body select:focus,.modal-body textarea:focus{border-color:var(--blue)}
.modal-body textarea{resize:vertical;min-height:56px}
.modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px 18px;border-top:1px solid var(--line)}
.modal-msg{font-size:11px;color:var(--red);min-height:14px}
.modal-actions{display:flex;gap:8px;margin-left:auto}
.modal-card.saving{pointer-events:none;position:relative}
.modal-card.saving::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.6);border-radius:14px;z-index:5}
.modal-card.saving::after{content:"";position:absolute;top:50%;left:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border:3px solid #d7dbe0;border-top-color:#5a626b;border-radius:50%;animation:spin .7s linear infinite;z-index:6}
@media(max-width:560px){.modal-body{grid-template-columns:1fr}}
/* 삭제 확인 모달 */
.confirm-overlay{z-index:120}   /* 다른 모달(마일스톤 등) 위에 표시 */
.confirm-card{max-width:400px}
.modal-body.confirm-body{display:block;text-align:center;padding:18px 24px 20px}
.confirm-body p{margin:0;color:var(--muted);line-height:1.6}
.confirm-body strong{color:var(--text)}
.confirm-icon{width:46px;height:46px;margin:0 auto 14px;border-radius:50%;background:var(--red-soft);color:var(--red);display:flex;align-items:center;justify-content:center}
.confirm-icon svg{width:23px;height:23px}
/* Assignee 추가/삭제 */
.assignee-chip .chip-remove{border:0;background:transparent;color:var(--subtle);cursor:pointer;font-size:12px;line-height:1;padding:0 0 0 1px;margin-left:1px}
.assignee-chip .chip-remove:hover{color:var(--red)}
.assignee-input{border:1px solid var(--blue);border-radius:999px;padding:3px 9px;font:inherit;font-size:10.5px;font-weight:500;color:#30373e;outline:none;width:96px;height:25px}
.assignee-chip.saving{opacity:.55}
/* 사이드카드 헤더 / 공수 배지 */
.side-head{display:flex;align-items:center;justify-content:space-between}
.tl-effort{font-size:10px;font-weight:600;color:var(--green);background:var(--green-soft);border-radius:999px;padding:1px 7px;line-height:1.6}
.tl-effort:empty{display:none}

/* Detailed tasks 헤더 버튼 그룹 + 마일스톤 버튼 */
.section-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
#openMsBtn{display:inline-flex;align-items:center;gap:6px}
.ms-btn-dot{width:7px;height:7px;background:#7c5cd6;transform:rotate(45deg);border-radius:1px;flex:0 0 auto}

/* 마일스톤 기록 모달 */
.modal-body.ms-body{display:block;padding:14px 20px 18px}
.ms-modal-hint{margin:0 0 12px;font-size:11.5px;color:var(--muted)}
.ms-modal-form{display:flex;gap:8px;align-items:center}
.ms-modal-form .ms-modal-type{flex:0 0 auto;width:82px}
.ms-modal-form .ms-modal-name{flex:1 1 auto;width:auto;min-width:0}
.ms-modal-form .ms-modal-date{flex:0 0 148px;width:148px}
.ms-modal-form .btn{flex:0 0 auto}
/* 마일스톤 타입 태그 (기타 / 배포) */
.ms-type-tag{flex:0 0 auto;font-size:9px;font-weight:600;letter-spacing:.02em;padding:2px 6px;border-radius:4px;background:#eef0f2;color:#6b7079}
.ms-type-tag.deploy{background:#efe9fb;color:#6a4fc0}
.ms-modal-list{margin-top:14px;border-top:1px solid var(--line);padding-top:8px;display:flex;flex-direction:column;gap:2px;max-height:260px;overflow-y:auto}
.ms-modal-item{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:7px}
.ms-modal-item:hover{background:#f7f8fa}
.ms-modal-dot{width:8px;height:8px;background:#7c5cd6;transform:rotate(45deg);border-radius:1px;flex:0 0 auto}
.ms-modal-emoji{flex:0 0 auto;font-size:13px;line-height:1}
.ms-modal-item-name{flex:1 1 auto;min-width:0;font-size:12.5px;font-weight:500;color:#2f3740;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-modal-item-date{flex:0 0 auto;font-size:11.5px;color:var(--muted)}
.ms-modal-del{flex:0 0 auto;border:0;background:transparent;color:var(--subtle);cursor:pointer;font-size:12px;padding:4px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center}
.ms-modal-del:hover{background:var(--red-soft);color:var(--red)}
.ms-modal-empty{padding:22px 0;text-align:center;color:var(--subtle);font-size:12px}
.detail-actions .btn{display:inline-flex;align-items:center;gap:6px}
.detail-actions .btn .icon{width:15px;height:15px;color:#4c535a}
.detail-actions .btn .icon svg{width:14px;height:14px}
/* Detailed tasks 편집 */
/* 표시행·편집행 높이를 동일 고정 → 수정 진입 시 레이아웃 시프트 없음 */
.task-table tbody tr{height:47px}
.task-table tbody td{padding-top:0;padding-bottom:0}
.task-table .task-actions{white-space:nowrap;text-align:right;overflow:visible;text-overflow:clip;padding-left:2px;padding-right:8px}
.task-table .task-icon{border:0;background:transparent;cursor:pointer;font-size:12px;color:var(--subtle);padding:2px 5px;border-radius:5px;line-height:1;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
/* 삭제(X) 아이콘 svg 크기 (휴지통 대체) */
.task-table .task-icon svg{width:13px;height:13px;display:block}
.ms-modal-del svg{width:13px;height:13px;display:block}
.task-table .task-icon:hover{color:var(--text);background:var(--active)}
.task-table .task-icon.task-del:hover{color:var(--red)}
.task-table .task-icon.task-save{color:var(--green)}
.task-table tbody tr .task-actions{opacity:0;transition:opacity .12s}
.task-table tbody tr:hover .task-actions,.task-table .task-edit-row .task-actions{opacity:1}
.task-table .task-edit-row td{padding:6px 8px}
.task-table .task-edit-row input,.task-table .task-edit-row select{width:100%;border:1px solid var(--line-strong);border-radius:6px;padding:5px 6px;font:inherit;font-size:11px;background:#fff;color:var(--text);outline:none}
.task-table .task-edit-row input:focus,.task-table .task-edit-row select:focus{border-color:var(--blue)}
/* Assignee 다수 (칩) */
.task-table td.assignee-multi{white-space:normal;overflow:visible;text-overflow:clip}
.t-assignee-box{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.task-table .task-edit-row .t-assignee-box{border:1px solid var(--line-strong);border-radius:6px;padding:4px 5px;background:#fff}
.task-table .task-edit-row .t-assignee-box:focus-within{border-color:var(--blue)}
.mini-chip{display:inline-flex;align-items:center;gap:4px;background:#f2f4f7;border:1px solid var(--line);border-radius:999px;padding:2px 8px 2px 3px;font-size:10.5px;font-weight:500;color:#30373e;white-space:nowrap}
.mini-chip .avatar{width:16px;height:16px;font-size:7px}
.mini-chip .mini-remove{border:0;background:transparent;color:var(--subtle);cursor:pointer;font-size:11px;line-height:1;padding:0;margin-left:3px}
.mini-chip .mini-remove:hover{color:var(--red)}
.task-table .task-edit-row .t-assignee-box .t-assignee-input{border:0!important;outline:none;font:inherit;font-size:10.5px;min-width:44px;flex:1 0 44px;padding:2px;background:transparent;width:auto}
.task-table .task-edit-row .mini-add{width:20px;height:20px;border:1px dashed var(--line-strong);border-radius:50%;background:#fff;color:#7b818a;font-size:12px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;flex:0 0 auto}
.task-table .task-edit-row .mini-add:hover{border-color:var(--blue);color:var(--blue)}
@media(max-width:1000px){.detail-layout{grid-template-columns:1fr}.info-grid{grid-template-columns:1fr}.person-row{grid-template-columns:90px 1fr}}

/* ── 토스트 (우 하단) ─────────────────────── */
.toast-wrap{position:fixed;left:50%;transform:translateX(-50%);bottom:30px;z-index:2000;display:flex;flex-direction:column;gap:10px;align-items:center;pointer-events:none}
.toast{pointer-events:auto;min-width:290px;max-width:460px;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--muted);border-radius:12px;box-shadow:0 10px 32px rgba(20,24,28,.2);padding:16px 20px;font-size:14px;color:var(--text);opacity:0;transform:translateY(12px);transition:opacity .22s ease,transform .22s ease;cursor:pointer}
.toast.show{opacity:1;transform:translateY(0)}
.toast.hide{opacity:0;transform:translateY(12px)}
.toast-icon{width:22px;height:22px;flex:0 0 auto;border-radius:50%;display:inline-grid;place-items:center;color:#fff;font-size:13px;font-weight:700;line-height:1}
.toast-msg{line-height:1.5}
.toast-success{border-left-color:var(--green)}
.toast-success .toast-icon{background:var(--green)}
.toast-success .toast-icon::before{content:"\2713"}
.toast-error{border-left-color:var(--red)}
.toast-error .toast-icon{background:var(--red)}
.toast-error .toast-icon::before{content:"\0021"}
.toast-info{border-left-color:var(--blue)}
.toast-info .toast-icon{background:var(--blue)}
.toast-info .toast-icon::before{content:"\0069"}

/* ── 세부작업 시작~종료 범위 달력 ─────────── */
.task-table .t-date-td .t-date-btn{width:100%;text-align:left;border:1px solid var(--line-strong);border-radius:6px;background:#fff;padding:5px 7px;font:inherit;font-size:11px;color:var(--text);cursor:pointer}
.task-table .t-date-td .t-date-btn:hover{border-color:var(--blue)}
.daterange-pop{position:absolute;z-index:2100;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(20,24,28,.18);padding:10px;width:236px;user-select:none}
.daterange-pop[hidden]{display:none!important}
.dr-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.dr-title{font-size:12px;font-weight:600}
.dr-nav{border:0;background:transparent;font-size:16px;line-height:1;color:#5b636c;cursor:pointer;width:24px;height:24px;border-radius:6px}
.dr-nav:hover{background:#f0f2f4}
.dr-dows{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:2px}
.dr-dows span{text-align:center;font-size:10px;color:var(--subtle);padding:2px 0}
.dr-dows .sun{color:#c0392b}.dr-dows .sat{color:#2f6fd6}
.dr-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.dr-day{border:0;background:transparent;font:inherit;font-size:11px;height:28px;border-radius:6px;cursor:pointer;color:var(--text);display:flex;align-items:center;justify-content:center;padding:0}
.dr-day.empty{visibility:hidden;cursor:default}
.dr-day:hover:not(.empty):not(.sel){background:#eef1ff}
.dr-day.sun{color:#c0392b}.dr-day.sat{color:#2f6fd6}
.dr-day.today{outline:1px solid var(--line-strong);outline-offset:-1px}
.dr-day.inrange{background:#eef1ff;border-radius:0}
.dr-day.sel{background:var(--blue);color:#fff}
.dr-day.sel.start{border-radius:6px 0 0 6px}
.dr-day.sel.end{border-radius:0 6px 6px 0}
.dr-day.sel.start.end{border-radius:6px}
.dr-foot{display:flex;align-items:center;justify-content:space-between;margin-top:8px;gap:8px}
.dr-hint{font-size:10.5px;color:var(--muted)}
.dr-actions{display:flex;gap:6px}
.dr-btn{border:1px solid var(--line-strong);background:#fff;border-radius:6px;padding:4px 9px;font:inherit;font-size:11px;cursor:pointer}
.dr-btn.primary{background:#183f32;border-color:#183f32;color:#fff}

/* Share 버튼 복사 완료 애니메이션 */
#shareBtn.copied{border-color:var(--green);color:var(--green);animation:copied-pop .32s ease}
@keyframes copied-pop{0%{transform:scale(1)}45%{transform:scale(1.09)}100%{transform:scale(1)}}
/* 세부작업 공수일수(Day) 셀 */
.task-table .task-day{text-align:center;color:#5f666d;font-variant-numeric:tabular-nums}

/* ── Google 로그인 게이트 ─────────────────── */
html.auth-gated{overflow:hidden}
.auth-overlay{position:fixed;inset:0;z-index:3000;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:24px}
.auth-card{width:100%;max-width:360px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 48px rgba(20,24,28,.14);padding:34px 28px;text-align:center}
.auth-brand{display:flex;align-items:center;justify-content:center;gap:9px;font-weight:500;font-size:13px;color:#3e454d;margin-bottom:22px}
.auth-mark{width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:#5b6169;font-size:13px}
.auth-card h2{margin:0 0 6px;font-size:20px;font-weight:600}
.auth-desc{margin:0 0 22px;color:var(--muted);font-size:12.5px}
.auth-gsi{display:flex;justify-content:center;min-height:44px}
.auth-msg{margin-top:14px;color:var(--red);font-size:11.5px;min-height:14px;line-height:1.5}
/* 사이드바 계정 버튼 + 메뉴(설정/로그아웃) */
.auth-account{position:relative;margin-top:6px;padding-top:6px;border-top:1px solid var(--line-strong)}
.auth-account-btn{width:100%;display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:8px;border-radius:8px;cursor:pointer;text-align:left}
.auth-account-btn:hover{background:#eceff2}
.auth-account-btn img,.auth-av{width:24px;height:24px;border-radius:50%;flex:0 0 auto}
.auth-av{display:grid;place-items:center;background:#e9ecef;color:#4a525a;font-size:10px;font-weight:600}
.auth-account-name{flex:1 1 auto;font-size:11.5px;color:#3e454d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.auth-chevron{width:14px;height:14px;color:#9aa2aa;flex:0 0 auto}
.auth-menu{position:absolute;left:0;right:0;bottom:calc(100% + 4px);background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 30px rgba(20,24,28,.16);padding:5px;z-index:40}
.auth-menu[hidden]{display:none!important}
.auth-menu-item{width:100%;display:flex;align-items:center;gap:9px;border:0;background:transparent;color:#3e454d;padding:8px 9px;border-radius:6px;text-align:left;font-size:12px;cursor:pointer}
.auth-menu-item svg{width:15px;height:15px;flex:0 0 auto;color:#7b818a}
.auth-menu-item:hover{background:#f1f3f5}
.auth-menu-item.danger{color:var(--red)}
.auth-menu-item.danger svg{color:var(--red)}
.auth-menu-item.danger:hover{background:var(--red-soft)}

/* ───────── Home / My 대시보드 ───────── */
.summary-link{display:block;text-decoration:none;color:inherit;transition:border-color .12s,box-shadow .12s}
.summary-link:hover{border-color:var(--line-strong);box-shadow:0 2px 8px rgba(20,24,28,.05)}
.summary.is-attention .summary-value,.summary-link.is-attention .summary-value{color:var(--red)}
.summary.is-soon .summary-value,.summary-link.is-soon .summary-value{color:var(--amber)}

.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
@media (max-width:1080px){.dash-grid{grid-template-columns:1fr}}
.dash-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:14px}
.dash-card.attention{border-color:#f0c7c2}
.dash-head{display:flex;align-items:center;gap:9px;padding:13px 16px;border-bottom:1px solid var(--line)}
.dash-head h3{margin:0;font-size:13px;font-weight:600}
.dash-sublabel{color:var(--subtle);font-size:11px}
.dash-head .count{margin-left:auto;font-size:11px;color:var(--muted);background:#f1f3f5;border-radius:999px;padding:2px 9px;font-weight:500}
.dash-card.attention .dash-head .count{color:var(--red);background:var(--red-soft)}
.dash-more{font-size:11px;color:var(--blue);text-decoration:none;margin-left:12px}
.dash-more:hover{text-decoration:underline}
.dash-ico{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;flex:0 0 auto;background:#f1f3f5;color:#6b7079}
.dash-ico svg{width:15px;height:15px}
.dash-ico.warn{background:var(--red-soft);color:var(--red)}
.dash-ico.soon{background:var(--amber-soft);color:var(--amber)}
.dash-ico.risk{background:var(--blue-soft);color:var(--blue)}
.dash-ico.prog{background:var(--green-soft);color:var(--green)}

.dash-list{list-style:none;margin:0;padding:4px 0}
.dash-list .dash-empty{padding:26px 16px;text-align:center;color:var(--subtle);font-size:12px}
/* Home: 진행중 프로젝트 + 배포 캘린더 2단 */
.home-prog-grid{grid-template-columns:1fr 336px}
@media (max-width:1080px){.home-prog-grid{grid-template-columns:1fr}}
.cal-nav{margin-left:auto;display:flex;align-items:center;gap:6px}
.cal-nav button{border:1px solid var(--line-strong);background:#fff;border-radius:6px;width:24px;height:24px;line-height:1;color:#4c555e;font-size:14px;padding:0}
.cal-nav button:hover{background:#f1f3f5;color:var(--text)}
.cal-nav #calMonth{font-size:12px;font-weight:600;min-width:62px;text-align:center;color:var(--text)}
.deploy-cal{padding:12px 14px 14px}
.dc-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.dc-wd{text-align:center;font-size:10px;color:var(--subtle);padding:2px 0 4px}
.dc-wd.sun{color:var(--red)}.dc-wd.sat{color:var(--blue)}
.dc-cell{position:relative;aspect-ratio:1/1;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:7px;font-size:11px;color:#3a4148;gap:2px}
.dc-cell.empty{visibility:hidden}
.dc-cell.has{background:var(--green-soft);color:var(--green);font-weight:600}
.dc-cell.today{outline:1.5px solid var(--blue);outline-offset:-1.5px}
.dc-num{line-height:1}
.dc-dot{width:5px;height:5px;border-radius:50%;background:var(--green)}
.dc-list{margin-top:12px;border-top:1px solid var(--line);padding-top:8px;display:flex;flex-direction:column;gap:1px;max-height:150px;overflow-y:auto}
.dc-item{display:flex;gap:10px;align-items:center;padding:6px 6px;border-radius:6px;text-decoration:none;color:inherit;font-size:11.5px}
.dc-item:hover{background:#f7f8fa}
.dc-item-date{color:var(--green);font-weight:600;flex:0 0 auto;min-width:40px}
.dc-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2f3740}
.dc-empty{font-size:11px;color:var(--subtle);text-align:center;padding:14px 0}
.dash-more-row{border-top:1px solid var(--line)}
.dash-more-row a{display:block;padding:10px 16px;text-align:center;font-size:11.5px;color:var(--muted);text-decoration:none}
.dash-more-row a:hover{background:#f7f8fa;color:var(--blue)}
.dash-item{display:flex;align-items:center;gap:11px;padding:11px 16px;text-decoration:none;color:inherit}
.dash-item + .dash-item,.dash-list li + li .dash-item{border-top:1px solid var(--line)}
.dash-item:hover{background:#f7f8fa}
.dash-ic{width:28px;height:28px;border-radius:7px;border:1px solid var(--line-strong);background:#f7f8fa;display:grid;place-items:center;font-size:11px;color:#5a626b;flex:0 0 auto}
.dash-body{min-width:0;flex:1 1 auto}
.dash-name{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:#2f3740;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-sub{font-size:10.5px;color:var(--subtle);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-right{margin-left:auto;display:flex;align-items:center;gap:9px;white-space:nowrap;flex:0 0 auto}

.note-item{align-items:flex-start}
.note-snippet{display:block;font-size:11px;color:#5c636b;margin-top:4px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}

.d-badge{font-size:10.5px;font-weight:600;padding:3px 7px;border-radius:6px;background:#f1f3f5;color:#6b7079}
.d-badge.d-over{background:var(--red-soft);color:var(--red)}
.d-badge.d-soon{background:var(--amber-soft);color:var(--amber)}
.d-date{font-size:11px;color:var(--subtle)}

.mini-bar{width:82px;height:6px;border-radius:999px;background:#eef0f2;overflow:hidden;flex:0 0 auto}
.mini-fill{display:block;height:100%;border-radius:999px;background:var(--blue)}
.mini-fill.p-high{background:var(--red)}.mini-fill.p-mid{background:var(--blue)}.mini-fill.p-low{background:#b7bcc3}
.mini-pct{font-size:11px;color:var(--muted);min-width:30px;text-align:right}

.cat-chip{font-size:9.5px;font-weight:500;padding:2px 6px;border-radius:5px;background:var(--rc-bg,#eef1ff);color:var(--rc,#5266d4);white-space:nowrap}
.type-chip{font-size:9px;font-weight:600;padding:2px 6px;border-radius:5px;background:#f1f3f5;color:#727982;white-space:nowrap;letter-spacing:.02em}
.role-chip{font-size:9.5px;font-weight:500;padding:2px 7px;border-radius:999px;border:1px solid var(--rc-bg,var(--line));background:var(--rc-bg,#fff);color:var(--rc,#4c555e)}
.task-ic{border:0;background:transparent}
.task-dot{width:9px;height:9px;border-radius:50%;background:var(--rc,var(--blue))}
.dash-item.is-done .task-ic{color:var(--green)}
.dash-item.is-done .task-ic svg{width:16px;height:16px}
.dash-item.is-done .dash-name{color:var(--subtle);text-decoration:line-through;text-decoration-color:#cfd4da}

/* My.Team 탭 */
.mt-tabs{display:inline-flex;gap:4px;padding:3px;background:#eef0f2;border-radius:9px;margin-bottom:18px}
.mt-tab{border:0;background:transparent;color:var(--muted);padding:6px 16px;border-radius:7px;font-size:12px;font-weight:500}
.mt-tab.active{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(20,24,28,.1)}
.mt-tab[hidden]{display:none}
.mt-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 5px;margin-left:6px;font-size:10px;font-weight:600;line-height:1;border-radius:999px;background:var(--blue-soft);color:var(--blue)}
.mt-tab-count[hidden]{display:none}
.mt-tab.active .mt-tab-count{background:var(--blue);color:#fff}

/* 세그먼트 필터 (내 프로젝트 상태 필터) */
/* 내 프로젝트 상태 필터 — projects 페이지와 동일한 .tab 스타일 사용 */
.dash-tabs{margin-left:auto;display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}

/* Team 메타 헤더 */
.team-meta{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.tm-team{font-size:14px;font-weight:600;color:var(--text)}
.tm-lead{font-size:11.5px;color:var(--muted);background:#f1f3f5;border-radius:999px;padding:3px 10px}
.dash-ic.ava{border:0;background:transparent;overflow:hidden}
.dash-ic.ava img{width:28px;height:28px;border-radius:7px;object-fit:cover}
/* 팀 타임라인: 작업명 + 프로젝트·날짜 2줄 라벨 (막대/행 높이 확대) */
.team-timeline .tl-row{min-height:54px}
.team-timeline .tl-bar{height:40px;padding:0 9px}
.tl-bl2{display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0;line-height:1.25;overflow:hidden}
.tl-bl2 b{font-size:10.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-bl2 i{font-size:9.5px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.9}
.tl-bar-out.tl-bl2 b{color:#2f3740}
.tl-bar-out.tl-bl2 i{color:var(--muted);opacity:1}

/* Team 전환 (실장 전용) */
.team-switch{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:14px}
.team-switch[hidden]{display:none}
.ts-label{font-size:11px;color:var(--subtle);margin-right:2px}
.ts-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line-strong);background:#fff;color:#4c555e;border-radius:999px;padding:6px 12px;font-size:11.5px;font-weight:500}
.ts-btn:hover{background:#f7f8fa}
.ts-btn.active{background:var(--blue);border-color:var(--blue);color:#fff}
.ts-n{font-size:10px;opacity:.75}
.ts-btn.active .ts-n{opacity:.9}

/* 리소스 타임라인 */
.tl-legend{margin-left:auto;display:flex;gap:10px;align-items:center}
.tl-legend .lg{position:relative;font-size:10.5px;color:var(--muted);padding-left:14px}
.tl-legend .lg::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:9px;height:9px;border-radius:3px}
.lg.b-prog::before{background:#5266d4}.lg.b-wait::before{background:#d9a441}.lg.b-over::before{background:#c0392b}.lg.b-done::before{background:#b7bcc3}
.lg.g-plan::before{background:var(--role-plan)}.lg.g-dev::before{background:var(--role-dev)}.lg.g-design::before{background:var(--role-design)}.lg.g-qa::before{background:var(--role-qa)}
.team-timeline{padding:4px 0}
.tl-empty{padding:30px 16px;text-align:center;color:var(--subtle);font-size:12px}
.tl-scroll{overflow-x:auto;overflow-y:hidden}
.tl-inner{display:inline-block;min-width:100%}
.tl-headrow{display:flex;align-items:stretch;border-bottom:1px solid var(--line)}
.tl-corner{flex:0 0 156px;min-width:0;box-sizing:border-box;position:sticky;left:0;z-index:6;background:#fff;display:flex;align-items:flex-end;padding:6px 12px;font-size:10.5px;color:var(--subtle);border-right:1px solid var(--line)}
.tl-headgrid{position:relative}
.tl-months{display:flex;height:20px}
.tl-month{font-size:10px;color:var(--muted);border-left:1px solid var(--line);padding:3px 0 0 6px;box-sizing:border-box;white-space:nowrap}
.tl-weeks{display:flex;height:22px;border-top:1px solid var(--line)}
.tl-week{font-size:9.5px;color:var(--subtle);border-left:1px solid var(--line);padding:4px 0 0 5px;box-sizing:border-box;white-space:nowrap}
.tl-days{display:flex;height:22px;border-top:1px solid var(--line)}
.tl-day{font-size:9.5px;color:var(--subtle);border-left:1px solid var(--line);box-sizing:border-box;text-align:center;padding-top:5px;flex:0 0 auto}
.tl-day.wkend{color:#b4726c;background:#faf5f4}
.tl-wkend{position:absolute;top:0;bottom:0;background:#f6f7f9;z-index:0}
.tl-row{display:flex;align-items:stretch;border-bottom:1px solid var(--line);min-height:46px}
.tl-row:last-child{border-bottom:0}
.tl-name{flex:0 0 156px;min-width:0;box-sizing:border-box;overflow:hidden;position:sticky;left:0;z-index:5;background:#fff;display:flex;align-items:center;gap:8px;padding:7px 12px;border-right:1px solid var(--line);cursor:pointer}
.tl-name:hover{background:#f7f8fa}
.tl-name .dash-ic{width:26px;height:26px;font-size:10px}
.tl-name-txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.tl-name-txt b{font-size:12px;font-weight:600;color:#2f3740;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-name-txt i{font-size:10px;color:var(--subtle);font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-undated{margin-left:auto;font-size:9px;font-weight:600;color:var(--amber);background:var(--amber-soft);border-radius:5px;padding:2px 5px;white-space:nowrap}
.tl-track{position:relative;flex:0 0 auto}
.tl-gl{position:absolute;top:0;bottom:0;width:1px;background:var(--line)}
.tl-today{position:absolute;top:0;bottom:0;width:2px;background:#c0392b;opacity:.55;z-index:1}
.tl-today-head{opacity:.55}
.tl-bar{position:absolute;top:50%;transform:translateY(-50%);height:24px;border-radius:6px;display:flex;align-items:center;padding:0 8px;color:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(20,24,28,.15)}
.tl-bar-label{font-size:10.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-bar-out{position:absolute;top:50%;transform:translateY(-50%);font-size:10.5px;font-weight:500;color:#3a4148;white-space:nowrap;pointer-events:none;z-index:2}
.tl-bar.b-prog{background:#5266d4}
.tl-bar.b-wait{background:#d9a441}
.tl-bar.b-over{background:#c0392b}
.tl-bar.b-hold{background:#8a919a}
.tl-bar.b-done{background:#b7bcc3}
/* 간트(역할별 색) + 마일스톤 — 타임라인 형식 */
.tl-bar.g-plan{background:var(--role-plan)}
.tl-bar.g-dev{background:var(--role-dev)}
.tl-bar.g-design{background:var(--role-design)}
.tl-bar.g-qa{background:var(--role-qa)}
.tl-bar.g-other{background:var(--role-other)}
.tl-ms-line{position:absolute;top:0;bottom:0;border-left:1px dashed #cbbdf0;pointer-events:none;z-index:1}
.tl-ms-row{background:#faf9ff}
.tl-ms-row .tl-name-txt b{color:#6a4fc0}
.tl-ms{position:absolute;top:0;bottom:0;width:0;z-index:3;pointer-events:none}
.tl-ms-dot{position:absolute;top:50%;left:0;transform:translate(-50%,-50%) rotate(45deg);width:9px;height:9px;background:#7c5cd6;border-radius:1px;box-shadow:0 0 0 2px #fff}
.tl-ms-label{position:absolute;top:50%;left:11px;transform:translateY(-50%);font-size:10px;color:#6a4fc0;font-weight:500;white-space:nowrap}
.tl-ms.before .tl-ms-label{left:auto;right:11px}
/* 배포 마일스톤 마커 🎉 */
.tl-ms-emoji{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);font-size:14px;line-height:1;pointer-events:none}
.tl-ms.deploy .tl-ms-label{left:15px}
.tl-ms.deploy.before .tl-ms-label{left:auto;right:15px}
.tl-unsched{position:absolute;left:8px;top:50%;transform:translateY(-50%);font-size:10px;color:var(--subtle)}
.t-name-td{display:flex;align-items:center;gap:7px;max-width:100%}
.t-name-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
/* 피벗: 역할 그룹 컬럼 (역할이 바뀌는 첫 행에만 라벨) */
.task-table .pivot-role{vertical-align:middle}
.role-tag{display:inline-flex;align-items:center;justify-content:center;min-width:64px;font-size:9px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:3px 7px;border-radius:5px;background:var(--rc-bg,var(--role-other-bg));color:var(--rc,var(--role-other))}
.task-overdue{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:var(--red);color:#fff;font-size:10px;font-weight:700;line-height:1;flex:0 0 auto}

/* ════════════════════════════════════════════════════════════
   모바일 최적화 (좌우 스크롤 제거 · 하단 네비 · 표→카드 · 타임라인 숨김)
   ════════════════════════════════════════════════════════════ */

/* ── 사이드바 → 하단 탭바 (사이드바가 사라지는 지점부터) ── */
@media (max-width:1000px){
  .app{grid-template-columns:1fr}
  .content-wrap{min-width:0;max-width:100%}

  /* 숨김이던 사이드바를 화면 하단 고정 탭바로 재사용 */
  .sidebar{
    display:flex;flex-direction:row;
    position:fixed;left:0;right:0;bottom:0;top:auto;
    height:auto;width:auto;padding:0;z-index:60;
    background:#fff;border-right:0;border-top:1px solid var(--line);
    box-shadow:0 -2px 12px rgba(20,24,28,.06);
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  .sidebar .brand,.sidebar .divider,.sidebar .nav-label,
  .sidebar .sidebar-bottom,.sidebar .soon-chip,.sidebar .nav-count,
  .sidebar button.nav-item{display:none!important}
  .sidebar .nav-group{display:contents;margin:0}
  .sidebar .nav-item{
    flex:1 1 0;min-width:0;flex-direction:column;gap:3px;
    justify-content:center;align-items:center;
    margin:0;padding:9px 4px 7px;border-radius:0;
    font-size:10px;font-weight:500;color:#5b636c;line-height:1.2;
  }
  .sidebar .nav-item:hover{background:transparent}
  .sidebar .nav-item.active{background:transparent;color:var(--green);font-weight:600}
  .sidebar .nav-item.active .icon{color:var(--green)}
  .sidebar .nav-item .icon{width:22px;height:22px}
  .sidebar .nav-item .icon svg{width:21px;height:21px}

  /* 콘텐츠가 하단 탭바에 가려지지 않도록 여백 확보 */
  .main{padding:22px 16px calc(74px + env(safe-area-inset-bottom,0px));max-width:100%}

  /* 상단바 압축 — 검색은 숨기고 제목은 말줄임 */
  .topbar{padding:0 14px;gap:10px}
  .topbar-title{font-size:13px;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-actions{flex:0 0 auto;gap:6px;min-width:0}
  .topbar .search{display:none}
  .topbar-actions .btn.primary{white-space:nowrap;padding:8px 12px}
  .topbar-actions .filter{max-width:130px}
}

/* ── 세부 모바일 (폰) : 표→카드, 타임라인 숨김, 헤더 정리 ── */
@media (max-width:768px){
  h1{font-size:23px}
  .page-head{margin-bottom:18px}
  .detail-title-row h1{font-size:21px}

  /* 표 전체를 카드로 — 어떤 표든 좌우 스크롤 없이 세로로 쌓임 */
  .panel{overflow:visible}
  .panel table{min-width:0!important;table-layout:auto}
  .panel thead{display:none}
  .panel table,.panel tbody,.panel tr,.panel td{display:block;width:auto}
  .panel tbody tr{border:1px solid var(--line);border-radius:11px;margin:11px 12px;background:#fff;overflow:hidden}
  .panel tbody tr:hover{background:#fff}
  .panel tbody td{
    border:0;border-bottom:1px solid var(--line);padding:9px 14px;
    white-space:normal;overflow:visible;font-size:12px;
    display:flex;align-items:center;justify-content:space-between;gap:14px;
  }
  .panel tbody td:last-child{border-bottom:0}
  .panel tbody td[data-label]::before{
    content:attr(data-label);color:var(--subtle);font-size:11px;font-weight:500;flex:0 0 auto;
  }
  /* 제목 셀(프로젝트명·멤버명)은 라벨 없이 카드 상단 전체 폭 */
  .panel tbody td.pj-title,.panel tbody td.mb-title{display:block;padding:12px 14px 10px;background:#fafbfc}
  .panel tbody td.pj-more{display:none}
  .panel tbody .empty-row td,.panel tbody .loading-row td{display:block;text-align:center}
  .progress-wrap{justify-content:flex-end}
  .email-cell{word-break:break-all;text-align:right}

  /* 프로젝트 목록 툴바(탭·필터) 세로 정렬 */
  .panel-toolbar{flex-direction:column;align-items:stretch;gap:10px}
  .toolbar-left{flex-wrap:wrap}
  .toolbar-right{flex-wrap:wrap}
  .toolbar-right .filter{flex:1 1 auto;min-width:0}

  /* 대시보드 카드 헤더 안의 필터 탭은 다음 줄로 접어서 표시 */
  .dash-head{flex-wrap:wrap;row-gap:8px}
  .dash-head .count{margin-left:auto}
  .dash-tabs{order:9;flex-basis:100%;margin-left:0;flex-wrap:wrap}
  .dash-sublabel{flex-basis:100%;margin-left:33px}

  /* ── 상세 페이지: 세부작업 표 → 카드 ── */
  .task-table{min-width:0!important;table-layout:auto}
  .task-table thead{display:none}
  .task-table,.task-table tbody,.task-table tr,.task-table td{display:block;width:auto}
  .task-table tbody tr{border-bottom:1px solid var(--line);padding:13px 16px 11px;height:auto}
  .task-table tbody tr:last-child{border-bottom:0}
  .task-table td{
    border:0!important;padding:4px 0;height:auto;white-space:normal;overflow:visible;
    display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;
  }
  .task-table td[data-label]::before{content:attr(data-label);color:var(--subtle);font-size:11px;flex:0 0 auto}
  .task-table td.pivot-role{display:block;padding:0 0 7px}
  .task-table td.tk-title{display:block;padding:0 0 7px;font-size:13.5px;font-weight:600;color:#242b31}
  .task-table td.tk-title .t-name-txt{white-space:normal}
  .task-table td.task-actions{display:none}
  .task-table td.assignee-multi{align-items:flex-start}
  .task-table td.assignee-multi .t-assignee-box{justify-content:flex-end}
  .task-table .task-empty td{display:block;text-align:center;padding:26px 0}
  /* 편집/추가 행은 폰에서 감춤(편집은 PC에서) → Add task도 숨김 */
  .task-table .task-edit-row{display:none}
  #addTaskBtn{display:none}

  /* ── 타임라인/간트는 모바일에서 숨김 ── */
  #ganttCard{display:none}
  #secTimeline{display:none}

  /* 모달 정리 */
  .modal-overlay{padding:12px}
  .modal-foot{flex-wrap:wrap;gap:8px}
  .ms-modal-form{flex-wrap:wrap}
  .ms-modal-form .ms-modal-type{flex:0 0 auto}
  .ms-modal-form .ms-modal-name{flex:1 1 100%;width:100%;min-width:0;order:3}
  .ms-modal-form .ms-modal-date{flex:1 1 auto}
}
