/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:    #1a56db;
    --blue-lt: #eff6ff;
    --green:   #16a34a;
    --green-lt:#f0fdf4;
    --red:     #dc2626;
    --red-lt:  #fef2f2;
    --yellow:  #d97706;
    --yellow-lt:#fffbeb;
    --purple:  #7c3aed;
    --purple-lt:#f5f3ff;
    --grey:    #6b7280;
    --grey-lt: #f9fafb;
    --border:  #e5e7eb;
    --text:    #1f2937;
    --text-sm: #6b7280;
    --radius:  8px;
    --shadow:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: #f3f4f6;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ────────────────────────────────────────────── */
.mbe-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.mbe-header__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mbe-header--dashboard .mbe-header__inner { max-width: 100%; }
.mbe-header__brand { display: flex; flex-direction: column; gap: 1px; }
.mbe-header__logo  { font-size: 17px; font-weight: 800; color: var(--blue); letter-spacing: -0.5px; }
.mbe-header__logo-link { text-decoration: none; }
.mbe-header__logo-link:hover .mbe-header__logo { text-decoration: none; }
.mbe-header__sub   { font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: .5px; }
.mbe-header__nav   { display: flex; gap: 4px; align-items: center; }
.mbe-nav__link {
    font-size: 13px; font-weight: 500; color: var(--grey);
    padding: 6px 10px; border-radius: 6px; transition: background .1s, color .1s;
}
.mbe-nav__link:hover, .mbe-nav__link.is-active { background: var(--blue-lt); color: var(--blue); text-decoration: none; }
.mbe-header__actions { display: flex; gap: 8px; align-items: center; }
.mbe-header__btn {
    font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px;
    border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.mbe-header__btn:hover { background: var(--grey-lt); text-decoration: none; }
.mbe-header__btn--logout { color: var(--red); border-color: #fecaca; }
.mbe-header__btn--logout:hover { background: var(--red-lt); }

/* ── Footer ────────────────────────────────────────────── */
.mbe-footer { background: #fff; border-top: 1px solid var(--border); padding: 20px 16px; }
.mbe-footer__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.mbe-footer__copy { font-size: 13px; color: var(--grey); }
.mbe-footer__note { font-size: 11px; color: #9ca3af; margin-top: 4px; }

/* ── Container ─────────────────────────────────────────── */
.mbe-container { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.mbe-main { min-height: calc(100vh - 56px - 60px); }

/* ── Tags / badges ─────────────────────────────────────── */
.mbe-tag {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.mbe-tag--blue   { background: var(--blue-lt);   color: var(--blue); }
.mbe-tag--green  { background: var(--green-lt);  color: var(--green); }
.mbe-tag--red    { background: var(--red-lt);    color: var(--red); }
.mbe-tag--yellow { background: var(--yellow-lt); color: var(--yellow); }
.mbe-tag--purple { background: var(--purple-lt); color: var(--purple); }
.mbe-tag--grey   { background: #f3f4f6;          color: var(--grey); }
.mbe-text--red   { color: var(--red) !important; }
