:root {
  color-scheme: light;
  --bg: #f1f1ef; --surface: #ffffff; --surface-2: #f0efec; --line: #d9d8d3;
  --text: #0b0b0b; --text-2: #3d3c39; --muted: #63625d;
  --accent: #2a78d6; --accent-ink: #ffffff;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
  --good: #0ca30c; --warn: #fab219; --crit: #d03b3b;
  --good-bg: #e6f5e6; --warn-bg: #fff3d6; --crit-bg: #fbe6e6;
  --good-ink: #006300; --warn-ink: #7a5200; --crit-ink: #a12424;
  --shadow: 0 1px 2px rgb(0 0 0 / .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110; --surface: #1a1a19; --surface-2: #262624; --line: #3b3b37;
    --text: #f5f4f1; --text-2: #d3d2c8; --muted: #a9a79e;
    --accent: #3987e5; --s1: #3987e5; --s2: #d95926; --s3: #199e70;
    --good-bg: #13301a; --warn-bg: #3a2e0e; --crit-bg: #3d1a1a;
    --good-ink: #7fd67f; --warn-ink: #f5c95c; --crit-ink: #f29b9b;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1a1a19; --surface-2: #262624; --line: #3b3b37;
  --text: #f5f4f1; --text-2: #d3d2c8; --muted: #a9a79e;
  --accent: #3987e5; --s1: #3987e5; --s2: #d95926; --s3: #199e70;
  --good-bg: #13301a; --warn-bg: #3a2e0e; --crit-bg: #3d1a1a;
  --good-ink: #7fd67f; --warn-ink: #f5c95c; --crit-ink: #f29b9b;
  --shadow: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
h1 { font-size: 24px; letter-spacing: -0.01em; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.mt { margin-top: 20px; }
.muted { color: var(--muted); }
.block { display: block; }
.grow { flex: 1; min-width: 0; }
.r { text-align: right; } .c { text-align: center; }
.warn-text { color: var(--crit-ink); }
small { font-size: 13px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 0 24px; height: 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-size: 15px; white-space: nowrap; }
.nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 6px; color: var(--text-2); white-space: nowrap; font-size: 15px; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--surface-2); color: var(--text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.banner { background: var(--warn-bg); color: var(--warn-ink); padding: 8px 24px; font-size: 13px; }
.banner a { text-decoration: underline; font-weight: 700; }

main { max-width: 1680px; margin: 0 auto; padding: 20px 28px 40px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
section { margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid2 > .panel { margin: 0; }
.sec { margin: 28px 0 12px; }
.more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--accent); }

.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
a.kpi:hover { border-color: var(--accent); }
.kpi > span { color: var(--text-2); font-size: 14px; font-weight: 700; }
.kpi > b { font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }

/* 단계 누적 막대: 세그먼트 사이 2px 간격, 끝 4px 라운드 */
.stack { display: flex; gap: 2px; height: 34px; }
.seg { display: flex; align-items: center; padding: 0 10px; min-width: 0; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.seg:first-child { border-radius: 4px 0 0 4px; } .seg:last-child { border-radius: 0 4px 4px 0; } .seg:only-child { border-radius: 4px; }
.seg.s1, .sw.s1 { background: var(--s1); } .seg.s2, .sw.s2 { background: var(--s2); } .seg.s3, .sw.s3 { background: var(--s3); }
.seg span { text-shadow: 0 0 2px rgb(0 0 0 / .35); }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.hbars { display: flex; flex-direction: column; gap: 6px; }
.hbar { display: grid; grid-template-columns: 70px 1fr 28px; align-items: center; gap: 8px; padding: 2px 0; cursor: default; }
.hbar:hover .fill { filter: brightness(1.1); }
.hl { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { height: 12px; }
.fill { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
.hv { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; color: var(--text); }

.row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
a.row:hover, .row a:hover b { color: var(--accent); }
.row small { display: block; color: var(--muted); font-size: 13px; }
.row.done { opacity: .55; }
.dd { display: inline-block; min-width: 54px; text-align: center; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); font-variant-numeric: tabular-nums; }
.dd.late { background: var(--crit-bg); color: var(--crit-ink); }
.dd.soon { background: var(--warn-bg); color: var(--warn-ink); }
.dd.near { background: var(--surface-2); color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.badge i { font-style: normal; font-size: 10px; }
.b-crit { background: var(--crit-bg); color: var(--crit-ink); } .b-crit i { color: var(--crit); }
.b-warn { background: var(--warn-bg); color: var(--warn-ink); } .b-warn i { color: var(--warn); }
.b-good { background: var(--good-bg); color: var(--good-ink); } .b-good i { color: var(--good); }
.b-none { background: var(--surface-2); color: var(--muted); font-weight: 400; }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.scard:hover { border-color: var(--accent); }
.sc-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.sc-meta { font-size: 12px; color: var(--muted); }
.sc-next { font-size: 13px; }

.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { width: 100%; resize: vertical; line-height: 1.6; }
.chk { display: flex; align-items: center; gap: 6px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { background: transparent; color: var(--crit-ink); border-color: var(--crit); }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
section + .actions, .grid2 + .actions { margin: -8px 0 20px; }
.inline { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.inline input[name="title"], .inline input[name="text"] { flex: 1; min-width: 200px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.panel .table-wrap { border-radius: 6px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 13px; color: var(--text-2); font-weight: 700; background: var(--surface-2); padding: 9px 12px; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr[data-id] { cursor: pointer; }
.tbl tbody tr[data-id]:hover { background: var(--surface-2); }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl.compact td, .tbl.compact th { padding: 6px 10px; }
.tbl tr.done td { color: var(--muted); text-decoration: line-through; }

.steps { list-style: none; display: flex; padding: 0; margin: 0 0 20px; overflow-x: auto; gap: 2px; }
.steps li { flex: 1; text-align: center; font-size: 12px; padding: 8px 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.steps li:first-child { border-radius: 6px 0 0 6px; } .steps li:last-child { border-radius: 0 6px 6px 0; }
.steps li.past { background: var(--surface); color: var(--text-2); border-bottom: 3px solid var(--s1); }
.steps li.cur { background: var(--s1); color: #fff; font-weight: 700; }

.info { display: grid; grid-template-columns: 110px 1fr 110px 1fr; gap: 8px 16px; margin: 0; }
.info dt { color: var(--muted); } .info dd { margin: 0; }
.form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.form .wide { grid-column: span 2; }
.form .actions { grid-column: 1 / -1; }

.issue { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.issue.closed { opacity: .6; }
.issue-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.issue-h select { padding: 3px 6px; font-size: 12px; }
.acts { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.acts li { margin: 2px 0; }

.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--s1); border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; }
.notice.warn { border-left-color: var(--warn); }
.notice a { text-decoration: underline; }

.report { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; overflow-x: auto; }
.rtitle { justify-content: center; font-size: 18px; margin-bottom: 16px; }
.rtbl { border-collapse: collapse; width: 100%; min-width: 1000px; font-size: 12px; }
.rtbl th, .rtbl td { border: 1px solid var(--line); padding: 8px; vertical-align: top; }
.rtbl thead th { background: var(--surface-2); text-align: center; }
.rtbl tbody th { background: var(--surface-2); width: 60px; vertical-align: middle; }
.rtbl td:nth-child(2) { width: 15%; } .rtbl td:nth-child(3) { width: 56px; white-space: nowrap; } .rtbl td:nth-child(4) { width: 22%; }

.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--text); color: var(--bg); padding: 6px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5; max-width: 240px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(3, 1fr); } .grid2 { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr 1fr; } .info { grid-template-columns: 90px 1fr; } }
@media (max-width: 640px) {
  main { padding: 16px; }
  .top { padding: 0 16px; gap: 10px; height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; flex-basis: 100%; }
  .banner { padding: 8px 16px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; } .form .wide { grid-column: auto; }
}
@media print {
  .top, .banner, .page-head .actions, .notice, .noprint, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  main { padding: 0; max-width: none; }
  .report { border: 0; padding: 0; }
  .rtbl { min-width: 0; font-size: 9px; }
  .rtbl th, .rtbl td { border-color: #999; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* 관리 4단계 — 순서가 있는 단계라 한 색(파랑)의 밝기 순서로 표현 */
:root { --p1: #86b6ef; --p2: #3987e5; --p3: #1c5cab; --p4: #0d366b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --p1: #b7d3f6; --p2: #6da7ec; --p3: #2a78d6; --p4: #184f95; } }
:root[data-theme="dark"] { --p1: #b7d3f6; --p2: #6da7ec; --p3: #2a78d6; --p4: #184f95; }
.seg.p1, .sw.p1 { background: var(--p1); } .seg.p2, .sw.p2 { background: var(--p2); }
.seg.p3, .sw.p3 { background: var(--p3); } .seg.p4, .sw.p4 { background: var(--p4); }
.sec .sw { width: 12px; height: 12px; }
.ph { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sc-kpi { font-size: 12px; font-weight: 700; color: var(--text-2); }
.form .sub { font-size: 13px; font-weight: 700; color: var(--text); border-top: 1px solid var(--line); padding-top: 10px; }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--muted); }
.phase.cur { border: 2px solid var(--p3); color: var(--text); }
.phase.past { color: var(--text-2); }
.ph-h { display: flex; flex-direction: column; margin-bottom: 6px; }
.ph-h small { font-size: 11px; }
.phase ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.phase li { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); }
.phase li.past { color: var(--text-2); }
.phase li.past::before { content: '✓ '; }
.phase li.cur { background: var(--p3); color: #fff; font-weight: 700; }
@media (max-width: 1000px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .phases { grid-template-columns: 1fr; } }

/* ── 베스트 관리 도구 ── */
.small { font-size: 13px; }
.btn.sm { padding: 3px 10px; font-size: 12px; }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.rank { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.mini-kpis { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.mini-kpis a { color: var(--accent); margin-left: auto; }
.meter { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 4px 0 10px; }
.meter-fill { display: block; height: 100%; border-radius: 99px; }
.meter-fill.g-양호 { background: var(--good); } .meter-fill.g-주의 { background: var(--warn); } .meter-fill.g-위험 { background: var(--crit); }
.meter-fill.g-gate { background: var(--p3); }
.reasons { margin: 0; padding-left: 0; list-style: none; font-size: 13px; }
.reasons li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.reasons li b { display: inline-block; min-width: 32px; color: var(--crit-ink); font-variant-numeric: tabular-nums; }
.sig { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sig.reg { opacity: .6; }
.gate { list-style: none; margin: 0; padding: 0; }
.gate li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.gate li label { display: flex; gap: 8px; align-items: center; }
.gate li.ok label { color: var(--text-2); }
.log { margin: 0; padding-left: 18px; font-size: 13px; max-height: 260px; overflow: auto; }
.log li { margin: 3px 0; }
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards.wide .more { display: block; margin-top: 10px; font-size: 12px; }
.mtg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.mtg { display: flex; flex-direction: column; gap: 8px; }
.mtg a { text-decoration: underline; }

/* 포트폴리오 매트릭스 (단일 계열 산점도) */
.matrix { width: 100%; height: auto; display: block; }
.matrix .gl { stroke: var(--line); stroke-width: 1; }
.matrix .ql { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 4 4; }
.matrix .q-focus { fill: var(--crit-bg); opacity: .6; }
.matrix .ax { fill: var(--muted); font-size: 11px; }
.matrix .qn { fill: var(--text-2); font-size: 11px; font-weight: 700; }
.matrix .dl { fill: var(--text); font-size: 11px; font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.matrix .dot { fill: var(--s1); stroke: var(--surface); stroke-width: 2; }
.matrix .dot.focus { fill: var(--crit); }
.matrix .hit { fill: transparent; cursor: pointer; }
.matrix a:hover .dot { r: 8; }
@media (max-width: 1000px) { .kpis.k4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mtg-grid { grid-template-columns: 1fr; } }


/* ── 가독성·한눈에 보기 ── */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.h-sub { font-size: 14px; font-weight: 400; }
.cnt { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 700; text-align: center; }
.unit { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.kpis.k6 { grid-template-columns: repeat(6, 1fr); margin-bottom: 16px; }
.kpi small b { color: var(--text); }
.stack.mini { height: 8px; margin: 4px 0 2px; }
.stack.mini .seg { padding: 0; }
.lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }

/* 대시보드: 현황판(왼쪽) + 우선순위·일정(오른쪽) */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; margin-bottom: 16px; }
.dash > .panel, .side > .panel, .dash3 > .panel { margin: 0; }
.side { display: flex; flex-direction: column; gap: 16px; }
.dash3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.scroll { max-height: 340px; overflow: auto; margin-right: -6px; padding-right: 6px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bcol { background: var(--surface-2); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bcol-h { padding: 2px 4px 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.bcol-h > div:first-child { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.bcol-h .cnt { margin-left: auto; background: var(--surface); }
.bcol-h small { display: block; }
.bsum { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 4px; min-height: 22px; font-size: 13px; }
.bcol-b { display: flex; flex-direction: column; gap: 6px; }
.tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--good); border-radius: 6px; padding: 7px 8px; min-height: 52px; }
.tile:hover { border-color: var(--accent); border-left-color: inherit; box-shadow: 0 2px 6px rgb(0 0 0 / .08); }
.tile.g-주의 { border-left-color: var(--warn); } .tile.g-위험 { border-left-color: var(--crit); background: var(--crit-bg); }
.tile.g-양호 { border-left-color: var(--good); }
.t-main { min-width: 0; display: flex; flex-direction: column; }
.t-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-main small { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.t-side .dd { min-width: 48px; font-size: 11.5px; padding: 1px 5px; }
.badge.score { font-size: 13px; padding: 1px 7px; font-variant-numeric: tabular-nums; }

/* 사진(아바타) */
.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; vertical-align: middle; border: 1px solid var(--line); background: var(--surface-2); }
.av.ini { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-2); letter-spacing: -0.02em; }
.who { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.me { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.me:hover { border-color: var(--accent); }
.me span { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; color: var(--muted); }
.me b { font-size: 14px; color: var(--text); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.person .link { font-size: 13px; }
.mgr-h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.mgr-n { font-size: 17px; }
code { background: var(--surface-2); padding: 0 5px; border-radius: 4px; font-size: 13px; }

/* 전체화면(상황판) */
:fullscreen body, body:fullscreen { overflow: auto; }
:fullscreen .banner { display: none; }

@media (max-width: 1400px) { .kpis.k6 { grid-template-columns: repeat(3, 1fr); } .dash { grid-template-columns: 1fr; } .side { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash3 { grid-template-columns: 1fr; } .me span { display: none; } }
@media (max-width: 640px) { .board, .side { grid-template-columns: 1fr; } .kpis.k6 { grid-template-columns: 1fr 1fr; } main { padding: 16px; } }

/* 좁은 화면: 그리드 칸이 내용 폭 때문에 늘어나지 않게 */
.grid2 > *, .kpis > *, .dash > *, .dash3 > *, .side > *, .board > * { min-width: 0; }
input[type="file"] { max-width: 100%; }
