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

:root {
  --bg: #0f0f14;
  --bg-card: #1a1a24;
  --bg-input: #252533;
  --border: #2d2d3d;
  --text: #e4e4eb;
  --text-muted: #8888a0;
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --danger: #ef4444;
  --success: #22c55e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page { display: none; }
.page.active { display: block; }

/* Login */
.login-container {
  max-width: 400px;
  margin: 15vh auto;
  padding: 40px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.logo {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 32px;
}

.logo-sm {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: var(--accent);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 4px;
}

.toggle-password:hover {
  opacity: 1;
}

.input-sm {
  width: 120px !important;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: white;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-btn {
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-btn:hover {
  color: var(--text);
  background: var(--bg-input);
}

.nav-btn.active {
  color: var(--accent);
  background: rgba(20, 184, 166, 0.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Tabs — a single horizontal gutter for ALL tab content, so nothing touches
   the browser edge. Shared blocks that used to add their own 32px are zeroed
   here so the gutter doesn't double. */
.tab-content { display: none; padding: 0 32px 32px; }
.tab-content.active { display: block; }
.tab-content > .tab-header { padding-left: 0; padding-right: 0; }
.tab-content .stats-grid { padding-left: 0; padding-right: 0; }
.tab-content .data-table { margin-left: 0; margin-right: 0; max-width: 100%; }
@media (max-width: 640px) {
  .tab-content { padding: 0 16px 24px; }
  /* Header: logo + logout stay on top row, tabs become a swipeable strip below */
  .header { padding: 12px 16px; flex-wrap: wrap; gap: 12px 16px; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-btn { flex: 0 0 auto; white-space: nowrap; }
  .tab-header { flex-wrap: wrap; gap: 10px; }
  /* Wide tables scroll horizontally inside their own box instead of the page
     (single block table keeps columns aligned; nowrap forces the scroll) */
  .data-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 16px;
}

.tab-header h2 {
  font-size: 20px;
  font-weight: 600;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 32px;
  max-width: calc(100% - 64px);
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
  background: rgba(20, 184, 166, 0.03);
}

/* Inline form */
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 460px;
  max-width: 90vw;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.input-with-btn input {
  flex: 1;
}

.credentials-box {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  font-size: 13px;
}

.credentials-box p {
  margin-bottom: 4px;
}

/* Blogger Page */
.blogger-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.promo-label {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.promo-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.promo-code-display span {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

/* Chart */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.chart-container h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.chart-area {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 20px;
  position: relative;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chart-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 160px;
}

.chart-bar {
  width: 12px;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.3s;
}

.chart-bar.entered {
  background: var(--accent);
}

.chart-bar.purchased {
  background: var(--success);
}

.chart-date {
  font-size: 10px;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: 40px;
}

/* Badge */
.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-used {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-available {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-app {
  background: rgba(20, 184, 166, 0.15);
  color: var(--accent);
  display: inline-block;
  margin: 2px 0;
}

.checkbox-group {
  display: flex;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.section-title {
  font-size: 16px;
  color: var(--text-muted);
  margin: 24px 0 12px;
  padding-left: 4px;
}

.section-title:first-child {
  margin-top: 0;
}

.app-stats-detail {
  margin-top: 4px;
}

.app-stat-line {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Catalog (tales) additions --- */
.modal-lg { max-width: 640px; width: 92%; }
.tale-modal-body { max-height: 74vh; overflow-y: auto; padding-right: 6px; }
.tale-modal-body hr { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 16px 0; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.titles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ta { width: 100%; font-family: inherit; font-size: 14px; padding: 8px; border-radius: 8px; box-sizing: border-box; background: var(--bg-input); color: var(--text); border: 1px solid var(--border); }
.hint { color: var(--text-muted); font-size: 12px; margin: 4px 0; }
.check-issues { color: #e74c3c; margin: 6px 0; padding-left: 18px; }
.check-warn { color: #e0a800; margin: 6px 0; padding-left: 18px; }
.img-preview { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.img-preview .thumb { height: 56px; border-radius: 6px; }
.badge-active { background: #2ecc71; color: #fff; }
.badge-hidden { background: #95a5a6; color: #fff; }
.badge-removed { background: #e74c3c; color: #fff; }

/* --- Activity feed (admin alerts) additions --- */
.nav-badge { display: none; background: #e74c3c; color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 12px; margin-left: 4px; vertical-align: middle; }
.alert-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); align-items: flex-start; }
.alert-item.unread { background: rgba(46,204,113,0.10); }
.alert-icon { font-size: 18px; line-height: 1.4; }
.alert-body { flex: 1; }
.alert-msg { font-weight: 500; }
.alert-meta { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

.tale-modal-body select { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.tale-modal-body input[type="file"] { color: var(--text-muted); font-size: 13px; }
.tale-modal-body h4 { margin: 4px 0 8px; }

/* --- Upload progress bar --- */
.upload-progress { padding: 10px 4px 2px; }
.upload-progress .bar { height: 8px; background: var(--accent); border-radius: 6px; width: 0; transition: width .15s ease; }
.upload-progress .bar.indeterminate { width: 100% !important; background: linear-gradient(90deg, var(--accent) 25%, var(--accent-hover) 50%, var(--accent) 75%); background-size: 200% 100%; animation: upload-ind 1s linear infinite; }
@keyframes upload-ind { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.upload-progress .pct { font-size: 12px; color: var(--text-muted); }

/* --- Per-language scenario rows --- */
.scenario-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.scenario-lang { font-weight: 600; text-transform: uppercase; width: 26px; }
.scenario-count { font-size: 12px; color: var(--text-muted); min-width: 104px; }
.scenario-count.ok { color: #2ecc71; }

/* --- Example illustration image --- */
.example-img { display: block; max-width: 100%; border-radius: 8px; margin: 6px 0 10px; border: 1px solid var(--border); cursor: pointer; }

/* --- userId under child name in promo table --- */
.muted-id { color: var(--text-muted); font-size: 12px; }

/* --- Analytics tab (Firebase mirror) --- */
.an-params { font-family: monospace; font-size: 12px; color: var(--text-muted); word-break: break-word; white-space: pre-wrap; display: inline-block; max-width: 420px; }
.an-legend { margin-top: 24px; }
.an-legend > summary { cursor: pointer; color: var(--text-muted); font-size: 14px; padding: 6px 0; }
.tab-header .hint { font-weight: 400; font-size: 13px; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 8px 0 22px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.kpi-icon { font-size: 20px; }
.kpi-val { font-size: 24px; font-weight: 700; color: var(--text); margin-top: 6px; line-height: 1.1; }
.kpi-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* Two-column panels */
.an-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
@media (max-width: 900px) { .an-cols { grid-template-columns: 1fr; } }
.an-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.an-panel-title { font-size: 14px; margin: 0 0 16px; color: var(--text); }
.sub-title { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }

/* Funnel */
.funnel-row { margin-bottom: 14px; }
.funnel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.funnel-name { font-size: 13px; color: var(--text); }
.funnel-pct { font-size: 12px; color: var(--text-muted); }
.funnel-bar-wrap { background: var(--bg-input); border-radius: 7px; overflow: hidden; }
.funnel-bar { height: 30px; display: flex; align-items: center; padding: 0 10px; color: #fff; font-weight: 700; font-size: 13px; border-radius: 7px; min-width: 26px; transition: width .4s ease; }
.funnel-bar.f1 { background: linear-gradient(90deg, #0ea5a4, #14b8a6); }
.funnel-bar.f2 { background: linear-gradient(90deg, #7c5cf0, #2dd4bf); }
.funnel-bar.f3 { background: linear-gradient(90deg, #22c55e, #16a34a); }
.funnel-secondary { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.funnel-secondary b { color: var(--text); }

/* Daily bar chart */
.daily-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; overflow-x: auto; padding-top: 6px; }
.daily-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 26px; }
.daily-bars { display: flex; align-items: flex-end; gap: 3px; height: 122px; }
.daily-bar { width: 9px; border-radius: 3px 3px 0 0; transition: height .4s ease; }
.dot-purple, .daily-bar.dot-purple { background: #14b8a6; }
.dot-green, .daily-bar.dot-green { background: #22c55e; }
.daily-date { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.chart-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.chart-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }

/* Horizontal bar lists (sources / platforms / products) */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bar-label { flex: 0 0 40%; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; background: var(--bg-input); border-radius: 6px; height: 16px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #0ea5a4, #2dd4bf); border-radius: 6px; transition: width .4s ease; }
.bar-count { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--text); min-width: 26px; text-align: right; }

/* Popular tales */
.tales-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 8px 0 22px; }
/* Horizontal carousel: one row, several tales visible, scroll/swipe sideways
   for the rest; new tales just extend the row. */
#an-tales {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
#an-tales .tale-card { flex: 0 0 190px; scroll-snap-align: start; }
#an-tales::-webkit-scrollbar { height: 9px; }
#an-tales::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
#an-tales::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.tale-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.tale-cover { position: relative; aspect-ratio: 3 / 2; background: var(--bg-input) center/cover no-repeat; display: flex; align-items: flex-start; }
.tale-cover.has-cover .tale-rank { background: rgba(0,0,0,.55); }
.tale-rank { margin: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.tale-info { padding: 12px; }
.tale-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.tale-stat { font-size: 12px; color: var(--text); margin-top: 2px; }

/* Live feed collapsible summary looks like a section title */
.an-summary { list-style: none; }
.an-summary::-webkit-details-marker { display: none; }
.an-summary::before { content: '▸ '; color: var(--text-muted); }
details[open] > .an-summary::before { content: '▾ '; }

/* Popular tale cards are clickable → per-tale modal */
.tale-card { cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.tale-card:hover { transform: translateY(-2px); border-color: var(--accent); }

/* Per-tale analytics modal */
.an-tale-body { padding: 4px 2px; }
.an-tale-head { display: flex; gap: 16px; align-items: stretch; margin-bottom: 12px; flex-wrap: wrap; }
.an-tale-cover { flex: 0 0 160px; aspect-ratio: 3 / 2; border-radius: 10px; background: var(--bg-input) center/cover no-repeat; border: 1px solid var(--border); }
.an-tale-kpis { flex: 1; min-width: 260px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.an-tale-kpis .kpi-card { padding: 12px; }
.an-tale-kpis .kpi-val { font-size: 20px; }
@media (max-width: 620px) { .an-tale-kpis { grid-template-columns: repeat(2, 1fr); } }
.an-tale-body .an-panel-title { margin: 18px 0 6px; }

/* Retention curve (per page) */
.retention-chart { margin-top: 6px; }
.ret-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.ret-page { flex: 0 0 60px; font-size: 12px; color: var(--text-muted); }
.ret-track { flex: 1; background: var(--bg-input); border-radius: 5px; height: 18px; overflow: hidden; }
.ret-fill { height: 100%; background: linear-gradient(90deg, #0ea5a4, #2dd4bf); border-radius: 5px; transition: width .4s ease; }
.ret-fill.ret-drop { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.ret-val { flex: 0 0 auto; font-size: 12px; min-width: 70px; text-align: right; color: var(--text); }

/* Bottom "all tales" grid: header with search, coming-soon badge */
.an-tales-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.an-tales-header .section-title { margin: 0; }
#an-tale-search { min-width: 240px; }
.tale-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }

/* ===== Logs tab (remote log mirror + kill-switch) ===== */
.logs-switch { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.logs-switch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.logs-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.logs-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.logs-limit { width: 90px; }

#logs-list { display: flex; flex-direction: column; gap: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.log-line { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-left-width: 3px; border-radius: 6px; padding: 6px 10px; }
.log-line.log-err  { border-left-color: var(--danger); }
.log-line.log-warn { border-left-color: #f59e0b; }
.log-line.log-log  { border-left-color: var(--border); }
.log-lvl { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; letter-spacing: .03em; }
.log-lvl-err  { background: rgba(239,68,68,.15);  color: #fca5a5; }
.log-lvl-warn { background: rgba(245,158,11,.15); color: #fcd34d; }
.log-lvl-log  { background: rgba(136,136,160,.15); color: var(--text-muted); }
.log-body { min-width: 0; flex: 1; }
.log-msg { color: var(--text); white-space: pre-wrap; word-break: break-word; }
.log-stack { margin: 4px 0 0; padding: 6px 8px; background: var(--bg-input); border-radius: 6px; color: var(--text-muted); white-space: pre-wrap; word-break: break-word; font-size: 11.5px; max-height: 220px; overflow: auto; }
.log-meta { color: var(--text-muted); font-size: 11px; margin-top: 3px; }
.log-meta code { background: var(--bg-input); padding: 1px 5px; border-radius: 4px; }
