:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #e2e5ea;
  --text: #1a1f2e;
  --muted: #6b7280;
  --accent: #059669;
  --accent-hover: #047857;
  --primary: #1e2a4a;
  --danger: #dc2626;
  --success: #16a34a;
  --sidebar-w: 240px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --font: "IBM Plex Sans", system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Login */
.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  padding: 1rem;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.login-brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.login-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* App layout */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.sidebar-title {
  font-weight: 600;
  color: white;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-footer {
  padding: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 0.875rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.nav-item.active {
  background: rgba(200, 146, 42, 0.2);
  color: var(--accent);
}

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.content-area {
  padding: 1.5rem;
  flex: 1;
}

/* Panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-header h3 {
  margin-bottom: 0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

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

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

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

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

.btn-sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* Forms */
label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea,
.select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}

input:focus,
textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-stack label {
  margin-bottom: 1rem;
}

.form-stack label input {
  margin-top: 0.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-group label input[type="checkbox"] {
  width: auto;
}

/* List */
.list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.list-item-info h4 {
  font-size: 0.9375rem;
  font-weight: 500;
}

.list-item-info p {
  font-size: 0.8125rem;
  color: var(--muted);
}

.list-item-actions {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-published {
  background: #dcfce7;
  color: var(--success);
}

.badge-draft {
  background: #fef3c7;
  color: #d97706;
}

.badge-home {
  background: #dbeafe;
  color: #2563eb;
}

/* Editor */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.editor-toolbar .select {
  width: auto;
  min-width: 200px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-btn {
  padding: 0.375rem 0.875rem;
  border: none;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

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

.editor-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.tab {
  padding: 0.375rem 0.875rem;
  border: none;
  background: none;
  font-size: 0.8125rem;
  cursor: pointer;
  color: var(--muted);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.tab.active {
  background: var(--primary);
  color: white;
}

.editor-panels {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.editor-section {
  display: none;
}

.editor-section.active {
  display: block;
}

.editor-section h4 {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.repeater-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
  position: relative;
}

.repeater-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.repeater-item-header span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.media-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.media-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: var(--border);
}

.media-card-body {
  padding: 0.75rem;
}

.media-card-body p {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  word-break: break-all;
}

.media-card-body small {
  color: var(--muted);
  font-size: 0.75rem;
}

.media-card-actions {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.75rem 0.75rem;
}

.upload-btn {
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1rem;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 300;
  transition: opacity 0.3s;
}

.toast.error {
  background: var(--danger);
}

.toast.success {
  background: var(--success);
}

.error-msg {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .main {
    margin-left: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Page builder ───────────────────────────────────────────────────────── */

.builder-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bg);
}

.builder-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.builder-block-header h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
}

.builder-block-actions {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  align-items: center;
}

.builder-inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.builder-inline-fields label {
  font-size: 0.8125rem;
  color: var(--muted);
}

.builder-inline-fields input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.builder-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.builder-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.builder-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: var(--primary);
  color: white;
  font-size: 0.8125rem;
  font-weight: 500;
}

.builder-card-actions {
  display: flex;
  gap: 0.25rem;
}

.builder-card-body {
  padding: 0.875rem;
}

.builder-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.builder-label input,
.builder-label textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
}

.builder-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.75rem 0 0.5rem;
}

.builder-empty,
.picker-empty {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.btn-icon {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-icon-danger {
  border-color: rgba(220, 38, 38, 0.4);
  color: #fecaca;
}

.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dynamic-row {
  display: flex;
  gap: 0.375rem;
  align-items: flex-start;
}

.dynamic-row textarea,
.dynamic-row input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
}

.dynamic-row-2 input:first-child {
  max-width: 100px;
}

.dynamic-row-stack {
  flex-direction: column;
}

.dropdown-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 50;
  overflow: hidden;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.875rem;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.8125rem;
  cursor: pointer;
}

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

/* Image field */
.image-field {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.image-field-preview {
  width: 120px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}

.image-field-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-field-actions {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.image-field-id {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Pickers */
.picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.picker-panel {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.picker-panel-lg {
  max-width: 720px;
}

.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.picker-header h3 {
  font-size: 1rem;
  margin: 0;
}

.picker-toolbar {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.picker-search-wrap {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.picker-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.picker-media-item {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  padding: 0;
  text-align: left;
  transition: border-color 0.15s;
}

.picker-media-item:hover,
.picker-media-item.selected {
  border-color: var(--accent);
}

.picker-media-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.picker-media-item span {
  display: block;
  padding: 0.375rem 0.5rem;
  font-size: 0.6875rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-block-list {
  overflow-y: auto;
  flex: 1;
  padding: 0.75rem 1.25rem;
}

.block-group {
  margin-bottom: 1rem;
}

.block-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.375rem;
  padding: 0 0.25rem;
}

.block-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  margin-bottom: 0.375rem;
  transition: border-color 0.15s, background 0.15s;
}

.block-item:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.block-item strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.block-item small {
  color: var(--muted);
  font-size: 0.75rem;
}

.block-item-kind {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.125rem;
}

.picker-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.modal-box.modal-lg {
  max-width: 560px;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.guide-banner {
  background: linear-gradient(135deg, var(--primary) 0%, oklch(0.32 0.08 262) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.guide-banner h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.guide-steps {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.help-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1e40af;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.help-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.editor-toolbar-main {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.select-lg {
  min-width: 220px;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
}

.tab-advanced {
  opacity: 0.75;
  font-size: 0.75rem;
}

.builder-block-header h4 {
  font-size: 1rem;
  margin: 0;
}

.source-page-select .help-text {
  margin-top: 0.5rem;
}

/* Analytics CRM */
.analytics-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .analytics-grid-2 {
    grid-template-columns: 1fr;
  }
}

.analytics-bar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8125rem;
}

.analytics-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.analytics-bar-track {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  min-width: 4px;
}

.analytics-bar-count {
  font-weight: 600;
  color: var(--muted);
  min-width: 2rem;
  text-align: right;
}

.analytics-day-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 140px;
  padding-top: 0.5rem;
}

.analytics-day-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.35rem;
}

.analytics-day-bar {
  width: 100%;
  max-width: 36px;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.analytics-day-label {
  font-size: 0.6875rem;
  color: var(--muted);
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.analytics-table th,
.analytics-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.analytics-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.muted-text {
  color: var(--muted);
  font-size: 0.875rem;
}

.help-text {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.help-text a {
  color: var(--accent);
}

.mt-section {
  margin-top: 1.5rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.checkbox-row input {
  width: auto;
}
