/* ==========================================================================
   Mail Ward — suite chrome.
   One small, self-contained bar shared by every page of the suite so the
   guide, the header analyzer and the volume dashboard feel like one tool.
   Deliberately does NOT depend on any host-page CSS variable: the analyzer
   and the dashboard each have their own palette.
   ========================================================================== */

.mw-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    margin: 0 auto 18px;
    max-width: 1200px;
    padding: 7px 10px;
    border-radius: 14px;
    background: #0c0720;
    border: 1px solid rgba(168, 85, 247, .34);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    line-height: 1.4;
    position: relative;
    z-index: 1100;
}

.mw-bar a {
    color: #c9c2e8;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 9px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.mw-bar a:hover,
.mw-bar a:focus-visible {
    color: #fff;
    background: rgba(168, 85, 247, .24);
}

.mw-bar a[aria-current="page"] {
    color: #fff;
    background: rgba(168, 85, 247, .3);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .6);
}

.mw-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: #fff !important;
    margin-right: 8px;
}

.mw-brand:hover { background: transparent !important; }

.mw-mark {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    font-size: 14px;
    flex: none;
}

.mw-sep {
    width: 1px;
    height: 20px;
    margin: 0 7px;
    background: rgba(168, 85, 247, .3);
    flex: none;
}

.mw-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.mw-right a { color: #8f86b5; font-size: 12.5px; }

/* The analyzer's theme picker is moved into the bar so its fixed-position
   original cannot overlap it. Specificity beats the .theme-picker rule. */
.mw-bar .theme-picker {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 4px 0 8px;
    gap: 7px;
}

.mw-bar .theme-picker-icon { color: #c9c2e8; }

.mw-bar .theme-picker select {
    font: inherit;
    font-size: 12.5px;
    color: #ece9ff;
    background: rgba(168, 85, 247, .16);
    border: 1px solid rgba(168, 85, 247, .4);
    border-radius: 9px;
    padding: 5px 8px;
    cursor: pointer;
}

.mw-bar .theme-picker select option { color: #16121f; background: #fff; }

@media (max-width: 640px) {
    .mw-bar { font-size: 12.5px; }
    .mw-bar a { padding: 6px 9px; }
    .mw-right { margin-left: 0; width: 100%; }
    .mw-sep { display: none; }
}

/* Explanatory panel + footer used by the volume dashboard, which has no
   component library of its own. */
.mw-note {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(20, 30, 50, .12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #24304a;
}

.mw-note p + p { margin-top: 10px; }
.mw-note a { color: #6d28d9; }

.mw-foot {
    max-width: 1200px;
    margin: 22px auto 8px;
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

.mw-foot a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .mw-bar a { transition: none; }
}
