:root {
  --mb-dark: #252D29;
  --mb-green: #16A34A;
  --mb-green-dark: #15803d;
  --mb-green-soft: #dcfce7;
  --mb-white: #FFFFFF;
  --mb-bg: #F1EEE7;
  --mb-muted: #64748B;
  --mb-border: #E2DDD4;
  --mb-card: #FFFFFF;
  --mb-danger: #DC2626;
  --mb-warning: #D97706;
  --mb-radius: 12px;
  --mb-shadow: 0 1px 2px rgba(37, 45, 41, 0.04), 0 8px 24px rgba(37, 45, 41, 0.06);
  --mb-font: 'Manrope', system-ui, sans-serif;
  --mb-display: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--mb-font);
  background: var(--mb-bg);
  color: var(--mb-dark);
  -webkit-font-smoothing: antialiased;
}

.mb-container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.mb-container-wide { width: min(1280px, calc(100% - 2rem)); margin-inline: auto; }

.mb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 10px; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.25rem; transition: all .2s ease; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
}
.mb-btn-primary { background: var(--mb-green); color: #fff; }
.mb-btn-primary:hover { background: var(--mb-green-dark); }
.mb-btn-secondary { background: #fff; color: var(--mb-dark); border-color: var(--mb-border); }
.mb-btn-secondary:hover { border-color: #d8cfc0; background: #faf8f5; }
.mb-btn-ghost { background: transparent; color: var(--mb-dark); }
.mb-btn-ghost:hover { background: #eae5dc; }
.mb-btn-danger { background: var(--mb-danger); color: #fff; }

.mb-card {
  background: var(--mb-card);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  box-shadow: var(--mb-shadow);
}

.mb-input, .mb-select, .mb-textarea {
  width: 100%; border: 1px solid var(--mb-border); border-radius: 10px;
  padding: .75rem .9rem; background: #fff; color: var(--mb-dark);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.mb-input:focus, .mb-select:focus, .mb-textarea:focus {
  border-color: var(--mb-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.mb-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; color: var(--mb-dark); }
.mb-help { font-size: .8rem; color: var(--mb-muted); margin-top: .3rem; }
.mb-error { font-size: .8rem; color: var(--mb-danger); margin-top: .3rem; }

.mb-section { padding: 4rem 0; }
.mb-section-title { font-family: var(--mb-display); font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.mb-section-sub { color: var(--mb-muted); margin-top: .6rem; max-width: 42rem; }

.mb-toast {
  position: fixed; top: 1rem; right: 1rem; z-index: 100;
  background: #fff; border: 1px solid var(--mb-border); border-radius: 12px;
  box-shadow: var(--mb-shadow); padding: .9rem 1rem; min-width: 260px;
  animation: mb-slide .25s ease;
}
@keyframes mb-slide { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

.mb-empty { text-align: center; padding: 3rem 1.5rem; color: var(--mb-muted); }

.mb-sidebar {
  width: 260px; background: #fff; border-right: 1px solid var(--mb-border);
  min-height: 100vh; position: sticky; top: 0;
}
.mb-sidebar a {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .9rem; border-radius: 10px; color: #334155; text-decoration: none; font-weight: 550;
}
.mb-sidebar a:hover { background: #f1f5f9; }
.mb-sidebar a.active { background: var(--mb-green-soft); color: var(--mb-green-dark); }

.mb-stat { padding: 1.15rem 1.25rem; }
.mb-stat .label { color: var(--mb-muted); font-size: .85rem; font-weight: 600; }
.mb-stat .value { font-size: 1.6rem; font-weight: 800; margin-top: .25rem; letter-spacing: -.02em; }

.mb-table { width: 100%; border-collapse: collapse; }
.mb-table th, .mb-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--mb-border); text-align: left; }
.mb-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mb-muted); }

.mb-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--mb-dark); }
.mb-logo img { height: 36px; width: auto; }

@media (max-width: 900px) {
  .mb-sidebar { display: none; }
  .mb-sidebar.open { display: block; position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(280px, 85vw); }
}

/* Marketing page shell for non-home pages */
.mkt-page { background: #fff; }
.mkt-hero {
  background: var(--mb-bg);
  border-bottom: 1px solid var(--mb-border);
  padding: 4rem 0 3rem;
}
.mkt-hero h1 {
  font-family: var(--mb-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--mb-dark);
}
.mkt-prose { max-width: 720px; margin: 0 auto; padding: 3rem 1rem 4rem; }
.mkt-prose h2 { font-family: var(--mb-display); font-weight: 800; margin: 2rem 0 .75rem; }
.mkt-prose p, .mkt-prose li { color: var(--mb-muted); line-height: 1.7; }
