:root {
  color-scheme: light;
  --page: #f1f5f8; --surface: #fff; --surface-2: #f6f9fb; --ink: #0f2233; --ink-2: #47596b; --muted: #6d7d8c;
  --line: #e2e9ef; --line-2: #c5d1db;
  --navy: #0e2a44; --navy-2: #103c55; --teal: #14877f; --teal-2: #2bb5a6;
  --accent: #2a78d6; --accent-dark: #1c5cab; --accent-wash: #e8f1fc;
  --series-2: #eb6834;
  --good: #0ca30c; --good-ink: #006300; --warn: #fab219; --serious: #ec835a; --crit: #d03b3b; --none: #898781;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 42, 68, .05), 0 6px 20px rgba(14, 42, 68, .06);
  font-family: Pretendard, "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
a { color: var(--accent-dark); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 전체 구조 */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; color: #dbe7f0; background: linear-gradient(170deg, var(--navy) 0%, var(--navy-2) 58%, #0f5560 100%); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 12px; }
.side-brand b { display: block; color: #fff; font-size: 14px; line-height: 1.25; }
.side-brand small { color: #9fb8ca; font-size: 12px; }
.logo { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--teal-2)); }
.side-label { margin: 10px 8px 4px; font-size: 11.5px; font-weight: 700; color: #89a4b8; }
.level-switch { display: flex; flex-direction: column; gap: 3px; }
.level-switch button { text-align: left; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 6px 10px; cursor: pointer; color: #cfdde8; }
.level-switch button b { display: block; font-size: 13.5px; }
.level-switch button small { color: #9fb8ca; font-size: 11.5px; }
.level-switch button:hover { background: rgba(255, 255, 255, .07); }
.level-switch button.on { background: rgba(43, 181, 166, .2); border-color: rgba(43, 181, 166, .55); color: #fff; }
.level-switch button.on small { color: #bfe6e0; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: #cfdde8; font-weight: 600; text-align: left; white-space: nowrap; }
.side-nav button svg { flex: none; opacity: .85; }
.side-nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.side-nav button.on svg { color: var(--teal); opacity: 1; }
.side-foot { margin-top: auto; padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 4px 6px; }
.side-user b { display: block; color: #fff; font-size: 13.5px; }
.side-user small { color: #9fb8ca; font-size: 12px; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--navy); background: linear-gradient(135deg, #bfe6e0, #cde2fb); }
.side-actions { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 6px; font-size: 12.5px; }
.side-actions a, .side-actions button { border: 0; background: none; padding: 0; color: #a9c1d2; cursor: pointer; text-decoration: none; }
.side-actions a:hover, .side-actions button:hover { color: #fff; text-decoration: underline; }
.body { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tb-left { min-width: 0; flex: 1 1 280px; }
.tb-left h1 { font-size: 19px; font-weight: 700; }
.tb-project { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.year-pill { display: flex; flex-direction: column; line-height: 1.25; padding: 5px 14px; border-radius: 10px; color: #fff; background: linear-gradient(120deg, var(--accent-dark), var(--teal)); }
.year-pill b { font-size: 13.5px; }
.year-pill span { font-size: 11.5px; opacity: .92; }
.clock { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.clock-icon { color: var(--teal); display: flex; }
.clock b { display: block; font-size: 15px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.clock small { color: var(--ink-2); font-size: 11.5px; white-space: nowrap; }
main { padding: 18px 24px 48px; width: 100%; max-width: 1560px; margin: 0 auto; }
.levels { display: inline-flex; background: #e6edf2; border-radius: 9px; padding: 3px; gap: 2px; }
.levels button { border: 0; background: transparent; padding: 4px 13px; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.levels button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 42, 68, .18); }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 5px 12px; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: linear-gradient(120deg, var(--accent-dark), #1a7a8c); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--crit); border-color: var(--crit); color: #fff; }
.btn.sm { padding: 2px 9px; font-size: 13px; }
.btn.icon { padding: 3px 11px; font-size: 18px; line-height: 1.2; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--page); }
.linkish { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: inherit; font-weight: inherit; }
.linkish:hover { color: var(--accent-dark); text-decoration: underline; }
input[type=text], input[type=search], input[type=date], input[type=time], input[type=number], input[type=password], select, textarea { border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 8px; background: var(--surface); min-width: 0; }
textarea { width: 100%; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--ink-2); }
label.field { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.field > input, label.field > select, label.field > textarea { font-weight: 400; color: var(--ink); width: 100%; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters .grow { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 카드·레이아웃 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card > h2 { margin-bottom: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 14px; }
.grid-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.tile.tint { background: linear-gradient(135deg, #eaf3fc, #e6f6f3); border-color: transparent; box-shadow: none; padding: 10px 12px; }
.tile.tint .value { font-size: 20px; color: var(--navy); }
.tile .label { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.tile .value { font-size: 26px; font-weight: 700; line-height: 1.25; }
.tile .sub { color: var(--muted); font-size: 12px; }
button.tile { text-align: left; cursor: pointer; font: inherit; }
button.tile:hover { border-color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap, td.nowrap { white-space: nowrap; }
.empty { color: var(--muted); padding: 14px 4px; }
.hint { color: var(--ink-2); font-size: 13px; background: #eef5fb; border-radius: 10px; padding: 8px 12px; }
.good-ink { color: var(--good-ink); }
.warn-ink { color: #a2500f; }

/* 과제 배너 */
.hero-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 8px; color: #fff; border-radius: 18px; padding: 22px 26px; overflow: hidden; background: radial-gradient(900px 300px at 85% -40%, rgba(43, 181, 166, .55), transparent 70%), linear-gradient(115deg, var(--navy) 0%, #124a7d 55%, #14877f 110%); box-shadow: var(--shadow); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #8fe0d4; }
.hero-banner h2 { font-size: 24px; margin: 4px 0 6px; }
.hero-banner p { margin: 0 0 10px; color: #d7e6f0; font-size: 13.5px; max-width: 760px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: #cfe0ec; }
.hero-meta b { color: #fff; }
.hero-art { align-self: center; justify-self: end; width: 290px; max-height: 250px; object-fit: contain; object-position: center; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); margin: -12px -8px -16px 0; }
.timeline { margin-top: 14px; }
.tl-years { display: flex; gap: 3px; }
.tl-year { min-width: 0; padding: 5px 8px; border-radius: 8px 8px 0 0; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tl-year b { display: block; font-size: 12.5px; white-space: nowrap; }
.tl-year span { display: block; font-size: 11px; color: #bdd2e0; white-space: nowrap; }
.tl-year.now { background: rgba(43, 181, 166, .42); }
.tl-year.past { background: rgba(255, 255, 255, .2); }
.tl-track { position: relative; height: 6px; background: rgba(255, 255, 255, .22); border-radius: 0 0 4px 4px; }
.tl-track i { position: absolute; inset: 0 auto 0 0; background: #8fe0d4; border-radius: 0 0 0 4px; }
.tl-track em { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-2); }

/* 보고 */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.hero-num { font-size: 56px; font-weight: 700; line-height: 1; color: var(--navy); }
.hero-num small { font-size: 24px; }
.hero-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.headline { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.report-note { white-space: pre-wrap; background: var(--accent-wash); border-radius: 10px; padding: 8px 12px; margin-top: 8px; }

/* 상태 표시: 색과 함께 기호·글자를 항상 붙인다 */
.chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12.5px; white-space: nowrap; padding: 1px 9px; border-radius: 999px; border: 1px solid transparent; }
.chip.정상, .chip.완료 { color: var(--good-ink); background: #e6f6e6; border-color: #a9dfa9; }
.chip.주의 { color: #6b4a00; background: #fff4d6; border-color: #f3d27e; }
.chip.위험, .chip.지연 { color: #fff; background: var(--crit); }
.chip.미수립, .chip.보류 { color: var(--ink-2); background: #edf1f4; border-color: var(--line-2); }
.chip.대기 { color: var(--ink-2); background: var(--surface); border-color: var(--line-2); }
.chip.진행중 { color: var(--accent-dark); background: var(--accent-wash); border-color: #b7d3f6; }
.sev { display: inline-block; font-weight: 700; font-size: 12.5px; padding: 0 7px; border-radius: 5px; white-space: nowrap; }
.sev.상 { background: var(--crit); color: #fff; }
.sev.중 { background: #fff4d6; color: #6b4a00; }
.sev.하 { background: #edf1f4; color: var(--ink-2); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--accent-dark); background: var(--accent-wash); border-radius: 5px; padding: 0 6px; margin-right: 4px; white-space: nowrap; }

/* 진행 막대: 채움=실적, 세로 표식=계획 */
.bar { position: relative; height: 10px; background: #e6edf2; border-radius: 5px; min-width: 60px; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), #2f9fc4); border-radius: 5px; }
.bar > i.done { background: var(--good); }
.bar > i.late { background: var(--crit); }
.bar > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); margin-left: -1px; }
.bar.thin { height: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.swatch.line { width: 16px; height: 3px; border-radius: 2px; }
.swatch.tick { width: 2px; height: 14px; border-radius: 0; background: var(--ink); }

/* 표 */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding: 7px 8px; white-space: nowrap; background: var(--surface); }
td { border-bottom: 1px solid var(--line); padding: 7px 8px; vertical-align: middle; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.title-cell { min-width: 260px; }
tr.group-row td { background: #eef4f8; font-weight: 700; color: var(--navy); }
.task-table input, .task-table select { padding: 3px 5px; }
.task-table input[type=date] { width: 128px; }
.task-table input[type=number] { width: 62px; text-align: right; }
.task-table input[type=text] { width: 112px; }
.spec { width: 100%; }
.spec th { width: 130px; background: none; font-weight: 600; white-space: normal; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td { font-weight: 600; }
.spec.wide td { font-weight: 400; }
ul.plain { margin: 0; padding-left: 18px; }

/* 그룹 카드 */
.group-card { display: flex; flex-direction: column; gap: 10px; }
.group-card header { display: flex; align-items: center; gap: 8px; }
.group-card header h2 { margin-right: auto; }
.group-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.group-stats b { color: var(--ink); }
.task-line { display: grid; grid-template-columns: 1fr 70px 42px; gap: 8px; align-items: center; width: 100%; border: 0; background: none; padding: 5px 4px; border-radius: 6px; cursor: pointer; text-align: left; }
.task-line:hover { background: var(--surface-2); }
.task-line .t { min-width: 0; }
.task-line .pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.task-line .sub { display: block; color: var(--muted); font-size: 12px; }

/* 칸반 */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.kanban-col { background: #e6edf2; border-radius: var(--radius); padding: 8px; min-width: 190px; }
.kanban-col > h3 { display: flex; justify-content: space-between; padding: 2px 4px 8px; }
.ticket { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; }
.ticket:hover { border-color: var(--accent); }
.ticket .meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.ticket .bar { margin-top: 6px; }

/* 공정표 */
.gantt { min-width: 1000px; }
.gantt-row { display: grid; grid-template-columns: 430px 1fr; align-items: center; border-bottom: 1px solid var(--line); min-height: 30px; }
.gantt-row.head { font-size: 12.5px; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.gantt-row.group { background: #eef4f8; font-weight: 700; color: var(--navy); }
.gantt-title { padding: 4px 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gantt-track { position: relative; height: 30px; overflow: hidden; }
.gantt-month { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); padding-left: 3px; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; line-height: 30px; }
.gantt-grid { position: absolute; top: 0; bottom: 0; border-left: 1px solid #eef2f5; }
.gantt-yr { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; padding-left: 8px; font-size: 12px; font-weight: 700; line-height: 24px; color: #fff; white-space: nowrap; overflow: hidden; }
.gantt-yr.odd { background: var(--navy-2); }
.gantt-yr.even { background: var(--teal); }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--crit); z-index: 2; }
.gantt-bar { position: absolute; top: 8px; height: 14px; background: #cde2fb; border-radius: 5px; overflow: hidden; border: 0; padding: 0; cursor: pointer; min-width: 4px; z-index: 1; }
.gantt-bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); display: block; }
.gantt-bar.지연 { background: #f4c9c9; } .gantt-bar.지연 > i { background: var(--crit); }
.gantt-bar.완료 { background: #bfe6bf; } .gantt-bar.완료 > i { background: var(--good); }
.gantt-bar.보류 { background: #e1e6ea; } .gantt-bar.보류 > i { background: var(--none); }

/* 달력 */
.cal-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav h2 { font-size: 20px; margin-left: 8px; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-align: center; padding: 7px 0; }
.sun, .sun .cal-num { color: var(--crit); }
.sat, .sat .cal-num { color: var(--accent-dark); }
.cal-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(104px, auto); }
.cal-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.out { background: #f8fafb; }
.cal-cell.out .cal-num { opacity: .45; }
.cal-cell.sel { background: var(--accent-wash); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-num { align-self: flex-start; font-weight: 700; font-size: 12.5px; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; }
.today .cal-num { background: linear-gradient(135deg, var(--accent-dark), var(--teal)); color: #fff; }
.cal-more { font-size: 11.5px; color: var(--ink-2); font-weight: 700; padding-left: 4px; }
.cal-item { display: block; width: 100%; border: 0; border-radius: 5px; padding: 1px 6px; font-size: 11.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; background: #e7edf2; color: var(--ink); }
.cal-item.k1 { background: #d7e8fb; color: #124a8c; }
.cal-item.k2 { background: #e4e0fb; color: #3a2ca4; }
.cal-item.k3 { background: #fde4d9; color: #8e3510; }
.cal-item.k4 { background: #d4f2e7; color: #0b5e43; }
.cal-item.k5 { background: #fbe2ec; color: #8d1d4c; }
.cal-item.due { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.cal-item.late { background: var(--crit); color: #fff; }
.cal-item.iss { background: #fff4d6; color: #6b4a00; }
.cal-item.yr { background: var(--navy-2); color: #fff; font-weight: 700; cursor: default; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--none); display: inline-block; }
.dot.k1 { background: var(--accent); } .dot.k2 { background: #6250d6; } .dot.k3 { background: var(--series-2); }
.dot.k4 { background: #1baf7a; } .dot.k5 { background: #e87ba4; } .dot.k6 { background: var(--none); }
.dot.due { background: #fff; box-shadow: inset 0 0 0 2px var(--ink-2); } .dot.late { background: var(--crit); }
.dot.iss { background: var(--warn); } .dot.yr { background: var(--navy-2); }
.cal-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.day-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 440px; }
.week-col { border-right: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.week-col:last-child { border-right: 0; }
.week-col.sel { background: var(--accent-wash); }
.week-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; padding: 2px 4px 6px; }
.week-head b { font-size: 16px; }
.week-col.today .week-head b { color: var(--teal); }
.week-col .cal-item { white-space: normal; padding: 3px 6px; }
.agenda { display: flex; flex-direction: column; }
.agenda-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 7px 2px; cursor: pointer; }
.agenda-row:last-child { border-bottom: 0; }
.agenda-row:hover { background: var(--surface-2); }
.agenda-when { flex: none; width: 46px; display: flex; flex-direction: column; line-height: 1.2; font-variant-numeric: tabular-nums; }
.agenda-when b { font-size: 13px; }
.agenda-when small, .agenda-what small { color: var(--muted); font-size: 11.5px; }
.agenda-what { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.agenda-what b { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }

/* 대상 시스템 */
.sys-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 16px; align-items: center; color: #fff; border-radius: 18px; padding: 22px 26px; overflow: hidden; background: radial-gradient(800px 420px at 90% 20%, rgba(43, 181, 166, .5), transparent 70%), linear-gradient(120deg, var(--navy), #124a7d); box-shadow: var(--shadow); }
.sys-hero h2 { font-size: 28px; margin: 4px 0 2px; }
.sys-hero p { margin: 0 0 14px; color: #d7e6f0; }
.sys-hero > img { width: 100%; max-height: 420px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .4)); }
.config-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.config { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 14px; }
.config small { display: block; color: #8fe0d4; font-weight: 700; font-size: 12px; }
.config b { display: block; font-size: 16px; }
.config span { display: block; color: #cfe0ec; font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.stat-grid b { display: block; font-size: 24px; line-height: 1.2; }
.stat-grid small { font-size: 14px; font-weight: 600; margin-left: 2px; }
.stat-grid span { font-size: 12px; color: #cfe0ec; }
.rotor-layout { display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.rotor-figure { position: relative; border-radius: 12px; overflow: hidden; line-height: 0; }
.rotor-figure img { width: 100%; }
.hotspot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid #fff; background: var(--navy-2); color: #fff; font-weight: 700; font-size: 13px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .12s; }
.hotspot:hover { transform: scale(1.15); }
.hotspot.on { background: var(--series-2); transform: scale(1.2); }
.comp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.comp-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 2px 11px 2px 3px; cursor: pointer; font-size: 13px; font-weight: 600; }
.comp-tabs span { width: 20px; height: 20px; border-radius: 50%; background: var(--navy-2); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.comp-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.comp-tabs button.on span { background: var(--series-2); }
.comp-name { font-size: 18px; }
.rotor-panel p { margin: 4px 0 10px; color: var(--ink-2); }
.option-grid { display: grid; gap: 14px; }
.option-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.option-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.option { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.option.chosen { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.option-img { position: relative; height: 240px; background: linear-gradient(160deg, #eef4f8, #dfeaf1); display: flex; align-items: center; justify-content: center; }
.option-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.chosen-badge { position: absolute; top: 10px; left: 10px; background: var(--teal); color: #fff; font-weight: 700; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; }
.option-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; }
.option-body > .btn { margin-top: auto; }
.option-body h3 { font-size: 16px; }
.option-body p { margin: 0; color: var(--ink-2); }
.option-metrics { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.option-metrics div { flex: 1 1 100px; background: var(--surface-2); border-radius: 8px; padding: 5px 9px; }
.option-metrics small { display: block; font-size: 11.5px; color: var(--muted); }
.option-metrics b { font-size: 14px; color: var(--navy); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12.5px; width: 100%; }
.pc ul, .unit ul { margin: 2px 0 0; padding-left: 16px; color: var(--ink-2); }
.bearing-layout { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.bearing-layout > img { width: 100%; border-radius: 12px; }
.layers { margin: 0; padding: 0; list-style: none; counter-reset: lay; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 8px 16px; }
.layers li { counter-increment: lay; position: relative; padding-left: 32px; font-size: 13px; }
.layers li::before { content: counter(lay); position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent-dark), var(--teal)); }
.layers b { display: block; }
.layers span { color: var(--ink-2); font-size: 12.5px; }
.unit-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; margin-top: 12px; }
.unit { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.unit-head { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; }

/* 참여기관·예산 */
.org-group { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.org-group:first-of-type { border-top: 0; }
.org-role b { display: block; }
.org-role span { color: var(--muted); font-size: 12px; }
.org-list { display: flex; flex-wrap: wrap; gap: 6px; }
.org-chip { font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.lead .org-chip { color: #fff; border-color: transparent; background: linear-gradient(120deg, var(--navy-2), var(--accent-dark)); }
.partner .org-chip { background: var(--accent-wash); border-color: #cde2fb; color: var(--accent-dark); }
.demand .org-chip { background: #e4f6f2; border-color: #bfe6e0; color: #0d645d; }
.year-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.year-card { position: relative; display: flex; flex-direction: column; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; color: var(--ink-2); }
.year-card b { font-size: 15px; color: var(--ink); }
.year-card.now { color: #e4f1f7; background: linear-gradient(120deg, var(--accent-dark), var(--teal)); }
.year-card.now b { color: #fff; }
.year-card em { position: absolute; top: 10px; right: 12px; font-style: normal; font-weight: 700; font-size: 11.5px; }
.budget-table input { width: 92px; text-align: right; padding: 3px 6px; }
.budget-table tfoot th { border-top: 2px solid var(--line-2); border-bottom: 0; font-size: 13.5px; color: var(--ink); background: var(--surface-2); }
.budget-year { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 0; font-size: 13px; }
.hbar { position: relative; display: flex; align-items: center; gap: 6px; height: 16px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hbar i { display: block; height: 10px; border-radius: 0 4px 4px 0; min-width: 1px; max-width: calc(100% - 70px); }
.hbar-row.wide { grid-template-columns: 150px 1fr 42px; }

/* 서랍 */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--surface); box-shadow: -8px 0 30px rgba(14, 42, 68, .22); z-index: 40; overflow-y: auto; padding: 18px 20px 40px; }
.drawer h2 { font-size: 18px; }
.drawer section { margin-top: 18px; }
.drawer section > h3 { margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.progress-edit { display: flex; align-items: center; gap: 10px; }
.progress-edit input[type=range] { flex: 1; accent-color: var(--accent-dark); }
.progress-edit input[type=number] { width: 72px; text-align: right; }
.check-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.check-row.done span { color: var(--muted); text-decoration: line-through; }
.check-row span { flex: 1; }
.comment { border-top: 1px solid var(--line); padding: 8px 0; }
.comment .who { font-weight: 700; font-size: 13px; }
.comment p { margin: 2px 0 0; white-space: pre-wrap; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 12px; text-align: center; color: var(--ink-2); cursor: pointer; background: var(--surface-2); }
.dropzone.over { border-color: var(--accent); background: var(--accent-wash); }
.file-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.file-row .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.upload-progress { height: 6px; background: #e6edf2; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.upload-progress i { display: block; height: 100%; background: var(--accent); width: 0; }

/* 모달 */
.modal-back { position: fixed; inset: 0; background: rgba(14, 42, 68, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 16px; padding: 18px 22px; width: min(600px, 100%); box-shadow: 0 20px 50px rgba(14, 42, 68, .3); }
.modal.wide { width: min(980px, 100%); }
.modal h2 { margin-bottom: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.secret { font-family: Consolas, monospace; font-size: 18px; font-weight: 700; background: var(--page); border-radius: 6px; padding: 8px 12px; user-select: all; display: inline-block; }

/* 로그인 */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 24px; background: radial-gradient(900px 500px at 15% 10%, rgba(43, 181, 166, .4), transparent 70%), linear-gradient(120deg, var(--navy), #124a7d 70%, #14877f); }
.login-art { flex: 0 1 520px; color: #fff; min-width: 0; }
.login-art h2 { font-size: 26px; margin: 4px 0 12px; }
.login-art img { width: 100%; max-height: 62vh; object-fit: contain; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .4)); }
.login-card { flex: none; background: var(--surface); border-radius: 18px; padding: 28px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.login-card h1 { font-size: 20px; }
.login-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid #e3e9ef; }
.login-tabs button { flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; }
.login-tabs button.on { background: var(--surface); color: var(--accent-dark); box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.code-input { font-size: 22px !important; letter-spacing: .5em; text-align: center; font-weight: 700; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e2e8f0; color: #475569; }
.pill.ok { background: #dcfce7; color: #166534; }
.error { color: var(--crit); font-weight: 600; font-size: 13px; }

/* 차트 */
.chart text { font-family: inherit; font-weight: 700; font-size: 13px; fill: var(--ink-2); }
.chart .big { font-size: 14px; fill: var(--ink); }
.hbar-row { display: grid; grid-template-columns: 90px 1fr 42px; gap: 8px; align-items: center; font-weight: 700; font-size: 13px; padding: 3px 0; }
.hbar-row .bar > i { border-radius: 0 5px 5px 0; }

.tip { position: fixed; z-index: 70; background: #10283d; color: #fff; font-size: 12.5px; padding: 5px 9px; border-radius: 6px; pointer-events: none; max-width: 320px; white-space: pre-line; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: #10283d; color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 600; max-width: 90vw; }
.toast.err { background: var(--crit); }
details > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }

@media (max-width: 1300px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .cal-layout > .stack { flex-direction: row; flex-wrap: wrap; }
  .cal-layout > .stack > .card { flex: 1 1 280px; }
}
@media (max-width: 1100px) {
  .rotor-layout, .bearing-layout { grid-template-columns: minmax(0, 1fr); }
  .rotor-figure, .bearing-layout > img { max-width: 420px; }
  .hero-banner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 10px 12px; }
  .side-label, .side-foot .side-user { display: none; }
  .level-switch { flex-direction: row; overflow-x: auto; }
  .level-switch button small { display: none; }
  .level-switch button { white-space: nowrap; }
  .side-nav { flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
  .side-foot { margin: 0; padding: 0; }
  .topbar { position: static; padding: 8px 16px; }
  main { padding: 12px 16px 40px; }
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .sys-hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-banner { padding: 18px; }
  .tl-year span { display: none; }
  .tl-year { padding: 4px; }
  .tl-year b { font-size: 11px; }
  .cal-cells { grid-auto-rows: minmax(64px, auto); }
  .cal-item { display: none; }
  .cal-cell:has(.cal-item)::after { content: "•"; color: var(--accent); font-weight: 700; }
  .week-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .week-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .week-col .cal-item { display: block; }
  .login-art { display: none; }
  .pc { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; font-size: 12px; }
  .shell { display: block; }
  .side, .no-print, .drawer, .toast, .tip { display: none !important; }
  .topbar { position: static; padding: 0 0 6px; }
  main { padding: 0; max-width: none; }
  .card, .tile, .hero-banner, .sys-hero { break-inside: avoid; border-color: #bbb; box-shadow: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── 요소부품 조달 ── */
.parts-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #fff; border-radius: 18px; padding: 20px 26px; background: radial-gradient(700px 240px at 90% -30%, rgba(250, 178, 25, .35), transparent 70%), linear-gradient(115deg, var(--navy) 0%, #124a7d 60%, #14877f 115%); box-shadow: var(--shadow); }
.parts-hero h2 { margin: 2px 0 4px; font-size: 22px; color: #fff; }
.parts-hero p { margin: 0; opacity: .9; }
.parts-hero .eyebrow { color: #9ff0e4; font-weight: 800; letter-spacing: .08em; font-size: 12px; }
.parts-hero .btn.primary { background: #fff; color: var(--navy); }
.pipeline { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.pipe { position: relative; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pipe:not(:last-child):not(.hold)::after { content: "›"; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); color: var(--line-2); font-weight: 800; }
.pipe b { font-size: 20px; color: var(--accent-dark); line-height: 1.1; }
.pipe span { font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.pipe.on { background: var(--accent-wash); border-color: var(--accent); box-shadow: 0 0 0 2px rgba(42, 120, 214, .2); }
.pipe.hold b { color: var(--none); }
.pflag { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pflag.f-지연 { background: #fde8e8; color: #a12020; border-color: #f3b4b4; }
.pflag.f-납기초과예상 { background: #fdeee6; color: #a3461d; border-color: #f4c3aa; }
.pflag.f-임박 { background: #fff5d9; color: #8a5b00; border-color: #f6d98a; }
.pflag.f-업체미정 { background: #efe9fb; color: #5b3aa8; border-color: #d3c5f2; }
.pflag.f-정상 { background: #e6f6e9; color: var(--good-ink); border-color: #b6e2bf; }
.pflag.f-입고완료 { background: var(--accent-wash); color: var(--accent-dark); border-color: #b7d3f6; }
.pflag.f-보류 { background: #eef0f2; color: #5c636b; border-color: #d5dadf; }
.pstage { display: inline-flex; flex-direction: column; gap: 3px; }
.pstage .dots { display: inline-flex; gap: 3px; }
.pstage .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pstage .dots i.on { background: var(--teal-2); }
.pstage .dots i.cur { background: var(--accent); box-shadow: 0 0 0 2px rgba(42, 120, 214, .25); }
.pstage b { font-size: 12.5px; }
.pstage.hold { font-weight: 700; color: var(--none); }
.parts-table td { vertical-align: top; }
.parts-table td:nth-child(2) { min-width: 200px; }
.cat-bars { display: flex; flex-direction: column; gap: 9px; }
.cat-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 70px 64px; gap: 10px; align-items: center; }
.cat-name { font-weight: 700; font-size: 13px; }
.cat-track { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; border: 1px solid var(--line); }
.cat-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--teal-2)); border-radius: 7px; }
.cat-row b { text-align: right; }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini-stats > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.mini-stats b { font-size: 18px; color: var(--navy); }
.mini-stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.quote-box { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.quote-box h3 { margin: 0; font-size: 15px; }
.quote-add { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr 1.3fr auto; gap: 6px; }
.quote-add input { min-width: 0; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
tr.q-sel td { background: #f0faf2; }
@media (max-width: 1100px) { .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); } .pipe::after { display: none; } }
@media (max-width: 800px) { .quote-add { grid-template-columns: 1fr 1fr; } .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-row { grid-template-columns: 70px minmax(0, 1fr) 60px; } .cat-row .small { display: none; } .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 사업구분 표시 */
.program-badge { display: inline-block; align-self: flex-start; font-size: 14px; font-weight: 800; letter-spacing: .04em; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; margin-bottom: 10px; }
.login-art h2 { line-height: 1.35; }
.login-head { display: flex; flex-direction: column; gap: 4px; }
.login-head h1 { font-size: 17px; line-height: 1.4; margin: 0; word-break: keep-all; }
.program-mini { align-self: flex-start; font-size: 12px; font-weight: 800; color: var(--teal); background: #e3f5f2; border-radius: 999px; padding: 2px 10px; }
.program-chip { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 1px 9px; margin-right: 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); color: #fff; letter-spacing: 0; }

/* ── 다크 테마 (검은색 계열 배경). 인쇄·PDF는 위의 밝은 색을 그대로 쓴다. ── */
@media screen {
  :root {
    color-scheme: dark;
    --page: #0a0d11; --surface: #13181e; --surface-2: #1a2028; --ink: #e8edf2; --ink-2: #b3bfcb; --muted: #8794a2;
    --line: #252d36; --line-2: #36414c;
    --navy: #06080b; --navy-2: #0d1117;
    --accent: #3d8ff0; --accent-dark: #4a96ee; --accent-wash: #132539;
    --good-ink: #6ad46a; --crit: #ef5b5b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
  }
  a { color: #7db6f5; }
  .side { background: linear-gradient(175deg, #05070a 0%, #0b1015 60%, #0c2226 100%); border-right: 1px solid #1c242c; }
  .side-nav button.on { background: #1d2731; color: #fff; box-shadow: inset 3px 0 0 var(--teal-2); }
  .avatar { color: #06080b; }
  .topbar { background: rgba(10, 13, 17, .9); }
  .btn { color: var(--ink); }
  .btn.primary { color: #fff; }
  input[type=text], input[type=search], input[type=date], input[type=time], input[type=number], input[type=password], select, textarea { background: #0e1318; color: var(--ink); }
  input::placeholder, textarea::placeholder { color: #66727e; }
  input[type=date], input[type=time] { color-scheme: dark; }
  .hero-banner, .parts-hero { background: radial-gradient(800px 260px at 85% -40%, rgba(43, 181, 166, .32), transparent 70%), linear-gradient(115deg, #040608 0%, #0d141b 55%, #0d2f31 115%); border: 1px solid #1c252e; }
  .login-page { background: radial-gradient(900px 500px at 15% 10%, rgba(43, 181, 166, .22), transparent 70%), linear-gradient(120deg, #030405, #0b1117 65%, #0b2426); }
  .login-card { border: 1px solid #222b34; }
  .hero-num, .tile.tint .value, .option-metrics b, .mini-stats b { color: #fff; }
  .hint { background: #142130; color: var(--ink-2); }
  .levels, .kanban-col, .bar, .upload-progress { background: #222a33; }
  tr.group-row td, .gantt-row.group { background: #18212b; color: #fff; }
  .chip.정상, .chip.완료 { color: #7ddc7d; background: #12301a; border-color: #23522f; }
  .chip.주의, .sev.중 { color: #f6cf6a; background: #33290c; border-color: #5c4a14; }
  .chip.미수립, .chip.보류, .sev.하 { color: var(--ink-2); background: #1e252d; border-color: var(--line-2); }
  .chip.진행중 { color: #8cc1ff; background: #13263c; border-color: #234670; }
  .gantt-bar { background: #1c3552; } .gantt-bar.지연 { background: #4a2020; } .gantt-bar.보류 { background: #2a3038; }
  .cal-cell.out { background: #0e1216; }
  .cal-item.k1 { background: #16304f; color: #a9cdf7; }
  .cal-item.k2 { background: #272250; color: #c4bcf5; }
  .cal-item.k3 { background: #43230f; color: #f5b993; }
  .cal-item.k4 { background: #0f3427; color: #8fe0bf; }
  .cal-item.k5 { background: #401a2b; color: #f2a6c6; }
  .cal-item.due { background: #161c23; color: var(--ink-2); }
  .cal-item.iss { background: #33290c; color: #f6cf6a; }
  .dot.due { background: #161c23; }
  .demand .org-chip { background: #10302c; border-color: #1d524b; color: #8fe0d4; }
  .pill { background: #232b34; color: #b3bfcb; } .pill.ok { background: #12301a; color: #7ddc7d; }
  .tip, .toast { background: #2a3540; }
  .tl-track em { background: #0a0d11; }
  .comp-tabs button.on { background: var(--accent); border-color: var(--accent); }
  .parts-hero .btn.primary { background: #fff; color: #06080b; }
  .pflag.f-지연 { background: #3d1515; color: #ff9b9b; border-color: #6a2626; }
  .pflag.f-납기초과예상 { background: #3d2212; color: #f7b28a; border-color: #6a3a1d; }
  .pflag.f-임박 { background: #33290c; color: #f6cf6a; border-color: #5c4a14; }
  .pflag.f-업체미정 { background: #251c3f; color: #c2adf5; border-color: #42336e; }
  .pflag.f-정상 { background: #12301a; color: #7ddc7d; border-color: #23522f; }
  .pflag.f-입고완료 { background: #13263c; color: #8cc1ff; border-color: #234670; }
  .pflag.f-보류 { background: #20262d; color: #a5afb9; border-color: #36414c; }
  tr.q-sel td { background: #10261a; }
  .program-mini { background: #0f2e2b; color: #6fe0d2; }
  .login-tabs { border-color: #2a333d; }
  .login-tabs button.on { background: #222c37; color: #fff; }
  .pipe b { color: #7db6f5; }
  .pipe.on { background: #132539; }
  .modal-back { background: rgba(0, 0, 0, .65); }
  .modal, .drawer { border: 1px solid #222b34; }
  .error { color: #ff8f8f; }
}
.hub-lead { color: #c7d3de; font-size: 15px; margin: 0; }
.hub-code { text-transform: uppercase; letter-spacing: .12em; }
.hub-back { font-size: 13px; text-align: center; color: var(--muted); }

/* ── 개요·메뉴 다듬기 ── */
.logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #2a78d6, #1fa79a); box-shadow: 0 4px 14px rgba(42, 120, 214, .35); }
.logo svg { width: 30px; height: 30px; stroke-width: 1.6; }
.org-group { align-items: center; }
.org-list { align-items: center; align-content: center; }
.org-chip { display: inline-flex; align-items: center; line-height: 1.4; }
.level-switch button.lv { border-color: rgba(255, 255, 255, .12); color: #e6edf2; }
@media screen {
  .partner .org-chip { background: #1a2129; border-color: #3a4652; color: #fff; }
}
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.danger-ghost:hover { background: rgba(239, 91, 91, .18); border-color: #ef5b5b; }
.del-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; padding: 2px; }
.mini-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 800px) { .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.remark-cell { min-width: 140px; max-width: 220px; }
.remark { display: inline-block; font-size: 12.5px; font-weight: 600; line-height: 1.4; padding: 2px 8px; border-radius: 6px; background: #3a2d0c; color: #f6cf6a; border: 1px solid #5c4a14; }
.remark-text { color: #f6cf6a; }
@media print { .remark { background: #fff4d6; color: #6b4a00; } .remark-text { color: #6b4a00; } }
.parts-table td:nth-child(7) { min-width: 130px; }
