.switch-4635, .shut-f246, .mndaf2-bar { display: none; }

.switch-4635 { background: #0f172a; color: #ffffff; border-radius: 16px; }
.shut-f246 { color: #0f172a; border: 1px solid #0f172a; border-radius: 16px; }

dialog#mndaf2[open] { display: block !important; }

@media (max-width: 1366px) {
  .mndaf2-bar { display: flex !important; flex-direction: row; align-items: center; gap: 12px; padding: 8px 10px; position: relative; z-index: 99999; flex-wrap: wrap; max-width: 100%; box-sizing: border-box; }
  .mlbdaf2 { display: inline-flex !important; align-items: center; line-height: 0; flex: 1 1 auto; min-width: 0; max-width: 70%; }
  .mlbdaf2 img { display: block; max-height: 50px; max-width: 100%; height: auto; width: auto; }
  .switch-4635 { display: inline-flex !important; align-items: center; gap: 6px; cursor: pointer; padding: 8px 10px; background: #0f172a; color: #ffffff; border: 0; border-radius: 16px; font-size: 14px; font-family: inherit; flex: 0 0 auto; }
  .switch-4635 .icdaf2 { font-size: 18px; line-height: 1; }
  .shut-f246 { cursor: pointer; padding: 6px 8px; background: transparent; color: #0f172a; border: 1px solid #0f172a; border-radius: 16px; font-size: 13px; font-family: inherit; margin-bottom: 8px; display: inline-block; }
  dialog#mndaf2 { display: none; position: fixed; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 92%; max-width: 480px; max-height: 85vh; padding: 14px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 16px; z-index: 99999; overflow-y: auto; }
  dialog#mndaf2::backdrop { background: rgba(0,0,0,0.5); }
  #mndaf2.on { display: block !important; }
  #mndaf2 > ul { list-style: none; padding: 0; margin: 0; }
  #mndaf2 > ul > li { border-bottom: 1px solid #cbd5e1; position: relative; }
  #mndaf2 > ul > li:last-child { border-bottom: 0; }
  #mndaf2 > ul > li > a { display: block; padding: 10px 14px; color: #0f172a; text-decoration: none; font-size: 14px; }
  #mndaf2 > ul > li.has-children > a::after { content: ' ▾'; opacity: 0.6; font-size: 11px; }
  #mndaf2 ul.sub { list-style: none; padding: 0; margin: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #e2e8f0; }
  #mndaf2 > ul > li.open > ul.sub { max-height: 1000px; }
  #mndaf2 ul.sub > li { border-bottom: 1px solid #cbd5e1; }
  #mndaf2 ul.sub > li:last-child { border-bottom: 0; }
  #mndaf2 ul.sub > li > a { display: block; padding: 8px 18px; color: #0f172a; text-decoration: none; font-size: 13px; }
  #mndaf2 > ul > .mlgdaf2 { border-bottom: 1px solid #cbd5e1; padding: 14px; display: flex; align-items: center; }
  #mndaf2 > ul > .mlgdaf2 a { padding: 0; display: inline-flex; align-items: center; line-height: 0; }
  #mndaf2 > ul > .mlgdaf2 img { display: block; height: auto; width: auto; max-width: 240px; max-height: 60px; }
  #mndaf2 > ul > li.mi-sep { border-bottom: 1px solid #cbd5e1; height: 1px; padding: 0; margin: 0; }
  #mndaf2 > ul > .msrdaf2 { padding: 10px 14px; border-bottom: 1px solid #cbd5e1; }
  #mndaf2 > ul > .msrdaf2 form { display: flex; gap: 6px; margin: 0; }
  #mndaf2 > ul > .msrdaf2 input { flex: 1; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 16px; font-size: 13px; font-family: inherit; min-width: 0; }
  #mndaf2 > ul > .msrdaf2 button { padding: 6px 8px; background: #0f172a; color: #ffffff; border: 0; border-radius: 16px; cursor: pointer; font-size: 13px; flex: 0 0 auto; }
}

@media (min-width: 1367px) {
  .switch-4635, .shut-f246, .mndaf2-bar { display: none !important; }
  #mndaf2 { display: block !important; padding: 0 !important; background: transparent !important; border: 0 !important; margin: 0 !important; overflow: visible !important; position: static !important; inset: auto !important; transform: none !important; width: auto !important; max-width: 100% !important; max-height: none !important; box-sizing: border-box !important; }
  #mndaf2 > ul { display: flex !important; flex-direction: row; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; align-items: center; max-width: 100%; box-sizing: border-box; }
  #mndaf2 > ul > li { border: 0 !important; position: relative; flex: 0 0 auto; min-width: 0; }
  #mndaf2 > ul > li > a { display: inline-block; padding: 10px 14px; color: #0f172a; text-decoration: none; font-size: 14px; border-radius: 16px; transition: background 0.2s; white-space: nowrap; }
  #mndaf2 > ul > li > a:hover { background: #e2e8f0; }
  #mndaf2 > ul > li.has-children > a::after { content: ' ▾'; opacity: 0.55; font-size: 11px; }
  #mndaf2 ul.sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); padding: 6px 0; margin: 0; list-style: none; z-index: 99999; opacity: 0; visibility: hidden; transform: translate(-6px,-4px); transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.3s; pointer-events: none; }
  #mndaf2 > ul > li.has-children:hover > ul.sub, #mndaf2 ul.sub:hover, #mndaf2 > ul > li.has-children:focus-within > ul.sub, #mndaf2 > ul > li.has-children.open > ul.sub { opacity: 1; visibility: visible; transform: translate(0,0); pointer-events: auto; transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s; }
  #mndaf2 ul.sub > li { border: 0 !important; width: 100%; }
  #mndaf2 ul.sub > li > a { display: block !important; padding: 10px 12px !important; color: #0f172a !important; text-decoration: none; font-size: 13px; white-space: nowrap; border-radius: 0 !important; transition: background 0.15s; }
  #mndaf2 ul.sub > li > a:hover { background: #e2e8f0; }
  #mndaf2 > ul > .mlgdaf2 { border: 0 !important; padding: 0 14px 0 0 !important; margin-right: 6px; display: flex; align-items: center; }
  #mndaf2 > ul > .mlgdaf2 a { padding: 0 !important; display: inline-flex; align-items: center; line-height: 0; background: transparent !important; }
  #mndaf2 > ul > .mlgdaf2 a:hover { background: transparent !important; }
  #mndaf2 > ul > .mlgdaf2 img { display: block; max-width: 200px; height: auto; width: auto; max-height: 60px; }
  #mndaf2 > ul > li.mi-sep { width: 1px; height: 22px; background: #cbd5e1; padding: 0 !important; margin: 0 6px !important; border: 0 !important; align-self: center; }
  #mndaf2 > ul > .msrdaf2 { border: 0 !important; padding: 0 !important; margin: 0 0 0 8px; flex: 0 1 auto; min-width: 0; }
  #mndaf2 > ul > .msrdaf2 form { display: flex; gap: 4px; margin: 0; align-items: center; flex-wrap: nowrap; }
  #mndaf2 > ul > .msrdaf2 input { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 16px; font-size: 13px; font-family: inherit; width: 140px; min-width: 0; max-width: 180px; }
  #mndaf2 > ul > .msrdaf2 button { padding: 6px 10px; background: #0f172a; color: #ffffff; border: 0; border-radius: 16px; cursor: pointer; font-size: 13px; flex: 0 0 auto; }
}
