/* The aaa.win site bar, footer and theme (generated by scripts/nav.mjs in the aaa.win repository).
   The theme: Midnight Gold over the tokens every tool shares (--bg, --panel, --fg, --ink…), loaded after each page's own
   styles. Midnight blue for text and actions on light pages, gold for them on dark pages; gold stays rare. */
:root { --bg: #FAF8F3; --panel: #FFFFFF; --soft: #F4F2EC; --line: #E6E1D4; --fg: #0E1A33; --muted: #5B6478;
  --ink: #1F3A6E; --ink-fg: #FFFFFF; --ink-soft: #1F3A6E14; --gold: #C9A24B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --bg: #0A1326; --panel: #111D38; --soft: #16223F;
  --line: #22305A; --fg: #EEF1F6; --muted: #A9B4CC; --ink: #D9B866; --ink-fg: #0E1A33; --ink-soft: #D9B86624; } }
:root[data-theme=dark], [data-theme=dark] { --bg: #0A1326; --panel: #111D38; --soft: #16223F; --line: #22305A; --fg: #EEF1F6;
  --muted: #A9B4CC; --ink: #D9B866; --ink-fg: #0E1A33; --ink-soft: #D9B86624; }
.top { position: relative; }
/* the tool's own header: its name stays, the logo moved up into the bar */
.aaa-shell .top .logo-light, .aaa-shell .top .logo-dark, .aaa-shell .top .logo { display: none !important; }
.aaa-tname { font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; color: var(--fg); }
.aaa-shell .top a.brand { width: auto !important; max-width: none !important; }
/* on a phone the tools hid their name to make room for their buttons; the buttons are in the bar now, so it shows */
.aaa-shell .top :is(.brand-name, .pname, .aaa-tname) { display: inline !important; }
/* the bar */
.aaa-bar { background: #0E1A33; color: #DCE2EE; position: relative; z-index: 90; font: 14px/1.4 Geist, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.aaa-bar-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 52px; display: flex; align-items: center; gap: 18px; }
.aaa-logo { display: flex; flex: none; }
.aaa-groups { display: flex; gap: 4px; flex: 1; min-width: 0; }
.aaa-g { position: relative; }
.aaa-gbtn, .aaa-menu { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #DCE2EE; font: inherit; cursor: pointer; white-space: nowrap; }
.aaa-gbtn:hover, .aaa-gbtn[aria-expanded=true], .aaa-menu:hover { background: #1F2F55; color: #fff; }
.aaa-gbtn.on { color: #fff; box-shadow: inset 0 -2px 0 #C9A24B; border-radius: 9px 9px 0 0; }
.aaa-gbtn em, .aaa-sg em, .aaa-fg em, .aaa-kh em { font-style: normal; font-weight: 700; font-size: 11px; padding: 1px 5px; border-radius: 5px; background: #C9A24B; color: #0E1A33; margin-right: 2px; }
.aaa-drop { position: absolute; left: 0; top: calc(100% + 6px); width: 340px; background: #fff; color: #0E1A33; border-radius: 14px; padding: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.aaa-drop[hidden], .aaa-sheet[hidden] { display: none; }
.aaa-drop p { margin: 4px 10px 6px; font-size: 12px; color: #6B7287; }
.aaa-bar a { text-decoration: none; }
.aaa-drop a, .aaa-sheet a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; color: #0E1A33; }
.aaa-drop a:hover, .aaa-sheet a:hover { background: #F4F2EC; }
.aaa-drop a[aria-current], .aaa-sheet a[aria-current] { background: #F4E8C8; }
.aaa-drop b, .aaa-sheet b, .aaa-fgrid b { display: block; font-size: 14px; font-weight: 600; }
.aaa-drop small, .aaa-sheet small, .aaa-fgrid small { display: block; font-size: 12px; color: #6B7287; line-height: 1.4; }
.aaa-mini { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; margin-top: 3px; flex: none; }
.aaa-mini i { width: 3.5px; border-radius: 2px; background: #C9A24B; }
.aaa-mini i:nth-child(1) { height: 5px; } .aaa-mini i:nth-child(2) { height: 9px; } .aaa-mini i:nth-child(3) { height: 13px; }
.aaa-cta { flex: none; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; background: #C9A24B; color: #0E1A33 !important; font-weight: 600; }
.aaa-cta:hover { background: #D9B866; }
.aaa-menu { display: none; }
/* search (⌘K): the button, then the box over the page */
.aaa-sbtn { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 34px; padding: 0 6px 0 10px; margin-left: auto; border: 1px solid #2C3D68; border-radius: 9px; background: transparent; color: #DCE2EE; font: inherit; cursor: pointer; }
.aaa-sbtn:hover { background: #1F2F55; color: #fff; border-color: #3A4E80; }
.aaa-sbtn kbd { font: 600 11px/1 Geist, system-ui, sans-serif; padding: 4px 6px; border-radius: 5px; background: #1F2F55; color: #A9B4CC; }
html.aaa-klock, html.aaa-klock body { overflow: hidden; }
.aaa-k { position: fixed; inset: 0; z-index: 2147483000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 12px 12px; background: rgba(6, 12, 26, .55); font: 14px/1.4 Geist, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.aaa-k[hidden] { display: none; }
.aaa-kbox { width: 100%; max-width: 640px; max-height: 100%; display: flex; flex-direction: column; background: #fff; color: #0E1A33; border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); overflow: hidden; }
.aaa-kin { display: flex; align-items: center; gap: 10px; flex: none; height: 56px; padding: 0 12px 0 16px; border-bottom: 1px solid #E6E1D4; color: #C9A24B; }
.aaa-kin input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #0E1A33; font: inherit; font-size: 16px; }
.aaa-kin input::placeholder { color: #6B7287; }
.aaa-kx { flex: none; padding: 5px 7px; border: 1px solid #E6E1D4; border-radius: 6px; background: #F4F2EC; color: #5B6478; font: 600 11px/1 Geist, system-ui, sans-serif; cursor: pointer; }
.aaa-kl { overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 10px; }
.aaa-kh { margin: 10px 10px 4px; font-size: 12px; font-weight: 600; color: #6B7287; }
.aaa-kl a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: #0E1A33; text-decoration: none; }
.aaa-kl a.on { background: #F4F2EC; box-shadow: inset 3px 0 0 #C9A24B; }
.aaa-kl a > span:nth-child(2) { flex: 1; min-width: 0; }
.aaa-kl b { display: block; font-size: 14px; font-weight: 600; }
.aaa-kl small { display: block; font-size: 12px; color: #6B7287; line-height: 1.4; }
.aaa-kl em { flex: none; align-self: center; font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #EEF1F6; color: #2E4A7D; }
.aaa-kdot { flex: none; width: 10px; height: 10px; margin: 4px 1.5px 0; border: 2px solid #C9A24B; border-radius: 3px; }
.aaa-knone { margin: 14px 10px; color: #5B6478; }
.aaa-knone a { color: #1F3A6E; font-weight: 600; }
.aaa-sheet { background: #fff; color: #0E1A33; padding: 8px 12px 14px; max-height: calc(100vh - 52px); overflow-y: auto; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.aaa-sg > b { display: block; margin: 10px 10px 4px; font-size: 13px; color: #6B7287; }
/* the tool's own buttons, in the bar: the same controls on the bar's midnight */
.aaa-acts { --panel: #16244A; --soft: #1F2F55; --line: #2C3D68; --fg: #EEF1F6; --muted: #A9B4CC; --bg: #0E1A33;
  display: flex !important; align-items: center; gap: 8px !important; flex: none; margin: 0 !important; color: #EEF1F6; }
.aaa-acts .sel, .aaa-acts .icon-btn { height: 34px; background: transparent; border-color: #2C3D68; color: #DCE2EE; }
.aaa-acts .icon-btn { width: 34px; }
.aaa-acts .sel:hover, .aaa-acts .icon-btn:hover { background: #1F2F55; border-color: #3A4E80; }
.aaa-acts select { color: inherit; background: transparent; }
.aaa-acts select option { color: #0E1A33; background: #fff; }
/* snug: a bar a little too full first loses the search button's ⌘K and some spacing (align() in nav.js) */
.aaa-bar.aaa-snug .aaa-sbtn { width: 34px; padding: 0; justify-content: center; }
.aaa-bar.aaa-snug .aaa-sbtn kbd { display: none; }
.aaa-bar.aaa-snug .aaa-bar-in { gap: 10px; }
.aaa-bar.aaa-snug .aaa-groups { gap: 0; }
.aaa-bar.aaa-snug .aaa-gbtn { padding: 0 7px; }
.aaa-bar.aaa-tight .aaa-groups { display: none; }
.aaa-bar.aaa-tight .aaa-menu { display: inline-flex; }
.aaa-bar.aaa-tight .aaa-bar-in { gap: 8px; }
@media (max-width: 860px) { .aaa-groups { display: none; } .aaa-menu { display: inline-flex; } .aaa-bar-in { gap: 8px; } }
/* on a phone the language button is just its globe (the list still opens), and the checkup waits in the menu */
@media (max-width: 600px) { .aaa-acts .sel { width: 34px; padding: 0; justify-content: center; position: relative; overflow: hidden; }
  .aaa-acts .sel select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
  .aaa-acts .sel > svg { position: static; margin: 0; }
  .aaa-acts { gap: 6px !important; } }
@media (max-width: 520px) { .aaa-cta { display: none; } }
@media (max-width: 600px) { .aaa-sbtn { width: 34px; padding: 0; justify-content: center; } .aaa-sbtn kbd { display: none; } .aaa-k { padding-top: 10px; } }
/* the footer */
.aaa-foot { border-top: 1px solid var(--line); margin-top: 40px; background: var(--bg); color: var(--fg); font: 14px/1.5 Geist, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.aaa-foot-in { max-width: 1240px; margin: 0 auto; padding: 28px 20px 36px; }
.aaa-foot h2 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.aaa-fg h3 { margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.aaa-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.aaa-fgrid a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); text-decoration: none; }
.aaa-fgrid a:hover { border-color: #C9A24B; }
.aaa-fgrid small { color: var(--muted); }
/* test next: three tools, a step above the list of all */
.aaa-next { margin: 0 0 28px; padding: 18px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.aaa-foot .aaa-next h2 { margin: 0 0 12px; }
.aaa-ngrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.aaa-ngrid a { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); text-decoration: none; }
.aaa-ngrid a:hover { border-color: #C9A24B; }
.aaa-ngrid b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.aaa-ngrid small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.aaa-go { margin-left: auto; padding-left: 6px; color: #C9A24B; font-weight: 700; }
/* the last line: the privacy note on the left, the site's other parts and the feedback button on the right */
.aaa-fine { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.aaa-fine p { margin: 0; }
.aaa-fine a { color: inherit; }
.aaa-flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-left: auto !important; }
.aaa-flinks a { text-decoration: none; font-weight: 600; } .aaa-flinks a:hover { color: var(--fg); text-decoration: underline; }
.aaa-fbk { height: 32px; padding: 0 14px; border: 1px solid #C9A24B; border-radius: 9px; background: transparent; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.aaa-fbk:hover { background: #C9A24B; color: #0E1A33; }
@media (max-width: 600px) { .aaa-flinks { margin-left: 0 !important; } }
.aaa-fb{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-start;justify-content:center;padding:12vh 12px 12px;background:rgba(6,12,26,.55);font:14px/1.5 system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.aaa-fb[hidden]{display:none}.aaa-fbf{width:100%;max-width:520px;display:grid;gap:12px;padding:18px;background:#fff;color:#0E1A33;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.aaa-fbh{display:flex;align-items:center;justify-content:space-between;gap:12px}.aaa-fbh b{font-size:16px}.aaa-fbx{border:0;background:#F4F2EC;color:#5B6478;width:30px;height:30px;border-radius:8px;font-size:18px;line-height:1;cursor:pointer}
.aaa-fbf textarea,.aaa-fbf input{width:100%;box-sizing:border-box;border:1px solid #E6E1D4;border-radius:10px;padding:10px 12px;font:inherit;font-size:15px;color:#0E1A33;background:#FAF8F3}
.aaa-fbf textarea:focus,.aaa-fbf input:focus{outline:2px solid #C9A24B;outline-offset:1px}.aaa-fbn{margin:0;font-size:12.5px;color:#6B7287}
.aaa-fba{display:flex;align-items:center;justify-content:space-between;gap:12px}.aaa-fbm{font-size:13px;color:#5B6478}.aaa-fbs{height:40px;padding:0 20px;border:0;border-radius:10px;background:#C9A24B;color:#0E1A33;font:inherit;font-weight:700;cursor:pointer}
.aaa-fbs:disabled{opacity:.6}html.aaa-klock,html.aaa-klock body{overflow:hidden}
