/* ============================================================
   BookiStudios Client Portal — visual system
   Light "small-business sales dashboard" direction.
   White surfaces · charcoal ink · signal-orange action · motion.
   ============================================================ */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --fg: #101828;
  --muted: #667085;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --accent: #f04a0e;
  --accent-strong: #d63d08;
  --accent-soft: #fff1ea;
  --success: #0e9f6e;
  --success-soft: #e8f7f1;
  --warn: #b54708;
  --warn-soft: #fff4e6;
  --danger: #c01048;
  --danger-soft: #fdeaf0;
  --info: #2563eb;
  --info-soft: #eef4ff;
  --nav-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.12);
  --font-display: "Sora", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-w: 268px;
  --topbar-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* ---------- App shell ---------- */
.portal-shell {
  min-height: 100vh;
  padding-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}
.portal-shell-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--nav-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.35s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  height: var(--topbar-h);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--fg);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--font-display); font-size: 14px; letter-spacing: -0.01em; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

.nav-scroll { flex: 1; overflow-y: auto; padding: 14px 12px 24px; }
.nav-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 10px 7px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 11px;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav-link:hover { background: var(--surface-2); color: var(--fg); }
.nav-link.active {
  background: var(--surface-2);
  color: var(--fg);
  font-weight: 600;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-link svg { width: 18px; height: 18px; stroke: currentColor; flex: 0 0 auto; }
.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid #ffd9c8;
  padding: 2px 7px;
  border-radius: 999px;
}

.sidebar-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 12px;
  background: var(--surface-2);
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--fg);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.user-meta { min-width: 0; line-height: 1.2; }
.user-meta b { display: block; font-size: 13px; letter-spacing: -0.01em; }
.user-meta span { font-size: 11px; color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  place-items: center;
  cursor: pointer;
}
.page-head { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.page-head b { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; }
.page-head span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.12); }
.icon-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 11px;
  display: grid; place-items: center;
  cursor: pointer;
  color: #344054;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; }

/* ---------- Content ---------- */
.content {
  flex: 1;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 26px 30px 60px;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 6px 0 24px;
}
.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.page-intro p { color: var(--muted); max-width: 58ch; margin-top: 8px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 0;
}
.card-head h2, .card-head h3 { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; font-weight: 620; }
.card-head .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card-body { padding: 18px 20px 20px; }

/* ---------- KPI grid ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.kpi {
  position: relative;
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.kpi .kpi-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
}
.kpi .kpi-value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi .kpi-foot { margin-top: 10px; font-size: 12px; color: var(--muted); }
.kpi .spark {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 84px;
  height: 40px;
  opacity: 0.85;
}
.kpi.kpi-accent { background: linear-gradient(135deg, #ff6a2b 0%, var(--accent) 100%); border: 0; color: #fff; }
.kpi.kpi-accent .kpi-label, .kpi.kpi-accent .kpi-foot { color: rgba(255,255,255,0.78); }

/* ---------- Panels / dashboard grid ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 14px;
}
.section-title h2 { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; font-weight: 650; }
.section-title a { color: var(--accent-strong); font-size: 13px; font-weight: 600; }

/* ---------- Chart primitives ---------- */
.chart-box { position: relative; }
.chart-box svg { width: 100%; height: auto; overflow: visible; }
.grid-line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis-label { font-size: 10px; fill: var(--muted); font-family: var(--font-mono); letter-spacing: 0.02em; }
.chart-area { opacity: 0.92; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-ghost { fill: none; stroke: #ffb38f; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 4 6; }
.chart-dot { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.bar { fill: var(--accent-soft); rx: 4; }
.bar.on { fill: var(--accent); }
.donut-track { stroke: var(--border); }
.donut-seg { stroke: var(--accent); stroke-linecap: round; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; }

/* ---------- Reveal / motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }
.reveal[data-delay="4"] { transition-delay: 0.24s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ---------- Buttons / forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(240, 74, 14, 0.22); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: #fff; border-color: var(--border-strong); color: #344054; }
.btn-secondary:hover { border-color: #98a2b3; background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--accent-strong); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

.field { display: grid; gap: 7px; }
.field label { font-size: 12px; font-weight: 600; color: #344054; }
.input, .textarea, .select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 74, 14, 0.14);
}
.textarea { min-height: 96px; resize: vertical; }

/* ---------- Toggle switch ---------- */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  background: #cdd3dc;
  border-radius: 999px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s var(--ease);
  box-shadow: 0 2px 5px rgba(0,0,0,0.16);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); }

/* ---------- Module rows ---------- */
.module-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.module-row:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.module-row + .module-row { margin-top: 12px; }
.module-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--fg);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.module-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.module-main { flex: 1; min-width: 0; }
.module-main b { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; }
.module-main p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Empty state ---------- */
.empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  background: var(--surface-2);
}
.empty .empty-ico {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
}
.empty .empty-ico svg { width: 24px; height: 24px; stroke: currentColor; }
.empty h3 { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.empty p { color: var(--muted); font-size: 13px; max-width: 40ch; margin: 6px auto 16px; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-2);
}
.data-table td { color: #344054; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Checklist / feature lists ---------- */
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: #344054;
}
.check-ico {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--success-soft);
  color: var(--success);
  display: grid; place-items: center;
  margin-top: 1px;
}
.check-ico svg { width: 13px; height: 13px; stroke: currentColor; }

/* ---------- AI chat ---------- */
.chat-panel { display: flex; flex-direction: column; height: 560px; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.msg.assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-compose { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 360px;
  padding: 13px 15px;
  background: #101828;
  color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: toastIn 0.35s var(--ease);
}
.toast b { color: #ffd4c2; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .portal-shell { padding-left: 0; }
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: grid; }
  .content { padding: 20px 18px 48px; }
  .topbar { padding: 0 18px; }
  .top-actions .status-pill { display: none; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .page-intro { flex-direction: column; align-items: flex-start; }
  .module-row { flex-wrap: wrap; }
  .chat-panel { height: 480px; }
}

/* ---------- Site preview ---------- */
.site-preview { padding: 26px; border-radius: 14px; background: #101828; color: #fff; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.site-preview-eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #ffb38f; font-weight: 600; }
.site-preview h1 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -.03em; margin-top: 14px; }
.site-preview p { color: rgba(255,255,255,.78); max-width: 46ch; margin-top: 12px; }
.site-preview .btn { margin-top: 20px; align-self: flex-start; }

/* ---------- Automation pipeline ---------- */
.pipeline { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.pipeline-step { flex: 1; min-width: 150px; display: grid; gap: 7px; }
.pipeline-step b { font-family: var(--font-display); font-size: 14px; letter-spacing: -.01em; }
.pipeline-step span { font-size: 12px; color: var(--muted); }
.pipeline-node {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
}
.pipeline-node.on { background: var(--accent-soft); border-color: #ffc3a8; color: var(--accent-strong); }
.pipeline-line { flex: 0 0 26px; height: 2px; background: var(--border); margin-top: 16px; }

/* ---------- Report paper ---------- */
.report-paper { border: 1px solid var(--border); border-radius: 14px; padding: 22px; background: #fff; box-shadow: var(--shadow-md); }
.report-paper-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.report-paper-head b { font-family: var(--font-display); letter-spacing: -.01em; }
.report-paper-head span { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.report-paper .grid-3 > div { display: grid; gap: 4px; }
.report-paper .grid-3 span { font-size: 12px; color: var(--muted); }
.report-paper .grid-3 b { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }

/* ---------- Tables helper ---------- */
.data-table-wrap { overflow-x: auto; }

/* utility */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }


/* ---------- Inquiry list + detail ---------- */
.inquiry-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; }
.inquiry-list { display: flex; flex-direction: column; gap: 8px; max-height: 540px; overflow-y: auto; padding: 14px; }
.inquiry-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px; border: 1px solid var(--border); border-radius: 13px;
  background: #fff; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.inquiry-row:hover { border-color: var(--border-strong); }
.inquiry-row.selected { border-color: var(--accent); background: var(--accent-soft); }
.inquiry-ava {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: var(--fg); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
}
.inquiry-ava.big { width: 44px; height: 44px; font-size: 16px; }
.inquiry-main { flex: 1; min-width: 0; line-height: 1.3; }
.inquiry-main b { display: block; font-size: 13px; }
.inquiry-main span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inquiry-time { font-size: 10px; color: var(--muted); white-space: nowrap; font-family: var(--font-mono); }
.detail-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.detail-head b { font-size: 15px; }
.detail-body { padding: 20px; min-height: 240px; white-space: pre-wrap; color: #344054; }
.detail-actions { padding: 0 20px 20px; }
.pill { padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); font-size: 11px; font-weight: 700; }
@media (max-width: 860px) { .inquiry-layout { grid-template-columns: 1fr; } }

/* ---------- Module toggle button ---------- */
.module-toggle {
  min-width: 92px; min-height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: #fff; color: #344054; font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.module-toggle.is-on { background: var(--success-soft); color: var(--success); border-color: #bce5d6; }
.module-toggle .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
