:root {
  --brand-blue: #1a72d8;
  --brand-blue-dk: #1459ad;
  --brand-teal: #00c4d4;
  --brand-teal-dk: #00a5b3;
  --brand-navy: #0b1628;
  --orange: var(--brand-teal);
  --orange-dk: var(--brand-teal-dk);
  --orange-soft: rgba(0, 196, 212, 0.12);
  --brand: var(--brand-blue);
  --brand-dk: var(--brand-blue-dk);
  --brand-soft: rgba(26, 114, 216, 0.08);
  --sp-green: var(--brand-blue);
  --sp-green-dk: var(--brand-blue-dk);
  --sp-green-soft: rgba(26, 114, 216, 0.1);
  --green: var(--brand-teal-dk);
  --red: #e53935;
  --ink: #0f172a;
  --ink-2: #334155;
  --white: #fff;
  --bg: #f8fafc;
  --panel: #fff;
  --dim: #64748b;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --border-dk: #cbd5e1;
  --r: 10px;
  --r-lg: 14px;
  --sidebar-w: 220px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  font-family: 'Pretendard Variable', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100dvh;
}

body.member-in { overflow: hidden; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

[hidden], .hidden { display: none !important; }

/* ?? login ?? */
.login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.login-brand {
  display: block;
  margin-bottom: 20px;
  text-decoration: none;
}

.login-brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
}

.login-brand:hover { text-decoration: none; }
.login-brand .orange { color: var(--orange); }
.login-brand .blue { color: var(--brand); }

.login-card h1 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.login-card .sub {
  font-size: .88rem;
  color: var(--dim);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--dim);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-dk);
  border-radius: var(--r);
  font: inherit;
  font-size: .95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: none;
  border-radius: var(--r);
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  background: var(--brand-blue);
  color: var(--white);
}

.btn-primary:hover { background: var(--brand-blue-dk); }

.btn-sm {
  width: auto;
  padding: 10px 18px;
  font-size: .88rem;
}

.login-error {
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--red);
  text-align: center;
  display: none;
}

.login-error.show { display: block; }

.login-foot {
  margin-top: 20px;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}

/* ?? smart place shell ?? */
.sp-shell {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}

.sp-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sp-sidebar-brand {
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.sp-sidebar-brand img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
}

.sp-sidebar-brand .orange { color: var(--orange); }
.sp-sidebar-brand .blue { color: var(--brand); }

.sp-store-card {
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
}

.sp-store-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #fff7ed, #fff);
  border: 2px solid #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
  cursor: pointer;
}
.sp-store-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(3, 199, 90, .2);
}
.sp-store-thumb--editable { margin-bottom: 12px; }
.sp-store-thumb-edit {
  position: absolute;
  inset: auto 0 0;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 4px 0;
  text-align: center;
}

.sp-store-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-store-thumb-letter {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
}

.sp-store-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}

.sp-store-plan {
  font-size: .75rem;
  color: var(--dim);
  margin-bottom: 10px;
}

.sp-store-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  background: #fff;
  border: 1px solid rgba(3, 199, 90, .35);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.sp-store-home-btn:hover {
  background: var(--brand);
  color: #fff;
}

.sp-store-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand);
}

.sp-nav {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: none;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.sp-nav-item:hover {
  background: var(--bg);
}

.sp-nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-blue);
  font-weight: 700;
}

.sp-nav-item.subtle {
  color: var(--muted);
  font-size: .82rem;
}

.sp-sidebar-foot {
  padding: 8px;
  border-top: 1px solid var(--border);
}

.sp-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.sp-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.sp-topbar h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 2px;
}

.sp-period {
  font-size: .78rem;
  color: var(--dim);
}

.sp-month-select {
  padding: 9px 32px 9px 12px;
  border: 1px solid var(--border-dk);
  border-radius: var(--r);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M3 5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
}

.sp-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 24px;
}

.sp-foot {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

/* ?? KPI cards (????????) ?? */
.sp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.sp-kpi {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 14px;
  box-shadow: var(--shadow);
}

.sp-kpi-label {
  display: block;
  font-size: .75rem;
  color: var(--dim);
  font-weight: 600;
  margin-bottom: 8px;
}

.sp-kpi-val {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.sp-kpi-delta {
  font-size: .72rem;
  font-weight: 600;
}

.sp-kpi-delta.up { color: var(--brand-teal-dk); }
.sp-kpi-delta.down { color: var(--red); }
.sp-kpi-delta.neutral { color: var(--muted); }

/* ?? panels ?? */
.sp-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.sp-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sp-panel-hd h2 {
  font-size: .92rem;
  font-weight: 800;
}

.sp-panel-hd span {
  font-size: .75rem;
  color: var(--muted);
}

.sp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sp-two-col .sp-panel { margin-bottom: 0; }

.chart-wrap { width: 100%; overflow-x: auto; }

.sp-conv-pills {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.sp-conv-pills span {
  font-size: .78rem;
  color: var(--dim);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: var(--pill, 999px);
  border: 1px solid var(--border);
}

.sp-conv-pills strong { color: var(--brand-blue); }

/* ?? tables ?? */
.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.sp-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--dim);
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.sp-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.sp-table tr:last-child td { border-bottom: none; }

.sp-td-num { text-align: right; font-variant-numeric: tabular-nums; }
.sp-td-num strong { font-size: 1rem; font-weight: 800; }

.sp-td-delta { font-size: .78rem; font-weight: 600; }
.sp-td-delta.up { color: var(--brand-teal-dk); }
.sp-td-delta.down { color: var(--red); }
.sp-td-delta.neutral { color: var(--muted); }

.sp-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f0f0f0;
  color: var(--ink-2);
}

.sp-tag-blog { background: #e8f0fe; color: #1565c0; }
.sp-tag-sns { background: #fff3e0; color: #e65100; }
.sp-tag-review { background: #e8f5e9; color: #2e7d32; }
.sp-tag-place, .sp-tag-web { background: #f3e5f5; color: #7b1fa2; }

.sp-benefit-list {
  list-style: none;
  font-size: .88rem;
  color: var(--ink-2);
}

.sp-benefit-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sp-benefit-list li:last-child { border-bottom: none; }

.sp-report-text {
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.75;
}

.sp-empty {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  padding: 24px;
}

/* ?? conversion: funnel + donut ?? */
.conv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.funnel-classic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.funnel-classic-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.funnel-classic-shape {
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: width .3s ease;
}

.funnel-classic-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--dim);
  margin-top: 6px;
  text-align: center;
}

.funnel-classic-rate {
  display: block;
  font-size: .72rem;
  color: var(--sp-green-dk);
  margin-top: 2px;
}

.funnel-classic-rate strong { font-weight: 800; }

.funnel-classic-arrow {
  font-size: .65rem;
  color: var(--muted);
  margin: 2px 0;
}

.viz-donut-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.viz-donut-wrap { text-align: center; }

.viz-donut {
  width: 110px;
  height: 110px;
  display: block;
  margin: 0 auto;
}

.viz-donut-val {
  font: 800 15px 'Pretendard Variable', sans-serif;
  fill: var(--ink);
}

.viz-donut-sub {
  font: 600 8px 'Pretendard Variable', sans-serif;
  fill: var(--muted);
}

.viz-donut-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--dim);
  margin-top: 8px;
}

.viz-line { width: 100%; max-height: 160px; }

/* ?? uploads ?? */
.upload-intro {
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.upload-tips {
  font-size: .82rem;
  color: var(--dim);
  padding-left: 18px;
  line-height: 1.7;
}

.upload-form .form-group select,
.upload-form .form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-dk);
  border-radius: var(--r);
  font: inherit;
  font-size: .88rem;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 36px 20px;
  border: 2px dashed var(--border-dk);
  border-radius: var(--r-lg);
  background: #fafafa;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
}

.upload-dropzone:hover,
.upload-dropzone.drag {
  border-color: var(--sp-green);
  background: var(--sp-green-soft);
}

.upload-dropzone-icon { font-size: 2rem; }

.upload-dropzone-text {
  font-size: .9rem;
  font-weight: 700;
}

.upload-dropzone-sub {
  font-size: .75rem;
  color: var(--muted);
}

.upload-status {
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}

.upload-status.ok { color: var(--sp-green-dk); }
.upload-status.err { color: var(--red); }

.upload-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.upload-chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--pill, 999px);
  background: var(--panel);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
}

.upload-chip.active {
  background: var(--brand-soft);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.upload-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: #fafafa;
}

.upload-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
}

.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-card-body {
  padding: 10px;
  font-size: .72rem;
}

.upload-card-cat {
  display: inline-block;
  font-weight: 700;
  color: var(--sp-green-dk);
  margin-bottom: 2px;
}

.upload-card-date {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.upload-card-note {
  color: var(--ink-2);
  margin-bottom: 4px;
  line-height: 1.4;
}

.upload-card-status {
  display: block;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 6px;
}

.upload-del {
  border: none;
  background: none;
  color: var(--red);
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* ?? requests ?? */
.request-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-dk);
  border-radius: var(--r);
  font: inherit;
  font-size: .88rem;
  resize: vertical;
  min-height: 100px;
}

.request-form textarea:focus,
.request-form select:focus {
  outline: none;
  border-color: var(--sp-green);
  box-shadow: 0 0 0 2px var(--sp-green-soft);
}

.request-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  background: #fafafa;
}

.request-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.request-card-title {
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.request-card-body {
  font-size: .85rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.request-card-date {
  font-size: .72rem;
  color: var(--muted);
}

.req-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #e8f0fe;
  color: #1565c0;
}

.req-tag-place { background: #e8f5e9; color: #2e7d32; }
.req-tag-website { background: #f3e5f5; color: #7b1fa2; }
.req-tag-etc { background: #f5f5f5; color: var(--dim); }

.req-status {
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--pill, 999px);
}

.status-pending { background: #fff3e0; color: #e65100; }
.status-progress { background: #e3f2fd; color: #1565c0; }
.status-done { background: #e8f4fc; color: var(--brand-blue); }
.status-cancelled { background: #f5f5f5; color: #9e9e9e; }

.request-card.cancelled { opacity: .65; }
.request-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.request-card-actions { display: flex; gap: 6px; }
.request-form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload-dropzone-sm { padding: 20px 16px; min-height: auto; }
.req-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.req-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  color: var(--muted);
  max-width: 72px;
}
.req-preview-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.req-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.req-att img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.req-status-select {
  padding: 6px 10px;
  border: 1px solid var(--border-dk);
  border-radius: var(--r);
  font: inherit;
  font-size: .82rem;
}

/* ?? kakao ?? */
.kakao-preview {
  background: #b2c7d9;
  border-radius: var(--r);
  padding: 16px;
  max-width: 360px;
}

.kakao-preview-hd {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(0, 0, 0, .45);
  text-align: center;
  margin-bottom: 10px;
}

.kakao-bubble {
  background: #fee500;
  border-radius: 12px 12px 4px 12px;
  padding: 14px 16px;
  font-size: .84rem;
  line-height: 1.6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.kakao-bubble strong {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .sp-shell { flex-direction: column; height: auto; min-height: 100dvh; overflow: visible; }
  body.member-in { overflow: auto; }

  .sp-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sp-nav { flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .sp-nav-item { width: auto; flex: 1; min-width: 90px; text-align: center; padding: 10px 8px; font-size: .82rem; }
  .sp-sidebar-foot { display: none; }

  .sp-main { overflow: visible; }
  .sp-content { overflow: visible; }

  .sp-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .sp-two-col { grid-template-columns: 1fr; }
  .conv-layout { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .sp-kpi-row { grid-template-columns: 1fr; }
  .sp-topbar { flex-direction: column; }
  .sp-month-select { width: 100%; }
}

/* 문의함 */
.inquiry-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.inquiry-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
}
.inquiry-stat.highlight {
  border-color: #1a72d8;
  background: #f0f7ff;
}
.inquiry-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.inquiry-stat.highlight .inquiry-stat-num { color: #1a72d8; }
.inquiry-stat-label {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--muted);
}

.inquiry-panel-hd {
  flex-wrap: wrap;
  gap: 10px;
}
.inquiry-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.inquiry-filters { display: flex; gap: 6px; }
.inquiry-bulk-del { color: #c62828; white-space: nowrap; }

.inquiry-cal-panel .sp-panel-hd span {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.inquiry-cal-hd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.inquiry-cal-hd strong { font-size: 1rem; min-width: 8em; text-align: center; }
.inquiry-cal-nav {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}
.inquiry-cal-nav:hover { background: #f5f5f5; }
.inquiry-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.inquiry-cal-wd {
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
}
.inquiry-cal-wd:first-child { color: #e53935; }
.inquiry-cal-wd:last-child { color: #1e88e5; }
.inquiry-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.inquiry-cal-day {
  position: relative;
  aspect-ratio: 1;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fafafa;
  cursor: default;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.inquiry-cal-day.empty { background: transparent; border: none; }
.inquiry-cal-day:not(:disabled) {
  cursor: pointer;
  background: #fff;
  border-color: var(--border);
}
.inquiry-cal-day:not(:disabled):hover { background: #f0f7ff; border-color: var(--brand-blue); }
.inquiry-cal-day.has-items { font-weight: 600; }
.inquiry-cal-day.has-unread:not(.selected) { border-color: var(--brand-blue); background: #f0f7ff; }
.inquiry-cal-day.today .inquiry-cal-num { color: #1a72d8; font-weight: 800; }
.inquiry-cal-day.selected {
  background: #1a72d8;
  border-color: #1a72d8;
  color: #fff;
}
.inquiry-cal-day.selected .inquiry-cal-num { color: #fff; }
.inquiry-cal-day.selected .inquiry-cal-badge { background: #fff; color: #1a72d8; }
.inquiry-cal-num { font-size: .82rem; line-height: 1.2; }
.inquiry-cal-badge {
  font-size: .62rem;
  font-weight: 700;
  background: #eee;
  color: var(--text);
  border-radius: 8px;
  padding: 1px 5px;
  margin-top: auto;
}
.inquiry-cal-badge.unread { background: #1a72d8; color: #fff; }
.inquiry-cal-hint {
  margin: 12px 0 0;
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.45;
}
.inquiry-day-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  background: #f0f7ff;
  border-bottom: 1px solid var(--border);
  font-size: .86rem;
  font-weight: 600;
}
.inquiry-day-clear {
  border: none;
  background: none;
  color: #1a72d8;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.inquiry-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.inquiry-chip.active {
  border-color: #1a72d8;
  background: #f0f7ff;
  color: #1a72d8;
}

.inquiry-summary-4 {
  grid-template-columns: repeat(4, 1fr);
}
.inquiry-stat.highlight-progress {
  border-color: #42a5f5;
  background: #f0f7ff;
}
.inquiry-stat.highlight-progress .inquiry-stat-num { color: #1565c0; }

.inquiry-list-panel { padding: 0; overflow: hidden; }
.inquiry-list-panel .sp-panel-hd { padding: 14px 16px; margin: 0; }
.inquiry-list-panel .inquiry-day-bar { margin: 0; }
.inquiry-list { display: block; }

.inquiry-table { width: 100%; overflow-x: auto; }
.inquiry-table-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 720px;
}
.inquiry-table-hd .inq-col-date { width: 88px; flex-shrink: 0; }
.inquiry-table-hd .inq-col-status { width: 72px; flex-shrink: 0; }
.inquiry-table-hd .inq-col-name { flex: 1; min-width: 72px; }
.inquiry-table-hd .inq-col-svc { flex: 1.2; min-width: 80px; }
.inquiry-table-hd .inq-col-phone { flex: 1.1; min-width: 96px; }
.inquiry-table-hd .inq-col-actions { width: 140px; flex-shrink: 0; text-align: right; }
.inquiry-table-hd .inq-col-arrow { width: 28px; flex-shrink: 0; }

.inquiry-table-body { min-width: 720px; }

.inquiry-line {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.inquiry-line-new { background: #fcfffe; }
.inquiry-line-new .inquiry-line-main { border-left: 3px solid #1a72d8; }
.inquiry-line-progress .inquiry-line-main { border-left: 3px solid #42a5f5; }
.inquiry-line-done { opacity: .82; }
.inquiry-line-done .inquiry-line-main { border-left: 3px solid #e0e0e0; }

.inquiry-line-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding-right: 8px;
}
.inquiry-line-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.inquiry-line-info:hover .inq-col-name { color: #1a72d8; }

.inq-col {
  min-width: 0;
  font-size: .82rem;
  line-height: 1.35;
}
.inquiry-line-info .inq-col-date { width: 88px; flex-shrink: 0; padding-left: 14px; }
.inquiry-line-info .inq-col-status { width: 72px; flex-shrink: 0; }
.inquiry-line-info .inq-col-name { flex: 1; min-width: 72px; }
.inquiry-line-info .inq-col-svc { flex: 1.2; min-width: 80px; }
.inquiry-line-info .inq-col-phone { flex: 1.1; min-width: 96px; }
.inquiry-line-info .inq-col-arrow { width: 28px; flex-shrink: 0; text-align: center; }

.inq-col-actions {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.inq-col-date {
  font-size: .76rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.inq-col-name {
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inq-col-svc,
.inq-col-phone {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inq-col-arrow {
  text-align: center;
  color: var(--muted);
  font-size: .68rem;
  padding-right: 10px;
}

.inq-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.inq-st-new { background: #1a72d8; color: #fff; }
.inq-st-progress { background: #e3f2fd; color: #1565c0; }
.inq-st-done { background: #eee; color: #757575; }

.inq-act {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.2;
}
.inq-act:hover { background: #f5f5f5; }
.inq-act-call { color: #1565c0; border-color: #bbdefb; background: #f0f7ff; }
.inq-act-confirm { color: var(--brand-blue); border-color: #bfdbfe; background: #f0f7ff; }
.inq-act-done { color: #e65100; border-color: #ffe0b2; background: #fff8e1; }
.inq-act-del { color: #c62828; border-color: #ffcdd2; }

.inquiry-line-detail {
  padding: 12px 16px 14px;
  background: #fafbfc;
  border-top: 1px dashed var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.inquiry-line-detail[hidden] { display: none; }

.inquiry-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}
.inquiry-empty-title { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.inquiry-empty-desc { font-size: .86rem; line-height: 1.5; }

.inquiry-row { min-width: 0; }
.inquiry-row-full { grid-column: 1 / -1; }
.inquiry-label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  margin-bottom: 3px;
}
.inquiry-value {
  display: block;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}
.inquiry-value a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.notify-fold summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .92rem;
  padding: 4px 0;
  list-style: none;
}
.notify-fold summary::-webkit-details-marker { display: none; }
.notify-fold[open] summary { margin-bottom: 10px; }

@media (max-width: 600px) {
  .inquiry-summary-4 { grid-template-columns: repeat(2, 1fr); }
  .inquiry-line-detail { grid-template-columns: 1fr; }
  .inquiry-panel-hd { flex-direction: column; align-items: flex-start; }
  .inquiry-toolbar { margin-left: 0; width: 100%; }
  .inquiry-filters { flex-wrap: wrap; }
}
.sp-nav-badge {
  display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 4px; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: #fff; background: #ff7043; border-radius: 999px;
}
.notify-panel .btn { margin-top: 8px; }

/* PWA 설치 배너 */
.pwa-install-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000;
  background: #1a1a1a; color: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.pwa-install-banner p { font-size: .86rem; line-height: 1.45; margin-bottom: 10px; }
.pwa-install-ios {
  font-size: .8rem;
  line-height: 1.5;
  margin: -4px 0 10px;
  color: rgba(255, 255, 255, .9);
}
.pwa-install-actions { display: flex; gap: 8px; }
.pwa-install-banner .btn-primary { background: #1a72d8; border: none; color: #fff; }
.pwa-install-banner .btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }

/* 운영 내역 카드 */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.work-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.work-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.work-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.work-card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.work-count {
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}
.work-count span { font-size: .75rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.work-links { display: flex; flex-direction: column; gap: 6px; }
.work-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0f7ff;
  border: 1px solid rgba(3, 199, 90, .2);
  color: var(--text);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.work-link:hover {
  background: #eafff2;
  border-color: #1a72d8;
}
.work-link-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a72d8;
  color: #fff;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 800;
}
.work-link-text { flex: 1; min-width: 0; line-height: 1.35; }
.work-note { font-size: .84rem; color: var(--ink-2); line-height: 1.5; margin: 0; }

/* 리포트 시각화 */
.report-kpi-row { margin-bottom: 4px; }
.report-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.report-summary-card .sp-report-text { margin: 0; }

.viz-compare { display: flex; flex-direction: column; gap: 16px; }
.viz-compare-row { display: flex; flex-direction: column; gap: 6px; }
.viz-compare-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
  font-weight: 700;
}
.viz-compare-delta { font-size: .78rem; font-weight: 700; }
.viz-compare-delta.up { color: var(--brand-teal-dk); }
.viz-compare-delta.down { color: #c62828; }
.viz-compare-delta.neutral { color: var(--muted); }
.viz-compare-bars { display: flex; flex-direction: column; gap: 4px; }
.viz-compare-bar {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: .72rem;
  font-weight: 600;
  min-width: 48px;
  transition: width .3s ease;
}
.viz-compare-bar.prev { background: #eee; color: var(--dim); }
.viz-compare-bar.cur { background: var(--brand-blue); color: #fff; }

.viz-benefits { display: flex; flex-direction: column; gap: 14px; }
.viz-benefit-row { display: flex; flex-direction: column; gap: 4px; }
.viz-benefit-top {
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  font-weight: 700;
}
.viz-benefit-track {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.viz-benefit-fill { height: 100%; border-radius: 999px; }
.viz-benefit-note { font-size: .75rem; color: var(--muted); }

.viz-channels { display: flex; flex-direction: column; gap: 12px; }
.viz-channel-row { display: flex; flex-direction: column; gap: 4px; }
.viz-channel-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
  font-weight: 700;
}
.viz-channel-hd small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.viz-channel-track {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.viz-channel-fill { height: 100%; border-radius: 999px; }

.report-viz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.sp-live-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #e8f4fc;
  border-radius: 10px;
  font-size: .82rem;
  color: var(--ink-2);
}

.sp-live-banner-empty {
  background: #f5f5f5;
  color: var(--muted);
}

.sp-panel-daangn {
  border: 1px solid rgba(255, 111, 15, 0.2);
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
}

.sp-kpi-row-compact {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
  .report-viz-grid { grid-template-columns: 1fr; }
}

/* 프로모션 */
.promo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.promo-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.promo-card-img img { width: 100%; height: 140px; object-fit: cover; display: block; }
.promo-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.promo-card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.promo-card-hd h3 { font-size: .95rem; font-weight: 800; line-height: 1.35; }
.promo-benefit {
  font-size: .88rem;
  font-weight: 700;
  color: #e65100;
}
.promo-period { font-size: .78rem; color: var(--muted); font-weight: 600; }
.promo-desc { font-size: .84rem; color: var(--ink-2); line-height: 1.55; flex: 1; }
.promo-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.promo-status {
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.promo-status-pending { background: #fff3e0; color: #e65100; }
.promo-status-active { background: #e8f4fc; color: var(--brand-blue); }
.promo-status-ended { background: #f5f5f5; color: #9e9e9e; }

/* ── progress timeline ── */
.progress-timeline {
  position: relative;
  padding-left: 24px;
}

.progress-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.progress-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 0 0 24px;
}

.progress-timeline-item:last-child {
  padding-bottom: 0;
}

.progress-timeline-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-blue);
}

.progress-timeline-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
  padding-top: 2px;
}

.progress-timeline-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
}

.progress-timeline-text + .progress-timeline-links {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.progress-timeline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-timeline-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #c5e4f7;
  border-radius: 999px;
}

.progress-timeline-link:hover {
  background: #e8f4fc;
}

.sp-live-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #1565c0;
  background: #e3f2fd;
  border-radius: 999px;
  vertical-align: middle;
}

.sp-kpi-live .sp-kpi-val {
  color: var(--brand-blue);
}

@media (max-width: 768px) {
  .report-summary-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .progress-timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .progress-timeline-date { padding-top: 0; }
}
