/* ──────────────────────────────────────────────────────────────
   Global design tokens
   ────────────────────────────────────────────────────────────── */
:root {
    --brand: #185fa5;
    --bg: #f5f5f3;
    --surface: #ffffff;
    --border: #e5e5e3;
    --divider: #f0f0ee;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-disabled: #999;
    --active-bg: #eaf3de;
    --active-text: #3b6d11;
    --toggle-on: #97c459;
    --toggle-off: #ccc;
    --danger: #a32d2d;
    --avatar-blue-bg: #e6f1fb;
    --avatar-blue-text: #185fa5;

    /* Mockup tokens (rosterportal-personprofile-wireframe_uiux_version.html) */
    --ink: #1B1E2C;
    --ink-soft: #3F4256;
    --muted: #6B6E80;
    --line: #E4E7EE;
    --line-soft: #EEF1F6;
    --pill-bg: #F0F2F8;
    --pill-ink: #1B1E2C;
    --accent-soft: #E8EEF6;
    --accent-soft-ink: #1F4F87;
    --input-bg: #F8F9FC;
    --ghost-border: #C9CCD7;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --shadow-card: 0 1px 2px rgba(27, 30, 44, 0.04);
    --shadow-menu: 0 8px 24px rgba(27, 30, 44, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'Mulish', 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────
   App shell
   ────────────────────────────────────────────────────────────── */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ──────────────────────────────────────────────────────────────
   Top bar / banner
   ────────────────────────────────────────────────────────────── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: transparent;
    flex-shrink: 0;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.topbar-maestro-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(14, 23, 38, 0.18));
    border-radius: 10px;
}

.topbar-wordmark {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    text-decoration: none;
}

.topbar-icon-btn:hover {
    background: rgba(27, 30, 44, 0.06);
}

/* ──────────────────────────────────────────────────────────────
   Fixed-bottom Save bar (shared — Overview + Professional tabs)
   ────────────────────────────────────────────────────────────── */
.save-bar-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 0.75rem 1rem;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.save-bar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 767.98px) {
    .save-bar-inner {
        flex-direction: column-reverse;
    }

    .save-bar-inner .btn {
        width: 100%;
    }
}

/* ──────────────────────────────────────────────────────────────
   Main content area
   ────────────────────────────────────────────────────────────── */
.main {
    flex: 1;
    padding: 0 32px 24px;
}

@media (max-width: 640px) {
    .topbar {
        padding: 12px 20px;
    }

    .topbar-brand {
        font-size: 16px;
        gap: 10px;
    }

    .topbar-maestro-icon {
        width: 36px;
        height: 36px;
    }

    .topbar-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .main {
        padding: 0 14px 16px;
    }
}
