/* 로딕 운영 콘솔 — 디자인 토큰 + 컴포넌트
   방향: 본 아이보리 모노 + 로딕 바이올렛 포인트. 다크 무채색 뼈대, 포인트는 행동 자리
   (활성 메뉴·주요 버튼·핫 타일·응답 대기) 전용. 완료 그린은 그레이-그린으로 눌러 위계 분리.
   기능색(그레이-그린·머스터드·벽돌)은 상태 의미가 있는 자리에만. 글로우·그라디언트 없음, 1px 라인. */

@font-face {
  font-family: "Pretendard";
  src: url("/static/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}

:root,
:root[data-theme="dark"] {
  --bg: #161616;            /* 메인 배경 */
  --surface: #1c1c1b;       /* 카드·타일 */
  --ink: #eee9df;           /* 주 텍스트 (아이보리) */
  --ink-soft: #c2beb3;
  --ink-faint: #9b988f;
  --line: #2a2a28;
  --line-strong: #4a4a46;

  --accent: #eae6dc;        /* 아이보리 강조 — 중립 하이라이트(배지 등) */
  --accent-tint: rgba(234, 230, 220, 0.07);

  --point: #6a5cf0;         /* 로딕 바이올렛 포인트 — 행동 자리 전용 */
  --point-ink: #8b7ff5;     /*   텍스트·숫자용 밝은 변형 */
  --point-tint: rgba(106, 92, 240, 0.12);

  --ok: #6d7a64;            /* 그레이-그린 — 완료·배송 (포인트 그린과 위계 분리) */
  --ok-ink: #8a9683;        /*   텍스트용 밝은 변형 */
  --ok-tint: rgba(109, 122, 100, 0.16);
  --warn: #d1a852;          /* 머스터드 — 마감 임박 */
  --warn-ink: #d8b46a;
  --warn-tint: rgba(209, 168, 82, 0.14);
  --danger: #c96f5e;        /* 벽돌 — 지연·거절 */
  --danger-ink: #d99181;
  --danger-tint: rgba(201, 111, 94, 0.16);

  /* 퍼널 레일 구간 (dashboard.html 레전드도 참조) */
  --rail-new: #2c2c2a;
  --rail-sent: #4a4a46;
  --rail-wait: #6a5cf0;
  --rail-shipped: #6d7a64;
  --rail-done: #55604e;
  --rail-paid: #49523f;
  --rail-lost: #5c4038;

  --side-bg: #111111;
  --side-ink: #a8a49a;
  --side-ink-dim: #7d7a72;

  --radius: 10px;
  --radius-s: 6px;

  /* Pico 변수 재정의 */
  --pico-font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --pico-background-color: var(--bg);
  --pico-color: var(--ink);
  --pico-primary: var(--point);
  --pico-primary-background: var(--point);
  --pico-primary-border: var(--point);
  --pico-primary-inverse: #ffffff;
  --pico-primary-hover: #7c70f3;
  --pico-primary-hover-background: #7c70f3;
  --pico-primary-hover-border: #7c70f3;
  --pico-primary-underline: transparent;
  --pico-primary-focus: rgba(106, 92, 240, 0.35);
  --pico-border-radius: var(--radius-s);
  --pico-form-element-background-color: var(--surface);
  --pico-form-element-border-color: var(--line-strong);
  --pico-form-element-focus-color: var(--point);
  --pico-muted-border-color: var(--line);
  --pico-muted-color: var(--ink-faint);
  --pico-card-background-color: var(--surface);
  --pico-card-border-color: var(--line);
  --pico-mark-background-color: var(--danger-tint);
  --pico-mark-color: var(--danger-ink);
  --pico-h1-color: var(--ink);
  --pico-h2-color: var(--ink);
  --pico-h3-color: var(--ink);
  --pico-h4-color: var(--ink);
  --pico-h5-color: var(--ink);
  --pico-h6-color: var(--ink);
  --pico-secondary: var(--ink);
  --pico-secondary-background: #2a2a28;
  --pico-secondary-border: #2a2a28;
  --pico-secondary-inverse: var(--ink);
  --pico-secondary-hover: var(--ink);
  --pico-secondary-hover-background: #333331;
  --pico-secondary-hover-border: #333331;
  --pico-secondary-focus: rgba(234, 230, 220, 0.25);
  --pico-form-element-color: var(--ink);
  --pico-form-element-placeholder-color: var(--ink-faint);
}

html { font-size: 16px; }

body {
  font-family: var(--pico-font-family);
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;       /* 한글 어절 단위 줄바꿈 — 낱글자 끊김 방지 */
  overflow-wrap: break-word;  /* 긴 라틴 토큰(URL 등) 넘침 방지 */
}

/* ---------- 레이아웃 ---------- */

.layout { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }

nav.side {
  background: var(--side-bg);
  color: var(--side-ink);
  padding: 1.4rem 0 1.2rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  padding: 0 1.4rem 1.2rem;
  color: #f0ece2;
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: 0.34em;
}
.brand small {
  display: block;
  margin-top: 0.3rem;
  color: var(--side-ink-dim);
  font-weight: 450;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

nav.side a.nav-item {
  display: block;
  padding: 0.52rem 1.4rem;
  color: var(--side-ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 120ms ease, background 120ms ease;
}
nav.side a.nav-item:hover { color: #f5f1e8; background: rgba(255, 255, 255, 0.03); }
nav.side a.nav-item.active {
  color: #f5f1e8;
  font-weight: 650;
  border-left-color: var(--point);
  background: var(--point-tint);
}

.side-foot {
  margin-top: auto;
  padding: 1rem 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  color: var(--side-ink-dim);
}
.side-foot a { color: var(--side-ink-dim); text-decoration: underline; }
.side-foot a:hover { color: var(--side-ink); }

main { padding: 2.1rem 2.6rem 3rem; max-width: 1680px; min-width: 0; }

.page-head { margin-bottom: 1.6rem; position: relative; }
.page-head h3 {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 750;
  letter-spacing: -0.022em;
  display: inline-block;
}
.page-head .sub { margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- 화면별 사용 가이드 (물음표 토글) ---------- */

details.guide { display: inline-block; margin-left: 0.55rem; vertical-align: 0.3em; }
details.guide > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem; height: 1.3rem;
  padding: 0; margin: 0;
  line-height: 1;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 750;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary::after { display: none !important; content: none; }
details.guide > summary:hover,
details.guide[open] > summary {
  color: var(--ink);
  border-color: var(--point);
  background: var(--point-tint);
}
details.guide > .guide-panel {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 0.6rem);
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink);
}
.guide-panel h6 {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin: 0.9rem 0 0.3rem;
}
.guide-panel h6:first-child { margin-top: 0; }
.guide-panel ol, .guide-panel ul { margin: 0.2rem 0 0.4rem; padding-left: 1.2rem; }
.guide-panel li { margin: 0.15rem 0; }
.guide-panel b { font-weight: 650; }

/* ---------- 카드·표면 ---------- */

article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 1.15rem 1.3rem;
  margin-bottom: 1rem;
}
article > header {
  background: none;
  border-bottom: 1px solid var(--line);
  margin: -1.15rem -1.3rem 1rem;
  padding: 0.85rem 1.3rem;
  font-size: 0.95rem;
}
article > footer {
  background: none;
  border-top: 1px solid var(--line);
  margin: 1rem -1.3rem -1.15rem;
  padding: 0.85rem 1.3rem;
}

/* ---------- 액션 타일 (오늘 할 일) ---------- */

.action-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0.9rem; margin-bottom: 1.8rem; }

a.action-tile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 120ms ease, background 120ms ease;
}
a.action-tile:hover { border-color: var(--ink-faint); }
a.action-tile .label { font-size: 0.92rem; font-weight: 550; color: var(--ink-soft); }
a.action-tile .count {
  font-size: 1.7rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
a.action-tile.hot { border-color: var(--point); background: var(--point-tint); }
a.action-tile.hot .count { color: var(--point-ink); }
a.action-tile.hot .label { color: var(--ink-soft); }

/* ---------- 시그니처: 퍼널 레일 ---------- */

.rail { margin: 0.4rem 0 1.9rem; }
.rail-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.rail-bar span { display: block; min-width: 3px; }
.rail-bar .s-new { background: var(--rail-new); }
.rail-bar .s-sent { background: var(--rail-sent); }
.rail-bar .s-wait { background: var(--rail-wait); }
.rail-bar .s-shipped { background: var(--rail-shipped); }
.rail-bar .s-done { background: var(--rail-done); }
.rail-bar .s-lost { background: var(--rail-lost); }

.rail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.rail-legend b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 650;
  margin-left: 0.28rem;
}
.rail-legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: 0;
}

/* ---------- 미터 행 (예산·응답률) ---------- */

.meter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.9rem;
}
.meter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}
.meter .k {
  font-size: 0.77rem;
  font-weight: 550;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}
.meter .v {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.meter .v small { font-size: 0.8rem; color: var(--ink-faint); font-weight: 500; }

/* ---------- 상태 배지 ---------- */

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.14rem 0.55rem;
  border-radius: 99px;
  background: #2a2a28;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  vertical-align: 0.1em;
}
.badge.plasma { background: rgba(234, 230, 220, 0.12); color: var(--ink); } /* 클래스명은 레거시, 스타일은 아이보리 */
.badge.ok { background: var(--ok-tint); color: var(--ok-ink); }
.badge.warn { background: var(--warn-tint); color: var(--warn-ink); }
.badge.high { background: var(--danger-tint); color: var(--danger-ink); }

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 0.45rem;
  background: var(--ink-faint);
  vertical-align: 0.05em;
}
.status-dot.st-new { background: #4a4a46; }
.status-dot.st-sent { background: #6e6e67; }
.status-dot.st-replied, .status-dot.st-drafted { background: var(--point-ink); }
.status-dot.st-shipped { background: var(--ok); }
.status-dot.st-review_posted { background: var(--ok-ink); }
.status-dot.st-paid { background: var(--rail-paid); }
.status-dot.st-bounced, .status-dot.st-rejected { background: var(--danger); }

/* ---------- 테이블 ---------- */

table { font-size: 0.92rem; }
thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-strong);
  background: none;
  white-space: nowrap;
}
/* 정렬 가능한 헤더 — 라벨과 같은 톤을 유지하고 활성 컬럼만 진하게 */
thead th a.sort-th {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
thead th a.sort-th:hover { color: var(--ink); text-decoration: underline; }
thead th a.sort-th:has(.sort-arrow) { color: var(--ink); }
.sort-arrow { font-size: 0.62rem; vertical-align: 1px; }
tbody td {
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.5;
  white-space: nowrap; /* 표 값은 한 줄 고정 — 전화번호·날짜·상태가 꺾이지 않게 */
}
tbody td.wrap { white-space: normal; } /* 주소·메모 등 긴 텍스트 칸만 예외 */
tbody tr[hx-get]:hover, tbody tr[style*="cursor"]:hover { background: rgba(234, 230, 220, 0.05); }

/* ---------- 폼·버튼 ---------- */

button, [role="button"], input[type="submit"] { font-weight: 600; font-size: 0.9rem; white-space: nowrap; width: auto; cursor: pointer; }
/* 아웃라인 액션 버튼 — 배지·텍스트와 구분되는 버튼 어포던스 (2026-08-04):
   바이올렛 보더 + 틴트 배경, 호버 시 채움. "행동 자리 = 포인트 전용" 원칙 적용 */
button.outline, a[role="button"].outline {
  --pico-color: var(--point-ink);
  --pico-border-color: var(--point);
  background-color: var(--point-tint);
  border-radius: var(--radius-s);
}
button.outline:hover, a[role="button"].outline:hover {
  --pico-color: #fff;
  --pico-border-color: var(--point);
  background-color: var(--point);
}
/* 표 안 소형 버튼 — 텍스트 셀 사이에서도 버튼으로 읽히는 최소 타격 면적 */
table button, table a[role="button"] {
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.25;
  margin-bottom: 0;
}

/* 실행 접이식(크롤 실행·명단 업로드) — 일반 텍스트로 보이던 요약 줄을
   클릭 가능한 컨트롤 카드로 (2026-08-04, 펼치기/접기 라벨 + 회전 셰브런) */
details.run-drop > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
details.run-drop > summary::-webkit-details-marker { display: none; }
details.run-drop > summary::before {
  content: "\25B8";                 /* ▸ */
  color: var(--point-ink);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}
details.run-drop[open] > summary::before { transform: rotate(90deg); }
details.run-drop > summary:hover { border-color: var(--point); background: var(--point-tint); }
details.run-drop > summary small { color: var(--ink-faint); font-weight: 500; }
/* 펼치기/접기 라벨은 HTML 스팬 — CSS content의 한글은 charset에 따라 깨질 수 있다 */
.run-drop__open, .run-drop__close {
  margin-left: auto;
  color: var(--point-ink);
  font-size: 0.8rem;
  font-weight: 500;
}
details.run-drop[open] > summary .run-drop__open { display: none; }
details.run-drop:not([open]) > summary .run-drop__close { display: none; }
details.run-drop[open] > summary { margin-bottom: 0.8rem; }

input, select { font-size: 0.9rem; }

/* ---------- 본문 프리뷰 ---------- */

pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 0.88rem;
  line-height: 1.62;
  padding: 0.9rem 1rem;
  font-family: var(--pico-font-family); /* 메일 본문은 한글 산세리프로 */
}

details.kw-drop { display: inline-block; margin: 0; }
details.kw-drop summary {
  list-style: none; cursor: pointer; font-size: 0.9rem; color: var(--ink);
}
details.kw-drop summary::-webkit-details-marker { display: none; }
details.kw-drop summary::after { display: none !important; content: none; }
details.kw-drop summary { padding: 0; margin: 0; line-height: inherit; }
details.kw-drop .kw-more {
  font-size: 0.78rem; color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: 99px; padding: 0.02rem 0.45rem; margin-left: 0.25rem; white-space: nowrap;
}
details.kw-drop[open] .kw-more { background: var(--point-tint); }
details.kw-drop ul {
  margin: 0.4rem 0 0.2rem; padding-left: 1.1rem; font-size: 0.87rem; color: var(--ink-soft);
}
details.kw-drop li { margin: 0.1rem 0; }
details.kw-drop b, td b { font-weight: 700; color: #fbf8f0; }

.select-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.2rem 0 0.8rem;
}
.select-bar small { color: var(--ink-faint); }
tbody input[type="checkbox"] { margin: 0; }

a.ext {
  font-size: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.3rem;
  vertical-align: 0.08em;
}
a.ext:hover { border-color: var(--point); background: var(--point-tint); }

/* ---------- 메일 실물 미리보기 ---------- */

details.mail-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
}
details.mail-preview > summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
details.mail-preview .mail-subject {
  font-weight: 650;
  font-size: 0.9rem;
  margin: 0.8rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
details.mail-preview pre { margin-bottom: 0.4rem; }
details.mail-preview small { color: var(--ink-faint); }

input.draft-subject { font-size: 0.92rem; margin-bottom: 0.5rem; }
textarea.draft-body {
  font-family: var(--pico-font-family);
  font-size: 0.9rem;
  line-height: 1.62;
  background: var(--bg);
  resize: vertical;
}
textarea.draft-body:focus, input.draft-subject:focus { background: var(--surface); }

details summary { font-size: 0.9rem; color: var(--ink-soft); }
details summary:hover { color: var(--ink); }

mark { padding: 0.15rem 0.5rem; border-radius: var(--radius-s); font-weight: 550; }

h4 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.8rem 0 0.8rem;
}
h6 { font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; margin-bottom: 0.5rem; }

/* 좁은 창 안전판 — 한 줄 고정 표가 본문보다 넓어지면 표만 가로 스크롤 (페이지는 안 밀림) */
@media (max-width: 1600px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- 모션 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rail-bar span { animation: railIn 500ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes railIn { from { flex-grow: 0 !important; } }
}

/* ---------- 반응형 ---------- */

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  nav.side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.2rem; padding: 0.6rem 0.8rem; }
  .brand { padding: 0.4rem 0.8rem; }
  .brand small { display: none; }
  nav.side a.nav-item { border-left: none; border-radius: var(--radius-s); padding: 0.4rem 0.7rem; }
  .side-foot { margin: 0 0 0 auto; border: none; padding: 0; }
  main { padding: 1.2rem; }
  .action-row { grid-template-columns: 1fr; }

  /* 표는 자체 가로 스크롤 — 페이지 전체가 옆으로 밀리지 않게 */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table th, table td { white-space: nowrap; }

  /* 필터·선택 바는 줄바꿈 허용 */
  .select-bar { flex-wrap: wrap; gap: 0.5rem 0.7rem; }
  fieldset[role="group"] { flex-wrap: wrap; }
  fieldset[role="group"] > * { min-width: 8.5rem; }

  .page-head h3 { font-size: 1.2rem; }
  .guide-panel { font-size: 0.85rem; padding: 0.9rem 1rem; max-height: 65vh; overflow-y: auto; }
  .rail-legend { gap: 0.6rem 1rem; }
}

/* 캠페인 마일스톤 날짜 셀 — 좁게, 줄바꿈 없이 */
td.ms { font-size: 0.85rem; white-space: nowrap; color: var(--ink-soft); }


/* 기수 설정 — 라벨+인풋+설명이 든 블록이라 role="group"(한 줄 컨트롤 결합)을 쓰면
   버튼이 남은 폭을 다 먹고 설명 텍스트를 덮는다. 그리드로 폭을 명시한다. */
.cohort-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* 주차 1~4 한 줄, 한 달 차·입금일 다음 줄 */
  gap: 0.75rem 1.25rem;
  align-items: start;
}
.cohort-meta label {
  display: block;
  margin: 0;
}
.cohort-meta input {
  margin-bottom: 0.3rem;
}
.cohort-meta small {
  display: block;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.4;
}
.cohort-meta__save {
  grid-column: 1 / -1;      /* 날짜 입력 아래 한 줄 전체 — 왼쪽 정렬 */
  justify-self: start;
  width: auto;
  margin: 0.25rem 0 0;
  padding-inline: 1.6rem;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cohort-meta { grid-template-columns: 1fr 1fr; }
  .cohort-meta__save { width: 100%; }
}


/* 표 안 인라인 편집 — 저장 수단이 안 보여서 "어떻게 저장하냐" 문의가 왔다.
   값을 고치면 바로 저장되고(onchange), 버튼도 함께 둬서 방법이 보이게 한다. */
.cell-edit { display: inline-flex; align-items: stretch; gap: 0; }
.cell-edit input {
  margin: 0;
  font-size: 0.78rem;
  padding: 0.25rem 0.4rem;
  width: 7.6rem;
  border-radius: 4px 0 0 4px;
  border-right: 0;
}
.cell-edit__save {
  margin: 0;
  width: auto;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.2;
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
}
