/* 배치: 왼쪽 고정 메뉴(남색 간판 느낌) + 오른쪽 작업 영역.
   개발 메뉴 = 보드·표·문서, 운영 메뉴 = 예시 대시보드. 색은 모두 아래 토큰에서만 가져온다. */
:root {
  /* 바탕·글자 */
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-3: #eceff3;
  --line: #e1e5eb;
  --line-strong: #cbd2dc;
  --ink: #131821;
  --ink-2: #485263;
  --ink-3: #6f7a8c;
  /* 브랜드 */
  --accent: #2148d0;
  --accent-ink: #ffffff;
  --accent-soft: #e8edfc;
  --marker: #ffdf4a;      /* 형광펜 — 추천 스티커·오늘 표시 */
  --on-marker: #1d1b10;
  --seal: #cf3a2c;        /* 도장 — 결정됨 */
  /* 상태 (브랜드 색과 따로) */
  --good: #12704d;  --good-soft: #e2f3eb;
  --warn: #8f5600;  --warn-soft: #fcf0d9;
  --bad: #bf2f2f;   --bad-soft: #fbe6e6;
  /* 왼쪽 메뉴 */
  --side-bg: #121a2a;
  --side-ink: #eef1f7;
  --side-ink-2: #aab4c6;
  --side-ink-3: #7c879c;
  --side-hover: rgba(255, 255, 255, .07);
  --side-active: #2148d0;
  --side-line: rgba(255, 255, 255, .14);
  /* 차트 (검증된 순서 — 단계 0~6) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6;
  --grid: #e9ecf1;
  --tip-bg: #131821;
  --tip-ink: #f4f6f9;
  /* 글꼴 */
  --font-display: "Black Han Sans", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  --font-body: "IBM Plex Sans KR", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 12px;
  --r-sm: 8px;
  --side-w: 248px;
  --top-h: 54px;
  --gutter: 32px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1016; --surface: #151a22; --surface-2: #1a2029; --surface-3: #242b36;
    --line: #29303b; --line-strong: #3a4250;
    --ink: #e8ebf1; --ink-2: #b4bbc8; --ink-3: #8d96a6;
    --accent: #819eff; --accent-ink: #0d1016; --accent-soft: rgba(129, 158, 255, .15);
    --marker: #f3d541; --on-marker: #1d1b10; --seal: #ff7466;
    --good: #4fcb98; --good-soft: rgba(79, 203, 152, .14);
    --warn: #f1b74a; --warn-soft: rgba(241, 183, 74, .14);
    --bad: #ff8080; --bad-soft: rgba(255, 128, 128, .14);
    --side-bg: #0a0d12; --side-ink: #e8ebf1; --side-ink-2: #a3acbb; --side-ink-3: #727c8d;
    --side-hover: rgba(255, 255, 255, .06); --side-active: #2c47b8; --side-line: rgba(255, 255, 255, .12);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9;
    --grid: #222833; --tip-bg: #e8ebf1; --tip-ink: #131821;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1016; --surface: #151a22; --surface-2: #1a2029; --surface-3: #242b36;
  --line: #29303b; --line-strong: #3a4250;
  --ink: #e8ebf1; --ink-2: #b4bbc8; --ink-3: #8d96a6;
  --accent: #819eff; --accent-ink: #0d1016; --accent-soft: rgba(129, 158, 255, .15);
  --marker: #f3d541; --on-marker: #1d1b10; --seal: #ff7466;
  --good: #4fcb98; --good-soft: rgba(79, 203, 152, .14);
  --warn: #f1b74a; --warn-soft: rgba(241, 183, 74, .14);
  --bad: #ff8080; --bad-soft: rgba(255, 128, 128, .14);
  --side-bg: #0a0d12; --side-ink: #e8ebf1; --side-ink-2: #a3acbb; --side-ink-3: #727c8d;
  --side-hover: rgba(255, 255, 255, .06); --side-active: #2c47b8; --side-line: rgba(255, 255, 255, .12);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9;
  --grid: #222833; --tip-bg: #e8ebf1; --tip-ink: #131821;
  color-scheme: dark;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font-body);
  word-break: keep-all;          /* 한글은 어절 단위로 줄바꿈 */
  overflow-wrap: anywhere;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg);
}
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: -.01em; white-space: nowrap; }
.nw { white-space: nowrap; }
.muted { color: var(--ink-3); font-size: 13px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 틀 ---------- */
.shell {
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--side-bg) var(--side-w), transparent var(--side-w));
}
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--side-bg); color: var(--side-ink);
  display: flex; flex-direction: column; gap: 22px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 14px 18px calc(14px + env(safe-area-inset-left, 0px));
}
.side-brand { display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 0; }
.brand-mark { font-family: var(--font-display); font-size: 23px; line-height: 1.15; color: var(--marker); letter-spacing: .01em; word-break: keep-all; }
.brand-sub { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--side-ink-2); }
.brand-sub em { font-style: normal; font-size: 11px; line-height: 1; padding: 3px 5px; border: 1px solid var(--side-line); border-radius: 4px; color: var(--side-ink-2); }
.side-nav { display: flex; flex-direction: column; gap: 14px; }
.nav-label { font-size: 11.5px; letter-spacing: .08em; color: var(--side-ink-3); padding: 0 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; min-height: 35px; padding: 6px 10px; border-radius: var(--r-sm);
  color: var(--side-ink-2); font-size: 14.5px; font-weight: 500;
}
.nav-item:hover { background: var(--side-hover); color: var(--side-ink); text-decoration: none; }
.nav-item[aria-current="page"] { background: var(--side-active); color: #fff; }
.nav-item .ic { width: 18px; height: 18px; }
.nav-count { margin-left: auto; min-width: 24px; text-align: center; font: 500 12px/1 var(--font-mono); padding: 4px 7px; border-radius: 999px; background: var(--side-hover); color: var(--side-ink); }
.nav-count--warn { background: var(--marker); color: var(--on-marker); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 0; border-top: 1px solid var(--side-line); font-size: 12.5px; color: var(--side-ink-3); }
.side-foot strong { color: var(--side-ink-2); font-weight: 600; }
.side-who { display: flex; align-items: center; gap: 8px; color: var(--side-ink); font-size: 13px; }
.side-who .avatar { background: var(--side-hover); color: var(--side-ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--marker); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.side-who .link-btn { margin-left: auto; }
.scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 10px; min-height: var(--top-h);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.topbar .menu-btn { display: none; }
.crumb { flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; font-size: 14px; color: var(--ink-3); }
.crumb-page { color: var(--ink); font-weight: 600; }
.crumb-sep { width: 14px; height: 14px; }
.crumb-meta { margin-left: auto; font-size: 12.5px; }
.content {
  width: 100%; max-width: 1480px;
  padding-block: 26px 72px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 22px;
}
.content:focus { outline: none; }
.loading { color: var(--ink-3); }

/* ---------- 공통 조각 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.block { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.block-head h2 { font-size: 16px; font-weight: 700; }
.block-head a { font-size: 13.5px; font-weight: 500; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.page-desc { margin-top: 6px; color: var(--ink-2); max-width: 64ch; }
.eyebrow { font-size: 12.5px; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; }
.head-stats { display: flex; gap: 18px; color: var(--ink-3); font-size: 13px; }
.head-stats b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.sec-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.count { font: 500 12.5px/1 var(--font-mono); padding: 4px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-2--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.empty { padding: 28px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: var(--r); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; line-height: 1; white-space: nowrap;
  background: var(--surface-3); color: var(--ink-2);
}
.chip .ic { width: 14px; height: 14px; stroke-width: 2; }
.chip--accent { background: var(--accent-soft); color: var(--accent); }
.chip--good { background: var(--good-soft); color: var(--good); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--bad { background: var(--bad-soft); color: var(--bad); }
.chip--line { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink-3)); flex: none; display: inline-block; }
.sticker {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 5px;
  background: var(--marker); color: var(--on-marker); font-size: 12.5px; font-weight: 700; line-height: 1;
  transform: rotate(-2.5deg); white-space: nowrap;
}
.sticker--inline { height: 20px; font-size: 12px; vertical-align: 1px; }
.ref { font: 500 12px/1 var(--font-mono); padding: 5px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.ref:hover { text-decoration: none; filter: brightness(.97); }
.meter { display: block; height: 8px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.meter i { display: block; height: 100%; min-width: 8px; border-radius: 999px; background: var(--accent); }
.meter--sm { height: 6px; }

/* 도장: 결정됨 */
.seal {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--seal); color: var(--seal);
  box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3.5px var(--seal);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1;
  transform: rotate(-12deg);
}
.seal--pending { border: 1.5px dashed var(--ink-3); color: var(--ink-3); box-shadow: none; transform: none; }
.seal--sm { width: 36px; height: 36px; font-size: 11.5px; }

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.t tr:last-child td { border-bottom: 0; }
.t td.nowrap { white-space: nowrap; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t .btns { display: flex; gap: 6px; }
.mini-btn { height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; color: var(--ink-2); cursor: not-allowed; white-space: nowrap; }
.mini-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 거르기 */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.fchip span { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.fchip:hover { border-color: var(--ink-3); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.fchip[aria-pressed="true"] span { color: var(--surface); opacity: .75; }
.ftoggle { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.ftoggle input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ---------- 개발 홈 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; padding: 26px 28px; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.12; letter-spacing: .005em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.hero-note { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 5px; padding: 3px 7px; line-height: 1; }
.hero-slogan { margin-top: 12px; font-size: 18px; font-weight: 600; }
.hero-slogan span { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); padding: 0 2px; color: var(--ink); }
.hero-desc { margin-top: 8px; color: var(--ink-2); max-width: 62ch; }
.hero-dates { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.hero-dates > div { min-width: 132px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.hero-dates dt { font-size: 12.5px; color: var(--ink-3); }
.hero-dates dd { margin: 0; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-dates small { font-size: 12.5px; color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; color: inherit; min-width: 0; }
a.stat:hover { text-decoration: none; border-color: var(--line-strong); }
.stat-label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.stat-note { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.stat-note.is-up { color: var(--good); }
.stat-note .ic { width: 14px; height: 14px; stroke-width: 2.2; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 600 13px/1 var(--font-mono); color: #fff; background: var(--c); }
.step strong { font-size: 14px; line-height: 1.35; }
.step small { font-size: 12px; color: var(--ink-3); }
.step--now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.step--done { opacity: .7; }

.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.row:first-child { border-top: 0; padding-top: 2px; }
.row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 600; line-height: 1.45; }
.row-sub { font-size: 12.5px; color: var(--ink-3); }
.row-end { flex: none; text-align: right; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.row-end small { font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); }
.is-late, .is-late small { color: var(--bad); }
.row .chip { flex: none; }

.doc-links { display: flex; flex-direction: column; gap: 10px; }
.doc-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: inherit; }
.doc-link:hover { text-decoration: none; border-color: var(--line-strong); background: var(--surface-2); }
.doc-link .ic { width: 22px; height: 22px; color: var(--accent); }
.doc-link strong { display: block; }
.doc-link span { font-size: 12.5px; color: var(--ink-3); }
.changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.changes li { display: flex; flex-direction: column; gap: 2px; }
.changes time { font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); }
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team li { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.team .avatar { width: 34px; height: 34px; font-size: 14px; }
.team strong { display: block; font-size: 14.5px; }
.team span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 문서 ---------- */
.doc-head { align-items: flex-start; }
.approval { display: inline-grid; grid-template-columns: repeat(3, 84px); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--surface); text-align: center; flex: none; }
.approval > div { display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); }
.approval > div:first-child { border-left: 0; }
.ap-step { font-size: 12px; color: var(--ink-2); background: var(--surface-2); padding: 4px 0; border-bottom: 1px solid var(--line-strong); letter-spacing: .1em; }
.ap-sign { height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; }
.ap-sign small { font: 500 11px/1 var(--font-mono); color: var(--ink-3); }
.ap-stamp { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--seal); color: var(--seal); font-size: 11.5px; font-weight: 700; transform: rotate(-8deg); }
.ap-wait { color: var(--ink-3); }
.doc-layout { display: grid; grid-template-columns: minmax(0, 880px) 220px; gap: 36px; justify-content: center; align-items: start; }
.doc-body { padding: 30px 36px 36px; min-width: 0; font-size: 15.5px; line-height: 1.75; }
.doc-body > :first-child { margin-top: 0; }
.doc-body h2 { font-size: 20px; font-weight: 700; margin: 38px 0 12px; scroll-margin-top: calc(var(--top-h) + 20px); }
.doc-body h3 { font-size: 16.5px; font-weight: 700; margin: 26px 0 8px; }
.doc-body p { margin: 0 0 12px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 1.4em; }
.doc-body li { margin: 4px 0; }
.doc-body li::marker { color: var(--ink-3); }
.doc-body strong { font-weight: 700; }
.doc-body blockquote { margin: 0 0 18px; padding: 14px 18px; background: var(--accent-soft); border-radius: var(--r-sm); color: var(--ink-2); }
.doc-body blockquote p:last-child { margin: 0; }
.doc-body .table-wrap { margin: 4px 0 18px; }
.doc-body table.t { font-size: 14.5px; line-height: 1.6; }
.doc-body .t td:first-child { font-weight: 600; white-space: nowrap; }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.md-raw { white-space: pre-wrap; font: 13px/1.6 var(--font-mono); }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--top-h) + 20px); font-size: 13.5px; }
.toc-title { font-size: 12px; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 5px 0 5px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.toc button:hover { color: var(--ink); border-left-color: var(--line-strong); }

/* ---------- 아이디어 ---------- */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.idea { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.idea-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.id { color: var(--ink-3); font-size: 12.5px; }
.idea-by { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.idea-title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.idea-sum { color: var(--ink); }
.idea-dl { margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); font-size: 14px; }
.idea-dl dt { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.idea-dl dd { margin: 2px 0 0; color: var(--ink-2); }
.idea-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 2px; }
.dots { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--ink-3); }
.dots-label { margin-right: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--ink-2); }
.idea-foot .ref:first-of-type { margin-left: auto; }

/* ---------- 결정사항 ---------- */
.dec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; align-items: start; }
.dec { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dec--urgent { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad) inset; }
.dec-head { display: flex; align-items: center; gap: 12px; }
.dec-titles { min-width: 0; flex: 1; }
.dec-titles h3 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.dec-q { color: var(--ink); }
.opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.opts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.opt-key { flex: none; min-width: 26px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 5px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 700; color: var(--ink); background: var(--surface); }
.rec { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.rec .sticker { flex: none; margin-top: 1px; }
.dec-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--ink-3); }
.dec-foot .due { font-weight: 600; color: var(--ink-2); }
.dec-list { list-style: none; margin: 0; padding: 4px 20px; }
.dec-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.dec-row:first-child { border-top: 0; }
.dec-row-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dec-row-top strong { font-size: 15.5px; }
.dec-row-text { color: var(--ink-2); margin-top: 2px; }
.dec-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; color: var(--ink-3); text-align: right; }

/* ---------- 할 일 ---------- */
.ms-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.ms { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: inherit; font-size: 13.5px; }
.ms:hover { text-decoration: none; border-color: var(--line-strong); }
.ms span { color: var(--ink-3); font-size: 12.5px; }
.ms-diamond { width: 10px; height: 10px; transform: rotate(45deg); background: var(--ink); border-radius: 2px; flex: none; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; }
.col-head h2 { font-size: 15px; font-weight: 700; }
.col-head .count { margin-left: auto; }
.status-ic { display: inline-grid; place-items: center; color: var(--ink-3); }
.status-ic--doing { color: var(--accent); }
.status-ic--done { color: var(--good); }
.col-empty { padding: 16px 8px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.task { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip--phase { height: 22px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.task-title { font-weight: 600; line-height: 1.45; }
.col--done .task-title { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.task-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.who { display: inline-flex; align-items: center; gap: 4px; }
.who .avatar { width: 22px; height: 22px; font-size: 11px; margin-right: 0; }
.who > span:last-child { margin-left: 4px; }
.when { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--ink-3); font-size: 12.5px; }
.when .ic { width: 14px; height: 14px; }

/* ---------- 일정표(간트) ---------- */
.gantt { --label-w: 300px; --dw: 9px; --row-h: 40px; overflow: hidden; }
.g-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.g-grid { position: relative; width: calc(var(--label-w) + var(--days) * var(--dw)); }
.g-row { display: flex; min-height: var(--row-h); border-top: 1px solid var(--line); }
.g-label {
  position: sticky; left: 0; z-index: 3; flex: none; width: var(--label-w);
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 6px 14px; background: var(--surface); border-right: 1px solid var(--line); min-width: 0;
}
.g-track {
  position: relative; flex: none; width: calc(var(--days) * var(--dw));
  background-image: repeating-linear-gradient(to right, var(--grid) 0 1px, transparent 1px calc(var(--dw) * 7));
}
.g-head { display: flex; background: var(--surface); }
.g-head .g-label { font-size: 12px; color: var(--ink-3); justify-content: flex-end; }
.g-head .g-track { background-image: none; height: 26px; }
.g-row--lane { min-height: 24px; border-top: 0; }
.g-row--lane .g-track { background-image: none; }
.g-month { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 7px; border-left: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.g-week { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 4px; font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; border-left: 1px solid var(--grid); }
.g-row--phase .g-label { flex-direction: row; align-items: center; gap: 8px; background: var(--surface-2); }
.g-row--phase .g-track { background-color: var(--surface-2); }
.g-ph-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font: 600 12px/1 var(--font-mono); flex: none; }
.g-ph-name { font-weight: 700; font-size: 14px; }
.g-ph-dates { margin-left: auto; font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.g-span { position: absolute; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 3px; background: var(--c); }
.g-t-title { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.g-t-sub { font-size: 11.5px; color: var(--ink-3); }
.st { font-weight: 600; }
.st--doing { color: var(--accent); }
.st--done { color: var(--good); }
.g-bar {
  position: absolute; top: 50%; height: 18px; transform: translateY(-50%); min-width: 6px;
  padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer;
  background: var(--surface-3);
  background: color-mix(in srgb, var(--c) 24%, var(--surface));
}
.g-fill { position: absolute; inset: 0 auto 0 0; background: var(--c); box-shadow: 2px 0 0 0 var(--surface); }
.g-bar:hover, .g-bar:focus-visible { filter: brightness(1.06); outline-offset: 1px; }
.g-ms { position: absolute; top: 50%; width: 15px; height: 15px; padding: 0; border: 2px solid var(--surface); border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); cursor: pointer; }
.g-ms-label { position: absolute; top: 50%; transform: translateY(-50%); padding-left: 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; color: var(--ink); }
.g-ms-label--left { transform: translate(-100%, -50%); padding: 0 14px 0 0; }
.g-today { position: absolute; top: 52px; bottom: 0; width: 0; border-left: 2px solid var(--accent); z-index: 2; pointer-events: none; }
.g-today span { position: absolute; top: 3px; left: 3px; padding: 2px 7px; border-radius: 4px; background: var(--marker); color: var(--on-marker); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.g-today--right span { left: auto; right: 5px; }
.g-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sw { width: 18px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.sw--prog { background: linear-gradient(to right, var(--ink-2) 55%, var(--surface) 55%, var(--surface) calc(55% + 2px), var(--line-strong) calc(55% + 2px)); }
.sw--ms { width: 10px; height: 10px; transform: rotate(45deg); background: var(--ink); border-radius: 2px; margin: 0 4px; }
.sw--today { width: 2px; height: 16px; background: var(--accent); border-radius: 0; margin: 0 8px; }
.gantt-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); }

/* ---------- 회의록·변경 이력 ---------- */
.meeting { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.meeting-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.meeting-head h2 { font-size: 19px; }
.meeting-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.meeting .doc-body { padding: 0; border: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.timeline > li { position: relative; }
.timeline > li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.tl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-head strong { font-size: 16px; }
.tl-items { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.howto { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.howto .ic { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.howto ol { margin: 6px 0 0; padding-left: 1.3em; color: var(--ink-2); }
.howto q { font-weight: 600; color: var(--ink); }

/* ---------- 운영 예시 ---------- */
.example { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; }
.example .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .kpis, .kpis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.cc { display: flex; flex-direction: column; gap: 8px; }
.cc-plot { position: relative; height: 210px; margin: 10px 0 0 30px; }
.cc-tick { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--grid); }
.cc-tick span { position: absolute; right: calc(100% + 8px); top: -7px; font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-tick:first-child { border-top-color: var(--line-strong); }
.cc-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.cc-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.cc-bar { position: relative; width: min(24px, 62%); padding: 0; border: 0; border-radius: 4px 4px 0 0; background: var(--s1); cursor: pointer; }
.cc-bar:hover, .cc-bar:focus-visible { filter: brightness(1.1); }
.cc-val { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cc-x { display: flex; margin-left: 30px; }
.cc-x span { flex: 1; text-align: center; font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); min-width: 0; }
.alerts .row-title { font-weight: 500; }
.alert-ic { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.alert-ic--bad { background: var(--bad-soft); color: var(--bad); }
.alert-ic--warn { background: var(--warn-soft); color: var(--warn); }
.alert-ic--accent { background: var(--accent-soft); color: var(--accent); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button span { font: 500 12px/1 var(--font-mono); padding: 3px 7px; border-radius: 999px; background: var(--surface-3); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.docs-ok { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.doc-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.doc-pill .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.doc-pill.on { color: var(--good); }
.pips { display: inline-flex; gap: 3px; margin-right: 7px; vertical-align: 1px; }
.pips i { width: 7px; height: 7px; border-radius: 2px; background: var(--line-strong); }
.pips i.on { background: var(--s1); }
.stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.stars .ic { width: 15px; height: 15px; fill: var(--marker); stroke: var(--warn); stroke-width: 1.2; }
.review { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.review:first-child { border-top: 0; padding-top: 0; }
.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-top .muted { margin-left: auto; }
.review p { color: var(--ink-2); font-size: 14px; }

/* ---------- 말풍선 ---------- */
.tip {
  position: fixed; z-index: 100; max-width: 300px; pointer-events: none;
  padding: 10px 12px; border-radius: 8px; background: var(--tip-bg); color: var(--tip-ink);
  font-size: 13px; line-height: 1.5; box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.tip strong { display: block; font-size: 14px; }
.tip .tip-sub { opacity: .78; font-size: 12.5px; }
.tip .tip-row { display: flex; align-items: center; gap: 6px; }
.tip .dot { width: 8px; height: 8px; }

/* ---------- 입력: 오른쪽 위 제출하기 ---------- */
.topbar { padding-block: 6px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.who-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.who-chip:hover { border-color: var(--line-strong); }
.submit-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.submit-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.submit-btn:hover { filter: brightness(1.07); }
.submit-btn .ic { width: 16px; height: 16px; stroke-width: 2; }
.submit-btn--ghost { background: var(--surface); color: var(--accent); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--marker); color: var(--on-marker); font: 700 12px/20px var(--font-mono); text-align: center; }
.submit-progress { font: 600 11.5px/1.2 var(--font-mono); color: var(--ink-2); white-space: nowrap; }

/* ---------- 입력: 버튼 · 칸 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.07); border-color: var(--accent); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled, .vbtn:disabled, .seg-btn:disabled, .submit-btn:disabled { opacity: .55; cursor: progress; }
.btn .ic { width: 16px; height: 16px; }
.input { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.55; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.input::placeholder { color: var(--ink-3); }
textarea.input { resize: vertical; min-height: 64px; }
.input--big { min-height: 200px; }
select.input { height: 44px; padding-block: 0; }
input[type="date"].input { height: 44px; padding-block: 0; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.compose { gap: 12px; }
.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.compose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px auto; gap: 10px; align-items: end; }
.compose-grid--meta { grid-template-columns: 190px minmax(0, 1fr); }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink-2); font-size: 14px; }
.notice .ic { color: var(--accent); }
.notice .btn { margin-left: auto; }
.cta { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta > .ic { width: 28px; height: 28px; color: var(--accent); }
.cta > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.sub-title { font-size: 14.5px; font-weight: 700; margin-top: 4px; }

/* 아이디어 판단 (하자 · 보류 · 안 함) */
.verdict-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 12px; }
.verdict { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.vbtn { height: 34px; padding: 0 14px; border: 0; border-left: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.vbtn:first-child { border-left: 0; }
.vbtn:hover { background: var(--surface-2); }
.vbtn[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.vbtn--no[aria-pressed="true"] { background: var(--bad); color: #fff; }
.idea--no { opacity: .6; }
.idea--no:hover, .idea--no:focus-within { opacity: 1; }
.idea--yes { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.note summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; list-style: none; width: fit-content; }
.note summary::-webkit-details-marker { display: none; }
.note[open] summary { margin-bottom: 8px; }
.note .row-actions { margin-top: 8px; }
.my-note { font-size: 13.5px; color: var(--ink-2); padding: 8px 10px; background: var(--surface-2); border-radius: 8px; white-space: pre-wrap; }
.their { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.their li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 결정사항 고르기 */
.opts--pick { gap: 4px; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.opt:hover { background: var(--surface-2); }
.opt input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* 할 일 상태 바꾸기 */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; align-self: flex-start; }
.seg-btn { height: 30px; padding: 0 11px; border: 0; border-left: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.seg-btn:first-child { border-left: 0; }
.seg-btn:hover { background: var(--surface-2); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.override { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.override .ic { width: 14px; height: 14px; color: var(--accent); }
.task--new { border-style: dashed; }

/* 남긴 입력 카드 */
.in-list { display: flex; flex-direction: column; gap: 10px; }
.in-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.in-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.in-head .icon-btn--sm { margin-left: auto; }
.in-text { white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; }
.in-meta { font-size: 12.5px; color: var(--ink-3); }
.in-link a { font-size: 13.5px; word-break: break-all; }
.in-reply { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--good-soft); color: var(--ink); font-size: 13.5px; }
.in-reply .ic { color: var(--good); width: 16px; height: 16px; margin-top: 2px; }
.icon-btn--sm { width: 30px; height: 30px; }
.icon-btn--sm .ic { width: 16px; height: 16px; }
.avatar--sm { width: 22px; height: 22px; font-size: 11px; }

/* 창 · 알림 */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(8, 12, 20, .5); display: grid; place-items: center; padding: 16px; }
.modal-box { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal-box h2 { font-size: 19px; }
.modal-desc { color: var(--ink-2); }
.modal-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.who-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.who-pick legend { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; padding: 0; }
.pick { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 14px; }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pick input { accent-color: var(--accent); }
.who-pick .input { flex: 1 1 140px; height: 36px; padding: 6px 10px; }
.form-error { color: var(--bad); font-size: 13.5px; font-weight: 600; }
.submit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.submit-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.sl-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; width: max-content; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 10px; background: var(--tip-bg); color: var(--tip-ink); font-size: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }

/* 디자인 */
.kw { display: flex; flex-direction: column; gap: 6px; }
.kw-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches { display: inline-flex; gap: 4px; margin-top: 4px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); display: inline-block; }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.screen-group h3 { font-size: 14.5px; margin-bottom: 6px; }
.screen-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.screen-group li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.screen-group li:first-child { border-top: 0; }
.drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.draft { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: inherit; }
.draft:hover { text-decoration: none; border-color: var(--line-strong); background: var(--surface-2); }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1280px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --gutter: 16px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; z-index: 50; inset: 0 auto 0 0; height: auto; width: min(300px, 86vw);
    transform: translateX(-102%); transition: transform .22s ease;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .side.is-open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(8, 12, 20, .45); }
  .topbar .menu-btn { display: inline-grid; flex: none; }
  .shell { background: none; }
  .crumb-meta { display: none; }
  .grid-2, .grid-2--wide, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: minmax(0, 1fr); }
  .dec-grid { grid-template-columns: minmax(0, 1fr); }
  .gantt { --label-w: 168px; --dw: 6px; }
  .g-ph-dates { display: none; }
  .doc-body { padding: 22px 18px 26px; }
}
@media (max-width: 640px) {
  .page-head h1 { font-size: 22px; }
  .hero { padding: 20px 18px; }
  .hero-dates > div { min-width: 0; flex: 1 1 120px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idea-grid { grid-template-columns: minmax(0, 1fr); }
  .dec-row { grid-template-columns: auto minmax(0, 1fr); }
  .dec-row-meta { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: 10px; }
  .approval { grid-template-columns: repeat(3, 74px); }
  .cc-x span:nth-child(even) { visibility: hidden; }
  .meeting { padding: 18px; }
  .idea-by { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .side, .topbar, .toc, .scrim { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .card { border-color: #ccc; }
}

/* ---------- 좁은 화면 (입력·디자인) ---------- */
@media (max-width: 960px) {
  .who-chip { display: none; }
  .compose-grid, .compose-grid--meta { grid-template-columns: minmax(0, 1fr); }
  .screens { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .crumb-group, .crumb-sep { display: none; }
  .submit-btn { height: 34px; padding: 0 12px; font-size: 13.5px; }
  .modal-box { padding: 18px; }
}
