/* =========================================================================
 * Spotify(Encore) 디자인 시스템 기반 스타일
 *  - Dark foundation: #121212 위에 밝기(brightness)로 계층을 만든다. 그림자 아님.
 *  - Contrast-driven hierarchy: 굵고 tight-tracked 헤드라인 + 절제된 본문.
 *  - 브랜드 그린은 "지금 진행되는 것"에만 쓴다.
 * ========================================================================= */

:root {
  /* surface — 밝기로 계층 */
  --bg-base: #121212;
  --bg-elevated: #1a1a1a;
  --bg-tinted: #282828;
  --bg-highlight: #333333;
  --card: #181818;
  --card-hover: #282828;

  /* text */
  --text-base: #ffffff;
  --text-subdued: #a7a7a7;
  --text-disabled: #6a6a6a;

  /* essential */
  --positive: #1ed760;
  --positive-hover: #3be477;
  --negative: #e91429;
  --announcement: #3d91f4;
  --accent-blue: #509bf5;

  /* geometry */
  --radius-card: 8px;
  --radius-img: 4px;
  --radius-pill: 500px;

  /* timeline */
  --col-w: 40px;
  --head-w: 340px;
  --row-h: 56px;
  --topnav-h: 64px;

  /* motion */
  --ease: 200ms ease;
  --ease-press: 33ms cubic-bezier(.3, 0, 0, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: var(--text-base);
  font-family: Figtree, Pretendard, "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 타입 스케일 (Encore) ---------- */
h1, h2, h3 { margin: 0; }
.t-title-lg { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.t-title-md { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.t-title-sm { font-size: 16px; font-weight: 700; line-height: 1.3; }
.caption {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-subdued);
}
.caption-gap { margin-top: 22px; }

/* ---------- 스크롤바 ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border: 3px solid transparent; background-clip: content-box; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .38); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- 앱 셸 (단일 컬럼) ---------- */
.app {
  padding: 8px 8px 0;
  height: 100vh;
}

.brand-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--positive);
  flex-shrink: 0;
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  height: 2.5px;
  border-radius: 2px;
  background: #121212;
}
.brand-mark::before { top: 9px; width: 14px; }
.brand-mark::after { top: 15px; width: 9px; }

/* 구분 칩 + 범례 — 일정표 헤더에 인라인 */
.group-chips, .legend { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.group-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-tinted);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-subdued);
  transition: background var(--ease), color var(--ease);
}
.group-chips li:hover { background: var(--bg-highlight); color: var(--text-base); }
.group-chips .cnt { font-variant-numeric: tabular-nums; color: var(--text-disabled); font-size: 11.5px; }
.grp-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.legend { gap: 14px; margin-left: auto; font-size: 12px; color: var(--text-disabled); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 20px; height: 7px; border-radius: 4px; flex-shrink: 0; }
.sw-track { background: rgba(255, 255, 255, .16); }
.sw-fill { background: var(--positive); }
.sw-today { width: 7px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .5); }

/* ---------- 상시업무 카드 ---------- */
.notes-card {
  margin: 0 24px 20px;
  padding: 18px 20px 8px;
  background: var(--card);
  border-radius: var(--radius-card);
}
.notes-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.notes-sub { font-size: 12px; color: var(--text-disabled); }
.notes-head .btn { margin-left: auto; }

.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 10px;
  margin: 0 -10px;
  border-radius: var(--radius-img);
  transition: background var(--ease);
}
.note-list li:hover { background: var(--card-hover); }
.note-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--text-disabled);
  flex-shrink: 0;
}
.note-text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-subdued);
  border-radius: var(--radius-img);
  padding: 1px 4px;
  margin: 0 -4px;
  outline: none;
  overflow-wrap: anywhere;
}
.editing .note-text { color: var(--text-base); cursor: text; }
.editing .note-text:hover { background: var(--bg-highlight); }
.editing .note-text:focus { background: var(--bg-highlight); box-shadow: inset 0 0 0 1px #fff; }
.note-del {
  border: 0; background: transparent; color: var(--text-disabled);
  cursor: pointer; font-size: 13px; line-height: 1; padding: 5px; border-radius: 50%;
  opacity: 0; transition: opacity var(--ease), color var(--ease);
}
.note-list li:hover .note-del { opacity: 1; }
.note-del:hover { color: var(--negative); }

.page-foot {
  margin: 0 24px 28px;
  font-size: 11px;
  color: var(--text-disabled);
}

/* ---------- 메인 ---------- */
.main {
  position: relative;
  height: 100%;            /* .app 높이를 채워야 .main-scroll 이 내부 스크롤러가 된다 */
  min-width: 0;
  min-height: 0;
  background: var(--bg-base);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topnav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--topnav-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  background: transparent;
  transition: background 300ms ease;
}
.topnav.scrolled { background: rgba(28, 44, 34, .92); backdrop-filter: blur(12px); }
.topnav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: var(--radius-img);
  padding: 3px 6px;
  margin-left: -6px;
  outline: none;
}
.editing .topnav-title { cursor: text; }
.editing .topnav-title:hover { background: rgba(255, 255, 255, .10); }
.editing .topnav-title:focus { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px #fff; overflow: visible; }
.topnav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.main-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.hero-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 200px;
  background:
    linear-gradient(180deg, rgba(30, 215, 96, .28) 0%, rgba(30, 215, 96, .10) 42%, rgba(18, 18, 18, 0) 100%);
  pointer-events: none;
}

.hero {
  position: relative;
  padding: calc(var(--topnav-h) + 14px) 24px 14px;
}
.hero-meta { margin: 0; font-size: 13.5px; color: var(--text-subdued); font-weight: 500; }
.hero-meta .dot { margin: 0 8px; color: var(--text-disabled); }
.saved.dirty { color: var(--positive); font-weight: 700; }

/* ---------- 버튼 (Encore) ---------- */
.btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--ease-press), background-color var(--ease), color var(--ease), border-color var(--ease), opacity var(--ease);
}
.btn:active { transform: scale(.98); }

.btn.pill { background: var(--positive); color: #000; }
.btn.pill:hover { background: var(--positive-hover); transform: scale(1.04); }
.btn.pill:active { background: var(--positive); transform: scale(1); }
.btn.pill.on { background: #fff; }
.btn.pill.on:hover { background: #fff; }

.btn.outline { background: transparent; color: var(--text-base); box-shadow: inset 0 0 0 1px #7c7c7c; }
.btn.outline:hover { box-shadow: inset 0 0 0 1px #fff; transform: scale(1.04); }

.btn.ghost { background: transparent; color: var(--text-subdued); padding: 9px 14px; }
.btn.ghost:hover { color: var(--text-base); transform: scale(1.04); }

.btn.danger { background: transparent; color: var(--negative); box-shadow: inset 0 0 0 1px rgba(233, 20, 41, .55); }
.btn.danger:hover { box-shadow: inset 0 0 0 1px var(--negative); transform: scale(1.04); }

.btn.sm { font-size: 13px; padding: 7px 16px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none !important; }

.icon-btn {
  border: 0; background: transparent; color: var(--text-subdued);
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: color var(--ease), background var(--ease), transform var(--ease-press);
}
.icon-btn:hover { color: var(--text-base); background: var(--bg-highlight); transform: scale(1.06); }

/* ---------- 배너 ---------- */
.banner {
  margin: 0 24px 18px;
  padding: 12px 16px;
  border-radius: var(--radius-img);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-tinted);
  color: var(--text-base);
  border-left: 4px solid var(--announcement);
}
.banner.err { border-left-color: var(--negative); }
.banner.ok { border-left-color: var(--positive); }

/* ---------- 보드 ---------- */
.board { padding: 0 24px 32px; }
.board-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0 16px;
}
.board-head .btn { margin-left: 16px; }

.gantt {
  /* 가로만 스크롤한다. 세로 스크롤을 주면 스크롤포트가 중첩되어
     헤더 sticky 기준이 어긋나고 상단 바에 가려진다. */
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
  overscroll-behavior-x: contain;
}
.tl { width: max-content; min-width: 100%; }
.tl-row { display: flex; align-items: stretch; }

.tl-head-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  width: var(--head-w);
  min-width: var(--head-w);
  flex-shrink: 0;
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .07);
}
.tl-track { position: relative; flex-shrink: 0; }

/* 헤더 */
.tl-header { position: sticky; top: 0; z-index: 6; background: var(--card); }
.tl-header .tl-head-cell { z-index: 7; }
.hdr-month { height: 30px; }
.hdr-day { height: 40px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .09); }
.hdr-month .tl-head-cell { color: var(--text-disabled); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hdr-day .tl-head-cell { color: var(--text-subdued); font-size: 12px; font-weight: 600; }

.mcell {
  position: absolute;
  top: 0;
  height: 30px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .09);
}
.dcell {
  position: absolute;
  top: 4px;
  width: var(--col-w);
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: var(--radius-img);
  font-variant-numeric: tabular-nums;
  color: var(--text-subdued);
}
.dcell b { font-size: 12.5px; font-weight: 700; }
.dcell span { font-size: 9px; font-weight: 600; color: var(--text-disabled); letter-spacing: .02em; }
.dcell.week-start { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .09); }
.dcell.is-today { background: var(--positive); }
.dcell.is-today b, .dcell.is-today span { color: #000; }

/* 구분 행 */
.grp-row { height: 38px; }
.grp-row .tl-head-cell {
  background: var(--card);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-subdued);
}
.grp-badge { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.grp-count { margin-left: auto; color: var(--text-disabled); letter-spacing: 0; font-size: 11px; }

/* 업무 행 — Spotify 트랙 리스트 */
.task-row { height: var(--row-h); }
.task-row .tl-track { transition: background-color var(--ease); }
.task-row:hover .tl-head-cell { background: var(--card-hover); }
.task-row:hover .tl-track { background-color: rgba(255, 255, 255, .055); }

.trow-idx {
  width: 16px;
  flex-shrink: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-disabled);
}
.task-row:hover .trow-idx { color: var(--text-base); }

.tinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tname {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-img);
  padding: 2px 5px;
  margin: 0 -5px;
  outline: none;
}
.tsub {
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-disabled);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 5px;
  margin: 0 -5px;
}
.task-row:hover .tsub { color: var(--text-subdued); }
.editing .tname { cursor: text; }
.editing .tname:hover { background: var(--bg-highlight); }
.editing .tname:focus { background: var(--bg-highlight); box-shadow: inset 0 0 0 1px #fff; overflow: visible; text-overflow: clip; }

.tstar {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--positive);
  border: 1px solid rgba(30, 215, 96, .5);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  line-height: 1.3;
}
.tcfg {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--text-disabled);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 5px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--ease), color var(--ease), transform var(--ease-press);
}
.task-row:hover .tcfg { opacity: 1; }
.tcfg:hover { color: var(--text-base); transform: scale(1.12); }

/* 그리드 배경 */
.grid-bg { position: absolute; inset: 0; }
.week-bg { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .07); }
.today-band {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--col-w);
  background: rgba(255, 255, 255, .035);
  border-left: 1px solid rgba(255, 255, 255, .28);
  pointer-events: none;
  z-index: 1;
}

/* 막대 — Encore 프로그레스 바 */
.bar {
  position: absolute;
  top: 17px;
  height: 22px;
  border-radius: var(--radius-img);
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
  z-index: 2;
  user-select: none;
  transition: background-color var(--ease), box-shadow var(--ease);
}
.bar .bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent, var(--positive));
  border-radius: var(--radius-img);
  pointer-events: none;
  transition: width var(--ease);
}
/* 진행률 라벨은 막대 밖(오른쪽)에 둔다 — 막대 안에서는 어떤 색도 대비가 무너진다 */
.bar-out {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent, var(--positive));
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.task-row:hover .bar { background: rgba(255, 255, 255, .24); }

.editing .bar { cursor: grab; }
.editing .bar:hover { box-shadow: 0 0 0 1px #fff; }
.editing .bar.dragging { cursor: grabbing; box-shadow: 0 0 0 1px #fff, 0 8px 16px rgba(0, 0, 0, .3); }
.bar-handle { position: absolute; top: 0; bottom: 0; width: 8px; z-index: 3; }
.bar-handle.l { left: 0; }
.bar-handle.r { right: 0; }
.editing .bar-handle { cursor: ew-resize; }
.editing .bar-handle:hover { background: rgba(255, 255, 255, .35); }

/* 추가 행 */
.add-row { height: 44px; }
.add-row .tl-head-cell { padding-left: 16px; }
.add-btn {
  border: 0;
  background: transparent;
  color: var(--text-disabled);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px 5px 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: color var(--ease), transform var(--ease-press);
}
.add-btn:hover { color: var(--positive); transform: scale(1.03); }

.edit-hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-disabled);
}
.edit-hint b { color: var(--text-subdued); }

/* ---------- 다이얼로그 ---------- */
.dlg {
  border: 0;
  border-radius: var(--radius-card);
  padding: 24px;
  width: min(460px, calc(100vw - 32px));
  background: var(--bg-tinted);
  color: var(--text-base);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
}
.dlg::backdrop { background: rgba(0, 0, 0, .7); }
.dlg h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.dlg-desc { font-size: 13px; color: var(--text-subdued); margin: -10px 0 18px; }
.fld { display: block; margin-bottom: 14px; }
.fld > span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-subdued);
  margin-bottom: 6px;
}
.fld input[type="text"], .fld input[type="date"], .fld input[type="number"], .fld input[type="password"], .fld select, .fld textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #727272;
  border-radius: var(--radius-img);
  background: var(--bg-highlight);
  color: var(--text-base);
  outline: none;
  transition: border-color var(--ease);
}
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: #fff; }
.fld textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
.fld input:disabled, .fld select:disabled, .fld textarea:disabled {
  border-color: #3f3f3f;
  background: #202020;
  color: var(--text-disabled);
  cursor: not-allowed;
}
.fld.chk input:disabled + span { color: var(--text-disabled); }
.fld:has(input:disabled) > span, .fld:has(select:disabled) > span, .fld:has(textarea:disabled) > span { color: var(--text-disabled); }
.fld input::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); cursor: pointer; }
.fld-row { display: flex; gap: 12px; }
.fld-row .fld { flex: 1; }
.fld.chk { display: flex; align-items: center; gap: 10px; }
.fld.chk > span { margin: 0; font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-base); }
.fld.chk input { width: 16px; height: 16px; accent-color: var(--positive); }
.dlg-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.dlg-actions .spacer { flex: 1; }


/* ---------- 우측 상세 패널 ----------
 * 화면을 밀지 않는다. position:fixed 로 우측 일부를 덮고, 스크림으로 뒤를 눌러 닫는다. */
.panel-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.panel-scrim.on { opacity: 1; visibility: visible; transition: opacity 220ms ease, visibility 0s; }

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid rgba(255, 255, 255, .08);
  box-shadow: -12px 0 48px rgba(0, 0, 0, .65);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 260ms cubic-bezier(.3, 0, 0, 1), visibility 0s linear 260ms;
}
.detail-panel.on { transform: none; visibility: visible; transition: transform 260ms cubic-bezier(.3, 0, 0, 1), visibility 0s; }

.dp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  height: var(--topnav-h);
  padding: 0 12px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: var(--bg-tinted);
}
.dp-group { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subdued); }
.dp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-disabled); flex: 0 0 auto; }
.dp-bar .tstar { margin: 0; }
.dp-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-subdued);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.dp-close:hover { background: var(--bg-highlight); color: var(--text-base); }

.dp-body { flex: 1 1 auto; overflow-y: auto; padding: 22px 20px 24px; }
.dp-name {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.dp-prog { margin-bottom: 22px; }
.dp-prog-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dp-prog-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subdued); }
.dp-prog-top b { margin-left: auto; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dp-meter { height: 8px; border-radius: 500px; background: var(--bg-highlight); overflow: hidden; }
.dp-meter i { display: block; height: 100%; width: 0; border-radius: 500px; background: var(--accent, var(--positive)); transition: width 320ms cubic-bezier(.3, 0, 0, 1); }
.dp-prog-state { margin: 8px 0 0; font-size: 12.5px; color: var(--text-subdued); }

.dp-meta { margin: 0 0 22px; padding: 16px 0 4px; border-top: 1px solid rgba(255, 255, 255, .07); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.dp-meta > div { min-width: 0; }
.dp-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subdued); margin-bottom: 4px; }
.dp-meta dd { margin: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.dp-meta dd.muted { color: var(--text-disabled); font-weight: 400; }

.dp-note { border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 16px; }
.dp-note h3 { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subdued); margin-bottom: 10px; }
.dp-note-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  /* 비고는 자르지 않는다 — 줄바꿈 보존 + 긴 단어도 접어서 전부 보여준다 */
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.dp-note-body.empty { color: var(--text-disabled); font-style: normal; }

.dp-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: var(--bg-tinted);
}

.tname.clickable { cursor: pointer; }
.tname.clickable:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .detail-panel { width: 100vw; border-left: 0; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .board-head { flex-wrap: wrap; }
  .legend { margin-left: 0; width: 100%; }
}

/* ---------- 인쇄: 보고용은 흰 종이에 맞춘다 ---------- */
@media print {
  html, body { background: #fff; color: #111; height: auto; }
  .app { height: auto; padding: 0; }
  .notes-card { margin: 0; padding: 16px 0 0; border-top: 1px solid #ddd; }
  .note-list li { padding: 4px 0; margin: 0; }
  .page-foot { margin: 12px 0 0; }
  .main, .gantt, .notes-card, .tl-head-cell, .tl-header, .grp-row .tl-head-cell { background: #fff !important; color: #111 !important; }
  .main { border-radius: 0; overflow: visible; display: block; }
  .main-scroll { overflow: visible; }
  .gantt { max-height: none; overflow: visible; }
  .topnav { position: static; height: auto; padding: 0; background: none !important; }
  .topnav-actions, .brand-mark { display: none !important; }
  .topnav-title { font-size: 24px; font-weight: 800; color: #111 !important; padding: 0; margin: 0; }
  .hero { padding: 4px 0 16px; }
  .hero-glow, .edit-hint, .banner, .add-row, .tcfg, .note-del, .legend, .board-head .btn { display: none !important; }
  .detail-panel, .panel-scrim { display: none !important; }
  .caption, .hero-meta, .page-foot, .notes-sub, .tsub, .dcell span, .grp-count, .trow-idx { color: #555 !important; }
  .tname, .note-text, .dcell b, .grp-row .tl-head-cell, .notes-head h2 { color: #111 !important; }
  .group-chips li { background: #f1f3f5 !important; color: #333 !important; }
  .bar { background: #e3e6ea !important; color: #111; }
  .bar .bar-label { mix-blend-mode: normal; color: #111; }
  .today-band { background: rgba(0, 0, 0, .06); border-left-color: #999; }
  .week-bg { background: #ddd; }
  .tl-head-cell { box-shadow: 1px 0 0 #ddd; }
  .hdr-day { box-shadow: inset 0 -1px 0 #ccc; }
  .dcell.is-today { background: #ffd9d0; }
  .dcell.is-today b, .dcell.is-today span { color: #111 !important; }
  .board { padding: 0; }
  .tstar { color: #0a7a37 !important; border-color: #0a7a37; }
}
