/* AMEA theme v2 — part 1: sidebar menu (prototype, 2026-11-05). Scoped under html.amea2 ; variant via html[data-amea2="light"].
   Brand: logo blue #1a1aff / green #00c853 / grey. Font: Figtree (UI) with system fallback. */
/* Figtree (variable, @fontsource-variable 5.2.8), self-hosted in ../fonts — patch173 */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/figtree-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/figtree-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

html.amea2 {
  --a2-w: 252px;
  --a2-font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* dark « Marine » variant (default) */
  --a2-bg: #0f1535;
  --a2-bg-2: #141b42;
  --a2-line: rgba(255, 255, 255, 0.08);
  --a2-text: #c3cbe6;
  --a2-text-strong: #ffffff;
  --a2-muted: #7f8ab3;
  --a2-hover: rgba(255, 255, 255, 0.06);
  --a2-active-bg: rgba(74, 110, 255, 0.22);
  --a2-active-text: #ffffff;
  --a2-accent: #2bd576;          /* brand green — active marker */
  --a2-accent-2: #5b7cff;        /* brand blue  — group open / focus */
  --a2-rail: rgba(255, 255, 255, 0.10);
  --a2-badge-bg: #ffb347;
  --a2-badge-text: #1a1200;
  --a2-search-bg: rgba(255, 255, 255, 0.07);
  --a2-search-text: #e6eaf7;
  --a2-brand-tile: #ffffff;
  --a2-foot-bg: rgba(0, 0, 0, 0.18);
  --a2-profile-bg: rgba(255, 255, 255, 0.05);
  --a2-scroll: rgba(255, 255, 255, 0.18);
}
html.amea2[data-amea2="light"] {
  --a2-bg: #f7f8fc;
  --a2-bg-2: #ffffff;
  --a2-line: #e4e7f0;
  --a2-text: #3b4461;
  --a2-text-strong: #0f172a;
  --a2-muted: #6b7590;
  --a2-hover: rgba(15, 23, 42, 0.05);
  --a2-active-bg: #e8eeff;
  --a2-active-text: #1a3fd1;
  --a2-accent: #12b35c;
  --a2-accent-2: #2b4fe0;
  --a2-rail: #dfe3ee;
  --a2-badge-bg: #ffb347;
  --a2-badge-text: #1a1200;
  --a2-search-bg: #ffffff;
  --a2-search-text: #0f172a;
  --a2-brand-tile: #ffffff;
  --a2-foot-bg: #f0f2f8;
  --a2-profile-bg: #ffffff;
  --a2-scroll: rgba(15, 23, 42, 0.18);
}

/* ---- layout: fixed full-height sidebar, header and content shifted ---- */
html.amea2 aside#menu.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: var(--a2-w) !important; min-height: 0 !important;
  padding: 0; margin: 0; border: 0;
  background: var(--a2-bg);
  color: var(--a2-text);
  font-family: var(--a2-font);
  z-index: 1030;
  overflow: hidden;
  transition: margin-left .2s ease;
}
html.amea2 body.hide-sidebar:not(.show-sidebar) aside#menu.sidebar { margin-left: calc(-1 * var(--a2-w)); }
html.amea2 #wrapper { margin-left: var(--a2-w); }
html.amea2 body.hide-sidebar:not(.show-sidebar) #wrapper { margin-left: 0; }
html.amea2 #header { margin-left: var(--a2-w); box-shadow: 0 1px 0 #e5e7eb; transition: margin-left .2s ease; }
html.amea2 body.hide-sidebar:not(.show-sidebar) #header, html.amea2 body.page-small #header { margin-left: 0; }
html.amea2 #header #logo { display: none !important; }
html.amea2 #side-menu[data-amea2-original] { display: none !important; }
/* before the menu script has run: keep Perfex's menu invisible for 2.5 s at most; if the script never runs it comes back, readable */
html.amea2:not(.amea2-ready) #side-menu, html.amea2:not(.amea2-ready) .sidebar-user-profile { opacity: 0; animation: amea2-reveal 0s 2.5s forwards; }
html.amea2:not(.amea2-ready) #side-menu a, html.amea2:not(.amea2-ready) #side-menu .menu-icon, html.amea2:not(.amea2-ready) #side-menu .arrow { color: #e6eaf7 !important; }
html.amea2:not(.amea2-ready) .sidebar-user-profile { margin-top: 80px !important; }
@keyframes amea2-reveal { to { opacity: 1; } }
html.amea2 .amea2-side { display: none; }
html.amea2.amea2-ready .amea2-side { display: flex; flex-direction: column; height: 100%; }
html.amea2 .amea2-side *, html.amea2 .amea2-side *::before, html.amea2 .amea2-side *::after { box-sizing: border-box; }

/* ---- brand ---- */
html.amea2 .amea2-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 12px; text-decoration: none; color: var(--a2-text-strong);
  border-bottom: 1px solid var(--a2-line);
}
html.amea2 .amea2-brand:hover, html.amea2 .amea2-brand:focus { color: var(--a2-text-strong); text-decoration: none; }
html.amea2 .amea2-brand-logo {
  flex: 0 0 auto; width: 54px; height: 36px; border-radius: 8px; background: var(--a2-brand-tile);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden; padding: 2px 3px;
}
html.amea2 .amea2-brand-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
html.amea2 .amea2-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
html.amea2 .amea2-brand-text b { font-weight: 700; font-size: 13.5px; letter-spacing: .02em; white-space: nowrap; }
html.amea2 .amea2-brand-text small { font-size: 11px; color: var(--a2-muted); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

/* ---- search ---- */
html.amea2 .amea2-search { position: relative; padding: 12px 12px 6px; }
html.amea2 .amea2-search > i { position: absolute; left: 24px; top: 23px; font-size: 12px; color: var(--a2-muted); pointer-events: none; }
html.amea2 .amea2-search input {
  width: 100%; height: 34px; border: 1px solid var(--a2-line); border-radius: 8px;
  background: var(--a2-search-bg); color: var(--a2-search-text);
  padding: 0 34px 0 32px; font: 500 13px/34px var(--a2-font); outline: 0; box-shadow: none;
}
html.amea2 .amea2-search input::placeholder { color: var(--a2-muted); }
html.amea2 .amea2-search input:focus { border-color: var(--a2-accent-2); box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.25); }
html.amea2 .amea2-search kbd {
  position: absolute; right: 22px; top: 20px; height: 18px; min-width: 18px; padding: 0 5px; border-radius: 4px;
  border: 1px solid var(--a2-line); color: var(--a2-muted); background: transparent;
  font: 600 10.5px/16px var(--a2-font); box-shadow: none; pointer-events: none;
}

/* ---- nav (scrolls on its own) ---- */
html.amea2 .amea2-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 10px 12px; scrollbar-width: thin; scrollbar-color: var(--a2-scroll) transparent; }
html.amea2 .amea2-nav::-webkit-scrollbar { width: 6px; }
html.amea2 .amea2-nav::-webkit-scrollbar-thumb { background: var(--a2-scroll); border-radius: 6px; }

html.amea2 .amea2-item, html.amea2 .amea2-group-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 36px; padding: 7px 10px; margin: 1px 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--a2-text); text-align: left; text-decoration: none; cursor: pointer;
  font: 500 13.5px/20px var(--a2-font); letter-spacing: .005em;
  transition: background .12s ease, color .12s ease;
}
html.amea2 .amea2-item > i, html.amea2 .amea2-group-head > i:first-child { flex: 0 0 20px; width: 20px; font-size: 14px; line-height: 20px; text-align: center; color: var(--a2-muted); transition: color .12s ease; }
html.amea2 .amea2-item > span, html.amea2 .amea2-group-head > span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.amea2 .amea2-item:hover, html.amea2 .amea2-item:focus-visible, html.amea2 .amea2-group-head:hover, html.amea2 .amea2-group-head:focus-visible { background: var(--a2-hover); color: var(--a2-text-strong); text-decoration: none; outline: 0; }
html.amea2 .amea2-item:hover > i, html.amea2 .amea2-group-head:hover > i:first-child { color: var(--a2-text-strong); }
html.amea2 .amea2-item:focus-visible, html.amea2 .amea2-group-head:focus-visible, html.amea2 .amea2-sec-head:focus-visible { box-shadow: inset 0 0 0 2px var(--a2-accent-2); }
html.amea2 .amea2-group-head { font-weight: 600; }
html.amea2 .amea2-top { font-weight: 600; }

/* active item: soft pill + green marker */
html.amea2 .amea2-item.is-active { background: var(--a2-active-bg); color: var(--a2-active-text); font-weight: 600; position: relative; }
html.amea2 .amea2-item.is-active > i { color: var(--a2-active-text); }
html.amea2 .amea2-item.is-active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--a2-accent); }

/* group head: chevron + « has active child » dot */
html.amea2 .amea2-chev { flex: 0 0 12px; font-size: 10px; color: var(--a2-muted); transition: transform .18s ease; }
html.amea2 .amea2-group.is-open > .amea2-group-head .amea2-chev { transform: rotate(90deg); }
html.amea2 .amea2-group.is-open > .amea2-group-head { color: var(--a2-text-strong); }
html.amea2 .amea2-group.is-open > .amea2-group-head > i:first-child { color: var(--a2-accent-2); }
html.amea2 .amea2-dot { display: none; width: 6px; height: 6px; border-radius: 50%; background: var(--a2-accent); flex: 0 0 6px; }
html.amea2 .amea2-group.has-active:not(.is-open) > .amea2-group-head .amea2-dot { display: inline-block; }

/* group body with a guide rail */
html.amea2 .amea2-group-body { display: none; position: relative; margin: 2px 0 6px; padding-left: 20px; }
html.amea2 .amea2-group.is-open > .amea2-group-body { display: block; }
html.amea2 .amea2-group-body::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 6px; width: 1px; background: var(--a2-rail); }
html.amea2 .amea2-group-body .amea2-item { min-height: 32px; padding: 6px 8px 6px 12px; font-size: 13px; }
html.amea2 .amea2-group-body .amea2-item > i { flex-basis: 16px; width: 16px; font-size: 12.5px; }
html.amea2 .amea2-group-body .amea2-item.is-active::before { left: 0; top: 8px; bottom: 8px; }
html.amea2 body.page-small:not(.show-sidebar) aside#menu.sidebar { margin-left: calc(-1 * var(--a2-w)); }
html.amea2 body.page-small.show-sidebar aside#menu.sidebar { margin-left: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 24px 0 60px -20px rgba(0, 0, 0, .45); }
html.amea2 body.page-small #wrapper, html.amea2 body.page-small.show-sidebar #wrapper { margin-left: 0; }
html.amea2 .amea2-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 21, 53, .45); z-index: 1029; }
html.amea2 body.page-small.show-sidebar .amea2-backdrop { display: block; }
html.amea2 .amea2-item.is-muted { color: var(--a2-muted); }

/* sub-sections */
html.amea2 .amea2-sec { margin: 4px 0 2px; }
html.amea2 .amea2-sec-head {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 10px 3px; margin: 0; border: 0; background: transparent;
  color: var(--a2-muted); font: 700 10.5px/14px var(--a2-font); letter-spacing: .09em; text-transform: uppercase; text-align: left; border-radius: 6px;
}
html.amea2 .amea2-sec-head > span { flex: 1 1 auto; }
html.amea2 .amea2-sec-head > i { font-size: 9px; transition: transform .18s ease; }
html.amea2 .amea2-sec.is-collapsible > .amea2-sec-head { cursor: pointer; }
html.amea2 .amea2-sec.is-collapsible > .amea2-sec-head:hover { color: var(--a2-text-strong); }
html.amea2 .amea2-sec.is-collapsible > .amea2-sec-items { display: none; }
html.amea2 .amea2-sec.is-collapsible.is-open > .amea2-sec-items { display: block; }
html.amea2 .amea2-sec.is-collapsible.is-open > .amea2-sec-head > i { transform: rotate(180deg); }
html.amea2 .amea2-sec.is-collapsible { margin-top: 6px; padding-top: 4px; border-top: 1px dashed var(--a2-line); }

/* badges */
html.amea2 .amea2-badge { flex: 0 0 auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--a2-badge-bg); color: var(--a2-badge-text); font: 700 11px/18px var(--a2-font); font-variant-numeric: tabular-nums; text-align: center; }

/* search mode: only hits, groups forced open */
html.amea2 .amea2-side.is-searching .amea2-item.is-miss, html.amea2 .amea2-side.is-searching .amea2-sec.is-miss, html.amea2 .amea2-side.is-searching .amea2-group.is-miss, html.amea2 .amea2-side.is-searching .amea2-top.is-miss { display: none; }
html.amea2 .amea2-side.is-searching .amea2-group.is-hit > .amea2-group-body, html.amea2 .amea2-side.is-searching .amea2-sec.is-collapsible.is-hit > .amea2-sec-items { display: block; }
html.amea2 .amea2-side.is-searching .amea2-group.is-hit > .amea2-group-head .amea2-chev { transform: rotate(90deg); }

/* ---- bottom: Paramètres + profile ---- */
html.amea2 .amea2-foot { flex: 0 0 auto; padding: 8px 10px 10px; border-top: 1px solid var(--a2-line); background: var(--a2-foot-bg); }
html.amea2 .amea2-setup { margin-bottom: 6px; }
html.amea2 .amea2-badge.is-warn { background: #ff5c5c; color: #fff; }
html.amea2 .amea2-foot .sidebar-user-profile { margin: 0 !important; }
html.amea2 .amea2-foot .sidebar-user-profile > a.profile {
  display: flex !important; align-items: center; margin: 0 !important; padding: 7px 8px !important;
  border: 1px solid var(--a2-line) !important; border-radius: 10px !important; background: var(--a2-profile-bg) !important;
  color: var(--a2-text) !important; box-shadow: none !important; font-family: var(--a2-font);
}
html.amea2 .amea2-foot .sidebar-user-profile > a.profile:hover { background: var(--a2-hover) !important; color: var(--a2-text-strong) !important; }
html.amea2 .amea2-foot .sidebar-user-profile > a.profile > span { padding-top: 0 !important; }
html.amea2 .amea2-foot .sidebar-user-profile img { width: 30px !important; height: 30px !important; border-radius: 50%; }
html.amea2 .amea2-foot .sidebar-user-profile .tw-font-semibold { font-size: 13px; font-weight: 600 !important; color: var(--a2-text-strong); width: 150px !important; }
html.amea2 .amea2-foot .sidebar-user-profile .tw-text-sm { font-size: 11.5px !important; color: var(--a2-muted) !important; width: 150px !important; }
html.amea2 .amea2-foot .sidebar-user-profile .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 6px; border-radius: 10px; font-family: var(--a2-font); }

/* ---- setup side panel (Paramètres): Perfex's own markup (metisMenu), skinned with the same vocabulary, over the sidebar ---- */
html.amea2 #setup-menu-wrapper.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--a2-w) !important; min-height: 0 !important; z-index: 1040;
  margin: 0; padding: 0 10px 20px; border: 0; background: var(--a2-bg); color: var(--a2-text); font-family: var(--a2-font);
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--a2-scroll) transparent;
}
html.amea2 #setup-menu-wrapper.sidebar.animated { animation-duration: .2s; }
html.amea2 #setup-menu { margin-top: 0 !important; padding-top: 6px; }
html.amea2 #setup-menu i.menu-icon:not([class*="fa-"]) { display: none; } /* core setup entries without an icon: no empty box */
html.amea2 #setup-menu > div { padding: 16px 6px 12px 10px !important; margin-bottom: 8px; border-bottom: 1px solid var(--a2-line); }
html.amea2 #setup-menu .customizer-heading { color: var(--a2-text-strong); font-weight: 700; font-size: 14px; letter-spacing: .01em; }
html.amea2 #setup-menu .close-customizer { color: var(--a2-muted) !important; background: transparent !important; cursor: pointer; border-radius: 6px; padding: 4px 6px !important; }
html.amea2 #setup-menu .close-customizer:hover { color: var(--a2-text-strong) !important; background: var(--a2-hover) !important; }
html.amea2 #setup-menu > li { border-left: 0 !important; }
html.amea2 #setup-menu > li > a {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 10px !important; margin: 1px 0;
  border: 0 !important; border-radius: 8px; background: transparent !important; box-shadow: none !important;
  color: var(--a2-text); font: 600 13.5px/20px var(--a2-font);
}
html.amea2 #setup-menu > li > a .menu-icon { float: none; flex: 0 0 20px; width: 20px; margin: 0; font-size: 14px; line-height: 20px; text-align: center; color: var(--a2-muted); }
html.amea2 #setup-menu > li > a .menu-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.amea2 #setup-menu > li > a:hover, html.amea2 #setup-menu > li > a:focus, html.amea2 #setup-menu > li.active > a { background: var(--a2-hover) !important; color: var(--a2-text-strong); }
html.amea2 #setup-menu > li.active > a .menu-icon, html.amea2 #setup-menu > li > a:hover .menu-icon { color: var(--a2-accent-2); }
html.amea2 #setup-menu .arrow { float: none !important; margin: 0 !important; padding: 0 !important; width: 12px; font-size: 10px; color: var(--a2-muted); }
html.amea2 #setup-menu .nav-second-level { position: relative; margin: 2px 0 6px; padding-left: 20px; }
html.amea2 #setup-menu .nav-second-level::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 6px; width: 1px; background: var(--a2-rail); }
html.amea2 #setup-menu .nav-second-level > li > a {
  display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 6px 8px 6px 12px !important; margin: 1px 0;
  border: 0 !important; border-radius: 8px; background: transparent !important; box-shadow: none !important;
  color: var(--a2-text); font: 500 13px/20px var(--a2-font);
}
html.amea2 #setup-menu .nav-second-level > li > a .menu-icon { float: none; flex: 0 0 16px; width: 16px; margin: 0; font-size: 12.5px; line-height: 20px; text-align: center; color: var(--a2-muted); }
html.amea2 #setup-menu .nav-second-level > li > a:hover, html.amea2 #setup-menu .nav-second-level > li > a:focus { background: var(--a2-hover) !important; color: var(--a2-text-strong); }
html.amea2 #setup-menu .nav-second-level > li.active > a { background: var(--a2-active-bg) !important; color: var(--a2-active-text); font-weight: 600; }
html.amea2 #setup-menu .badge { background: var(--a2-badge-bg); color: var(--a2-badge-text); font: 700 11px/18px var(--a2-font); border-radius: 10px; padding: 0 6px; }

/* ---------- readability pass (05/11/2026): larger text, stronger contrast, bigger targets, labels never cut ---------- */
html.amea2 {
  --a2-w: 276px;
  --a2-text: #eef1fb;
  --a2-muted: #b4bee0;
  --a2-hover: rgba(255, 255, 255, 0.11);
  --a2-active-bg: #2f55e8;
  --a2-active-text: #ffffff;
  --a2-accent-2: #9db1ff;
  --a2-rail: rgba(255, 255, 255, 0.22);
  --a2-line: rgba(255, 255, 255, 0.16);
  --a2-search-bg: rgba(255, 255, 255, 0.1);
  --a2-search-text: #ffffff;
  --a2-focus: #ffffff;
}
html.amea2[data-amea2="light"] {
  --a2-text: #1b2340;
  --a2-muted: #48516e;
  --a2-hover: rgba(15, 23, 42, 0.07);
  --a2-active-bg: #2b4fe0;
  --a2-active-text: #ffffff;
  --a2-accent-2: #2b4fe0;
  --a2-rail: #bcc3d4;
  --a2-line: #d3d8e4;
  --a2-focus: #16339f;
}
/* entries */
html.amea2 .amea2-item, html.amea2 .amea2-group-head { min-height: 44px; padding: 9px 12px; gap: 12px; margin: 2px 0; border-radius: 10px; font: 500 15px/20px var(--a2-font); letter-spacing: 0; }
html.amea2 .amea2-group-head, html.amea2 .amea2-top { font-weight: 600; font-size: 15.5px; }
html.amea2 .amea2-item > i, html.amea2 .amea2-group-head > i:first-child { flex: 0 0 22px; width: 22px; font-size: 16px; color: var(--a2-text); }
html.amea2 .amea2-item > span, html.amea2 .amea2-group-head > span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; overflow-wrap: anywhere; }
html.amea2 .amea2-item:focus-visible, html.amea2 .amea2-group-head:focus-visible, html.amea2 .amea2-sec-head:focus-visible { outline: 2.5px solid var(--a2-focus); outline-offset: -2.5px; box-shadow: none; }
html.amea2 .amea2-chev { flex: 0 0 14px; font-size: 12px; color: var(--a2-text); }
/* inside a group */
html.amea2 .amea2-group-body { margin: 2px 0 8px; padding-left: 14px; }
html.amea2 .amea2-group-body::before { left: 9px; width: 2px; border-radius: 2px; }
html.amea2 .amea2-group-body .amea2-item { min-height: 42px; padding: 8px 10px 8px 12px; font-size: 15px; }
html.amea2 .amea2-group-body .amea2-item > i { flex: 0 0 20px; width: 20px; font-size: 15px; }
html.amea2 .amea2-item.is-muted { color: var(--a2-muted); }
/* current page: solid, unmistakable */
html.amea2 .amea2-item.is-active { font-weight: 700; box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.45); }
html.amea2 .amea2-item.is-active:hover { background: var(--a2-active-bg); color: var(--a2-active-text); }
html.amea2 .amea2-item.is-active::before, html.amea2 .amea2-group-body .amea2-item.is-active::before { left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 0 4px 4px 0; }
/* section titles */
html.amea2 .amea2-sec-head { padding: 12px 12px 5px; color: var(--a2-muted); font: 700 12px/16px var(--a2-font); letter-spacing: .07em; }
html.amea2 .amea2-sec-head > i { font-size: 11px; }
/* brand */
html.amea2 .amea2-brand-text b { font-size: 15px; }
html.amea2 .amea2-brand-text small { font-size: 12px; letter-spacing: .04em; color: var(--a2-muted); }
/* menu search */
html.amea2 .amea2-search { padding: 12px 12px 8px; }
html.amea2 .amea2-search > i { left: 26px; top: 26px; font-size: 14px; color: var(--a2-text); }
html.amea2 .amea2-search input { height: 42px; padding: 0 40px 0 40px; border-radius: 10px; font: 500 14.5px/42px var(--a2-font); }
html.amea2 .amea2-search kbd { right: 24px; top: 23px; height: 20px; min-width: 20px; font: 600 12px/18px var(--a2-font); color: var(--a2-text); }
/* bottom: settings and profile */
html.amea2 .amea2-foot .sidebar-user-profile .tw-font-semibold { font-size: 14.5px; width: 186px !important; }
html.amea2 .amea2-foot .sidebar-user-profile .tw-text-sm { font-size: 12.5px !important; width: 186px !important; }
html.amea2 .amea2-foot .sidebar-user-profile img { width: 34px !important; height: 34px !important; }
/* settings panel, same sizes */
html.amea2 #setup-menu > li > a { min-height: 44px; font-size: 15px; gap: 12px; border-radius: 10px; }
html.amea2 #setup-menu > li > a .menu-icon { flex: 0 0 22px; width: 22px; font-size: 16px; color: var(--a2-text); }
html.amea2 #setup-menu > li > a .menu-text { white-space: normal; overflow: visible; line-height: 1.25; }
html.amea2 #setup-menu .nav-second-level > li > a { min-height: 40px; font-size: 14.5px; }
html.amea2 #setup-menu .nav-second-level > li > a .menu-icon { flex: 0 0 20px; width: 20px; font-size: 15px; color: var(--a2-text); }
html.amea2 #setup-menu .customizer-heading { font-size: 15.5px; }
html.amea2 #setup-menu .arrow { font-size: 12px; color: var(--a2-text); }
/* ---------- /readability pass ---------- */
/* ---------- subgroups (patch202) ----------
   A section was only a small grey title in one long list. Each is now its own card with its own icon; reports are tinted, and a settings line stands apart.
   The current group's title stays visible while its list scrolls. */
html.amea2 { --a2-sec-bg: rgba(255, 255, 255, 0.05); --a2-sec-line: rgba(255, 255, 255, 0.09); --a2-rep-bg: rgba(91, 124, 255, 0.15); --a2-rep-line: rgba(122, 148, 255, 0.38); --a2-sec-head: #e4e9fa; --a2-sec-ico: #8ea6ff; --a2-rep-ico: #a9bbff; }
html.amea2[data-amea2="light"] { --a2-sec-bg: #ffffff; --a2-sec-line: #dfe3ee; --a2-rep-bg: #eaf0ff; --a2-rep-line: #c3d0fa; --a2-sec-head: #1c2747; --a2-sec-ico: #2b4fe0; --a2-rep-ico: #1a3fd1; }
html.amea2 .amea2-group.is-open { margin-bottom: 10px; }
html.amea2 .amea2-group.is-open > .amea2-group-head { position: sticky; top: -6px; z-index: 3; background: var(--a2-bg); box-shadow: 0 7px 7px -7px rgba(0, 0, 0, 0.45); font-weight: 700; }
html.amea2 .amea2-group-body { margin: 6px 0 0; padding-left: 0; }
html.amea2 .amea2-group-body::before { display: none; }
html.amea2 .amea2-sec { margin: 0 0 8px; padding: 2px 4px 4px; background: var(--a2-sec-bg); border: 1px solid var(--a2-sec-line); border-radius: 12px; }
html.amea2 .amea2-sec:last-child { margin-bottom: 0; }
html.amea2 .amea2-sec.is-collapsible { margin-top: 0; padding-top: 2px; background: var(--a2-rep-bg); border: 1px solid var(--a2-rep-line); }
html.amea2 .amea2-sec-head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 6px 8px; background: none; border: 0; text-align: left; text-transform: uppercase; color: var(--a2-sec-head); font: 700 12.5px/16px var(--a2-font); letter-spacing: .05em; }
html.amea2 .amea2-sec-head > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
html.amea2 .amea2-sec-head > span > i { flex: 0 0 16px; width: 16px; font-size: 13px; text-align: center; color: var(--a2-sec-ico); }
html.amea2 .amea2-sec.is-collapsible > .amea2-sec-head > span > i { color: var(--a2-rep-ico); }
html.amea2 .amea2-sec.is-collapsible > .amea2-sec-head:hover { color: var(--a2-sec-head); }
html.amea2 .amea2-sec.is-collapsible > .amea2-sec-head > i { flex: 0 0 auto; color: var(--a2-sec-head); }
html.amea2 .amea2-sec-n { flex: 0 0 auto; min-width: 20px; padding: 0 6px; border-radius: 9px; background: var(--a2-rep-line); color: var(--a2-sec-head); font: 700 11.5px/18px var(--a2-font); letter-spacing: 0; text-align: center; font-style: normal; }
html.amea2 .amea2-sec.is-open > .amea2-sec-head > .amea2-sec-n { display: none; }
html.amea2 .amea2-group-body .amea2-item { padding-left: 8px; padding-right: 8px; margin: 1px 0; }
/* no title: the group's only list keeps its card, a settings line after the others stands alone */
html.amea2 .amea2-sec.is-plain:first-child { padding: 4px; }
html.amea2 .amea2-sec.is-plain:not(:first-child) { margin-top: 2px; padding: 0; background: none; border: 0; border-radius: 0; }
/* the current page stays readable when its entry is a muted one */
html.amea2 .amea2-item.is-active.is-muted { color: var(--a2-active-text); }
html.amea2 .amea2-side.is-searching .amea2-group.is-hit > .amea2-group-head { position: static; box-shadow: none; }
/* ---------- /subgroups ---------- */
