/* =========================================================
   ProjectWay PMS - 코발트블루(Cobalt Blue) 디자인 시스템
   - 폰트: 맑은 고딕 (Malgun Gothic) 전 화면 통일
   - 타이포그래피: 표준 7단계 스케일 통일
   - 컬러: 코발트블루 그라데이션 & 명도·채도 단계별 조합
   - 레이아웃: PC 버전 우선 (1280px+) + 모바일 완벽 대응
   ========================================================= */
:root {
  /* 폰트 패밀리 */
  --font-main: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
  --font-mono: "Malgun Gothic", "맑은 고딕", Consolas, monospace;

  /* 통일된 글자 크기 스케일 (Typography Scale) */
  --fs-xs: 11px;    /* 배지, 캡션, 보조 라벨, 경로 */
  --fs-sm: 12px;    /* 표 데이터, 입력폼, 버튼, 조회조건 */
  --fs-base: 13px;  /* 기본 본문, LNB 메뉴 */
  --fs-md: 14px;    /* GNB 메뉴, 패널 제목(h3), 강조 본문 */
  --fs-lg: 16px;    /* 배너 타이틀, 모달 제목, 중제목 */
  --fs-xl: 19px;    /* 페이지 헤더 제목(h2) */
  --fs-kpi: 24px;   /* 대시보드 KPI 수치 */

  /* 코발트블루(Cobalt Blue) 명도·채도 팔레트 */
  --cb-950: #071533; /* 딥 다크 코발트 (푸터/발표모드) */
  --cb-900: #0b214d; /* 다크 코발트 (헤더 딥 톤) */
  --cb-850: #102d69; /* 미드나잇 코발트 */
  --cb-800: #143985; /* 짙은 코발트블루 */
  --cb-700: #1746a2; /* 메인 코발트블루 (Primary Base) */
  --cb-600: #1f57c3; /* 브라이트 코발트블루 (Primary Vivid) */
  --cb-500: #2b6be4; /* 비비드 코발트블루 (Accent / Line) */
  --cb-400: #558cf2; /* 소프트 코발트 (Sub Accent) */
  --cb-300: #8fb4f8; /* 라이트 코발트 */
  --cb-200: #c3d7fc; /* 코발트 보더/계획바 */
  --cb-150: #d6e4fd; /* 코발트 소프트 라인 */
  --cb-100: #e6effe; /* 페일 코발트 (활성 배경/테이블 헤더) */
  --cb-50:  #f3f7fe; /* 아이스 코발트 (서브 배경) */

  /* 코발트블루 그라데이션 조합 */
  --grad-header: linear-gradient(135deg, #091d45 0%, #143b8a 48%, #1f57c3 100%);
  --grad-lnb:    linear-gradient(135deg, #102f6e 0%, #1746a2 55%, #2561d4 100%);
  --grad-btn:    linear-gradient(180deg, #2b6be4 0%, #1746a2 100%);
  --grad-btn-hv: linear-gradient(180deg, #1f57c3 0%, #123780 100%);
  --grad-bar:    linear-gradient(90deg, #1746a2 0%, #2b6be4 65%, #4b83f0 100%);
  --grad-banner: linear-gradient(135deg, #f2f7ff 0%, #e3edfe 100%);
  --grad-box-h:  linear-gradient(180deg, #f9fbff 0%, #f0f5fe 100%);
  --grad-mtg:    linear-gradient(135deg, #091e47 0%, #153e90 60%, #1e54bf 100%);
  --grad-cover:  linear-gradient(135deg, #081a3e 0%, #143b8c 52%, #2460d2 100%);

  /* 뉴트럴 & 시맨틱 컬러 (코발트 틴트 조화) */
  --bg-page: #e8eef7;
  --ink: #1e293b;
  --ink-strong: #0c214a;
  --ink-muted: #5b6b82;
  --border: #cbd7ea;
  --border-light: #dce5f4;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  font-size: var(--fs-base);
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: var(--ink);
  background: var(--bg-page);
  min-width: 1280px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cb-700); text-decoration: none; cursor: pointer; }
a:hover { color: var(--cb-600); text-decoration: underline; }
button, input, select, textarea, table, th, td, svg text {
  font-family: var(--font-main);
  letter-spacing: -0.2px;
}
input, select, textarea { font-size: var(--fs-sm); color: var(--ink); }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-main); }

/* ---------- Header ---------- */
#header {
  height: 52px;
  background: var(--grad-header);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  border-bottom: 1px solid var(--cb-950);
  box-shadow: 0 2px 8px rgba(9, 29, 69, 0.18);
}
#header .logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.5px; cursor: pointer;
}
#header .logo .mark {
  width: 30px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, #6096fd 0%, #2b6be4 50%, #123782 100%);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
#header .logo small { font-weight: 400; font-size: var(--fs-sm); color: var(--cb-200); margin-left: 3px; }
#header .proj-select {
  background: rgba(7, 21, 51, 0.55);
  border: 1px solid rgba(143, 180, 248, 0.45);
  color: #fff; padding: 5px 10px; border-radius: 4px; font-size: var(--fs-sm); height: 30px;
}
#header .spacer { flex: 1; }
#header .hinfo { font-size: var(--fs-sm); color: var(--cb-200); display: flex; gap: 14px; align-items: center; }
#header .hinfo b { color: #fff; }
#header .chip {
  background: linear-gradient(135deg, #3b7bf6 0%, #1c53be 100%);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff; padding: 2px 9px; border-radius: 12px; font-weight: 700; font-size: var(--fs-xs);
}
#header .user { display: flex; align-items: center; gap: 6px; }
#header .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #4b83f0, #1746a2);
  border: 1px solid rgba(255,255,255,0.4);
  display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-sm); font-weight: 700;
}
#header .hbtn {
  color: #e6effe;
  border: 1px solid rgba(143, 180, 248, 0.45);
  padding: 4px 10px; border-radius: 4px; font-size: var(--fs-xs);
  cursor: pointer; background: rgba(255,255,255,0.08);
  transition: background 0.15s;
}
#header .hbtn:hover { background: rgba(255,255,255,0.18); }
#header .hbtn.view-toggle {
  background: linear-gradient(180deg, rgba(85,140,242,0.35) 0%, rgba(23,70,162,0.55) 100%);
  border-color: #8fb4f8;
  color: #fff;
  font-weight: 700;
}

/* ---------- GNB ---------- */
#gnb {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fe 100%);
  border-bottom: 2px solid var(--cb-700);
  height: 44px; display: flex; padding-left: 210px;
  box-shadow: 0 2px 6px rgba(23, 70, 162, 0.06);
}
#gnb a {
  display: flex; align-items: center; padding: 0 22px;
  font-size: var(--fs-md); font-weight: 700; color: #334155;
  text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all 0.15s;
}
#gnb a:hover { color: var(--cb-700); background: var(--cb-50); }
#gnb a.on {
  color: var(--cb-700);
  border-bottom-color: var(--cb-500);
  background: linear-gradient(180deg, rgba(230,239,254,0.2) 0%, rgba(230,239,254,0.75) 100%);
}

/* ---------- Body layout ---------- */
#body { display: flex; min-height: calc(100vh - 96px - 36px); }
#lnb {
  width: 210px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
#lnb .lnb-title {
  background: var(--grad-lnb);
  color: #fff; padding: 16px 18px;
  font-size: var(--fs-lg); font-weight: 700;
}
#lnb .lnb-title small {
  display: block; font-size: var(--fs-xs); font-weight: 400;
  color: var(--cb-200); margin-top: 3px;
}
#lnb ul { list-style: none; margin: 0; padding: 8px 0; }
#lnb li a {
  display: block; padding: 10px 18px;
  font-size: var(--fs-base); color: #334155;
  border-left: 3px solid transparent; text-decoration: none;
}
#lnb li a:hover { background: var(--cb-50); color: var(--cb-700); }
#lnb li a.on {
  background: linear-gradient(90deg, var(--cb-100) 0%, #f5f9ff 100%);
  color: var(--cb-700); font-weight: 700;
  border-left-color: var(--cb-600);
}
#lnb .lnb-box {
  margin: 10px 12px;
  border: 1px solid var(--cb-150);
  border-radius: 4px;
  background: linear-gradient(180deg, #f9fbff 0%, #f1f6fe 100%);
  padding: 10px 12px; font-size: var(--fs-sm);
}
#lnb .lnb-box h5 { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--cb-800); font-weight: 700; }
#lnb .lnb-box .row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dotted var(--cb-200); font-size: var(--fs-sm); }
#lnb .lnb-box .row:last-child { border-bottom: 0; }

#content { flex: 1; padding: 16px 22px 34px; min-width: 0; }
footer {
  height: 36px;
  background: linear-gradient(90deg, var(--cb-950) 0%, var(--cb-900) 100%);
  color: var(--cb-300); font-size: var(--fs-xs);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
}
footer a { color: var(--cb-200); }

/* ---------- Page header ---------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding-bottom: 9px; margin-bottom: 14px;
}
.page-head h2 { font-size: var(--fs-xl); color: var(--ink-strong); font-weight: 700; letter-spacing: -0.5px; }
.page-head h2 .sub { font-size: var(--fs-sm); color: var(--ink-muted); font-weight: 400; margin-left: 10px; }
.breadcrumb { font-size: var(--fs-xs); color: var(--ink-muted); }
.breadcrumb b { color: var(--cb-800); }

/* ---------- Box / panel ---------- */
.box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(15, 38, 87, 0.04);
}
.box-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  background: var(--grad-box-h);
}
.box-h h3 {
  font-size: var(--fs-md); color: var(--ink-strong); font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.box-h h3::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cb-500), var(--cb-800));
  display: inline-block;
}
.box-h .more { font-size: var(--fs-xs); color: var(--cb-700); font-weight: 700; }
.box-b { padding: 12px 14px; font-size: var(--fs-base); }
.box-b.np { padding: 0; }

.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: 1fr 1fr 1fr; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.g-3-2 { grid-template-columns: 3fr 2fr; }
.grid > .box { margin-bottom: 0; }
.mb12 { margin-bottom: 12px; }

/* ---------- Search box (조회조건) ---------- */
.search-box {
  background: linear-gradient(180deg, #f6f9ff 0%, #edf3fe 100%);
  border: 1px solid var(--cb-200);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin-bottom: 12px;
}
.search-box label { font-weight: 700; color: var(--cb-900); margin-right: 6px; font-size: var(--fs-sm); }
.search-box .fld { display: flex; align-items: center; }
.search-box .btns { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
select, input[type=text], input[type=number], input[type=date], textarea {
  border: 1px solid var(--cb-200); padding: 4px 8px; border-radius: 3px;
  background: #fff; height: 28px; font-size: var(--fs-sm);
}
select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--cb-500);
  box-shadow: 0 0 0 2px rgba(43, 107, 228, 0.15);
}
textarea { height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 28px; padding: 0 12px;
  border: 1px solid var(--cb-200);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: var(--cb-900); border-radius: 3px;
  font-size: var(--fs-sm); font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: all 0.15s;
}
.btn:hover { background: var(--cb-100); border-color: var(--cb-400); text-decoration: none; }
.btn-primary {
  background: var(--grad-btn);
  border-color: var(--cb-800);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 45, 105, 0.2);
}
.btn-primary:hover { background: var(--grad-btn-hv); color: #fff; border-color: var(--cb-900); }
.btn-dark {
  background: linear-gradient(180deg, var(--cb-850) 0%, var(--cb-950) 100%);
  border-color: var(--cb-950); color: #fff;
}
.btn-dark:hover { background: var(--cb-800); color: #fff; }
.btn-red {
  background: linear-gradient(180deg, #e03e42 0%, #b92529 100%);
  border-color: #9e1c20; color: #fff;
}
.btn-red:hover { background: #a82024; color: #fff; }
.btn-green {
  background: linear-gradient(180deg, #229960 0%, #17794a 100%);
  border-color: #12613b; color: #fff;
}
.btn-yellow {
  background: linear-gradient(180deg, #3b7bf6 0%, #194eb8 100%);
  border-color: #123b91; color: #fff; font-weight: 700;
  box-shadow: 0 1px 3px rgba(23, 70, 162, 0.3);
}
.btn-yellow:hover { background: linear-gradient(180deg, #2b6be4 0%, #123b91 100%); color: #fff; }
.btn-lg { height: 34px; padding: 0 16px; font-size: var(--fs-base); font-weight: 700; }
.btn-sm { height: 24px; padding: 0 9px; font-size: var(--fs-xs); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; border-top: 2px solid var(--cb-700); font-size: var(--fs-sm); }
.tbl th {
  background: linear-gradient(180deg, #eff5ff 0%, #e4edfd 100%);
  color: var(--cb-900); font-weight: 700; font-size: var(--fs-sm);
  padding: 7px 8px; border: 1px solid var(--cb-150); border-top: 0; white-space: nowrap;
}
.tbl td {
  padding: 6px 8px; border: 1px solid var(--border-light);
  text-align: center; vertical-align: middle; font-size: var(--fs-sm);
}
.tbl td.l, .tbl th.l { text-align: left; }
.tbl td.r { text-align: right; }
.tbl tbody tr:hover { background: var(--cb-50); }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.sel { background: #e6effe !important; }
.tbl.form th { width: 125px; text-align: left; padding-left: 10px; }
.tbl.form td { text-align: left; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.empty { padding: 30px; text-align: center; color: var(--ink-muted); font-size: var(--fs-base); }

/* ---------- Badges / status ---------- */
.bd {
  display: inline-block; padding: 1px 8px; border-radius: 3px;
  font-size: var(--fs-xs); font-weight: 700; border: 1px solid;
  white-space: nowrap; line-height: 17px;
}
.bd-green  { color: #0f6e43; border-color: #98dbb9; background: #eafaf2; }
.bd-yellow { color: #9a5b00; border-color: #f3ce85; background: #fff7e6; }
.bd-red    { color: #b82126; border-color: #f2adb0; background: #fdf0f0; }
.bd-blue   { color: var(--cb-700); border-color: var(--cb-300); background: var(--cb-100); }
.bd-gray   { color: #526075; border-color: #c8d2e1; background: #f2f5f9; }
.bd-navy   { color: #fff; border-color: var(--cb-800); background: var(--grad-btn); }
.bd-purple { color: #133c8b; border-color: #9abaf9; background: #e8f0fe; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.dot.green { background: #1ea362; } .dot.yellow { background: #e89f17; } .dot.red { background: #d9363e; } .dot.gray { background: #a8b5c8; } .dot.blue { background: var(--cb-500); }

.src { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--ink-muted); white-space: nowrap; }
.src i {
  font-style: normal; display: inline-flex; width: 16px; height: 16px; border-radius: 3px;
  align-items: center; justify-content: center; font-size: 10px; color: #fff; font-weight: 700;
}
.src .s-mtg { background: #2b6be4; }
.src .s-wk  { background: #1746a2; }
.src .s-scm { background: #198754; }
.src .s-pl  { background: #3b7bf6; }
.src .s-pm  { background: #0b214d; }

.c-red { color: #c82d32; } .c-green { color: #157a48; } .c-blue { color: var(--cb-700); } .c-gray { color: var(--ink-muted); } .c-yellow { color: #a86400; }
.b { font-weight: 700; }
.small { font-size: var(--fs-xs); }
.muted { color: var(--ink-muted); }
.nowrap { white-space: nowrap; }

/* ---------- Progress bars ---------- */
.pbar { position: relative; height: 13px; background: #e5ecf7; border-radius: 3px; overflow: hidden; min-width: 64px; }
.pbar .plan {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(45deg, #c1d4f6, #c1d4f6 3px, #d7e5fc 3px, #d7e5fc 6px);
}
.pbar .act {
  position: absolute; top: 3px; bottom: 3px; left: 0;
  background: var(--grad-bar); border-radius: 2px;
}
.pbar .act.red { background: linear-gradient(90deg, #c82d32, #e85358); }
.pbar .act.yellow { background: linear-gradient(90deg, #d4820a, #f2a93b); }
.pbar .act.green { background: linear-gradient(90deg, #167d4b, #28a869); }
.pbar-lbl { display: flex; align-items: center; gap: 6px; }
.pbar-lbl .pbar { flex: 1; }

/* ---------- KPI cards ---------- */
.kpi {
  display: flex; flex-direction: column; gap: 4px;
  padding: 13px 15px; border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.kpi .k-t { font-size: var(--fs-sm); color: var(--ink-muted); font-weight: 700; }
.kpi .k-v { font-size: var(--fs-kpi); font-weight: 700; color: var(--cb-800); letter-spacing: -0.8px; }
.kpi .k-v small { font-size: var(--fs-sm); font-weight: 400; color: var(--ink-muted); letter-spacing: 0; margin-left: 3px; }
.kpi .k-s { font-size: var(--fs-xs); color: var(--ink-muted); }
.kpi-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid var(--border); border-top: 2px solid var(--cb-600);
  border-radius: 4px; overflow: hidden; background: #fff; margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(23, 70, 162, 0.05);
}
.kpi-row .kpi { border: 0; border-right: 1px solid var(--border-light); }
.kpi-row .kpi:last-child { border-right: 0; }

/* ---------- Tabs ---------- */
.tabs { display: flex; border-bottom: 2px solid var(--cb-700); margin-bottom: 12px; gap: 3px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 18px;
  background: linear-gradient(180deg, #f2f6fd 0%, #e5eefc 100%);
  border: 1px solid var(--cb-200); border-bottom: 0;
  color: var(--cb-900); font-size: var(--fs-base); font-weight: 700;
  text-decoration: none; border-radius: 4px 4px 0 0;
}
.tabs a.on {
  background: var(--grad-btn);
  color: #fff; border-color: var(--cb-800);
}
.tabs a .cnt {
  display: inline-block; background: var(--cb-900); color: #fff;
  border-radius: 9px; font-size: var(--fs-xs); padding: 0 6px; margin-left: 4px;
}

/* ---------- Project banner / journey ---------- */
.banner {
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  margin-bottom: 12px; display: grid; grid-template-columns: 310px 1fr 175px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(23, 70, 162, 0.06);
}
.banner .b-info {
  padding: 15px 18px; border-right: 1px solid var(--border-light);
  background: var(--grad-banner);
}
.banner .b-info h1 { font-size: var(--fs-lg); color: var(--cb-900); line-height: 1.4; font-weight: 700; }
.banner .b-info .meta { font-size: var(--fs-xs); color: #3b4d68; margin-top: 8px; line-height: 1.75; }
.banner .b-dday {
  border-left: 1px solid var(--border-light);
  background: linear-gradient(135deg, #0d285e 0%, #1746a2 65%, #2b6be4 100%);
  color: #fff; text-align: center; padding: 14px 12px;
  display: flex; flex-direction: column; justify-content: center;
}
.banner .b-dday .dd { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.banner .b-dday .ddt { font-size: var(--fs-xs); color: var(--cb-200); }

.journey { display: flex; align-items: stretch; padding: 18px 14px 12px; gap: 0; }
.journey .st { flex: 1; position: relative; text-align: center; cursor: pointer; padding: 0 2px; }
.journey .st .ln { position: absolute; top: 16px; left: 50%; right: -50%; height: 4px; background: var(--cb-150); z-index: 0; }
.journey .st:last-child .ln { display: none; }
.journey .st.done .ln { background: var(--cb-600); }
.journey .st.cur .ln { background: linear-gradient(90deg, var(--cb-600) var(--p, 50%), var(--cb-150) var(--p, 50%)); }
.journey .st .cir {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; margin: 0 auto;
  background: #fff; border: 3px solid var(--cb-200); color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm);
}
.journey .st.done .cir { background: var(--grad-btn); border-color: var(--cb-700); color: #fff; }
.journey .st.cur .cir {
  background: linear-gradient(135deg, #3b7bf6 0%, #1746a2 100%);
  border-color: #0d2b6b; color: #fff;
  box-shadow: 0 0 0 5px rgba(43, 107, 228, 0.22);
}
.journey .st .nm { margin-top: 6px; font-weight: 700; font-size: var(--fs-base); color: var(--ink-strong); }
.journey .st.cur .nm { color: var(--cb-600); }
.journey .st .dt { font-size: var(--fs-xs); color: var(--ink-muted); }
.journey .st .pc { font-size: var(--fs-xs); color: var(--cb-700); font-weight: 700; }
.journey .st .here {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--cb-600); color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 3px; white-space: nowrap; z-index: 2;
}
.journey .st.sel .nm { text-decoration: underline; color: var(--cb-600); }

/* ---------- Today guide ---------- */
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li {
  display: grid; grid-template-columns: 56px 22px 1fr auto; align-items: center;
  gap: 8px; padding: 9px 4px; border-bottom: 1px dashed var(--border-light);
}
.guide-list li:last-child { border-bottom: 0; }
.guide-list .tm { font-size: var(--fs-xs); color: var(--cb-800); font-weight: 700; }
.guide-list .ck {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--cb-200);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff;
}
.guide-list li.done .ck { background: #1ea362; border-color: #1ea362; }
.guide-list li.now .ck { border-color: var(--cb-700); background: var(--cb-500); }
.guide-list li.done .tt { color: var(--ink-muted); text-decoration: line-through; }
.guide-list .tt b { color: var(--ink-strong); font-size: var(--fs-base); }
.guide-list .tt .ds { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 2px; }
.guide-hello {
  background: linear-gradient(90deg, var(--cb-100) 0%, var(--cb-50) 100%);
  border: 1px solid var(--cb-200); border-left: 4px solid var(--cb-600);
  padding: 9px 12px; margin-bottom: 8px; font-size: var(--fs-sm); color: var(--cb-900);
}

/* ---------- Rhythm strip ---------- */
.rhythm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.rhythm .rc { padding: 14px 16px; border-right: 1px solid var(--border-light); position: relative; }
.rhythm .rc:last-child { border-right: 0; }
.rhythm .rc:not(:last-child)::after {
  content: "▶"; position: absolute; right: -8px; top: 42%;
  color: var(--cb-500); font-size: 14px; background: #fff; z-index: 1;
}
.rhythm .rc h4 { font-size: var(--fs-sm); color: var(--cb-600); margin-bottom: 3px; font-weight: 700; }
.rhythm .rc .big { font-size: var(--fs-md); font-weight: 700; color: var(--ink-strong); margin-bottom: 6px; }
.rhythm .rc ul { margin: 0; padding-left: 16px; font-size: var(--fs-sm); color: #3b4d68; line-height: 1.75; }

/* ---------- Board ---------- */
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--border-light); font-size: var(--fs-sm); }
.board li:last-child { border-bottom: 0; }
.board li .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li .d { color: var(--ink-muted); font-size: var(--fs-xs); white-space: nowrap; }

/* ---------- Charts ---------- */
.chart svg { display: block; width: 100%; height: auto; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--ink-muted); justify-content: center; margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 12px; height: 8px; display: inline-block; border-radius: 1px; }

/* ---------- WBS grid ---------- */
.wbs-tbl td { padding: 5px 6px; }
.wbs-tbl td.nm { text-align: left; white-space: nowrap; }
.wbs-tbl .tg { display: inline-block; width: 14px; cursor: pointer; color: var(--cb-700); font-size: 10px; }
.wbs-tbl tr.lv1 { background: #e8f0fe; font-weight: 700; }
.wbs-tbl tr.lv1 td { border-top: 1px solid var(--cb-200); }
.wbs-tbl tr.lv2 { background: #f4f8ff; font-weight: 700; }
.wbs-tbl tr.cur-phase.lv1 { background: linear-gradient(90deg, #d8e7fd 0%, #eaf2fe 100%); }
.gantt-cell { position: relative; min-width: 360px; height: 22px; padding: 0 !important; }
.gantt-cell .gp { position: absolute; top: 4px; height: 6px; background: var(--cb-200); border-radius: 2px; }
.gantt-cell .ga { position: absolute; top: 11px; height: 6px; background: var(--grad-bar); border-radius: 2px; }
.gantt-cell .ga.red { background: #d9363e; } .gantt-cell .ga.yellow { background: #e9a21c; } .gantt-cell .ga.green { background: #1ea362; }
.gantt-cell .today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #d9363e; z-index: 1; }
.gantt-cell .mgrid { position: absolute; top: 0; bottom: 0; border-left: 1px dotted var(--border-light); }
.gantt-head { position: relative; height: 18px; font-size: var(--fs-xs); color: var(--cb-900); font-weight: 700; }
.gantt-head span { position: absolute; top: 2px; transform: translateX(2px); }

/* ---------- Drawer / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(7, 21, 51, 0.5); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal {
  background: #fff; width: 760px; max-width: 94vw; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(7, 21, 51, 0.35);
  border-top: 4px solid var(--cb-600); border-radius: 4px;
}
.modal.wide { width: 980px; }
.modal-h {
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  background: var(--grad-box-h);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-h h3 { font-size: var(--fs-lg); color: var(--ink-strong); font-weight: 700; }
.modal-h .x { cursor: pointer; font-size: 20px; color: var(--ink-muted); border: 0; background: none; }
.modal-b { padding: 14px 16px; overflow: auto; font-size: var(--fs-base); }
.modal-f {
  padding: 10px 16px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: flex-end; gap: 6px; background: var(--cb-50);
}
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 540px; max-width: 95vw;
  background: #fff; z-index: 101;
  box-shadow: -6px 0 30px rgba(7, 21, 51, 0.25);
  display: flex; flex-direction: column; border-left: 4px solid var(--cb-600);
}

/* ---------- Toast ---------- */
#toast { position: fixed; bottom: 56px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 6px; align-items: center; }
#toast .t {
  background: var(--grad-header); color: #fff;
  padding: 10px 18px; border-radius: 4px;
  box-shadow: 0 4px 16px rgba(7, 21, 51, 0.35);
  font-size: var(--fs-base); font-weight: 700; animation: tin .25s;
}
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Notice / info ---------- */
.info {
  background: linear-gradient(90deg, #edf4ff 0%, #f5f9ff 100%);
  border: 1px solid var(--cb-200); border-left: 4px solid var(--cb-600);
  color: var(--cb-900); padding: 10px 14px; font-size: var(--fs-sm);
  margin-bottom: 12px; line-height: 1.65; border-radius: 3px;
}
.info.warn { background: #fff8e8; border-color: #f0d08a; border-left-color: #e09a14; color: #6b4d00; }

.steps3 { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; margin-bottom: 12px; }
.steps3 .s { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.steps3 .s .n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-btn); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-md); flex-shrink: 0;
}
.steps3 .s.hl { border-color: var(--cb-400); background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%); }
.steps3 .s.hl .n { background: linear-gradient(135deg, #3b7bf6 0%, #143985 100%); color: #fff; }
.steps3 .s .tt { font-weight: 700; color: var(--ink-strong); font-size: var(--fs-base); }
.steps3 .s .ds { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 2px; }
.steps3 .s .cnt { margin-left: auto; font-size: 22px; font-weight: 700; color: var(--cb-600); }
.steps3 .ar { text-align: center; color: var(--cb-500); font-size: 18px; }

/* ---------- Meeting room ---------- */
.mtg-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--grad-mtg); color: #fff;
  padding: 10px 16px; margin-bottom: 12px; border-radius: 4px;
  box-shadow: 0 3px 10px rgba(9, 29, 69, 0.18);
}
.mtg-bar .rec { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-base); }
.mtg-bar .rec .rdot { width: 12px; height: 12px; border-radius: 50%; background: #ff4d4f; animation: blink 1s infinite; }
.mtg-bar .rec.off .rdot { background: var(--cb-300); animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.mtg-bar .timer { font-family: var(--font-mono); font-size: 18px; font-weight: 700; }
.mtg-bar .wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.mtg-bar .wave i { width: 3px; background: var(--cb-300); border-radius: 1px; height: 4px; transition: height .1s; }
.mtg-bar .sp { flex: 1; }
.mtg-bar .mode { font-size: var(--fs-xs); background: rgba(255,255,255,0.16); padding: 3px 10px; border-radius: 12px; color: #e6effe; }

.turns { display: flex; gap: 6px; flex-wrap: wrap; }
.turns .tn {
  border: 1px solid var(--cb-200); background: #fff;
  padding: 6px 12px; border-radius: 4px; font-size: var(--fs-sm);
  cursor: pointer; display: flex; flex-direction: column; min-width: 96px;
}
.turns .tn small { color: var(--ink-muted); font-size: var(--fs-xs); }
.turns .tn.done { background: var(--cb-50); color: var(--ink-muted); }
.turns .tn.on {
  border-color: var(--cb-500);
  background: linear-gradient(135deg, #e6effe 0%, #f5f9ff 100%);
  box-shadow: 0 0 0 2px rgba(43, 107, 228, 0.28);
  font-weight: 700; color: var(--cb-900);
}

.transcript { height: 430px; overflow-y: auto; padding: 10px 12px; background: #fbfdff; }
.transcript .u { display: grid; grid-template-columns: 48px 86px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--border-light); font-size: var(--fs-base); line-height: 1.55; }
.transcript .u .ts { color: var(--ink-muted); font-family: var(--font-mono); font-size: var(--fs-xs); padding-top: 2px; }
.transcript .u .who { font-weight: 700; color: var(--cb-700); }
.transcript .u.interim .tx { color: var(--ink-muted); font-style: italic; }
.transcript .u mark { background: var(--cb-100); color: var(--cb-900); font-weight: 700; padding: 0 4px; border-radius: 2px; }
.transcript .u .sl { font-size: var(--fs-xs); color: var(--cb-600); font-weight: 700; display: block; }

.extract-list { max-height: 470px; overflow-y: auto; }
.ex {
  border: 1px solid var(--border-light); border-left: 4px solid var(--cb-400);
  padding: 8px 10px; margin: 0 0 7px; font-size: var(--fs-sm);
  background: #fff; border-radius: 3px; animation: tin .3s;
}
.ex .eh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.ex .q { color: var(--ink-muted); font-size: var(--fs-xs); margin-top: 3px; }
.ex.progress { border-left-color: var(--cb-600); }
.ex.action   { border-left-color: #3b7bf6; }
.ex.issue    { border-left-color: #d9363e; }
.ex.risk     { border-left-color: #143985; }
.ex.decision { border-left-color: #1ea362; }

.agenda-sec h5 { font-size: var(--fs-sm); color: var(--cb-800); margin: 10px 0 4px; padding-bottom: 3px; border-bottom: 1px solid var(--border-light); font-weight: 700; }
.agenda-sec h5:first-child { margin-top: 0; }
.agenda-sec ul { margin: 0; padding-left: 16px; font-size: var(--fs-sm); line-height: 1.8; }

.proc-steps { list-style: none; padding: 0; margin: 10px 0; font-size: var(--fs-base); }
.proc-steps li { padding: 6px 0; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; }
.proc-steps li.ok { color: #157a48; font-weight: 700; }
.proc-steps li.run { color: var(--cb-700); font-weight: 700; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--cb-200); border-top-color: var(--cb-600); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Presentation (주간보고 슬라이드) ---------- */
.pres { position: fixed; inset: 0; z-index: 200; background: #0b1936; display: grid; grid-template-rows: 48px 1fr 44px; color: #fff; }
.pres-top { display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--cb-950); border-bottom: 1px solid #040d21; }
.pres-top .ttl { font-weight: 700; font-size: var(--fs-md); }
.pres-top .sp { flex: 1; }
.pres-mid { display: grid; grid-template-columns: 174px 1fr auto; min-height: 0; }
.pres-thumbs { overflow-y: auto; background: #08142c; padding: 10px; border-right: 1px solid #040d21; }
.pres-thumbs .th { margin-bottom: 10px; cursor: pointer; }
.pres-thumbs .th .tf { width: 148px; height: 83px; overflow: hidden; background: #fff; border: 2px solid transparent; position: relative; border-radius: 2px; }
.pres-thumbs .th.on .tf { border-color: var(--cb-400); box-shadow: 0 0 0 2px rgba(85,140,242,0.4); }
.pres-thumbs .th .tf > .slide { transform: scale(0.1125); transform-origin: 0 0; position: absolute; top: 0; left: 0; pointer-events: none; }
.pres-thumbs .th .tn { font-size: var(--fs-xs); color: var(--cb-200); margin-top: 3px; }
.pres-stage { display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.pres-stage .holder { position: relative; box-shadow: 0 10px 44px rgba(0,0,0,.6); }
.pres-stage .holder > .slide { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.pres-side { width: 340px; background: #f5f8fe; color: var(--ink); border-left: 1px solid #040d21; display: flex; flex-direction: column; min-height: 0; }
.pres-side.hide { display: none; }
.pres-side .ph { padding: 8px 10px; background: var(--cb-100); color: var(--cb-900); font-weight: 700; font-size: var(--fs-sm); display: flex; justify-content: space-between; }
.pres-side .transcript { height: auto; flex: 1; }
.pres-side .transcript .u { grid-template-columns: 42px 1fr; font-size: var(--fs-sm); }
.pres-side .transcript .u .who { grid-column: 2; }
.pres-side .transcript .u .tx { grid-column: 2; }
.pres-bot { display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--cb-950); border-top: 1px solid #040d21; }
.pres-bot .pg { font-family: var(--font-mono); color: var(--cb-200); min-width: 70px; text-align: center; font-size: var(--fs-base); }
.pres .btn { background: var(--cb-850); color: #fff; border-color: var(--cb-700); }
.pres .btn:hover { background: var(--cb-700); }
.pres .btn-red { background: #c8373a; border-color: #a92b2e; }
.pres .btn-yellow { background: var(--grad-btn); color: #fff; border-color: var(--cb-400); }
.pres .recst { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.pres .recst .rdot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4f; animation: blink 1s infinite; }
.pres .caption { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: rgba(7, 21, 51, 0.85); border: 1px solid var(--cb-400); color: #fff; padding: 8px 18px; border-radius: 4px; font-size: 15px; max-width: 82%; text-align: center; }

/* Slide (1280 x 720 design canvas) */
.slide { width: 1280px; height: 720px; background: #fff; color: var(--ink); font-family: var(--font-main); position: relative; overflow: hidden; }
.slide .s-head { height: 78px; display: flex; align-items: flex-end; padding: 0 48px 12px; border-bottom: 4px solid var(--cb-700); position: relative; background: linear-gradient(90deg, #f4f8ff 0%, #ffffff 100%); }
.slide .s-head::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 240px; height: 4px; background: var(--cb-500); }
.slide .s-head .no { font-size: 30px; font-weight: 800; color: var(--cb-500); margin-right: 14px; }
.slide .s-head h2 { font-size: 28px; color: var(--cb-900); letter-spacing: -0.8px; font-weight: 700; }
.slide .s-head .r { margin-left: auto; font-size: var(--fs-md); color: var(--ink-muted); }
.slide .s-body { padding: 26px 48px; font-size: 17px; }
.slide .s-foot { position: absolute; bottom: 0; left: 0; right: 0; height: 34px; border-top: 1px solid var(--border-light); background: var(--cb-50); display: flex; align-items: center; justify-content: space-between; padding: 0 48px; font-size: var(--fs-sm); color: var(--ink-muted); }
.slide .tbl { font-size: 14px; }
.slide .tbl th { padding: 9px 8px; font-size: 14px; background: var(--cb-100); }
.slide .tbl td { padding: 8px 8px; font-size: 14px; }
.slide.cover { background: var(--grad-cover); color: #fff; }
.slide.cover .cv-band { position: absolute; left: 0; top: 0; bottom: 0; width: 18px; background: linear-gradient(180deg, #6096fd 0%, #2b6be4 100%); }
.slide.cover .cv-t { position: absolute; left: 110px; top: 210px; }
.slide.cover .cv-t .k { font-size: 20px; color: var(--cb-300); font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; }
.slide.cover .cv-t h1 { font-size: 48px; letter-spacing: -1.5px; line-height: 1.28; font-weight: 800; }
.slide.cover .cv-t .p { font-size: 21px; color: var(--cb-200); margin-top: 26px; }
.slide.cover .cv-b { position: absolute; left: 110px; bottom: 80px; font-size: 17px; color: var(--cb-200); line-height: 1.75; }
.slide .bigk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.slide .bigk .bk { border: 1px solid var(--cb-200); border-top: 4px solid var(--cb-600); background: var(--cb-50); padding: 14px 18px; border-radius: 4px; }
.slide .bigk .bk .t { font-size: 14px; color: var(--ink-muted); font-weight: 700; }
.slide .bigk .bk .v { font-size: 38px; font-weight: 800; color: var(--cb-800); letter-spacing: -1px; }
.slide .bigk .bk .v small { font-size: 15px; color: var(--ink-muted); font-weight: 400; }
.slide .two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.slide h4 { font-size: 17px; color: var(--cb-900); margin: 0 0 10px; padding-left: 10px; border-left: 5px solid var(--cb-500); font-weight: 700; }
.slide ul.blt { margin: 0; padding-left: 22px; line-height: 1.85; font-size: 16px; }
.slide .pbar { height: 18px; }
.slide .msg { background: var(--cb-100); border: 1px solid var(--cb-300); border-left: 5px solid var(--cb-600); padding: 12px 16px; font-size: 15px; color: var(--cb-900); margin-top: 16px; border-radius: 3px; }

/* ---------- Roadmap ---------- */
.focus-card { border: 1px solid var(--cb-200); border-top: 3px solid var(--cb-600); background: #fff; padding: 14px 16px; border-radius: 4px; }
.focus-card .ft { font-size: var(--fs-lg); font-weight: 700; color: var(--ink-strong); margin-bottom: 6px; line-height: 1.4; }
.chk { list-style: none; padding: 0; margin: 0; }
.chk li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dotted var(--border-light); font-size: var(--fs-sm); }
.chk li:last-child { border-bottom: 0; }
.chk .cb { width: 16px; height: 16px; border: 2px solid var(--cb-300); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; flex-shrink: 0; }
.chk li.on .cb { background: var(--cb-600); border-color: var(--cb-600); }
.tip { background: var(--cb-50); border-left: 4px solid var(--cb-600); padding: 10px 12px; font-size: var(--fs-sm); color: var(--cb-900); line-height: 1.6; margin-top: 8px; }
.flow { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; overflow-x: auto; padding: 6px 0; }
.flow .fb { border: 1px solid var(--cb-200); background: var(--cb-50); padding: 10px 12px; min-width: 132px; text-align: center; font-size: var(--fs-sm); border-radius: 4px; }
.flow .fb b { display: block; color: var(--cb-900); font-size: var(--fs-base); margin-bottom: 3px; }
.flow .fb.auto { background: linear-gradient(180deg, #e6effe 0%, #f3f7fe 100%); border-color: var(--cb-300); }
.flow .fb.man { background: #ffffff; border-color: var(--cb-400); }
.flow .fa { color: var(--cb-500); font-size: 18px; padding: 0 6px; }

/* ---------- Minutes doc ---------- */
.minutes-doc { background: #fff; border: 1px solid var(--border); padding: 26px 34px; border-radius: 4px; }
.minutes-doc h1 { text-align: center; font-size: 22px; letter-spacing: 6px; margin-bottom: 18px; color: var(--cb-900); }
.minutes-doc h4 { font-size: var(--fs-md); color: var(--cb-800); margin: 18px 0 8px; padding-left: 8px; border-left: 3px solid var(--cb-600); }
.minutes-doc .sum { line-height: 1.85; font-size: var(--fs-base); }
.minutes-doc .agenda { border: 1px solid var(--border-light); margin-bottom: 8px; border-radius: 3px; overflow: hidden; }
.minutes-doc .agenda .ah { background: var(--cb-100); padding: 6px 12px; font-weight: 700; color: var(--cb-900); font-size: var(--fs-sm); }
.minutes-doc .agenda ul { margin: 0; padding: 8px 12px 8px 26px; line-height: 1.8; font-size: var(--fs-sm); }
.stamp { display: inline-block; border: 2px solid var(--cb-600); color: var(--cb-600); padding: 2px 10px; font-weight: 700; transform: rotate(-6deg); font-size: var(--fs-sm); border-radius: 2px; }

/* ---------- Risk matrix ---------- */
.matrix { display: grid; grid-template-columns: 42px repeat(3, 1fr); grid-template-rows: repeat(3, 70px) 24px; gap: 4px; font-size: var(--fs-xs); }
.matrix .c { border-radius: 3px; padding: 5px; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.matrix .c.h { background: #fbd5d7; border: 1px solid #f2adb0; }
.matrix .c.m { background: #dbe8fd; border: 1px solid #b4cdfb; }
.matrix .c.l { background: #eef4fe; border: 1px solid #d5e3fc; }
.matrix .ax { display: flex; align-items: center; justify-content: center; color: var(--cb-900); font-weight: 700; }
.matrix .rk { background: #fff; border: 1px solid var(--cb-600); color: var(--cb-900); font-weight: 700; padding: 1px 5px; border-radius: 3px; cursor: pointer; }

/* misc */
.flex { display: flex; align-items: center; gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }
hr.sep { border: 0; border-top: 1px solid var(--border-light); margin: 10px 0; }
.form-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.form-row label { font-weight: 700; color: var(--cb-900); font-size: var(--fs-sm); }
.form-row input, .form-row select, .form-row textarea { width: 100%; }
.hist { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.hist li { padding: 7px 0; border-bottom: 1px dotted var(--border-light); }
.hist li .hm { color: var(--ink-muted); font-size: var(--fs-xs); }
.hist li .hq { color: var(--ink); background: var(--cb-50); padding: 5px 8px; margin-top: 3px; border-left: 3px solid var(--cb-500); font-size: var(--fs-xs); }
.pill-tabs { display: inline-flex; border: 1px solid var(--cb-300); border-radius: 3px; overflow: hidden; }
.pill-tabs a { padding: 3px 11px; font-size: var(--fs-xs); font-weight: 700; color: var(--cb-900); text-decoration: none; border-right: 1px solid var(--cb-200); background: #fff; }
.pill-tabs a:last-child { border-right: 0; }
.pill-tabs a.on { background: var(--grad-btn); color: #fff; }

/* =========================================================
   모바일 하단 네비게이션 및 모바일 모드 (반응형 + 토글 지원)
   ========================================================= */
#m-nav { display: none; }

@media (max-width: 960px) {
  body:not(.force-pc) {
    min-width: 0 !important;
  }
}

body.mobile-mode {
  min-width: 0 !important;
  padding-bottom: 62px;
}
body.mobile-mode.pc-preview {
  max-width: 430px;
  margin: 0 auto;
  border-left: 1px solid var(--cb-300);
  border-right: 1px solid var(--cb-300);
  box-shadow: 0 0 40px rgba(7, 21, 51, 0.22);
}
body.mobile-mode #header {
  height: auto;
  padding: 10px 12px;
  flex-wrap: wrap;
  gap: 8px;
}
body.mobile-mode #header .proj-select,
body.mobile-mode #header .hinfo > span:not(.user) {
  display: none;
}
body.mobile-mode #gnb {
  padding-left: 8px;
  overflow-x: auto;
  white-space: nowrap;
  height: 40px;
  -webkit-overflow-scrolling: touch;
}
body.mobile-mode #gnb a {
  padding: 0 13px;
  font-size: var(--fs-base);
  flex-shrink: 0;
}
body.mobile-mode #body {
  flex-direction: column;
}
body.mobile-mode #lnb {
  width: 100%;
  border-right: 0;
  border-bottom: 1px solid var(--border);
}
body.mobile-mode #lnb .lnb-title,
body.mobile-mode #lnb .lnb-box {
  display: none;
}
body.mobile-mode #lnb ul {
  display: flex;
  overflow-x: auto;
  padding: 6px 10px;
  gap: 6px;
}
body.mobile-mode #lnb li a {
  border-left: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: var(--fs-sm);
  background: var(--cb-50);
  border: 1px solid var(--cb-200);
  white-space: nowrap;
}
body.mobile-mode #lnb li a.on {
  background: var(--grad-btn);
  color: #fff;
  border-color: var(--cb-800);
}
body.mobile-mode #content {
  padding: 12px 10px 24px;
}
body.mobile-mode .page-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
body.mobile-mode .page-head h2 .sub {
  display: block;
  margin-left: 0;
  margin-top: 2px;
}
body.mobile-mode .banner {
  grid-template-columns: 1fr;
}
body.mobile-mode .banner .b-info {
  border-right: 0;
  border-bottom: 1px solid var(--border-light);
}
body.mobile-mode .banner .b-dday {
  border-left: 0;
  border-top: 1px solid var(--border-light);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
body.mobile-mode .banner .b-dday .dd { font-size: 22px; }
body.mobile-mode .journey {
  overflow-x: auto;
  padding: 16px 8px 10px;
}
body.mobile-mode .journey .st { min-width: 72px; }
body.mobile-mode .kpi-row {
  grid-template-columns: 1fr 1fr;
}
body.mobile-mode .kpi-row .kpi {
  border-bottom: 1px solid var(--border-light);
}
body.mobile-mode .kpi-row .kpi:first-child {
  grid-column: span 2;
}
body.mobile-mode .grid,
body.mobile-mode .g2,
body.mobile-mode .g3,
body.mobile-mode .g4,
body.mobile-mode .g-2-1,
body.mobile-mode .g-1-2,
body.mobile-mode .g-3-2 {
  grid-template-columns: 1fr !important;
}
body.mobile-mode .rhythm {
  grid-template-columns: 1fr;
}
body.mobile-mode .rhythm .rc {
  border-right: 0;
  border-bottom: 1px solid var(--border-light);
}
body.mobile-mode .rhythm .rc::after { display: none; }
body.mobile-mode .steps3 {
  grid-template-columns: 1fr;
  gap: 6px;
}
body.mobile-mode .steps3 .ar { display: none; }
body.mobile-mode .box-b { overflow-x: auto; }
body.mobile-mode .form-row { grid-template-columns: 1fr; gap: 4px; }
body.mobile-mode .minutes-doc { padding: 16px 14px; }
body.mobile-mode .drawer { width: 100vw; }
body.mobile-mode #m-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: var(--grad-header);
  border-top: 1px solid var(--cb-700);
  z-index: 150;
  box-shadow: 0 -3px 12px rgba(7, 21, 51, 0.25);
}
body.mobile-mode.pc-preview #m-nav {
  max-width: 430px;
  margin: 0 auto;
}
body.mobile-mode #m-nav a {
  color: var(--cb-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-decoration: none;
  gap: 2px;
}
body.mobile-mode #m-nav a .mi { font-size: 16px; line-height: 1; }
body.mobile-mode #m-nav a.on {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-top: 2px solid var(--cb-300);
}

@media print { #header, #gnb, #lnb, footer, #m-nav, .no-print { display: none !important; } #content { padding: 0; } body { background: #fff; min-width: 0; } }
