/* 서원 멤버스 · 공유오피스 입주사 앱 리뉴얼 시안(위시켓 159956). 인상: 호텔 컨시어지처럼 차분한 B2B
   딥네이비 하나를 주색으로, 연한 회색 카드, 강한 포인트 색 없음.
   앱 안(.cx-app)은 글자 12·14·16·20·28, 간격 4·8·12·16·24만 쓴다. 정리 전 값은 맨 아래 .is-before 에만 둔다. */
.cx {
  --bg: #FAFAFB;
  --surface: #EFF1F4;
  --text: #0E1626;
  --muted: #5A6477;
  --line: #DDE1E7;
  --primary: #0F1D3A;
  --accent: #4A5A7C;
  --ok: #2E6652;
  --warn: #80622A;
  --danger: #963A33;
  --shade3: #CBD2DE;
  --line-strong: #C3CAD5;
  --serif: "Marcellus", "Pretendard Variable", Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.cx *, .cx *::before, .cx *::after { box-sizing: border-box; }
.cx [hidden] { display: none !important; }
.cx :where(button, input) { font: inherit; color: inherit; }
.cx :where(a) { color: inherit; }
.cx :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx code { font-family: var(--mono); font-size: 12px; }
.cx-num { font-family: var(--serif); font-weight: 400; }
.cx-tnum { font-variant-numeric: tabular-nums; }
.cx-muted { color: var(--muted); }
.cx-ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cx-ico--lg { width: 32px; height: 32px; }
.cx-measuring, .cx-measuring * { transition: none !important; }

/* ---------- 공통 틀 ---------- */
.cx-band {
  height: 28px; line-height: 28px; padding: 0 12px; text-align: center;
  font-size: 12px; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cx-band__method { display: none; }
.cx-method { margin: 0; padding: 4px 16px; text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) {
  .cx-band__method { display: inline; }
  .cx-method { display: none; }
}
@media (max-width: 420px) { .cx-band__long { display: none; } }

.cx-head { position: sticky; top: 0; z-index: 30; background: rgba(250, 250, 251, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cx-head__inner { max-width: 1280px; margin: 0 auto; min-height: 60px; padding: 8px 24px; display: flex; align-items: center; gap: 16px; }
.cx-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.cx-brand__mark { width: 32px; height: 32px; flex: none; }
.cx-brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cx-brand__word { font-family: var(--serif); font-size: 16px; letter-spacing: .24em; color: var(--primary); }
.cx-brand__sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cx-nav { margin-left: auto; display: flex; gap: 4px; }
.cx-nav__item {
  position: relative; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}
.cx-nav__item:hover { color: var(--text); background: var(--surface); }
.cx-nav__item.is-on { color: var(--primary); }
.cx-nav__item.is-on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--primary); }
.cx-nav__short { display: none; }
.cx-reset {
  flex: none; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 600; cursor: pointer;
  transition: background-color 120ms ease;
}
.cx-reset .cx-ico { width: 18px; height: 18px; }
.cx-reset:hover { background: var(--surface); }

.cx-main { min-height: 60vh; }
.cx-foot .demo-notice { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 16px 96px; }

.cx-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; min-height: 44px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--primary); border-radius: 999px;
  background: var(--bg); color: var(--primary); font-weight: 600; cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}
.cx-fab .cx-ico { width: 18px; height: 18px; }
.cx-fab:hover { background: var(--surface); }
.cx-fab:active { transform: scale(.98); }

.cx-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 70; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; text-align: center;
}

.cx-eyebrow { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

@media (max-width: 760px) {
  .cx-head { position: static; }
  .cx-head__inner { flex-wrap: wrap; padding: 8px 16px; gap: 8px; }
  .cx-nav { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .cx-nav__item { padding: 0 4px; }
  .cx-nav__item.is-on::after { left: 12px; right: 12px; }
  .cx-nav__long { display: none; }
  .cx-nav__short { display: inline; }
  .cx-reset { margin-left: auto; }
  .cx-fab { right: 16px; bottom: 16px; }
}

/* ---------- 버튼·라벨(앱과 페이지 공통) ---------- */
.cx-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px;
  font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.cx-btn:active, .cx-btn.is-pressed { transform: scale(.98); }
.cx-btn--primary { background: var(--primary); color: #fff; }
.cx-btn--primary:hover { background: #1A2A4D; }
.cx-btn--primary:active, .cx-btn--primary.is-pressed { background: #070F22; }
.cx-btn--line { background: var(--bg); border-color: var(--line-strong); color: var(--primary); }
.cx-btn--line:hover { background: var(--surface); }
.cx-btn--line:active, .cx-btn--line.is-pressed { background: #E3E7ED; }
.cx-btn--quiet { background: transparent; color: var(--muted); }
.cx-btn--quiet:hover { background: var(--surface); color: var(--text); }
.cx-btn--danger { background: var(--bg); border-color: var(--danger); color: var(--danger); }
.cx-btn--sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
.cx-btn--block { width: 100%; }
.cx-btn:disabled { background: #DCE0E6; border-color: transparent; color: #6E7788; cursor: not-allowed; transform: none; }
.cx-btn.is-loading { color: transparent !important; pointer-events: none; }
.cx-btn.is-loading::before, .cx-btn.is-loading::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
}
.cx-btn.is-loading::before { background: rgba(255, 255, 255, .28); }
.cx-btn.is-loading::after { right: auto; width: 0; background: #fff; animation: cx-load 600ms linear forwards; }
.cx-btn--primary.is-loading { background: var(--primary); }
@keyframes cx-load { to { width: calc(100% - 48px); } }

.cx-icon-btn {
  flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}
.cx-icon-btn:hover { background: var(--surface); }
.cx-icon-btn:active { transform: scale(.96); }
.cx-icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.cx-icon-btn .cx-ico { width: 20px; height: 20px; }

.cx-tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #B6BECA; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap;
}
.cx-tag--warn { color: var(--warn); border-color: currentColor; }
.cx-tag--ok { color: var(--ok); border-color: currentColor; }
.cx-tag--danger { color: var(--danger); border-color: currentColor; }

.cx-lang { flex: none; display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.cx-lang__btn {
  position: relative; min-height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 600; line-height: 16px; cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.cx-lang__btn::after { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
.cx-lang__btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.cx-lang--page .cx-lang__btn { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* ---------- 멤버 앱 화면 배치 ---------- */
.cx-stage {
  max-width: 1280px; margin: 0 auto; padding: 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 392px minmax(0, 1fr); gap: 32px; align-items: start;
}
.cx-center { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.cx-center__bar { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cx-map-inline { display: none; }
.cx-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface); }
.cx-switch__btn {
  min-height: 44px; min-width: 96px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-weight: 600; cursor: pointer; transition: background-color 120ms ease, color 120ms ease;
}
.cx-switch__btn[aria-pressed="true"] { background: var(--bg); color: var(--primary); box-shadow: 0 0 0 1px var(--line); }
.cx-phone-wrap { position: relative; width: 392px; margin-top: 8px; }
.cx-before-tag {
  display: none; position: absolute; top: -14px; left: 50%; z-index: 3; transform: translateX(-50%); margin: 0; padding: 4px 12px;
  border: 1px solid currentColor; border-radius: 999px; background: var(--bg); color: var(--warn);
  font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
}
.is-before-view .cx-before-tag { display: block; }

.cx-phone {
  position: relative; width: 392px; height: clamp(560px, calc(100vh - 186px), 800px);
  border: 1px solid #C6CCD6; border-radius: 36px; background: var(--bg); overflow: hidden; overflow: clip;
}
.cx-app { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-size: 14px; line-height: 20px; }
.cx-app :where(p, h1, h2, h3, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.cx-app :where(ul, ol) { list-style: none; }
.cx-app__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.cx-app__scroll::-webkit-scrollbar { display: none; }

.cx-side { padding-top: 60px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cx-side__title { margin: 4px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
.cx-side__lead { margin: 8px 0 0; color: var(--muted); }
.cx-side__note { margin: 0; color: var(--muted); }
.cx-rule__title { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cx-rule__note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.cx-rule__val { margin: 0; font-size: 16px; font-weight: 600; }
.cx-rule--row { display: flex; flex-direction: column; gap: 12px; }
.cx-rule--row > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cx-rule--row .cx-rule__title { margin: 0; }
.cx-swatches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cx-swatch { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; }
.cx-swatch__chip { display: inline-block; width: 24px; height: 24px; border-radius: 6px; border: 1px solid rgba(14, 22, 38, .12); }
.cx-swatch__chip--lg { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.cx-swatch__hex { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cx-count { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.cx-count__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cx-count__row b { font-size: 20px; color: var(--primary); }
.cx-count__note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.cx-count__more { margin-top: 8px; font-size: 12px; color: var(--muted); }
.cx-count__more summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--accent); font-weight: 600; }
.cx-count__more p { margin: 4px 0 0; line-height: 20px; }
.cx-keep__list { margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; }
.cx-keep__list > div { padding-left: 12px; border-left: 2px solid var(--line); }
.cx-keep--changed .cx-keep__list > div { border-left-color: var(--primary); }
.cx-keep dt { font-weight: 600; }
.cx-keep dd { margin: 0; color: var(--muted); }

@media (max-width: 1023px) {
  .cx-stage { grid-template-columns: minmax(0, 1fr); padding: 0 0 24px; gap: 24px; justify-items: center; }
  .cx-center { order: -1; width: 100%; padding-top: 12px; }
  .cx-side { width: 100%; max-width: 480px; padding: 0 16px; }
  .cx-phone-wrap { width: 100%; max-width: 480px; margin-top: 0; }
  .cx-before-tag { position: static; transform: none; margin: 0 16px 8px; text-align: center; white-space: normal; }
  .cx-phone { width: 100%; height: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; overflow: visible; }
  .cx-app { height: auto; }
  .cx-app__scroll { overflow: visible; }
  .cx-app .cx-tabbar { position: sticky; bottom: 0; z-index: 5; }
  .cx-sheet-wrap { position: fixed !important; z-index: 55 !important; }
  .cx--home .cx-fab { display: none; }
  .cx-map-inline { display: inline-flex; }
}

/* ---------- 앱 안 ---------- */
.cx-screen { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.cx-screen__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cx-screen__title { font-size: 20px; line-height: 28px; font-weight: 700; }
.cx-screen__note { font-size: 12px; line-height: 16px; color: var(--muted); }

.cx-greet { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cx-greet__text { min-width: 0; }
.cx-greet__hello { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
.cx-greet__where { font-size: 14px; line-height: 20px; color: var(--muted); }

.cx-card { display: block; width: 100%; padding: 16px; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); }
.cx-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin-bottom: 12px; }
.cx-card__title { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0; }
.cx-card__label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.cx-card__count { font-size: 12px; line-height: 16px; color: var(--muted); }

.cx-cal__legend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.cx-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cx-cal__wd { padding-bottom: 4px; text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); }
.cx-cal__day {
  position: relative; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font-size: 14px; line-height: 20px; cursor: pointer;
  transition: background-color 120ms ease;
}
.cx-cal__day:hover { background: rgba(14, 22, 38, .05); }
.cx-cal__day .cx-num { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; line-height: 1; }
.cx-cal__day.is-past { color: var(--muted); }
.cx-cal__day.is-today .cx-num { background: var(--primary); color: #fff; }
.cx-cal__day.is-selected:not(.is-today) .cx-num { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
.cx-cal__dot { position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.cx-cal__legend .cx-cal__dot { position: static; transform: none; display: inline-block; }
span.cx-cal__day { cursor: default; width: 44px; }

.cx-bk-list { display: flex; flex-direction: column; }
.cx-bk { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cx-bk:first-child { border-top: 0; padding-top: 0; }
.cx-bk:last-child { padding-bottom: 0; }
.cx-bk__main { flex: 1; min-width: 0; }
.cx-bk__time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 20px; margin: 0; }
.cx-bk__time b { font-size: 16px; line-height: 24px; font-weight: 600; }
.cx-bk__dur { font-size: 12px; line-height: 16px; color: var(--muted); }
.cx-bk__room { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.cx-bk__room b { color: var(--text); font-weight: 600; }
.cx-bk__acts { flex: none; display: flex; align-items: center; gap: 8px; }
.cx-bk--new { animation: cx-in 400ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cx-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.cx-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; text-align: center; }
.cx-empty__ico { color: var(--accent); }
.cx-empty__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.cx-empty__sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.cx-empty__btns { display: flex; gap: 8px; }
.cx-empty--error .cx-empty__ico { color: var(--danger); }

.cx-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-coin__num { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 8px; color: var(--primary); }
.cx-coin__num .cx-num { font-size: 28px; line-height: 36px; }
.cx-coin__unit { font-size: 12px; line-height: 16px; color: var(--muted); }
.cx-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.cx-bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width 400ms ease; }
.cx-coin__sub { margin: 8px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.cx-inv { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; transition: background-color 120ms ease, transform 120ms ease; }
.cx-inv:hover { background: #E8EBF0; }
.cx-inv:active { transform: scale(.99); }
.cx-inv__amt { margin-top: 4px; font-size: 16px; line-height: 24px; font-weight: 600; }
.cx-inv__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cx-inv__due { font-size: 12px; line-height: 16px; color: var(--muted); }

.cx-notice__list { display: flex; flex-direction: column; }
.cx-notice__item {
  width: 100%; min-height: 44px; padding: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font-size: 14px; line-height: 20px; cursor: pointer;
}
.cx-notice__list li:first-child .cx-notice__item { border-top: 0; padding-top: 0; }
.cx-notice__list li:last-child .cx-notice__item { padding-bottom: 0; }
.cx-notice__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-notice__date { flex: none; font-size: 12px; line-height: 16px; color: var(--muted); }

.cx-inv-list, .cx-menu { display: flex; flex-direction: column; }
.cx-inv-row, .cx-menu__item {
  width: 100%; min-height: 56px; padding: 12px 0; display: flex; align-items: center; gap: 12px;
  border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font-size: 14px; line-height: 20px; cursor: pointer;
}
.cx-inv-list li:first-child .cx-inv-row, .cx-menu li:first-child .cx-menu__item { border-top: 0; padding-top: 0; }
.cx-inv-list li:last-child .cx-inv-row, .cx-menu li:last-child .cx-menu__item { padding-bottom: 0; }
.cx-inv-row__title { flex: 1; font-weight: 600; }
.cx-inv-row__amt { font-size: 16px; line-height: 24px; font-weight: 600; }
.cx-menu__item { justify-content: space-between; font-size: 16px; line-height: 24px; }
.cx-menu__item .cx-ico { color: var(--muted); }
.cx-park__plate { font-size: 28px; line-height: 36px; color: var(--primary); }
.cx-park__state { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); }

.cx-tabbar { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px 8px 8px; border-top: 1px solid var(--line); background: var(--bg); }
.cx-tab {
  position: relative; min-height: 52px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: color 120ms ease;
}
.cx-tab.is-on { color: var(--primary); }
.cx-tab.is-on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--primary); }
.cx-tab.is-on .cx-tab__label { font-weight: 700; }
.cx-tab__label { font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }

.cx-skel { border-radius: 10px; background: #E5E9EE; animation: cx-pulse 1.2s ease-in-out infinite alternate; }
.cx-skel--line { height: 28px; width: 60%; }
.cx-skel--card { height: 140px; border-radius: 14px; }
.cx-skel--short { height: 88px; }
@keyframes cx-pulse { from { opacity: 1; } to { opacity: .5; } }

/* 시트 */
.cx-sheet-wrap { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: rgba(15, 29, 58, 0); transition: background-color 240ms ease; }
.cx-sheet-wrap.is-open { background: rgba(15, 29, 58, .32); }
.cx-sheet {
  width: 100%; max-height: 92%; display: flex; flex-direction: column; background: var(--bg); border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 24px rgba(15, 29, 58, .12); transform: translateY(100%); transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}
.cx-sheet-wrap.is-open .cx-sheet { transform: none; }
.cx-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
.cx-sheet__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.cx-sheet__title:focus { outline: none; }
.cx-sheet__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.cx-sheet__foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cx-sheet__foot--two { flex-direction: row; }
.cx-sheet__foot--two .cx-btn { flex: 1; }
.cx-sheet__when { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.cx-sheet__note { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.cx-steps { margin: 0; padding: 0 16px 12px; list-style: none; display: flex; gap: 16px; border-bottom: 1px solid var(--line); }
.cx-steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.cx-steps__no { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
.cx-steps .is-done { color: var(--text); }
.cx-steps .is-on { color: var(--primary); font-weight: 600; }
.cx-steps .is-on .cx-steps__no { background: var(--primary); border-color: var(--primary); color: #fff; }
.cx-field__label { margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.cx-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cx-dates::-webkit-scrollbar { display: none; }
.cx-date {
  flex: none; width: 48px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; transition: background-color 120ms ease, transform 120ms ease;
}
.cx-date__wd { font-size: 12px; line-height: 16px; color: var(--muted); }
.cx-date .cx-num { font-size: 16px; line-height: 20px; }
.cx-date.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cx-date.is-on .cx-date__wd { color: rgba(255, 255, 255, .8); }
.cx-times, .cx-lens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cx-chip {
  min-height: 44px; padding: 0 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font-size: 14px; cursor: pointer; transition: background-color 120ms ease, transform 120ms ease;
}
.cx-chip:active, .cx-date:active { transform: scale(.97); }
.cx-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cx-chip:disabled { background: var(--surface); color: #8C95A4; cursor: not-allowed; transform: none; }
.cx-rooms { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cx-room {
  width: 100%; padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: left; cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}
.cx-room:active { transform: scale(.99); }
.cx-room__name { font-size: 16px; line-height: 24px; font-weight: 600; }
.cx-room__meta { grid-row: 2; font-size: 12px; line-height: 16px; color: var(--muted); }
.cx-room__meta em { font-style: normal; }
.cx-room__state { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; }
.cx-room__state b { color: var(--primary); }
.cx-room.is-on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cx-room:disabled { background: var(--surface); opacity: .6; cursor: not-allowed; transform: none; }
.cx-confirm { padding: 16px; border-radius: 14px; background: var(--surface); }
.cx-confirm__room { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.cx-confirm__when { margin: 4px 0 0; color: var(--muted); }
.cx-sum { margin: 0; display: flex; flex-direction: column; }
.cx-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cx-sum dt { color: var(--muted); }
.cx-sum dd { margin: 0; font-weight: 600; }
.cx-sum__total { border-bottom: 0 !important; }
.cx-sum__total dt { color: var(--text); font-weight: 600; }
.cx-sum__total dd { font-size: 20px; line-height: 28px; color: var(--primary); }
.cx-inv-detail__state { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }

/* ---------- 정리 전(가상의 흔한 예). 화면 구성·순서는 같고 간격·글자 크기·버튼 모양만 다르다 ---------- */
.cx-app.is-before { --primary: #1D4ED8; --accent: #3B82F6; }
.is-before .cx-screen { padding: 14px 13px 20px; gap: 18px; }
.is-before .cx-greet { gap: 10px; }
.is-before .cx-greet__hello { font-size: 22px; line-height: 30px; font-weight: 800; }
.is-before .cx-greet__where { font-size: 13px; margin-top: 2px; }
.is-before .cx-lang { padding: 3px; gap: 2px; }
.is-before .cx-lang__btn { font-size: 11px; padding: 0 6px; }
.is-before .cx-card { padding: 15px; border: 2px solid #C9CFD8; border-radius: 6px; background: #fff; }
.is-before .cx-cal { padding: 18px 10px; border-radius: 12px; }
.is-before .cx-card__head { margin-bottom: 10px; }
.is-before .cx-card__title { font-size: 17px; }
.is-before .cx-day .cx-card__title { font-size: 15px; font-weight: 800; }
.is-before .cx-notice .cx-card__title { font-size: 18px; }
.is-before .cx-cal__grid { gap: 2px 6px; }
.is-before .cx-cal__wd { font-size: 11px; padding-bottom: 6px; }
.is-before .cx-cal__day { font-size: 15px; }
.is-before .cx-cal__day .cx-num { font-family: var(--sans); }
.is-before .cx-cal__day.is-today .cx-num { border-radius: 6px; }
.is-before .cx-btn { border-radius: 4px; font-weight: 700; }
.is-before .cx-btn--sm { font-size: 13px; padding: 0 10px; }
.is-before .cx-btn--line { border-width: 2px; }
.is-before .cx-bk { gap: 6px; padding: 10px 0; }
.is-before .cx-bk__time b { font-size: 15px; }
.is-before .cx-bk__room { font-size: 13px; margin-top: 2px; }
.is-before .cx-bk__acts { gap: 5px; }
.is-before .cx-pair { gap: 10px; }
.is-before .cx-coin { padding: 20px 14px; border-radius: 20px; }
.is-before .cx-coin__num .cx-num { font-family: var(--sans); font-size: 32px; font-weight: 800; }
.is-before .cx-coin__num { margin: 6px 0 10px; }
.is-before .cx-coin__sub { font-size: 11px; margin-top: 6px; }
.is-before .cx-inv { padding: 12px 18px; }
.is-before .cx-inv__amt { font-size: 19px; font-weight: 800; }
.is-before .cx-tag { font-size: 11px; padding: 0 6px; }
.is-before .cx-tag--warn { background: #F59E0B; border-color: #F59E0B; color: #fff; }
.is-before .cx-notice__item { padding: 6px 0; font-size: 13px; }
.is-before .cx-notice__date { font-size: 11px; }
.is-before .cx-tabbar { padding: 6px 10px 10px; gap: 2px; }
.is-before .cx-tab__label { font-size: 11px; }

/* ---------- 페이지 공통(예약판·가이드·출시 준비) ---------- */
.cx-wrap { max-width: 1168px; margin: 0 auto; padding: 24px; }
.cx-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cx-page-title { margin: 4px 0 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; }
.cx-page-lead { margin: 8px 0 0; max-width: 680px; color: var(--muted); }
.cx-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* 예약판 */
.cx-daynav { display: flex; align-items: center; gap: 8px; }
.cx-daynav__date { margin: 0; min-width: 168px; text-align: center; font-size: 16px; font-weight: 600; }
.cx-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; color: var(--muted); }
.cx-stats b { color: var(--text); font-size: 16px; }
.cx-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 16px; padding: 0; font-size: 12px; color: var(--muted); }
.cx-legend li { display: inline-flex; align-items: center; gap: 8px; }
.cx-legend__sw { display: inline-block; width: 24px; height: 12px; border-radius: 4px; }
.cx-sw-s1, .cx-blk--s1, .cx-rrow--s1 { background: var(--primary); color: #fff; }
.cx-sw-s2, .cx-blk--s2, .cx-rrow--s2 { background: var(--accent); color: #fff; }
.cx-sw-s3, .cx-blk--s3, .cx-rrow--s3 { background: var(--shade3); color: var(--text); }
.cx-sw-full, .cx-blk--full, .cx-rrow--s0 { background: repeating-linear-gradient(135deg, #D3D9E2 0 6px, #EEF1F5 6px 12px); color: var(--text); box-shadow: inset 0 0 0 1px #9AA4B5; }
.cx-sw-shut, .cx-shut, .cx-rrow--shut { background: repeating-linear-gradient(135deg, rgba(90, 100, 119, .16) 0 3px, transparent 3px 9px); color: var(--muted); box-shadow: inset 0 0 0 1px #B3BBC8; }

.cx-board { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.cx-board__scale, .cx-board__row { display: grid; grid-template-columns: 136px minmax(0, 1fr); }
.cx-board__scale { height: 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cx-board__scale > span { border-right: 1px solid var(--line); }
.cx-board__ticks { position: relative; }
.cx-tick { position: absolute; top: 8px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cx-tick:first-child { transform: none; padding-left: 4px; }
.cx-tick--end { transform: translateX(-100%); padding-right: 4px; }
.cx-board__row { min-height: 76px; border-bottom: 1px solid var(--line); }
.cx-board__row:last-child { border-bottom: 0; }
.cx-board__room { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-right: 1px solid var(--line); background: var(--surface); }
.cx-board__room b { font-size: 14px; }
.cx-board__room span { font-size: 12px; line-height: 16px; color: var(--muted); }
.cx-board__lane {
  position: relative;
  background-image: linear-gradient(to right, #D5DAE2 1px, transparent 1px), linear-gradient(to right, #ECEFF3 1px, transparent 1px);
  background-size: 10% 100%, 5% 100%;
}
.cx-blk {
  position: absolute; top: 8px; bottom: 8px; z-index: 2; padding: 8px; display: flex; flex-direction: column; justify-content: center; gap: 0;
  border-radius: 10px; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  font-size: 12px; line-height: 16px; transition: box-shadow 120ms ease;
}
.cx-blk:hover { filter: brightness(1.06); }
.cx-blk.is-sel { outline: 2px solid var(--text); outline-offset: 2px; }
.cx-blk.is-drag { cursor: grabbing; z-index: 6; opacity: .92; }
.cx-blk.is-bad { outline: 2px dashed var(--danger); outline-offset: 2px; }
.cx-blk.is-back { transition: transform 240ms ease, width 240ms ease; }
.cx-blk--full { cursor: pointer; }
.cx-blk__who { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-blk__time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .88; }
.cx-blk__grip { position: absolute; top: 0; right: 0; bottom: 0; width: 12px; cursor: ew-resize; }
.cx-blk__grip::after { content: ""; position: absolute; top: 50%; right: 4px; width: 2px; height: 16px; margin-top: -8px; border-radius: 1px; background: currentColor; opacity: .55; }
.cx-shut { position: absolute; top: 8px; bottom: 8px; z-index: 1; padding: 0 12px; display: flex; align-items: center; border-radius: 10px; font-size: 12px; overflow: hidden; white-space: nowrap; }

.cx-rlist { display: none; }
.cx-rcard { padding: 16px; border-radius: 14px; background: var(--surface); }
.cx-rcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.cx-rcard__head span { font-size: 12px; color: var(--muted); }
.cx-rcard__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cx-rrow {
  width: 100%; min-height: 44px; padding: 8px 12px; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  border: 0; border-radius: 10px; text-align: left; font-size: 14px; cursor: pointer;
}
.cx-rrow.is-sel { outline: 2px solid var(--text); outline-offset: 2px; }
.cx-rrow__who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-rrow__len { font-size: 12px; opacity: .85; }
.cx-rrow--shut { grid-template-columns: 96px minmax(0, 1fr); cursor: default; }
.cx-rrow--shut .cx-rrow__who { font-weight: 500; white-space: normal; }
.cx-rrow--empty { display: block; background: transparent; color: var(--muted); cursor: default; }

.cx-mgr__below { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.cx-panel { position: sticky; top: 84px; padding: 16px; border-radius: 14px; background: var(--surface); }
.cx-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cx-panel__eyebrow { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.cx-panel__close { display: none; }
.cx-panel__title { margin: 4px 0 8px; font-size: 20px; line-height: 28px; }
.cx-panel__hint { margin: 8px 0 0; color: var(--muted); }
.cx-panel__warn { margin: 12px 0 0; font-weight: 600; }
.cx-panel__dl { margin: 0; }
.cx-panel__dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cx-panel__dl dt { color: var(--muted); flex: none; }
.cx-panel__dl dd { margin: 0; font-weight: 600; text-align: right; }
.cx-panel__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.cx-log { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.cx-log__title { margin: 0; font-size: 16px; }
.cx-log__note { margin: 4px 0 12px; font-size: 12px; color: var(--muted); }
.cx-log__list { margin: 0; padding: 0; list-style: none; max-height: 420px; overflow: auto; }
.cx-log__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.cx-log__row:first-child { border-top: 0; }
.cx-log__at { color: var(--muted); }

@media (max-width: 760px) {
  .cx-wrap { padding: 16px; }
  .cx-page-title { font-size: 20px; line-height: 28px; }
  .cx-daynav { width: 100%; }
  .cx-daynav__date { flex: 1; min-width: 0; }
  .cx-board { display: none; }
  .cx-rlist { display: grid; gap: 12px; }
  .cx-mgr__below { grid-template-columns: minmax(0, 1fr); }
  .cx-panel {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 45; max-height: 80vh; overflow: auto;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; background: var(--bg);
    box-shadow: 0 -8px 24px rgba(15, 29, 58, .16); transform: translateY(110%); transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
  }
  .cx-mgr.has-sel .cx-panel { transform: none; }
  .cx-panel__close { display: grid; }
  body:has(.cx-mgr.has-sel) .cx-fab { display: none; }
  .cx-log__row { grid-template-columns: 48px minmax(0, 1fr); }
  .cx-log__row .cx-tag { grid-column: 2; justify-self: start; }
}

/* 디자인 가이드 */
.cx-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.cx-toc a { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--muted); }
.cx-toc a:hover { color: var(--primary); border-color: var(--primary); }
.cx-sec { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.cx-sec__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.cx-sec__sub { margin: 24px 0 8px; font-size: 16px; }
.cx-sec__lead { margin: 8px 0 16px; max-width: 760px; color: var(--muted); }
.cx-sec__foot { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.cx-tbl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cx-tbl__row { display: grid; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.cx-tbl__row:first-child { border-top: 0; }
.cx-tbl__row--head { padding-top: 8px; padding-bottom: 8px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); }
.cx-tbl--color .cx-tbl__row { grid-template-columns: 200px 220px minmax(0, 1fr) 240px; }
.cx-tbl--num .cx-tbl__row { grid-template-columns: 96px 160px minmax(0, 1fr); }
.cx-tbl--motion .cx-tbl__row { grid-template-columns: 180px 96px minmax(0, 1fr); }
.cx-colorcell { display: flex; align-items: center; gap: 12px; }
.cx-types { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cx-type { display: grid; grid-template-columns: 220px minmax(0, 1fr) 240px; gap: 16px; align-items: center; padding: 16px; border-top: 1px solid var(--line); }
.cx-type:first-child { border-top: 0; }
.cx-type p { margin: 0; }
.cx-type__meta { font-size: 12px; color: var(--muted); }
.cx-type__meta b { color: var(--text); font-size: 14px; }
.cx-type__use { color: var(--muted); }
.cx-type__sample--28 { font-size: 28px; line-height: 36px; color: var(--primary); }
.cx-type__sample--20 { font-size: 20px; line-height: 28px; font-weight: 700; }
.cx-type__sample--16 { font-size: 16px; line-height: 24px; font-weight: 600; }
.cx-type__sample--14 { font-size: 14px; line-height: 20px; }
.cx-type__sample--12 { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.cx-spaces { display: flex; flex-direction: column; gap: 8px; }
.cx-space { display: grid; grid-template-columns: 112px 56px minmax(0, 1fr); gap: 16px; align-items: center; }
.cx-space__bar { display: block; height: 16px; border-radius: 4px; background: var(--accent); }
.cx-space__use { color: var(--muted); }
.cx-radii { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.cx-radius { display: flex; align-items: center; gap: 12px; }
.cx-radius__box { width: 64px; height: 48px; background: var(--surface); border: 1px solid var(--line-strong); }
.cx-radius__box--shadow { border-radius: 14px 14px 0 0; background: var(--bg); border: 0; box-shadow: 0 -8px 24px rgba(15, 29, 58, .12); }
.cx-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cx-part { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.cx-part__title { margin: 0; font-size: 14px; color: var(--muted); }
.cx-part__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cx-part__col { display: flex; flex-direction: column; gap: 12px; }
.cx-part__note { margin: 0; font-size: 12px; color: var(--muted); }
.cx-state { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cx-state figcaption { font-size: 12px; color: var(--muted); }
.cx-icons .cx-state { width: 56px; }
.cx-input-wrap { display: grid; grid-template-columns: 1fr; gap: 4px; }
.cx-input-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.cx-input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); font-size: 16px; }
.cx-input:focus, .cx-input.is-focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--primary); }
.cx-input.is-error { border-color: var(--danger); }
.cx-input-cap { font-size: 12px; color: var(--muted); }
.cx-input-err { font-size: 12px; color: var(--danger); font-weight: 600; }
.cx-sample-card { background: var(--surface); }
.cx-sample-card .cx-card__title { margin: 0; }
.cx-sample-card p, .cx-sample-card ul { margin: 0; padding: 0; list-style: none; }
.cx-tabbar--sample { border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.cx-tabbar--sample .cx-tab { cursor: default; }
.cx-sheet--sample { transform: none; max-height: none; box-shadow: 0 -8px 24px rgba(15, 29, 58, .12); border: 1px solid var(--line); border-bottom: 0; padding-bottom: 12px; }
.cx-sheet--sample .cx-part__note { padding: 12px 16px 0; }
.cx-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cx-mini { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cx-mini figcaption { font-size: 12px; color: var(--muted); }
.cx-mini__screen { min-height: 280px; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 12px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); }
.cx-mini__screen .cx-empty p { margin: 0; }
.cx-sys__end { margin: 32px 0 0; padding: 16px; border-radius: 14px; background: var(--surface); font-weight: 600; text-align: center; }

@media (max-width: 900px) {
  .cx-parts, .cx-three { grid-template-columns: minmax(0, 1fr); }
  .cx-tbl__row, .cx-type { grid-template-columns: minmax(0, 1fr) !important; gap: 4px; }
  .cx-tbl__row--head { display: none; }
  .cx-space { grid-template-columns: 96px 48px minmax(0, 1fr); gap: 8px; }
}

/* 출시 준비판 */
.cx-tabs { display: flex; gap: 8px; margin: 24px 0 16px; border-bottom: 1px solid var(--line); }
.cx-tabs__btn {
  min-height: 48px; padding: 0 16px; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 600; white-space: nowrap; cursor: pointer;
}
.cx-tabs__btn[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.cx-tabs__count { min-height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 12px; }
.cx-tpanel__note { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--surface); color: var(--muted); }
.cx-tpanel__foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.cx-tgroup { margin: 24px 0 8px; font-size: 16px; }
.cx-tgroup span { color: var(--muted); font-weight: 500; }
.cx-tpanel > .cx-tgroup:nth-child(2) { margin-top: 0; }
.cx-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cx-lrow { display: grid; gap: 8px 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.cx-lrow:first-child { border-top: 0; }
.cx-lrow--head { padding-top: 8px; padding-bottom: 8px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); }
.cx-list--screens .cx-lrow { grid-template-columns: 40px minmax(0, 1fr) 88px 88px 112px; padding-top: 4px; padding-bottom: 4px; }
.cx-list--screens .cx-lrow--head { padding-top: 8px; padding-bottom: 8px; }
.cx-list--screens .cx-check__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-list--fn .cx-lrow, .cx-list--store .cx-lrow { grid-template-columns: 40px minmax(0, 1fr) 80px 80px; }
.cx-list--sec .cx-lrow { grid-template-columns: 40px minmax(0, 1.3fr) 80px minmax(0, 1fr) 80px; align-items: start; }
.cx-list--sec .cx-lrow > * { padding-top: 4px; }
.cx-lrow__no { color: var(--muted); }
.cx-lrow__name summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; list-style: none; }
.cx-lrow__name summary::-webkit-details-marker { display: none; }
.cx-lrow__name summary::before { content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform 120ms ease; flex: none; }
.cx-lrow__name[open] summary::before { transform: rotate(45deg); }
.cx-lrow__name p { margin: 0 0 8px 16px; color: var(--muted); }
.cx-lrow__status:empty { display: none; }
.cx-lrow__status { font-size: 12px; color: var(--primary); border: 1px solid var(--primary); border-radius: 999px; padding: 0 8px; }
.cx-lrow__body { min-width: 0; }
.cx-lrow__title { margin: 0; font-weight: 600; }
.cx-lrow__text { margin: 4px 0 0; color: var(--muted); }
.cx-lrow__how { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cx-lrow__memo { font-size: 12px; color: var(--muted); }
.cx-lrow__fix { margin: 0; color: var(--muted); }
.cx-lrow__k { display: none; }
.cx-lrow__state {
  justify-self: start; min-height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.cx-lrow__state.is-on { color: var(--primary); border-color: var(--primary); }
.cx-check { position: relative; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cx-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); cursor: pointer; }

@media (max-width: 760px) {
  .cx-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .cx-tabs__btn { justify-content: space-between; padding: 0 8px; }
  .cx-lrow--head { display: none !important; }
  .cx-lrow { padding: 12px; }
  .cx-list--screens .cx-lrow { grid-template-columns: 28px repeat(3, minmax(0, 1fr)); gap: 0 8px; padding: 4px 12px 8px; }
  .cx-list--screens .cx-lrow__name { grid-column: 2 / -1; }
  .cx-list--screens .cx-check { font-size: 12px; }
  .cx-list--screens .cx-check:first-of-type { grid-column-start: 2; }
  .cx-list--screens .cx-check__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .cx-list--fn .cx-lrow, .cx-list--store .cx-lrow, .cx-list--sec .cx-lrow { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; }
  .cx-list--fn .cx-check, .cx-list--store .cx-check, .cx-list--sec .cx-check, .cx-list--sec .cx-lrow__fix { grid-column: 2 / -1; }
  .cx-list--sec .cx-lrow > * { padding-top: 0; }
  .cx-lrow__k { display: inline; margin-right: 8px; font-weight: 600; color: var(--text); }
}

/* 대화 상자 */
.cx-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: 0 16px 48px rgba(15, 29, 58, .2); }
.cx-dialog::backdrop { background: rgba(15, 29, 58, .32); }
.cx-dialog__body { max-height: calc(100vh - 48px); overflow: auto; padding: 24px; }
.cx-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cx-dialog__title { margin: 4px 0 0; font-size: 20px; line-height: 28px; }
.cx-dialog__sub { margin: 24px 0 8px; font-size: 16px; }
.cx-dialog__foot { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.cx-dialog--sm { width: min(360px, calc(100% - 32px)); }
.cx-map { margin: 0; padding: 0; list-style: none; }
.cx-map li { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.cx-map li:first-child { border-top: 0; }
.cx-map__show { color: var(--primary); font-weight: 600; text-decoration: none; }
.cx-map__show:hover { text-decoration: underline; text-underline-offset: 3px; }
.cx-diffs { margin: 0; padding-left: 20px; color: var(--muted); }
.cx-diffs li + li { margin-top: 4px; }
.cx-info { margin: 0 0 16px; font-size: 16px; line-height: 24px; }
@media (max-width: 560px) {
  .cx-dialog__body { padding: 16px; }
  .cx-map li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .cx *, .cx *::before, .cx *::after { animation-duration: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0ms !important; scroll-behavior: auto !important; }
}
