/* ── 화면 꼴 세 벌 (사장님 2026-10-22, 대시보드 그림을 보여 주시며
   「이 느낌으로 … 2-3가지 ui」) ────────────────────────────────────
   theme.css 위에 얹는다. `<html data-ui="…">` 로 고른다.
   **쓰는 것은 navy** (사장님 2026-10-22 「3번으로 하자」). 셋을 견줘 보던
   고르개는 걷었다 — green·blue 는 다시 견줄 때를 위해 남겨 둔다.

   세 벌이 같이 가지는 것 — 보여 주신 그림의 뼈대
     · 연한 그라데이션 바탕 위에 프로그램 전체를 **카드 한 장으로 띄운다**
     · 고른 메뉴는 꽉 찬 색이 아니라 **옅은 바탕 + 색 글자**
     · 숫자 카드 오른쪽 위에 **동그라미 그림**, 오르내림은 알약 딱지
     · 표 머리줄은 옅은 칸으로 감싼다
   서로 다른 것 — 색과 메뉴 바탕
     green  · 초록(그림 그대로)          blue · 지금 파랑을 그 뼈대에
     navy   · 어두운 메뉴 + 남보라 */

/* 숫자 카드 동그라미 — 꼴과 상관없이 늘 (지금 모양에도) */
.statcard { position: relative; }
.statcard .sico { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--chip); color: var(--accent);
  display: grid; place-items: center; }
.statcard .sico svg { width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.statcard .sico:empty { display: none; }
.statcard small { padding-right: 40px; }

/* ── 세 벌 공통 뼈대 ─────────────────────────────────────── */
html[data-ui] body { background: var(--page-bg) fixed; min-height: 100vh; }
html[data-ui] .app { margin: 22px auto; max-width: 1720px; width: calc(100% - 44px);
  min-height: calc(100vh - 44px); border-radius: 22px; background: var(--bg);
  box-shadow: 0 20px 60px rgba(30, 41, 59, .10), 0 2px 6px rgba(30, 41, 59, .04); }
html[data-ui] .sidebar { top: 22px; height: calc(100vh - 44px); max-height: calc(100vh - 44px);
  border-radius: 22px 0 0 22px; padding: 24px 16px 18px; }
html[data-ui] .navgroup { font-size: 11px; letter-spacing: .06em; padding: 14px 12px 6px; }
html[data-ui] .nav { padding: 9px 12px; margin: 2px 0; border-radius: 10px; }
html[data-ui] .nav.active { background: var(--chip); color: var(--accent); font-weight: 700; }
html[data-ui] .nav.active .work { background: var(--accent); }
html[data-ui] .subnav { border-left-color: var(--line); }
html[data-ui] main { background: var(--bg); border-radius: 0 22px 22px 0; }

/* 카드 — 조금 더 둥글고 부드럽게 */
html[data-ui] .card, html[data-ui] .step, html[data-ui] .statcard,
html[data-ui] details.more, html[data-ui] .keyrow { border-radius: 18px;
  border-color: var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .03),
  0 6px 18px rgba(16, 24, 40, .04); }
html[data-ui] .statcard { padding: 18px 20px 16px; }
html[data-ui] .statcard b { font-size: 28px; margin-top: 10px; }
html[data-ui] .statcard .delta { border-radius: 999px; padding: 3px 9px; }
html[data-ui] .statcard .delta.up::before { content: "↗ "; }

/* 단추 */
html[data-ui] button.primary, html[data-ui] a.primary, html[data-ui] #shDraft {
  background: var(--accent); border-color: var(--accent); border-radius: 10px; }
html[data-ui] button.primary:hover, html[data-ui] #shDraft:hover { background: var(--accent-2); }
html[data-ui] button.ghost, html[data-ui] a.ghost { border-radius: 10px; border-color: var(--field); }
html[data-ui] button.ghost:hover, html[data-ui] a.ghost:hover {
  background: var(--chip); color: var(--accent); border-color: var(--accent); }
html[data-ui] .num { background: var(--accent); }

/* 거르는 칩 — 검정 대신 옅은 색 */
html[data-ui] .tabrow button.on, html[data-ui] .tabrow button.active,
html[data-ui] .chipbtn.on { background: var(--chip); color: var(--accent);
  border-color: var(--accent); }

/* 표 머리줄 — 옅은 칸으로 감싼다 */
html[data-ui] .uphead { background: var(--soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 8px; color: var(--ink); font-weight: 600; }
html[data-ui] th { background: var(--soft); color: var(--ink); }

/* 고른 그림 타일 · 고른 소재 */
html[data-ui] .pick.on { border-color: var(--accent); background: var(--chip);
  box-shadow: 0 0 0 1px var(--accent); }
html[data-ui] .pick.on small { color: var(--accent); }

/* 칸 */
html[data-ui] textarea:focus, html[data-ui] input:focus,
html[data-ui] select:focus-visible { border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring); }
html[data-ui] input[type="checkbox"]:checked { background-color: var(--accent);
  border-color: var(--accent); }

/* ── green: 보여 주신 그림 그대로 ─────────────────────────── */
html[data-ui="green"] {
  --page-bg: linear-gradient(135deg, #dceefa 0%, #e4f6ee 55%, #d9f3e6 100%);
  --bg: #f7f9fb; --soft: #f4f7f6;
  --accent: #10a874; --accent-2: #0c8f62; --chip: #e6f7ef; --ring: rgba(16, 168, 116, .18);
  --line: #e7ecea; --ok: #12925f; --ok-bg: #e3f6ec;
}

/* ── blue: 지금 파랑 + 그림의 뼈대 ────────────────────────── */
html[data-ui="blue"] {
  --page-bg: linear-gradient(135deg, #e3e9fb 0%, #ece8fb 50%, #e1f0fb 100%);
  --bg: #f7f8fc; --soft: #f4f6fb;
  --accent: #2f5bea; --accent-2: #2449c7; --chip: #eaf0ff; --ring: rgba(47, 91, 234, .18);
  --line: #e6e9f2;
}

/* ── navy: 어두운 메뉴 + 남보라 ───────────────────────────── */
html[data-ui="navy"] {
  --page-bg: linear-gradient(135deg, #e7e9f5 0%, #efeaf7 55%, #e6eef7 100%);
  --bg: #f6f7fb; --soft: #f3f4f9;
  --accent: #5146e5; --accent-2: #4036c9; --chip: #eeedfd; --ring: rgba(81, 70, 229, .18);
  --line: #e6e7f0;
}
html[data-ui="navy"] .sidebar { background: #141a33; border-right-color: #141a33; color: #c9cfe4; }
html[data-ui="navy"] .sidebar h1 { color: #fff; }
html[data-ui="navy"] .sidebar h1 .logo-a { background: #6d63ff; }
html[data-ui="navy"] .navgroup { color: #6f7896; }
html[data-ui="navy"] .nav { color: #c3c9de; }
html[data-ui="navy"] .nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
html[data-ui="navy"] .nav.active { background: rgba(124, 115, 255, .18); color: #fff; }
html[data-ui="navy"] .nav.active svg.i { color: #a8a2ff; }
html[data-ui="navy"] .subnav { border-left-color: #2a3150; }
html[data-ui="navy"] .subnav button { color: #9ea6c2; }
html[data-ui="navy"] .subnav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
html[data-ui="navy"] .subnav button.on { background: rgba(124, 115, 255, .18); color: #fff; }
html[data-ui="navy"] .sidebar hr { border-top-color: #2a3150; }
html[data-ui="navy"] .sidebar .note, html[data-ui="navy"] .sidebar .hint { color: #7a83a3; }
html[data-ui="navy"] .licchip { background: rgba(255, 255, 255, .05); border-color: #2a3150; color: #9ea6c2; }
html[data-ui="navy"] .licchip b { color: #fff; }
html[data-ui="navy"] .navbusy { background: rgba(255, 255, 255, .06); border-color: #2a3150; }
html[data-ui="navy"] .navbusy .nm { color: #fff; }

/* 본문 글 속 링크 — 브라우저 기본 파랑(#00e)이 남보라 옆에서 튀었다. */
html[data-ui] main a:not(.ghost):not(.primary):not(.nav) { color: var(--accent); }

/* ── 메뉴 묶음 머리 (사장님 2026-10-23 「구분 잘되게」 → B안) ───────────
   ①②③④ 를 번호 배지로, 이름은 메뉴 칸보다 밝게, 묶음 사이에 선 하나.
   쇼츠 만들기 단계 카드의 번호 동그라미와 같은 규칙 — 「차례가 있다」 는
   표시는 화면 어디서나 번호 배지다. 배지는 theme.js 가 ①→1 로 바꿔 단다. */
html[data-ui] .navgroup { display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0; color: var(--ink);
  margin: 12px 4px 4px; padding: 14px 8px 4px; border-top: 1px solid var(--line); }
html[data-ui] .navgroup:first-of-type { border-top: 0; margin-top: 0; padding-top: 2px; }
html[data-ui] .navgroup .gnum { width: 20px; height: 20px; border-radius: 6px; flex: none;
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center; }
/* 번호 없는 「그 밖에」 는 배지 자리를 비워 이름 줄을 맞춘다 */
html[data-ui] .navgroup.nonum { padding-left: 36px; color: var(--faint); font-weight: 600; }
html[data-ui="navy"] .navgroup { color: #e6e9f5; border-top-color: #2a3150; }
html[data-ui="navy"] .navgroup.nonum { color: #8b93b3; }
html[data-ui="navy"] .navgroup .gnum { background: #5b50f0; }
