/* =========================================================
   ONDO STUDIO — admin
   ========================================================= */
body.admin { background: #f4f5f7; color: var(--ink); }

.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #e8eaee;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 0;
}
.sidebar__brand .logo__mark { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
.sidebar__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.sidebar__brand-text strong { font-size: 15px; font-weight: 800; letter-spacing: .14em; }
.sidebar__brand-text span { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #9aa3b1;
  padding: 0 12px 8px;
  text-transform: uppercase;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #4c5768;
  transition: background .15s ease, color .15s ease;
}
.side-nav a svg { width: 18px; height: 18px; color: #8b95a4; flex: none; }
.side-nav a:hover { background: #f5f6f8; color: var(--ink); }
.side-nav a.is-active { background: #f1ece3; color: var(--ink); font-weight: 600; }
.side-nav a.is-active svg { color: var(--ink); }
.side-nav .count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sidebar__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-top: 1px solid #eef0f3;
}
.side-account .avatar { width: 34px; height: 34px; background: var(--ink); color: #fff; font-size: 12px; }
.side-account strong { display: block; font-size: 13px; }
.side-account span { font-size: 11.5px; color: var(--muted); }
.reset-link {
  border: 0;
  background: none;
  padding: 0 8px;
  font-size: 11.5px;
  color: #98a1af;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reset-link:hover { color: var(--slate); }

/* ---------- main ---------- */
.main { min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 245, 247, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8eaee;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar__title h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.topbar__title p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.btn--xs { padding: 9px 14px; font-size: 13px; border-radius: 9px; }
.btn--outline { background: #fff; border-color: #dfe3e8; color: var(--ink-2); }
.btn--outline:hover { background: #f7f8fa; border-color: #cfd5dc; }
.btn--save { background: var(--ink); color: #fff; }
.btn--save:hover { background: var(--ink-3); }
.btn--save[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid #e3e6ea;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #5b6675;
  flex: none;
}
.icon-btn:hover { background: #f7f8fa; }
.icon-btn svg { width: 17px; height: 17px; }
.topbar .avatar { width: 34px; height: 34px; background: var(--ink); color: #fff; font-size: 12px; }
.mobile-brand { display: none; }

.content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 36px 96px;
}

/* ---------- 좌측 대메뉴 → 뷰 전환 (v7) ---------- */
.view { display: none; }
.view.is-active { display: block; animation: viewIn .2s ease; }
.view[hidden] { display: none !important; }
.view > .section:first-child { margin-top: 0; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.is-active { animation: none; } }
/* 상단바가 뷰 제목을 보여주므로 본문 섹션 제목 중복은 숨기고 도구 버튼만 남깁니다. */
.view .section__head > div:first-child { display: none; }
.view .section__head { justify-content: flex-end; align-items: center; }
.view .section__head .section__actions { margin-left: auto; }

.card {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 26, 38, .03);
}

/* ---------- subscription bar ---------- */
.subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.subbar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2f9e6f;
  box-shadow: 0 0 0 4px rgba(47, 158, 111, .13);
  flex: none;
}
.subbar__title { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  background: #f2f4f7;
  border-radius: 5px;
  padding: 3px 7px;
  letter-spacing: 0;
}
.subbar__meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.subbar__meta b { color: var(--ink-2); font-weight: 600; }
.subbar__right { display: flex; align-items: center; gap: 16px; }
.subbar__days {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  line-height: 1.4;
}
.subbar__days strong { display: block; font-size: 14px; color: var(--ink); }
.subbar__progress {
  width: 116px;
  height: 6px;
  border-radius: 999px;
  background: #eef0f3;
  overflow: hidden;
}
.subbar__progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2c6155, #6fae94);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.stats > * { min-width: 0; }
.stat { padding: 17px 16px 15px; }
.stat__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.stat__label svg { width: 14px; height: 14px; color: #98a1af; }
.stat__value {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.stat__value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.stat__foot { margin-top: 7px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.delta { font-weight: 600; color: #2f8f66; }
.delta.flat { color: #8a94a3; }
.stat__foot .dot-sep { color: #cbd1d9; }

/* ---------- panels ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.dash-grid > * { min-width: 0; }
.panel-card { padding: 20px 22px; }
.panel-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-card__head h2 { font-size: 14.5px; font-weight: 700; }
.panel-card__head p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.link-more { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.link-more:hover { color: var(--ink); }
.link-more svg { width: 12px; height: 12px; }

.chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 148px;
  padding-top: 8px;
}
.chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  height: 100%;
  min-width: 0;
}
.chart__bar {
  width: 100%;
  max-width: 34px;
  border-radius: 7px 7px 3px 3px;
  background: #e9ecef;
  position: relative;
  transition: background .18s ease;
}
.chart__col.is-today .chart__bar { background: var(--ink); }
.chart__col:hover .chart__bar { background: #b9c1cc; }
.chart__col.is-today:hover .chart__bar { background: var(--ink-3); }
.chart__bar span {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.chart__col.is-today .chart__bar span { color: var(--ink); }
.chart__label { font-size: 11px; color: var(--muted); }
.chart__col.is-today .chart__label { color: var(--ink); font-weight: 600; }
.chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f4;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.chart-foot b { color: var(--ink-2); font-weight: 600; }

.plan-box {
  background: #fbf9f5;
  border: 1px solid #ece7de;
  border-radius: 12px;
  padding: 16px;
}
.plan-box__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; padding: 5px 0; }
.plan-box__row span { color: var(--muted); }
.plan-box__row b { font-weight: 600; }
.plan-box__note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e3dbcc; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ---------- sections ---------- */
.section { margin-top: 34px; scroll-margin-top: 90px; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.section__head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.025em; }
.section__head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.section__actions { display: flex; align-items: center; gap: 8px; }
.saved-note { font-size: 11.5px; color: var(--muted); }

/* ---------- forms ---------- */
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-card2 { padding: 22px 24px; }
.form-card2__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.form-card2__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #f3f5f7;
  color: #5b6675;
  display: grid;
  place-items: center;
  flex: none;
}
.form-card2__icon svg { width: 17px; height: 17px; }
.form-card2__head h3 { font-size: 14px; font-weight: 700; }
.form-card2__head p { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.form-card2__badge {
  margin-left: auto;
  flex: none;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  color: #2f8f66;
  background: #eaf5ee;
  border-radius: 5px;
  padding: 3px 7px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 14px 16px; }
.span-2 { grid-column: 1 / -1; }

.field2 { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field2[hidden] { display: none; }
.field2__label {
  font-size: 12px;
  font-weight: 600;
  color: #47505e;
  display: flex;
  align-items: center;
  gap: 4px;
}
.field2__label .req { color: #c0442f; }
.field2 input[type="text"],
.field2 input[type="tel"],
.field2 textarea,
.field2 select {
  width: 100%;
  border: 1px solid #dfe3e8;
  background: #fff;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.field2 textarea { resize: vertical; line-height: 1.6; min-height: 74px; }
.field2 input:focus,
.field2 textarea:focus,
.field2 select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 97, 85, .1);
}
.field2 input::placeholder,
.field2 textarea::placeholder { color: #abb3bf; }
.field2 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2355637a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.field2__hint { font-size: 11px; color: #98a1af; }
.field2.is-invalid input,
.field2.is-invalid textarea { border-color: #d1604c; background: #fdf7f5; }
.field2__error { font-size: 11px; color: #c0442f; display: none; }
.field2.is-invalid .field2__error { display: block; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #f8f9fa;
  border: 1px solid #eceff2;
  border-radius: 11px;
  margin-bottom: 14px;
}
.switch-row__text strong { display: block; font-size: 13px; }
.switch-row__text span { font-size: 11.5px; color: var(--muted); }
.switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d5dae1;
  position: relative;
  transition: background .18s ease;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .18s ease;
}
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--green); outline-offset: 2px; }

.notice-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #f4efe6;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 12px;
  margin-top: 12px;
  overflow: hidden;
}
.notice-preview span:first-child { width: 5px; height: 5px; border-radius: 50%; background: #8fbfa9; flex: none; }
.notice-preview em {
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.notice-preview.is-off { opacity: .45; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 4px 2px 0;
}
.form-actions .saved-note { margin-right: auto; }

/* ---------- inquiries ---------- */
.inq-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f3;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 4px; }
.filter {
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7686;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
}
.filter:hover { background: #f5f6f8; }
.filter.is-active { background: #eef1f4; color: var(--ink); font-weight: 600; }
.inq-toolbar__right { font-size: 11.5px; color: var(--muted); }

.inq-table { width: 100%; }
.inq-head {
  display: grid;
  grid-template-columns: 78px 132px 112px minmax(0, 1fr) 104px;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid #eef0f3;
  font-size: 11px;
  font-weight: 600;
  color: #98a1af;
  letter-spacing: .02em;
}
.inq-list { display: flex; flex-direction: column; }
.inq-item {
  display: grid;
  grid-template-columns: 78px 132px 112px minmax(0, 1fr) 104px;
  gap: 14px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f2f4;
  font-size: 12.5px;
  transition: background .15s ease;
}
.inq-item:last-child { border-bottom: 0; }
.inq-item:hover { background: #fbfbfc; }
.inq-item.is-new { background: #fdfcf8; }
.inq-item.is-new:hover { background: #faf8f2; }
.inq-item__date { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.inq-item__date b { display: block; font-weight: 600; color: var(--ink-2); font-size: 12px; }
.inq-item__who { min-width: 0; }
.inq-item__who strong { display: block; font-weight: 600; font-size: 13px; }
.inq-item__who a { font-size: 11.5px; color: var(--muted); }
.inq-item__type {
  display: inline-block;
  justify-self: start;
  font-size: 11px;
  color: #5b6675;
  background: #f3f5f7;
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}
.inq-item__msg {
  color: #3f4a59;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.inq-item__status { justify-self: end; }
.status-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.status-btn .sd { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-btn.is-new { background: #fff4e8; color: #a8681f; border-color: #f5e2c8; }
.status-btn.is-new:hover { background: #fdedda; }
.status-btn.is-done { background: #eaf5ee; color: #2f8f66; border-color: #d9ecdf; }
.status-btn.is-done:hover { background: #e0f0e6; }
.inq-empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13px; }

.inq-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid #eef0f3;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- save bar ---------- */
.savebar {
  position: fixed;
  right: 32px;
  bottom: 26px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px 12px 18px;
  box-shadow: 0 18px 40px rgba(17, 26, 38, .28);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.savebar.is-open { transform: none; opacity: 1; pointer-events: auto; }
.savebar__text { font-size: 12.5px; color: #d5dbe4; }
.savebar__text strong { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.savebar .btn { border-radius: 9px; padding: 9px 14px; font-size: 12.5px; }
.savebar .btn--ghost { border-color: rgba(255, 255, 255, .24); color: #fff; }
.savebar .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.savebar .btn--save { background: #fff; color: var(--ink); }
.savebar .btn--save:hover { background: #f1ece3; }

/* ---------- toast ---------- */
.admin-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -14px);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(17, 26, 38, .24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 80;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.admin-toast.is-open { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile tabbar ---------- */
.tabbar { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1120px) {
  .app { grid-template-columns: 216px minmax(0, 1fr); }
  .content { padding: 22px 26px 96px; }
  .topbar { padding: 16px 26px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app { display: block; }
  .sidebar { display: none; }
  body.admin { background: #f4f5f7; }

  .topbar { padding: 12px 16px; gap: 12px; }
  .topbar__title p { display: none; }
  .topbar__title h1 { font-size: 16px; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 8px; }
  .mobile-brand .logo__mark { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
  .mobile-brand strong { font-size: 12px; letter-spacing: .12em; }
  .topbar__right .avatar { display: none; }
  .topbar__right .btn--outline { display: none; }
  .topbar__right .btn { font-size: 12px; padding: 8px 12px; }

  .content { padding: 16px 16px 110px; }

  .subbar { padding: 14px 16px; gap: 12px; }
  .subbar__right { width: 100%; justify-content: space-between; }
  .subbar__progress { flex: 1; max-width: 120px; }
  .subbar__days { text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .subbar__days strong { display: inline; font-size: 12.5px; }

  .dash-grid { grid-template-columns: minmax(0, 1fr); }

  .section { margin-top: 28px; scroll-margin-top: 72px; }
  .section__head { align-items: flex-start; }
  .section__head h2 { font-size: 17px; }
  .section__actions .btn { font-size: 12px; padding: 8px 12px; }

  .form-card2 { padding: 16px; border-radius: 14px; }
  .form-card2__head { margin-bottom: 14px; }
  .form-card2__head p { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-actions { position: static; }

  .inq-head { display: none; }
  .inq-toolbar { padding: 12px 14px; }
  .inq-list { gap: 0; }
  .inq-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "who status"
      "type date"
      "msg msg";
    gap: 6px 10px;
    padding: 14px 16px;
    align-items: start;
  }
  .inq-item__who { grid-area: who; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .inq-item__who strong { font-size: 13.5px; }
  .inq-item__status { grid-area: status; }
  .inq-item__type { grid-area: type; }
  .inq-item__date { grid-area: date; justify-self: end; font-size: 11px; }
  .inq-item__date b { display: inline; font-size: 11px; font-weight: 500; color: var(--muted); margin-right: 3px; }
  .inq-item__msg { grid-area: msg; font-size: 12.5px; -webkit-line-clamp: 3; margin-top: 2px; }

  .inq-foot { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 16px 12px; }
  .inq-foot span:last-child { white-space: nowrap; }

  .savebar {
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    padding: 10px 10px 10px 14px;
    gap: 10px;
    border-radius: 12px;
  }
  .savebar__text { font-size: 11.5px; }
  .savebar__text strong { font-size: 12.5px; }

  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e3e6ea;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: 9px;
    font-size: 10.5px;
    font-weight: 500;
    color: #8a94a3;
  }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar a.is-active { color: var(--ink); font-weight: 600; }
  .tabbar a.is-active svg { color: var(--ink); }
}

@media (max-width: 420px) {
  .stat { padding: 15px 16px 14px; }
  .stat__value { font-size: 23px; }
  .stat__label { font-size: 12px; }
  .chart { gap: 7px; }
  .subbar__title { font-size: 13.5px; }
}

/* =========================================================
   v2 — 프리미엄 편집기 · 채널 연동
   ========================================================= */
.field2 input[type="url"] {
  width: 100%;
  border: 1px solid #dfe3e8;
  background: #fff;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.field2 input[type="url"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 97, 85, .1);
}
.field2 input[type="url"]::placeholder { color: #abb3bf; }
.field2.is-invalid input[type="url"] { border-color: #d1604c; background: #fdf7f5; }

/* ---------- quick cards ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.quick-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.quick-card:hover { transform: translateY(-1px); border-color: #dfe3e8; box-shadow: 0 8px 20px rgba(17, 26, 38, .06); }
.quick-card__icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: #f3f5f7;
  color: #5b6675;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.quick-card__icon svg { width: 16px; height: 16px; }
.quick-card strong { font-size: 13px; font-weight: 700; }
.quick-card span:last-child { font-size: 11.5px; color: #8a94a3; line-height: 1.5; }

/* ---------- editor shell ---------- */
.subtabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 84px;
  z-index: 20;
  box-shadow: 0 6px 18px rgba(17, 26, 38, .05);
}
.subtabs::-webkit-scrollbar { display: none; }
.subtab {
  border: 0;
  background: transparent;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #5b6675;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.subtab:hover { background: #f4f6f8; color: var(--ink); }
.subtab.is-active { background: var(--ink); color: #fff; }
.subpanels { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.subpanel { display: none; flex-direction: column; gap: 12px; }
.subpanel.is-active { display: flex; }
.form-actions--bottom { padding-top: 16px; }
.btn--save.btn--has-changes { box-shadow: 0 0 0 3px rgba(17, 26, 38, .12); }

/* ---------- metric rows ---------- */
.metric-grid { display: flex; flex-direction: column; gap: 10px; }
.metric-row { display: grid; grid-template-columns: 30px minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; align-items: end; }
.metric-row__num {
  width: 26px; height: 26px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #f3f5f7;
  color: #7c8798;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- repeatable item cards ---------- */
.repeat-list { display: flex; flex-direction: column; gap: 10px; }
.item-card {
  border: 1px solid #e9ecf0;
  border-radius: 12px;
  background: #fcfcfd;
  overflow: hidden;
}
.item-card.is-open { background: #fff; border-color: #dfe3e8; box-shadow: 0 1px 2px rgba(17, 26, 38, .03); }
.item-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #f8f9fb;
}
.item-card.is-open .item-card__head { background: #fff; border-bottom: 1px solid #eef0f3; }
.item-card__num { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: #8a94a3; white-space: nowrap; }
.item-card__title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-card__price { font-size: 11.5px; color: #8a94a3; white-space: nowrap; }
.item-card__actions { display: flex; gap: 4px; margin-left: 4px; }
.item-card__body { padding: 14px; }
.item-card__body .grid-2 { gap: 12px; }

.icon-mini {
  width: 26px; height: 26px;
  border: 1px solid #e3e6ea;
  border-radius: 7px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #5b6675;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.icon-mini svg { width: 13px; height: 13px; transition: transform .18s ease; }
.icon-mini:hover { background: #f4f6f8; }
.icon-mini[disabled] { opacity: .3; cursor: not-allowed; }
.icon-mini--danger:hover { background: #fdf1ef; border-color: #f0cfc8; color: #c0442f; }
.item-card.is-open .item-card__head [data-prod-toggle] svg,
.item-card.is-open .item-card__head [data-rev-toggle] svg,
.item-card.is-open .item-card__head [data-toggle] svg { transform: rotate(180deg); }

/* ---------- tab manager ---------- */
.tabmanager { display: flex; flex-direction: column; gap: 6px; }
.tabmanager__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  background: #fbfbfc;
}
.tabmanager__item.is-active { background: #f5f0e7; border-color: #e4d8c5; }
.tabmanager__num {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e6e9ee;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #7c8798;
  flex: none;
}
.tabmanager__name {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tabmanager__name:focus {
  outline: none;
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 97, 85, .1);
}
.tabmanager__actions { display: flex; gap: 3px; }
.tabmanager__item.is-invalid .tabmanager__name { border-color: #d1604c; background: #fdf7f5; }
.tabmanager__foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.tabmanager__foot .saved-note { flex: 1; min-width: 140px; }
.btn[disabled] { cursor: not-allowed; }

/* ---------- uploader ---------- */
.uploader {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px dashed #d8dde3;
  border-radius: 12px;
  background: #fbfbfc;
}
.uploader--inline { margin-top: 12px; }
.uploader[data-uploader="location.mapImage"] { grid-template-columns: 170px minmax(0, 1fr); }
.uploader__preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  background: #eef1f4;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.uploader__preview img { width: 100%; height: 100%; object-fit: cover; }
.uploader__preview.is-default { opacity: .96; }
.uploader__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  text-align: center;
  color: #98a1af;
  font-size: 10px;
  line-height: 1.4;
}
.uploader__empty svg { width: 20px; height: 20px; }
.uploader__side { min-width: 0; }
.uploader__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.uploader__meta { margin-top: 8px; font-size: 10.5px; color: #98a1af; line-height: 1.5; }

/* ---------- channels ---------- */
.channel-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 12px; align-items: start; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.channel-card { padding: 16px 18px; min-width: 0; transition: opacity .18s ease; }
.channel-card.is-off { opacity: .68; background: #fcfcfd; }
.channel-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.channel-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.channel-icon svg { width: 17px; height: 17px; }
.channel-icon--phone { background: #eaf2ef; color: #2c6155; }
.channel-icon--kakao { background: #fee500; color: #3c1e1e; }
.channel-icon--naver { background: #03c75a; color: #fff; }
.channel-icon--talk { background: #1c2836; color: #fff; }
.channel-card__title { flex: 1; min-width: 0; }
.channel-card__title strong { display: block; font-size: 13.5px; font-weight: 700; }
.channel-card__title span { display: block; margin-top: 1px; font-size: 11px; line-height: 1.45; color: #98a1af; }
.channel-card .grid-2 { gap: 10px 12px; }
.channel-card__note { margin-top: 8px; font-size: 10.5px; color: #98a1af; }

.channel-preview { position: sticky; top: 88px; padding: 16px 18px; }
.channel-preview__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.channel-preview__head h3 { font-size: 13.5px; font-weight: 700; }
.channel-preview__head p { margin-top: 1px; font-size: 11px; color: #98a1af; }
.preview-canvas {
  position: relative;
  height: 186px;
  border-radius: 14px;
  border: 1px solid #e9e2d6;
  background: linear-gradient(160deg, #f8f5f0, #efe9df);
  overflow: hidden;
}
.preview-canvas__hero { position: absolute; left: 14px; top: 18px; width: 58%; display: flex; flex-direction: column; gap: 6px; }
.preview-canvas__eyebrow { width: 40%; height: 4px; border-radius: 2px; background: #c9d2c9; margin-bottom: 2px; }
.preview-canvas__line { height: 6px; border-radius: 3px; background: #ddd8ce; }
.preview-canvas__line--lg { height: 11px; border-radius: 3px; background: #2b394b; width: 94%; }
.preview-canvas__line--sm { width: 62%; }
.preview-float { position: absolute; right: 10px; bottom: 56px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.preview-float__btn {
  width: 27px; height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  background: #fff;
  color: #2c6155;
  border: 1px solid #e5e1d9;
  box-shadow: 0 3px 8px rgba(17, 26, 38, .12);
}
.preview-float__btn--kakao { background: #fee500; border-color: #f3da00; color: #3c1e1e; }
.preview-float__btn--naver { background: #03c75a; border-color: #02b552; color: #fff; }
.preview-float__btn--channeltalk { background: #1c2836; border-color: #1c2836; color: #fff; }
.preview-bar {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e9e2d6;
}
.preview-bar__btn {
  flex: 1;
  text-align: center;
  padding: 5px 2px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  background: #f3f5f7;
  color: #5b6675;
  white-space: nowrap;
  overflow: hidden;
}
.preview-bar__btn--phone { background: #111a26; color: #fff; }
.preview-bar__btn--kakao { background: #fee500; color: #3c1e1e; }
.preview-bar__btn--naver { background: #03c75a; color: #fff; }
.preview-bar__btn--channeltalk { background: #1c2836; color: #fff; }
.preview-bar__empty { flex: 1; text-align: center; padding: 5px; font-size: 9px; color: #98a1af; }
.channel-preview__list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f4f6f8;
  font-size: 10.5px;
  font-weight: 600;
  color: #4c5768;
}
.channel-pill i { width: 6px; height: 6px; border-radius: 50%; background: #c5ccd5; }
.channel-pill--phone i { background: #2c6155; }
.channel-pill--kakao i { background: #f0cf00; }
.channel-pill--naver i { background: #03c75a; }
.channel-pill--channeltalk i { background: #1c2836; }

/* ---------- inquiries: delete ---------- */
.inq-head, .inq-item { grid-template-columns: 78px 132px 112px minmax(0, 1fr) 132px; }
.inq-item__status { justify-self: end; display: flex; align-items: center; gap: 5px; }
.del-btn {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid #eceff2;
  background: #fff;
  display: grid;
  place-items: center;
  color: #98a1af;
  cursor: pointer;
  flex: none;
}
.del-btn:hover { color: #c0442f; border-color: #f0cfc8; background: #fdf5f3; }
.del-btn svg { width: 13px; height: 13px; }

.notice-preview b {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #cfc8bb;
  border-bottom: 1px solid rgba(207, 200, 187, .35);
  padding-bottom: 1px;
  white-space: nowrap;
}

/* =========================================================
   v2 responsive
   ========================================================= */
@media (max-width: 1120px) {
  .channel-layout { grid-template-columns: minmax(0, 1fr); }
  .channel-preview { position: static; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-canvas { height: 168px; }
}
@media (max-width: 900px) {
  .subtabs { top: 60px; padding: 5px; }
  .subtab { padding: 8px 12px; font-size: 12.5px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { flex-direction: row; align-items: center; gap: 10px; }
  .quick-card__icon { margin-bottom: 0; flex: none; }
  .quick-card span:last-child { display: none; }
  .channel-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 26px minmax(0, 1fr); }
  .metric-row .field2:nth-of-type(2) { grid-column: 2; }
  .uploader { grid-template-columns: 104px minmax(0, 1fr); }
  .uploader[data-uploader="location.mapImage"] { grid-template-columns: 128px minmax(0, 1fr); }
  .inq-head, .inq-item { grid-template-columns: 78px 132px 112px minmax(0, 1fr) 132px; }
  .inq-item { grid-template-columns: 1fr auto; }
  .inq-item__status { gap: 4px; }
  .item-card__head { flex-wrap: wrap; }
  .item-card__title { flex: 1 1 60%; }
}
@media (max-width: 640px) {
  .subtabs { top: 56px; }
  .editor .form-card2 { padding: 16px; }
  .uploader { grid-template-columns: 1fr; }
  .uploader[data-uploader="location.mapImage"] { grid-template-columns: 1fr; }
  .uploader__preview { max-width: 180px; }
  .metric-row { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
  .metric-row__num { width: 22px; height: 22px; margin-bottom: 9px; font-size: 10px; }
  .tabmanager__item { gap: 6px; padding: 5px 6px; }
  .tabmanager__name { padding: 6px 7px; font-size: 12.5px; }
  .tabmanager__actions .icon-mini { width: 24px; height: 24px; }
  .channel-card { padding: 14px; }
  .item-card__body { padding: 12px; }
  .preview-canvas { height: 158px; }
}

.channel-grid { align-items: start; }

/* =========================================================
   v3 — 섹션 노출 · 로고 · 테마 · 공유 미리보기 · 팝업
   ========================================================= */
/* ---------- 섹션 노출 ---------- */
.section-rows { display: flex; flex-direction: column; gap: 8px; }
.section-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid #edf0f3;
  border-radius: 11px;
  background: #fbfcfd;
}
.section-row__text { min-width: 0; flex: 1; }
.section-row__text strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.section-row__text span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.section-state {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #2f8f66;
  background: #eaf5ef;
  border-radius: 999px;
  padding: 4px 9px;
}
.section-state.is-off { color: #8a6a3f; background: #f5efe6; }
.section-row.is-off { background: #fdfbf8; border-color: #f0e8db; }
.section-row.is-dim { opacity: .5; }
.section-row.is-dim .section-row__text strong { color: #8a94a3; }

.section-visibility {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e6eaee;
  border-radius: 13px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(17, 26, 38, .03);
}
.section-visibility.is-off { background: #fdfbf8; border-color: #efe6d8; }
.section-visibility__text { flex: 1; min-width: 0; }
.section-visibility__text strong { display: block; font-size: 12.5px; font-weight: 700; }
.section-visibility__text span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ---------- 로고 ---------- */
.logo-box {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e9edf1;
}
.logo-box__preview {
  flex: none;
  width: 168px;
  min-height: 68px;
  border: 1px solid #eceff2;
  border-radius: 11px;
  background: #fbfcfd;
  display: grid;
  place-items: center;
  padding: 10px;
}
.logo-box__preview .logo__mark { width: 34px; height: 34px; border-radius: 10px; }
.logo-box__preview .logo__name { font-size: 15px; }
.logo-box__preview .logo__sub { font-size: 8.5px; }
.logo-box__preview img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }
.logo-box__preview .logo__text { align-items: flex-start; }
.logo-box__side { min-width: 0; flex: 1; }
.logo-box__actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 7px; }

/* ---------- 테마 ---------- */
.theme-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 16px;
}
.theme-preset {
  border: 1px solid #e8ecf0;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.theme-preset:hover { border-color: #cfd6de; transform: translateY(-1px); }
.theme-preset.is-active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(44, 97, 85, .12); }
.theme-preset .theme-preset__swatches { display: flex; gap: 4px; margin-bottom: 8px; }
.theme-preset__swatches i { width: 18px; height: 18px; border-radius: 6px; display: block; border: 1px solid rgba(0, 0, 0, .06); }
.theme-preset strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.theme-preset span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.theme-preset.is-active span { color: var(--green); font-weight: 600; }

.color-field { display: flex; align-items: center; gap: 8px; }
.color-field input[type="color"] {
  flex: none;
  width: 44px;
  height: 38px;
  padding: 3px;
  border: 1px solid #e6eaee;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.color-field input[type="text"] {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.theme-preview {
  margin-top: 16px;
  border: 1px solid #e9edf1;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
}
.theme-preview__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -.005em;
}
.theme-preview__bar span { width: 5px; height: 5px; border-radius: 50%; }
.theme-preview__body { padding: 16px; }
.theme-preview__tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 4px 7px;
  border-radius: 5px;
}
.theme-preview__title { margin-top: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.theme-preview__row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.theme-preview__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.theme-preview__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #eee9e0;
  color: #7c6a4d;
}

/* ---------- 공유 · SEO ---------- */
.share-preview { margin-top: 16px; }
.share-preview__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #8b95a4;
  margin-bottom: 8px;
}
.kakao-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #e7ebef;
  border-radius: 13px;
  background: #fbfcfd;
  padding: 12px;
  max-width: 420px;
}
.kakao-card__thumb {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 9px;
  background: #eef1f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab3bf' stroke-width='1.5'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2.4'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m4 17 5-5 4 4 3-3 4 4'/%3E%3C/svg%3E") center / 26px no-repeat;
  overflow: hidden;
}
.kakao-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kakao-card__body { min-width: 0; flex: 1; }
.kakao-card__body strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.kakao-card__body p {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.kakao-card__domain { display: block; margin-top: 6px; font-size: 10.5px; color: #98a1af; }
.share-preview__note { margin-top: 8px; font-size: 10.5px; color: #98a1af; }

.popup-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- 팝업 미리보기 ---------- */
.admin-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-popup[hidden] { display: none; }
.admin-popup__backdrop { position: absolute; inset: 0; background: rgba(12, 18, 26, .55); backdrop-filter: blur(3px); }
.admin-popup__wrap { position: relative; width: min(380px, 100%); }
.admin-popup__card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 26, 38, .28);
  animation: adminPopupIn .26s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes adminPopupIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.admin-popup__x {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.admin-popup__media { background: #f1ece3; }
.admin-popup__media[hidden] { display: none; }
.admin-popup__media img { width: 100%; max-height: 210px; object-fit: cover; display: block; }
.admin-popup__body { padding: 24px 24px 0; }
.admin-popup__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .15em; color: var(--green); }
.admin-popup__eyebrow span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.admin-popup__body h2 { margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.035em; }
.admin-popup__body p { margin-top: 9px; font-size: 13px; line-height: 1.7; color: #5c6878; white-space: pre-line; }
.admin-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.admin-popup__cta[hidden] { display: none; }
.admin-popup__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 16px;
  margin-top: 20px;
  border-top: 1px solid #eef0f3;
  font-size: 12px;
  color: #8b95a4;
}
.admin-popup__foot b { color: var(--ink-2); font-weight: 600; }
.admin-popup__note {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 900px) {
  .theme-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-box { flex-direction: column; align-items: stretch; }
  .logo-box__preview { width: 100%; }
}
@media (max-width: 640px) {
  .theme-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-row { flex-wrap: wrap; gap: 8px; }
  .section-row__text { flex: 1 1 60%; }
  .kakao-card { max-width: none; }
  .admin-popup { padding: 16px; }
}

.sidebar__logo-img { height: 30px; width: auto; max-width: 132px; object-fit: contain; display: block; }
.mobile-brand__img { height: 24px; width: auto; max-width: 96px; object-fit: contain; display: block; }

/* =========================================================
   v4 — 예약 설정 · 예약 관리
   ========================================================= */
.booking-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.booking-list-card { padding: 0; overflow: hidden; }
.bk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f3;
  flex-wrap: wrap;
}
.bk-head {
  display: grid;
  grid-template-columns: 96px 118px minmax(0, 1fr) 152px;
  gap: 12px;
  padding: 10px 18px;
  background: #fbfcfd;
  border-bottom: 1px solid #eef0f3;
  font-size: 11px;
  font-weight: 600;
  color: #98a1af;
}
.bk-list { display: flex; flex-direction: column; }
.bk-row {
  display: grid;
  grid-template-columns: 96px 118px minmax(0, 1fr) 152px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 12.5px;
}
.bk-row:last-child { border-bottom: 0; }
.bk-row.is-canceled { background: #fcfcfd; opacity: .74; }
.bk-when b { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: -.01em; }
.bk-when span { font-size: 11.5px; color: var(--muted); }
.bk-who strong { display: block; font-size: 12.5px; }
.bk-who a { font-size: 11.5px; color: var(--muted); }
.bk-who a:hover { color: var(--ink); }
.bk-product span { display: block; font-weight: 600; color: var(--ink-2); font-size: 12px; }
.bk-product p {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk-status { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bk-badge { font-size: 10px; font-weight: 700; border-radius: 999px; padding: 3px 8px; letter-spacing: .01em; }
.bk-badge.is-pending { background: #fff4e8; color: #a8681f; }
.bk-badge.is-confirmed { background: #eaf5ef; color: #2f7d5b; }
.bk-badge.is-canceled { background: #f1f2f4; color: #8a94a3; }
.bk-actions { display: flex; gap: 4px; align-items: center; }
.bk-act {
  border: 1px solid #e3e7eb;
  background: #fff;
  color: #5c6878;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bk-act:hover { background: #f7f8fa; color: var(--ink); }
.bk-act.is-ok { border-color: #cfe6da; background: #eef8f2; color: #2f7d5b; }
.bk-act.is-ok:hover { background: #e3f3ea; }
.bk-act.is-del:hover { border-color: #f0d3cc; background: #fdf4f2; color: #c0442f; }

.chip-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin: 8px 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f4f6f8;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip__x {
  border: 0;
  background: none;
  color: #98a1af;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0 1px;
}
.chip__x:hover { color: #c0442f; }
.chip-empty { font-size: 11.5px; color: #98a1af; padding: 5px 0; }
.chip-add { display: flex; gap: 6px; }
.chip-add input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dfe3e8;
  background: #fff;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12.5px;
  color: var(--ink);
}
.chip-add input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(44, 97, 85, .1); }
.day-toggles { display: flex; gap: 5px; margin-top: 8px; }
.day-toggle {
  flex: 1;
  border: 1px solid #e3e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  color: #7c8798;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.day-toggle:hover { border-color: #cfd6de; color: var(--ink); }
.day-toggle.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

@media (max-width: 1120px) {
  .booking-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .bk-head, .bk-row { grid-template-columns: 86px 108px minmax(0, 1fr) 140px; }
}
@media (max-width: 900px) {
  .booking-layout { grid-template-columns: 1fr; }
  .bk-head { display: none; }
  .bk-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "when status"
      "who who"
      "product product";
    gap: 6px 10px;
    align-items: start;
  }
  .bk-when { grid-area: when; }
  .bk-who { grid-area: who; }
  .bk-product { grid-area: product; }
  .bk-status { grid-area: status; align-items: flex-end; }
  .bk-actions { justify-content: flex-end; }
}

/* =========================================================
   v4 업데이트 — 예약 방식 · SNS 채널 · FAQ
   ========================================================= */
/* ---------- 예약 방식 3단 ---------- */
.mode-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 4px 0 16px;
}
.mode-card {
  position: relative;
  text-align: left;
  background: #fff;
  border: 1.5px solid #e6eaee;
  border-radius: 11px;
  padding: 10px 12px 10px 32px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.mode-card:hover { border-color: #cfd6de; background: #fcfdfd; }
.mode-card__radio {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #c8d0d8;
  background: #fff;
}
.mode-card.is-active { border-color: var(--green); background: #f4faf7; box-shadow: 0 0 0 3px rgba(44, 97, 85, .08); }
.mode-card.is-active .mode-card__radio {
  border-color: var(--green);
  background: radial-gradient(circle, var(--green) 0 44%, #fff 47%);
}
.mode-card strong { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.mode-card > span:not(.mode-card__radio) { display: block; margin-top: 3px; font-size: 11px; line-height: 1.45; color: #8b94a1; }
.mode-card em { display: block; margin-top: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: #a2aab6; }
.mode-card.is-active em { color: var(--green); }
.booking-external, .booking-self { margin-top: 4px; }
.booking-external[hidden], .booking-self[hidden] { display: none; }

/* ---------- SNS 채널 ---------- */
.sns-card { grid-column: 1 / -1; padding: 16px 18px; }
.channel-icon--sns { background: #f1f4f8; color: #3b4a5e; }
.sns-card__count {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  color: #2f8f66;
  background: #eaf5ef;
  border-radius: 999px;
  padding: 4px 9px;
}
.sns-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.sns-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #edf0f3;
  border-radius: 11px;
  background: #fbfcfd;
  transition: opacity .15s ease;
}
.sns-row.is-off { opacity: .62; background: #fcfcfd; }
.sns-row__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #edf0f3;
}
.sns-row__icon svg { width: 17px; height: 17px; }
.sns-row__icon--instagram { color: #e1306c; }
.sns-row__icon--x, .sns-row__icon--threads, .sns-row__icon--tiktok { color: #0f1419; }
.sns-row__icon--facebook { color: #1877f2; }
.sns-row__icon--naverstore, .sns-row__icon--naverplace { color: #03c75a; }
.sns-row__icon--youtube, .sns-row__icon--blog { border-color: transparent; }
.sns-row__icon--etc { color: var(--green); }
.sns-row__body { flex: 1; min-width: 0; }
.sns-row__top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sns-row__top strong { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.sns-row__hint { font-size: 10.5px; color: #98a1af; }
.sns-row .field2 { gap: 0; }
.sns-row .field2 input { padding: 7px 9px; font-size: 12px; }
.sns-row__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6px; }

@media (max-width: 1000px) {
  .sns-rows { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sns-row__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   v4 업데이트 — 시간표 달력 · 알리고 문자
   ========================================================= */
/* ---------- 보기 전환 ---------- */
.bk-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f4;
}
.segmented { display: inline-flex; background: #f2f4f7; border-radius: 10px; padding: 3px; gap: 2px; }
.seg-btn {
  border: 0;
  background: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #7c8798;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 26, 38, .1); }

/* ---------- 주간 시간표 ---------- */
.cal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f4;
}
.cal-nav {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e3e7eb;
  background: #fff;
  color: #5b6577;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.cal-nav:hover { border-color: #cfd6de; color: var(--ink); }
#calRange { font-size: 12.5px; font-weight: 700; min-width: 104px; text-align: center; }
.cal-legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.cal-legend li { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #8b94a1; }
.cal-legend i { width: 8px; height: 8px; border-radius: 3px; display: block; }
.cal-legend i.is-pending { background: #f0c27a; }
.cal-legend i.is-confirmed { background: #63a888; }
.cal-legend i.is-free { background: #dfe8e3; }
.cal-legend i.is-closed { background: #d9dde3; }

.cal-scroll { overflow-x: auto; padding: 12px 16px 14px; }
.cal-grid { display: grid; grid-template-columns: 52px repeat(7, minmax(74px, 1fr)); gap: 4px; min-width: 618px; }
.cal-day { text-align: center; padding: 4px 0 8px; border-radius: 8px; }
.cal-day strong { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.cal-day span { display: block; font-size: 10px; color: #98a1af; margin-top: 1px; }
.cal-day em { font-style: normal; font-size: 9.5px; color: #b3a48c; }
.cal-day.is-today { background: #f2f8f5; }
.cal-day.is-today strong { color: var(--green); }
.cal-day.is-closed strong { color: #9aa3b0; }
.cal-time { display: flex; align-items: center; font-size: 11px; font-weight: 600; color: #7c8798; padding-left: 2px; }
.cal-cell {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 7px;
  border: 1px solid #eef1f4;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  min-width: 0;
}
.cal-cell:hover { border-color: #cfd6de; box-shadow: 0 2px 8px rgba(17, 26, 38, .06); }
.cal-cell__state { font-size: 9.5px; font-weight: 700; letter-spacing: .01em; color: #98a1af; }
.cal-cell__who { font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cell__more { font-size: 9.5px; font-weight: 700; color: #8b94a1; }
.cal-cell.is-free { background: #fbfdfc; border-style: dashed; border-color: #dfeae5; }
.cal-cell.is-free .cal-cell__state { color: #7fa392; }
.cal-cell.is-pending { background: #fff8ec; border-color: #f2e0bf; }
.cal-cell.is-pending .cal-cell__state { color: #a8681f; }
.cal-cell.is-confirmed { background: #eef8f2; border-color: #cfe6da; }
.cal-cell.is-confirmed .cal-cell__state { color: #2f7d5b; }
.cal-cell.is-blocked { background: #f6f7f9; border-color: #e6eaee; }
.cal-cell.is-blocked .cal-cell__state { color: #8b94a1; }
.cal-cell.is-closed { background: #fafbfb; border-color: #f1f2f4; cursor: default; }
.cal-cell.is-closed .cal-cell__state { color: #c2c8d0; }
.cal-note { padding: 0 16px 14px; font-size: 10.5px; color: #98a1af; line-height: 1.5; }

/* ---------- 슬롯 팝오버 ---------- */
.slot-pop {
  position: fixed;
  z-index: 90;
  width: 286px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #e6eaee;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(17, 26, 38, .18);
  padding: 12px 14px 13px;
  font-size: 12px;
}
.slot-pop[hidden] { display: none; }
.slot-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.slot-pop__head strong { font-size: 12.5px; font-weight: 700; }
.slot-pop__x { border: 0; background: none; color: #98a1af; font-size: 16px; line-height: 1; cursor: pointer; }
.slot-pop__x:hover { color: var(--ink); }
.slot-pop__bk { border: 1px solid #eef1f4; border-radius: 10px; padding: 9px 10px; background: #fcfdfd; }
.slot-pop__bk + .slot-pop__bk { margin-top: 6px; }
.slot-pop__who strong { display: block; font-size: 12.5px; font-weight: 700; }
.slot-pop__who span { display: block; font-size: 10.5px; color: #98a1af; margin-top: 1px; }
.slot-pop__bk .bk-badge { margin-top: 6px; }
.slot-pop__msg { margin-top: 5px; font-size: 11px; line-height: 1.5; color: #7c8798; }
.slot-pop__acts { display: flex; gap: 6px; margin-top: 8px; }
.slot-pop__empty { font-size: 11.5px; color: #8b94a1; margin-bottom: 9px; }

/* ---------- 알리고 문자 ---------- */
.form-card2__badge.is-off { color: #8a6a3f; background: #f5efe6; }
.sms-events { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sms-event {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #e3e7eb;
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #5b6577;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.sms-event input { position: absolute; opacity: 0; pointer-events: none; }
.sms-event i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid #c8d0d8;
  display: block;
  position: relative;
  flex: none;
}
.sms-event input:checked ~ i { background: var(--green); border-color: var(--green); }
.sms-event input:checked ~ i::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(45deg);
}
.sms-event:has(input:checked) { border-color: #cfe6da; background: #f4faf7; color: var(--ink); }
.sms-tpl__hint { margin-top: 4px; }
.sms-tpl__hint b { color: var(--green); font-weight: 600; }
.sms-tpl { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sms-tpl__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: start; }
.sms-tpl__row > span { font-size: 11px; font-weight: 700; color: #7c8798; padding-top: 9px; }
.sms-tpl textarea {
  width: 100%;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
  resize: vertical;
}
.sms-tpl textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(44, 97, 85, .1); }
.sms-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.sms-actions select {
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  background: #fff;
  color: var(--ink);
}
.sms-preview {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px dashed #dfe6ec;
  border-radius: 10px;
  background: #f8fafb;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  color: #5b6577;
  white-space: pre-wrap;
  word-break: break-all;
}
.sms-preview.is-on { background: #f4faf7; border-color: #cfe6da; border-style: solid; color: var(--ink); }
.sms-note { margin-top: 6px; font-size: 10.5px; color: #98a1af; }
.sms-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef1f4;
}
.sms-log { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 300px; overflow: auto; }
.sms-log__item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid #eef1f4;
  border-radius: 10px;
  background: #fcfdfd;
}
.sms-kind {
  flex: none;
  margin-top: 1px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: #5b6577;
  background: #eef2f6;
}
.sms-kind.is-confirmed { color: #2f7d5b; background: #eaf5ef; }
.sms-kind.is-canceled { color: #b64a34; background: #fdf0ed; }
.sms-kind.is-requested { color: #a8681f; background: #fff4e8; }
.sms-kind.is-test { color: #4b53a8; background: #eef0fd; }
.sms-log__body { flex: 1; min-width: 0; }
.sms-log__body strong { display: block; font-size: 11.5px; color: var(--ink-2); }
.sms-log__body p {
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 1.5;
  color: #8b94a1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sms-log__item time { flex: none; font-size: 9.5px; color: #a9b1bd; }
.sms-log__empty { padding: 10px 0; font-size: 11.5px; color: #98a1af; }

@media (max-width: 640px) {
  .bk-viewbar { flex-wrap: wrap; }
  .cal-legend { margin-left: 0; }
  .sms-tpl__row { grid-template-columns: 1fr; gap: 3px; }
  .sms-tpl__row > span { padding-top: 0; }
}

/* ---------- v6: 고급 (HTML) ---------- */
.field2 .code-area,
.code-area {
  font-family: "SFMono-Regular", "D2Coding", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: 0;
  background: #fbfcfd;
}
.field2 .code-area { min-height: 130px; }
.code-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}
.code-count {
  margin-left: auto;
  font-size: 11px;
  color: #98a1af;
  font-variant-numeric: tabular-nums;
}
.custom-preview {
  border: 1px solid #eceff2;
  border-radius: 12px;
  background: #f8f9fa;
  padding: 12px;
  margin-top: 4px;
}
.custom-preview__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.custom-preview__head strong { font-size: 12.5px; color: var(--ink-2); }
.custom-preview__head span { font-size: 11px; color: #98a1af; }
.custom-preview__frame {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 10px;
  overflow: hidden;
  min-height: 132px;
  display: grid;
}
.custom-preview__frame iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
  background: #fff;
}
.custom-preview__frame iframe[hidden] { display: none; }
.custom-preview__empty {
  margin: 0;
  padding: 40px 18px;
  text-align: center;
  font-size: 12px;
  color: #98a1af;
}
.custom-preview__empty[hidden] { display: none; }

/* =========================================================
   v9 — 내 도메인 연결
   ========================================================= */
.form-card2__badge.is-muted { color: #6d7886; background: #f1f3f6; }
.form-card2__badge.is-wait { color: #a8681f; background: #fff4e8; }
.form-card2__badge.is-done { color: #2f7d5b; background: #eaf5ef; }

.domain-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 16px;
  border: 1px solid #e7ebef;
  border-radius: 12px;
  background: #f8f9fa;
}
.domain-current__main { flex: 1 1 260px; min-width: 0; }
.domain-current__label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #98a1af;
}
.domain-current__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.domain-current__url {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed #c3ccd6;
  overflow-wrap: anywhere;
}
.domain-current__url:hover { color: var(--green); border-color: var(--green); }
.domain-demo { flex: none; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.domain-demo__label { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #a3abb7; }
.domain-demo .seg-btn[disabled] { opacity: .4; cursor: default; box-shadow: none; }

.domain-demo-note {
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #e6ecf2;
  border-radius: 9px;
  background: #f4f7fa;
  font-size: 11.5px;
  line-height: 1.55;
  color: #5b6b7d;
}
.domain-demo-note[hidden] { display: none; }

.domain-has { grid-template-columns: 1fr 1fr; margin-bottom: 4px; }

.domain-fields { margin-top: 14px; }
.domain-fields[hidden] { display: none; }

.domain-recommend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #eceff2;
  border-radius: 10px;
  background: #fbfcfd;
  font-size: 12px;
  color: #47505e;
  cursor: pointer;
}
.domain-recommend[hidden] { display: none; }
.domain-recommend input { width: 15px; height: 15px; flex: none; accent-color: var(--green); }

.domain-guide {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dfeae4;
  border-radius: 12px;
  background: #f5faf7;
}
.domain-guide[hidden] { display: none; }
.domain-guide__title { display: block; font-size: 11.5px; font-weight: 700; color: #2f7d5b; }
.domain-guide__steps { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.domain-guide__steps li { display: flex; gap: 9px; font-size: 12px; line-height: 1.55; color: #3c4a44; }
.domain-guide__num {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #dcece4;
  color: #2f7d5b;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.domain-guide__note { margin: 10px 0 0; font-size: 11px; line-height: 1.55; color: #7a8a83; }
.domain-guide b { color: #1f4e42; font-weight: 700; }

.domain-newinfo {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #ece7dc;
  border-radius: 12px;
  background: #fbf8f1;
}
.domain-newinfo[hidden] { display: none; }
.domain-newinfo strong { display: block; font-size: 12.5px; color: #6b5a37; }
.domain-newinfo p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: #6d6355; }

.domain-request { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.domain-request[hidden] { display: none; }
.domain-request__note { font-size: 11px; color: #98a1af; }

.domain-summary {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e7ebef;
  border-radius: 12px;
  background: #fff;
}
.domain-summary[hidden] { display: none; }
.domain-summary__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.domain-summary__head strong { font-size: 12.5px; color: var(--ink); }
.domain-summary__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 12px 0 0;
}
.domain-summary__list > div { min-width: 0; }
.domain-summary__list dt { font-size: 10.5px; font-weight: 600; color: #98a1af; }
.domain-summary__list dd {
  margin: 3px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.domain-summary__actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.domain-summary__actions .saved-note { margin-left: auto; }

.domain-foot { margin: 14px 0 0; font-size: 11px; line-height: 1.6; color: #98a1af; }

@media (max-width: 640px) {
  .domain-has { grid-template-columns: 1fr; }
  .domain-demo { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
  .domain-summary__list { grid-template-columns: 1fr; }
  .domain-summary__actions .saved-note { margin-left: 0; width: 100%; }
  .domain-current { padding: 12px 13px; }
}
.domain-opt { font-weight: 500; color: #98a1af; }
.domain-current__sub { display: block; margin-top: 6px; font-size: 11px; color: #7f8b99; }
.domain-current__sub[hidden] { display: none; }

/* =========================================================
   v10: 내 도메인 연결 — 고객 셀프 가이드
   ========================================================= */
.domain-setup { margin-top: 16px; }

.dns-card {
  margin-top: 16px;
  padding: 14px 16px 13px;
  border: 1px solid #e3e9ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfd, #f5f8fa);
}
.dns-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dns-card__head strong { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.dns-card__head span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: #7f8b99; }
.dns-table { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.dns-row {
  display: grid;
  grid-template-columns: 78px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e7ebef;
  border-radius: 10px;
  background: #fff;
}
.dns-row--head { padding: 0 10px; border: 0; background: transparent; }
.dns-row--head span { font-size: 10.5px; font-weight: 700; color: #98a1af; }
.dns-cell { font-size: 12px; color: #3c4a44; overflow-wrap: anywhere; }
.dns-cell--type { font-weight: 700; letter-spacing: .03em; color: #2f7d5b; }
.dns-cell--host { font-weight: 600; color: var(--ink-2); }
.dns-cell--value {
  padding: 3px 7px;
  border-radius: 6px;
  background: #f2f6f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #33414f;
}
.dns-note { margin: 9px 0 0; font-size: 11px; line-height: 1.6; color: #7a8a83; overflow-wrap: anywhere; }
.dns-note.is-live { font-weight: 600; color: #1f4e42; }
.dns-note b { color: #1f4e42; }

.ssl-note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d7ebdf;
  border-radius: 12px;
  background: #f1f8f4;
}
.ssl-note__icon { flex: none; width: 22px; height: 22px; color: #2f7d5b; }
.ssl-note__icon svg { width: 100%; height: 100%; }
.ssl-note strong { display: block; font-size: 12px; line-height: 1.5; color: #1f4e42; }
.ssl-note div > span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: #5b6b63; }

.domain-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.domain-guide__where { margin: 9px 0 0; padding: 7px 10px; border-radius: 8px; background: #eef6f2; font-size: 11px; color: #3c6255; }
.form-card2__badge.is-muted { color: #7f8b99; background: #f1f3f5; }
.form-card2__badge.is-wait { color: #8a5a12; background: #fdf3e2; }
.form-card2__badge.is-done { color: #1f6b4c; background: #e9f6ef; }

@media (max-width: 640px) {
  .dns-card { padding: 12px 12px 11px; }
  .dns-row { grid-template-columns: 62px 52px minmax(0, 1fr) auto; gap: 6px; padding: 8px 8px; }
  .dns-row--head { padding: 0 8px; }
  .dns-cell { font-size: 11px; }
  .dns-cell--value { font-size: 10.5px; }
  .dns-row .btn { padding-left: 8px; padding-right: 8px; }
  .domain-actions .saved-note { width: 100%; margin-left: 0; }
}

/* =========================================================
   업종 프리셋 편집 안내 (?preset=... 에서만 표시)
   ========================================================= */
.preset-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 22px;
  background: #fff1eb;
  border-bottom: 1px solid #ffe0d4;
  font-size: 12px;
  color: #8a4a2e;
}
.preset-note[hidden] { display: none; }
.preset-note__now { color: #a2603f; }
.preset-note__now b { color: #6f3a22; font-weight: 700; }
.preset-note a {
  padding: 4px 10px;
  border: 1px solid #f3cdbc;
  border-radius: 999px;
  background: #fff;
  color: #8a4a2e;
  text-decoration: none;
  white-space: nowrap;
}
.preset-note a:hover { background: #fff7f3; }
.preset-note__cta { background: #ff551f !important; border-color: #ff551f !important; color: #fff !important; font-weight: 600; }

@media (max-width: 640px) {
  .preset-note { padding: 8px 14px; font-size: 11.5px; }
  .preset-note a { padding: 3px 8px; }
}
