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

.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: 18px;
  height: var(--platform-header-height);
  margin: 0;
  padding: 0 22px;
  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: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, 30px);
  align-items: center;
  gap: 6px 7px;
  width: min(100%, 760px);
  min-width: 0;
  margin-inline: auto;
}
.mone-header .mone-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #e4e6ee;
  border-radius: 8px;
  background: #fff;
  color: #1a1d27;
  font: 600 12px/16px -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-language { display: grid; gap: 6px; padding: 10px; color: #6b7080; font-size: 12px; font-weight: 600; }
.mone-language-select {
  height: 36px;
  width: 100%;
  min-width: 150px;
  padding: 0 28px 0 10px;
  border: 1px solid #e4e6ee;
  border-radius: 8px;
  background: #fff;
  color: #1a1d27;
  font: 600 13px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
}
.mone-language-select:hover { border-color: #2456d6; }
.mone-language-select:focus-visible { outline: 2px solid #2456d6; outline-offset: -2px; }
.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;
  justify-content: center;
  width: 38px;
  height: 36px;
  padding: 0;
  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: 17px; height: 17px; 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: 210px; 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-settings-users + .mone-language { margin-top: 4px; border-top: 1px solid #eef0f5; }
.mone-settings-users[hidden] + .mone-language { margin-top: 0; border-top: 0; }
.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: 14px; padding-inline: 16px; }
  .mone-nav { width: min(100%, 680px); }
  .mone-account { gap: 10px; }
  .mone-email { display: none; }
}
@media (max-width: 980px) {
  :root { --platform-header-height: 123px; }
  .mone-header { grid-template-columns: 1fr auto; grid-template-rows: 45px 77px; gap: 0 12px; padding-inline: 12px; }
  .mone-header .mone-brand { font-size: 15px; }
  .mone-account { grid-column: 2; grid-row: 1; }
  .mone-nav { grid-column: 1 / -1; grid-row: 2; align-self: start; width: min(100%, 680px); padding-block: 5px; }
  .mone-header .mone-nav a { padding-inline: 6px; font-size: 11px; }
}
@media (max-width: 560px) {
  :root { --platform-header-height: 186px; }
  .mone-header { grid-template-rows: 46px 139px; }
  .mone-header .mone-brand { font-size: 13px; }
  .mone-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, 28px); gap: 5px; width: 100%; padding-block: 6px; }
  .mone-header .mone-nav a { height: 28px; padding-inline: 4px; font-size: 10px; }
  .mone-header .mone-signout { font-size: 12px; }
}
