:root { --platform-header-height: 65px; }

.mone-header, .mone-header * { box-sizing: border-box; }
.mone-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  height: var(--platform-header-height);
  margin: 0;
  padding: 0 28px;
  border-bottom: 1px solid #e4e6ee;
  background: #fff;
  color: #1a1d27;
  font: 400 14px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.mone-header[hidden], .mone-header [hidden] { display: none; }
.mone-header a { text-decoration: none; }
.mone-header .mone-brand { color: #1a1d27; font-size: 17px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.mone-brand span { color: #2456d6; }
.mone-nav {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mone-header .mone-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border: 1px solid #e4e6ee;
  border-radius: 8px;
  background: #fff;
  color: #1a1d27;
  font: 600 14px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background-color .15s;
}
.mone-header .mone-nav a:hover { border-color: #2456d6; color: #2456d6; }
.mone-header .mone-nav a.active { border-color: #2456d6; background: #2456d6; color: #fff; }
.mone-account { display: flex; align-items: center; gap: 14px; color: #6b7080; white-space: nowrap; }
.mone-header .mone-signout { color: #6b7080; }
.mone-header .mone-signout:hover { color: #2456d6; }
.mone-settings { position: relative; }
.mone-settings summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #e4e6ee;
  border-radius: 8px;
  background: #fff;
  color: #1a1d27;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.mone-settings summary::-webkit-details-marker { display: none; }
.mone-settings summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.mone-settings summary:hover, .mone-settings[open] summary { border-color: #2456d6; color: #2456d6; }
.mone-settings-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 180px; padding: 6px; border: 1px solid #e4e6ee; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(26,29,39,.14); }
.mone-header .mone-settings-menu a { display: block; padding: 9px 10px; border-radius: 7px; color: #1a1d27; font-size: 13px; font-weight: 600; }
.mone-header .mone-settings-menu a:hover { background: #f3f6ff; color: #2456d6; }
.mone-readonly { padding: 4px 7px; border-radius: 6px; background: #f1f4f2; color: #66726d; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.mone-header a:focus-visible, .mone-settings summary:focus-visible { outline: 2px solid #2456d6; outline-offset: -2px; }

@media (max-width: 1350px) {
  .mone-header { gap: 16px; padding-inline: 18px; }
  .mone-email { display: none; }
}
@media (max-width: 900px) {
  .mone-header { gap: 12px; padding-inline: 12px; }
  .mone-header .mone-brand { font-size: 15px; }
  .mone-nav { gap: 7px; }
  .mone-header .mone-nav a { padding-inline: 12px; }
}
@media (max-width: 760px) {
  :root { --platform-header-height: 110px; }
  .mone-header { grid-template-columns: 1fr auto; grid-template-rows: 50px 59px; gap: 0 12px; }
  .mone-account { grid-column: 2; grid-row: 1; gap: 10px; }
  .mone-nav { grid-column: 1 / -1; grid-row: 2; align-self: start; padding-block: 6px; justify-content: flex-start; }
}
