:root {
  --purple-900: #241a35; --purple-700: #4a3570; --purple-600: #634696;
  --purple-500: #7c5cb0; --purple-300: #baa7d8; --purple-100: #ede8f6; --purple-50: #f8f6fb;
  --ink: #221d2b; --text: #3d3846; --muted: #776f83; --border: #e6e1ee;
  --bg: #faf9f7; --surface: #ffffff; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
}
h1, h2 { font-family: 'Bricolage Grotesque', sans-serif; color: var(--ink); margin: 0 0 8px; }
h1 { font-size: 26px; }
h2 { font-size: 17px; margin-top: 0; }
.ls-muted { color: var(--muted); font-size: 14px; }
code { background: var(--purple-100); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.ls-admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: var(--purple-900); color: #fff;
}
.ls-admin-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif;
}
.ls-admin-logo img { height: 26px; width: auto; }
.ls-admin-main { max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px; }

.ls-btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 11px 20px; font-weight: 600; font-size: 14px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.ls-btn-primary { background: var(--purple-600); color: #fff; }
.ls-btn-primary:hover { background: var(--purple-700); }
.ls-btn-secondary { background: var(--purple-100); color: var(--purple-700); }
.ls-btn-secondary:hover { background: var(--purple-300); }
.ls-btn-ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.ls-admin-main .ls-btn-ghost { border-color: var(--purple-300); color: var(--purple-700); }
.ls-btn-danger { background: transparent; border-color: #d9534f; color: #d9534f; margin-top: 4px; }
.ls-btn-danger:hover { background: #d9534f; color: #fff; }

.ls-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(36,26,53,0.03), 0 8px 20px rgba(36,26,53,0.04);
  border-top: 3px solid var(--purple-500);
}
.ls-card-narrow { max-width: 420px; margin: 40px auto; }
.ls-form-wide .ls-card h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--purple-600);
  padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
}

.ls-form-wide { columns: 2; column-gap: 24px; }
.ls-form-wide > .ls-card { break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%; }
.ls-form-wide > .ls-card.ls-save-row,
.ls-form-wide > .ls-card.ls-card-wide { column-span: all; -webkit-column-span: all; }
@media (max-width: 900px) { .ls-form-wide { columns: 1; } }

.ls-card-columns { display: flex; gap: 32px; }
.ls-card-col { flex: 1; min-width: 0; }
@media (max-width: 700px) { .ls-card-columns { flex-direction: column; gap: 0; } }

.ls-contact-entry {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 16px 4px;
  margin-bottom: 14px; background: var(--purple-50);
}
.ls-contact-entry-preview { max-height: 64px; }
#ls-contact-template { display: none; }

.ls-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.ls-form input[type="text"], .ls-form input[type="password"], .ls-form input[type="email"], .ls-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-family: inherit; font-size: 14.5px; font-weight: 400; color: var(--ink); box-sizing: border-box;
}
.ls-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--purple-600); background: var(--purple-100); padding: 3px 9px; border-radius: 999px; vertical-align: middle;
}
.ls-stat-row { display: flex; gap: 28px; margin-bottom: 20px; flex-wrap: wrap; }
.ls-stat-num { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.ls-stat-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ls-bar-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ls-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.ls-bar { width: 100%; max-width: 22px; background: var(--purple-500); border-radius: 4px 4px 0 0; }
.ls-bar-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.ls-form textarea { resize: vertical; }
.ls-form input[type="file"] { margin-top: 6px; font-size: 13px; }

.ls-richtext { margin-top: 6px; margin-bottom: 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.ls-form textarea.ls-richtext-input { display: none; }
.ls-richtext-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; background: var(--purple-50); border-bottom: 1.5px solid var(--border); }
.ls-richtext-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent;
  color: var(--text); font-family: inherit; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ls-richtext-btn:hover { background: var(--purple-100); color: var(--purple-700); }
.ls-richtext-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.ls-richtext-editor {
  padding: 11px 12px; font-family: inherit; font-size: 14.5px; color: var(--ink); line-height: 1.6;
  outline: none; overflow-y: auto;
}
.ls-richtext-editor p { margin: 0 0 10px; }
.ls-richtext-editor p:last-child { margin-bottom: 0; }
.ls-richtext-editor ul, .ls-richtext-editor ol { margin: 0 0 10px; padding-left: 22px; }
.ls-color-input { width: 64px !important; height: 40px; padding: 4px !important; cursor: pointer; }
.ls-inline { display: flex; gap: 8px; align-items: center; }
.ls-inline input { flex: 1; }
.ls-inline-prefix { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ls-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ls-checkbox input { width: auto; margin: 0; }
.ls-error { color: #b3261e; font-size: 14px; }
.ls-preview-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.ls-preview-logo { max-height: 64px; max-width: 240px; object-fit: contain; display: block; margin-bottom: 12px; background: var(--purple-50); padding: 8px 12px; border-radius: var(--radius-sm); }
.ls-gallery-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.ls-gallery-item-row {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--purple-50);
}
.ls-gallery-item { position: relative; width: 96px; flex-shrink: 0; }
.ls-gallery-item img { width: 100%; height: 84px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.ls-gallery-item-fields { flex: 1; min-width: 0; }
.ls-gallery-item-fields label { margin-bottom: 8px; }
.ls-gallery-item-fields label:last-child { margin-bottom: 0; }
.ls-gallery-remove {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: #b3261e; color: #fff; border: 2px solid #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
.ls-gallery-item-row.is-marked-removed { opacity: 0.3; }
.ls-gallery-item-row.is-marked-removed .ls-gallery-remove { background: var(--purple-500); }

.ls-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.ls-header-actions { display: flex; gap: 10px; }

.ls-list { display: flex; flex-direction: column; gap: 2px; }
.ls-row {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius-md);
  text-decoration: none; color: inherit; border: 1px solid var(--border); background: var(--surface); margin-bottom: 8px;
}
.ls-row:hover { background: var(--purple-50); }
.ls-row-thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; background: var(--purple-100); flex-shrink: 0; }
.ls-row-name { font-weight: 700; color: var(--ink); }
.ls-row-slug { font-size: 12.5px; color: var(--muted); }
.ls-row-arrow { margin-left: auto; color: var(--purple-500); }
.ls-save-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
