/* Product identity, Help, About, and support entry points. */

#menu-panel .exa-menu-about-trigger,
#menu-panel .exa-menu-help-trigger {
  appearance: none;
  font: inherit;
  text-align: left;
}

#menu-panel .exa-menu-about-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#menu-panel .exa-menu-about-trigger:hover,
#menu-panel .exa-menu-about-trigger:focus-visible { outline: 0; filter: brightness(0.98); }

#menu-panel .exa-menu-about-trigger:focus-visible,
#menu-panel .exa-menu-help-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  border-radius: 6px;
}

#menu-panel .exa-menu-help-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 28px;
  margin-top: 7px;
  padding: 6px 8px;
  color: #496079;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  border: 1px solid #d8e2ed;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

#menu-panel .exa-menu-help-trigger:hover { color: #1f5fae; border-color: #b7d1ef; background: #fff; }
#menu-panel .exa-menu-help-trigger-label,
#menu-panel .exa-menu-help-trigger > svg,
#menu-panel .exa-menu-help-trigger-label > svg { display: inline-flex; align-items: center; }
#menu-panel .exa-menu-help-trigger-label { gap: 5px; }
#menu-panel .exa-menu-help-trigger svg { width: 13px; height: 13px; }

.exa-menu-help-popover {
  position: fixed;
  z-index: 10020;
  width: min(270px, calc(100vw - 24px));
  padding: 8px;
  color: #1f3045;
  border: 1px solid #d6e0ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(24, 46, 72, 0.2), 0 2px 8px rgba(24, 46, 72, 0.08);
}

.exa-menu-help-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px 8px;
  color: #526984;
  font-size: 0.76rem;
  font-weight: 700;
  border-bottom: 1px solid #e6edf5;
}

.exa-menu-help-heading-label { display: inline-flex; align-items: center; gap: 7px; }
.exa-menu-help-heading svg { width: 15px; height: 15px; color: #2563eb; }
.exa-menu-help-heading button { padding: 4px; color: #8b9aab; border: 0; background: transparent; cursor: pointer; }
.exa-menu-help-heading button:hover { color: #1f3045; }
.exa-menu-help-heading button svg { width: 14px; height: 14px; }

.exa-menu-help-popover a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  gap: 9px;
  align-items: start;
  padding: 10px 8px;
  color: #304861;
  border-radius: 7px;
  text-decoration: none;
}

.exa-menu-help-popover a:hover,
.exa-menu-help-popover a:focus-visible { color: #155fba; background: #f3f7fc; outline: 0; }
.exa-menu-help-popover a > svg { width: 16px; height: 16px; margin-top: 1px; color: #3b82f6; }
.exa-menu-help-popover a > svg:last-child { width: 13px; height: 13px; color: #91a1b4; }
.exa-menu-help-popover strong { display: block; font-size: 0.76rem; line-height: 1.2; }
.exa-menu-help-popover small { display: block; margin-top: 3px; color: #7d8ea2; font-size: 0.68rem; line-height: 1.35; }

.exa-about-open { overflow: hidden !important; }
.exa-about-overlay { position: fixed; inset: 0; z-index: 10030; background: rgba(15, 29, 46, 0.48); backdrop-filter: blur(2px); }
.exa-about-dialog {
  position: fixed;
  z-index: 10031;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  color: #213349;
  border: 1px solid #d7e1ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(11, 28, 48, 0.26);
  transform: translate(-50%, -50%);
}

.exa-about-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: #536980; font-size: 0.78rem; font-weight: 700; border-bottom: 1px solid #e3eaf2; }
.exa-about-dialog-header button { padding: 4px; color: #8797a9; border: 0; background: transparent; cursor: pointer; }
.exa-about-dialog-header button:hover { color: #22354a; }
.exa-about-dialog-header svg { width: 16px; height: 16px; }
.exa-about-dialog-body { padding: 28px 28px 24px; text-align: center; }
.exa-about-brand-mark { display: inline-flex; align-items: baseline; justify-content: center; min-width: 78px; height: 54px; margin-bottom: 16px; color: #12243a; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.08em; border: 1px solid #cadef3; border-radius: 10px; background: #eef6ff; }
.exa-about-brand-mark b { margin-left: 2px; color: #f39b24; font-size: 1.1rem; }
.exa-about-dialog h2 { margin: 0; color: #15283d; font-size: 1.35rem; letter-spacing: -0.03em; }
.exa-about-product { margin: 7px 0 0; color: #2563a9; font-size: 0.82rem; font-weight: 700; }
.exa-about-tagline { margin: 18px auto 0; max-width: 310px; color: #60758d; font-size: 0.78rem; line-height: 1.55; }
.exa-about-version { margin: 13px 0 0; color: #8797a9; font-size: 0.72rem; font-weight: 600; }
.exa-about-dialog-footer { padding: 15px 20px 17px; border-top: 1px solid #e3eaf2; background: #f7faff; }
.exa-about-dialog-footer p { margin: 0 0 9px; color: #718399; font-size: 0.67rem; line-height: 1.45; }
.exa-about-dialog-footer a { display: inline-flex; align-items: center; gap: 5px; color: #2468ae; font-size: 0.72rem; font-weight: 700; text-decoration: none; }
.exa-about-dialog-footer a:hover { text-decoration: underline; }
.exa-about-dialog-footer a svg { width: 13px; height: 13px; }

html.dark .exa-menu-help-trigger,
.dark #menu-panel .exa-menu-help-trigger { color: #bdcde0; border-color: #3b4f67; background: rgba(24, 38, 55, 0.78); }
html.dark .exa-menu-help-trigger:hover,
.dark #menu-panel .exa-menu-help-trigger:hover { color: #d9eaff; border-color: #5d82ae; background: #223650; }
html.dark .exa-menu-help-popover { color: #e3edf8; border-color: #425873; background: #1b2b40; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42); }
html.dark .exa-menu-help-heading { color: #b8cbe0; border-color: #344a64; }
html.dark .exa-menu-help-popover a { color: #d5e3f2; }
html.dark .exa-menu-help-popover a:hover,
html.dark .exa-menu-help-popover a:focus-visible { background: #253c58; }
html.dark .exa-menu-help-popover small { color: #9db1c8; }
html.dark .exa-about-dialog { color: #e1ebf6; border-color: #425873; background: #1b2b40; }
html.dark .exa-about-dialog-header { color: #c1d2e5; border-color: #344a64; }
html.dark .exa-about-dialog h2 { color: #f2f7fc; }
html.dark .exa-about-product { color: #8fc0f5; }
html.dark .exa-about-tagline, html.dark .exa-about-dialog-footer p { color: #a8bad0; }
html.dark .exa-about-dialog-footer { border-color: #344a64; background: #162438; }

/* Keep the Help entry compact alongside the account controls. */
html body #menu-panel .exa-menu-help-trigger {
  min-height: 28px;
  margin-top: 7px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  border-radius: 4px;
}

html body #menu-panel .exa-menu-help-trigger-label { gap: 5px; }
html body #menu-panel .exa-menu-help-trigger svg { width: 13px; height: 13px; }

@media (max-width: 720px) {
  .exa-about-dialog-body { padding: 24px 20px 21px; }
}
