/* =====================================================================================================================
   Mod Pilot site theme: loaded LAST on every page. Dark only. Same palette, type and navigation as the home page, applied
   by re-pointing the shared design tokens every page already uses (so the dashboard and every tool page follow along).
   ===================================================================================================================== */
html:not([data-theme="light"]) body, html:not([data-theme="light"]) body.dash {
  --bg: #07090F !important; --s1: #0D111B !important; --s2: #111724 !important; --s3: #161D2D !important;
  --ink: #F5F7FF !important; --dim: #929BAF !important; --mute: #5E677C !important;
  --ind: #776BFF !important; --cy: #42D9F5 !important; --ok: #49D9A0 !important; --wa: #F3BD65 !important; --no: #FF657C !important;
  --hair: rgba(148, 163, 205, .12) !important; --hair-2: rgba(148, 163, 205, .2) !important; --hair-3: rgba(148, 163, 205, .32) !important;
  --f: "Geist", "Inter", system-ui, sans-serif !important; --fm: "Geist Mono", ui-monospace, "JetBrains Mono", monospace !important;
  --e: cubic-bezier(.22, 1, .36, 1) !important;
  --sky: #07090F !important; --deck: #0D111B !important; --panel: #111724 !important; --flap: #0A0D15 !important;
  --line: rgba(148, 163, 205, .18) !important; --line-soft: rgba(148, 163, 205, .1) !important;
  --runway: #F5F7FF !important; --muted: #929BAF !important;
  --amber: #776BFF !important; --amber-ink: #FFFFFF !important; --accent-2: #42D9F5 !important; --blue: #776BFF !important;
  --green: #49D9A0 !important; --red: #FF657C !important; --warn: #F3BD65 !important;
  --display: "Geist", "Inter", system-ui, sans-serif !important; --body: "Geist", "Inter", system-ui, sans-serif !important;
  --mono: "Geist Mono", ui-monospace, monospace !important;
  --ring: 0 0 0 3px rgba(119, 107, 255, .35) !important;
  --shadow-1: 0 0 0 1px rgba(148, 163, 205, .1), 0 12px 32px -16px rgba(0, 0, 0, .8) !important;
  --shadow-2: 0 0 0 1px rgba(148, 163, 205, .14), 0 24px 60px -24px rgba(0, 0, 0, .9) !important;
  --solid: #F5F7FF !important; --solid-ink: #07090F !important; --glass: rgba(13, 17, 27, .74) !important;
  color-scheme: dark;
}
/* light mode: same layout and accents, light surfaces */
html[data-theme="light"] body, html[data-theme="light"] body.dash {
  --bg: #F6F7FB !important; --s1: #FFFFFF !important; --s2: #F0F2F8 !important; --s3: #E7EAF3 !important;
  --ink: #0B0E16 !important; --dim: #556078 !important; --mute: #8A93A8 !important;
  --ind: #6A5DF5 !important; --cy: #0FA7C8 !important; --ok: #17A673 !important; --wa: #C98A12 !important; --no: #E5405C !important;
  --hair: rgba(15, 23, 42, .09) !important; --hair-2: rgba(15, 23, 42, .14) !important; --hair-3: rgba(15, 23, 42, .24) !important;
  --f: "Geist", "Inter", system-ui, sans-serif !important; --fm: "Geist Mono", ui-monospace, "JetBrains Mono", monospace !important;
  --e: cubic-bezier(.22, 1, .36, 1) !important;
  --sky: #F6F7FB !important; --deck: #FFFFFF !important; --panel: #F0F2F8 !important; --flap: #FFFFFF !important;
  --line: rgba(15, 23, 42, .12) !important; --line-soft: rgba(15, 23, 42, .07) !important;
  --runway: #0B0E16 !important; --muted: #556078 !important;
  --amber: #6A5DF5 !important; --amber-ink: #FFFFFF !important; --accent-2: #0FA7C8 !important; --blue: #6A5DF5 !important;
  --green: #17A673 !important; --red: #E5405C !important; --warn: #C98A12 !important;
  --display: "Geist", "Inter", system-ui, sans-serif !important; --body: "Geist", "Inter", system-ui, sans-serif !important;
  --mono: "Geist Mono", ui-monospace, monospace !important;
  --ring: 0 0 0 3px rgba(106, 93, 245, .3) !important;
  --shadow-1: 0 0 0 1px rgba(15, 23, 42, .07), 0 10px 28px -16px rgba(15, 23, 42, .25) !important;
  --shadow-2: 0 0 0 1px rgba(15, 23, 42, .1), 0 24px 50px -24px rgba(15, 23, 42, .3) !important;
  --solid: #0B0E16 !important; --solid-ink: #FFFFFF !important; --glass: rgba(255, 255, 255, .8) !important;
  color-scheme: light;
}
html[data-theme="light"] body { background: radial-gradient(900px 420px at 50% -120px, rgba(106, 93, 245, .1), transparent 70%), #F6F7FB !important; color: #0B0E16; }
html[data-theme="light"] body :is(p, li, td, dd, blockquote) > a:not([class]) { color: #5b4ff0; }
html:not([data-theme="light"]) body {
  background: radial-gradient(900px 420px at 50% -120px, rgba(119, 107, 255, .14), transparent 70%), #07090F !important;
  background-attachment: scroll !important; color: #F5F7FF; font-family: "Geist", "Inter", system-ui, sans-serif;
}
html body ::selection { background: rgba(119, 107, 255, .45); color: #fff; }
html body :focus-visible { outline: 2px solid #42D9F5; outline-offset: 2px; }
html body h1, html body h2, html body h3 { font-family: "Geist", "Inter", system-ui, sans-serif; letter-spacing: -.03em; }
html body code, html body kbd, html body pre { font-family: "Geist Mono", ui-monospace, monospace; }
.mp .i, .mpn .i { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- shared buttons, picked up by every page */
html body .btn-primary, html body .hbtn.amber {
  color: #fff !important; background: linear-gradient(180deg, #8a80ff, #6a5df5) !important; border-color: transparent !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 8px 24px -12px rgba(119, 107, 255, .9) !important; }
html body .btn-primary:hover, html body .hbtn.amber:hover { filter: brightness(1.08); }
html body .btn-ghost { background: rgba(255, 255, 255, .04); border-color: rgba(148, 163, 205, .2); color: var(--ink); }
html body .btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--hair-3); }
html body .btn, html body .hbtn { font-family: "Geist", "Inter", system-ui, sans-serif; }
html:not([data-theme="light"]) body :is(p, li, td, dd, blockquote) > a:not([class]) { color: #a9a2ff; }
html body input:focus, html body select:focus, html body textarea:focus { border-color: #776BFF; box-shadow: 0 0 0 3px rgba(119, 107, 255, .25); outline: none; }

/* ---------------------------------------------------------------- dashboard: the few colours it hard-codes */
html body.dash .topbar { background: var(--glass) !important; border-bottom-color: var(--hair) !important; }
html body.dash .gnav { background: var(--s1); box-shadow: 0 0 0 1px var(--hair); top: 96px; }
html body.dash .gnav-group { color: var(--mute); font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
html body.dash .gnav-list button[aria-current="page"] { background: linear-gradient(90deg, rgba(119, 107, 255, .2), rgba(119, 107, 255, .04)); box-shadow: inset 2px 0 0 #776BFF; color: var(--ink); }
html body.dash .gnav-list button.pn, html body.dash .gnav-list button.pn[aria-current="page"] { background: rgba(119, 107, 255, .14); color: #F5F7FF; box-shadow: 0 0 0 1px rgba(119, 107, 255, .35) inset; }
html body.dash .gnav-list button.pn svg { color: #b0a8ff; }
html body.dash .gswitch { background: var(--bg); }
html body.dash #tab > .block, html body .ov-card, html body .ov-panel, html body .server-card, html body .pcard, html body .card, html body .panel, html body .feat {
  background: var(--s1); box-shadow: 0 0 0 1px var(--hair); }
html body .server-card:hover, html body .pcard:hover { box-shadow: 0 0 0 1px var(--hair-3); }
html body.dash .tabs button[aria-selected="true"], html body.dash .tabs button.on { color: #F5F7FF; box-shadow: inset 0 -2px 0 #776BFF; }
html body .hdd-menu { background: var(--s1); border-color: var(--hair-2); }

/* ---------------------------------------------------------------- page footers shared by the tool pages */
html body .foot { border-top: 1px solid var(--hair); }

/* ------------------------------------------------------------------ nav */
.hdr.mpn { position: sticky; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 28px; z-index: 70;
  padding: 0 max(20px, calc((100vw - 1200px) / 2)); background: rgba(7, 9, 15, .82) !important; border: 0 !important; box-shadow: 0 1px 0 var(--hair);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); transition: background-color .3s, box-shadow .3s, height .3s var(--e); }
.hdr.mpn.scrolled, .hdr.mpn.open { height: 60px; background: rgba(7, 9, 15, .72) !important; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--hair); }
/* backdrop-filter makes the header the containing block for the fixed menu sheet, so it's off while the menu is open */
.hdr.mpn.open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg) !important; }
.mpn .hdr-brand { gap: 10px; color: var(--ink); font: 600 17px/1 var(--f); letter-spacing: -.02em; flex: none; }
.mpn .hdr-brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
.mpn-links { display: flex; gap: 2px; }
.mpn-links a { padding: 8px 12px; border-radius: 8px; color: var(--dim); font: 500 14px/1 var(--f); text-decoration: none; transition: color .15s, background-color .15s; }
.mpn-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.mpn-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mpn-login { padding: 8px 12px; color: var(--dim); font: 500 14px/1 var(--f); text-decoration: none; border-radius: 8px; }
.mpn-login:hover { color: var(--ink); }
.mpn-user { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: 999px; color: var(--ink); font: 500 13.5px/1 var(--f); text-decoration: none; box-shadow: 0 0 0 1px var(--hair-2) inset; }
.mpn-user img, .mpn-user .ph { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--s2); }
.mpn-user .ph svg { width: 16px; height: 16px; }
.mpn-user > span:last-child { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpn-user:hover { box-shadow: 0 0 0 1px var(--hair-3) inset; }
.mpn-cta { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 9px; color: #fff; text-decoration: none; font: 600 13.5px/1 var(--f);
  background: linear-gradient(180deg, #8a80ff, #6a5df5); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 6px 18px -8px rgba(119, 107, 255, .9); transition: filter .15s; }
.mpn-cta:hover { filter: brightness(1.08); color: #fff; }
.mpn-cta svg { width: 16px; height: 16px; }
.mpn .lang-pick .hbtn { height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--dim); font: 500 13.5px/1 var(--f); border-radius: 8px; }
.mpn .lang-pick .hbtn:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.mpn .lang-menu { background: var(--s1); border-color: var(--hair-2); border-radius: 14px; }
.mpn .lang-menu li[aria-selected="true"] { color: var(--ink); }
.mpn-burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); cursor: pointer; position: relative; }
.mpn-burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--e), top .3s var(--e); }
.mpn-burger i:first-child { top: 16px; } .mpn-burger i:last-child { top: 23px; }
.mpn.open .mpn-burger i:first-child { top: 19.5px; transform: rotate(45deg); }
.mpn.open .mpn-burger i:last-child { top: 19.5px; transform: rotate(-45deg); }
.mpn-sheet { position: fixed; inset: 60px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); background: rgba(7, 9, 15, .97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: auto; display: flex; flex-direction: column; gap: 22px; }
.mpn-sheet[hidden] { display: none; }
.mpn-sheet nav { display: flex; flex-direction: column; }
.mpn-sheet nav a { padding: 13px 4px; color: var(--ink); text-decoration: none; font: 500 19px/1.2 var(--f); letter-spacing: -.02em; border-bottom: 1px solid var(--hair); }
.mpn-k { margin: 18px 0 4px; font: 500 11px/1 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.mpn-k:first-child { margin-top: 0; }
.mpn-cta-lg { height: 52px; justify-content: center; font-size: 16px; border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) { .mpn-sheet:not([hidden]) nav a { animation: mp-in .45s var(--e) both; } .mpn-sheet nav a:nth-child(n+4) { animation-delay: .04s; } .mpn-sheet nav a:nth-child(n+8) { animation-delay: .08s; } }
@media (max-width: 1380px) { .mpn .mpn-user > span:last-child { display: none; } .mpn .mpn-user { padding: 0 4px; } }
@media (max-width: 1180px) {
  .mpn-links, .mpn .mpn-login, .mpn .mpn-user > span:last-child { display: none; }
  .mpn-burger { display: block; }
  .mpn .mpn-user { padding: 0 4px; }
}
@media (max-width: 460px) { .mpn-right .mpn-cta span { display: none; } .mpn-right .mpn-cta { width: 38px; padding: 0; justify-content: center; } .mpn .hdr-brand span { display: none; } }


/* ---------------------------------------------------------------- nav extras: Tools / Resources / Community dropdowns, mail icon */
.mpn-dd { position: relative; }
.mpn-dd > button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font: 500 14px/1 var(--f); cursor: pointer; }
.mpn-dd > button svg { width: 14px; height: 14px; opacity: .7; transition: transform .2s var(--e); }
.mpn-dd > button:hover, .mpn-dd > button[aria-expanded="true"], .mpn-dd > button[data-current="true"] { color: var(--ink); background: rgba(255, 255, 255, .05); }
.mpn-dd > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.mpn-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }  /* hover bridge to the menu */
.mpn-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 320px; display: grid; gap: 2px;
  padding: 8px; border-radius: 16px; background: rgba(13, 17, 27, .98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--hair-2), 0 30px 70px -20px rgba(0, 0, 0, .9); z-index: 80; }
.mpn-menu[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .mpn-menu:not([hidden]) { animation: mpn-drop .2s var(--e) both; } @keyframes mpn-drop { from { opacity: 0; transform: translate(-50%, -6px); } } }
.mpn-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.mpn-menu a:hover, .mpn-menu a:focus-visible, .mpn-menu a[aria-current="page"] { background: rgba(255, 255, 255, .05); }
.mpn-menu a svg { width: 32px; height: 32px; padding: 7px; flex: none; border-radius: 9px; background: rgba(119, 107, 255, .14); color: #b0a8ff; }
.mpn-menu b { display: block; font: 600 13.5px/1.25 var(--f); color: var(--ink); }
.mpn-menu small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--dim); }
.mpn-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .06); }
.mpn-ico { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--dim); }
.mpn-ico:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.mpn-ico svg { width: 17px; height: 17px; }
.mpn-ico .unread { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--no); box-shadow: 0 0 0 2px var(--bg); }
.mpn .hdr-brand, .mpn .hdr-brand:hover { color: var(--ink); text-decoration: none; }
.mpn a.mpn-cta, .mpn a.mpn-cta:hover { color: #fff; }
.mpn-sheet nav a, .mpn-links a, .mpn-login, .mpn-user { text-decoration: none; }
.mpn-links { align-items: center; }
@media (max-width: 1180px) { .mpn-dd, .mpn-ico { display: none; } }

/* ---------------------------------------------------------------- floating pill header
   One row in header.js's own order:
   [logo] [Our Team · Play UNO · Discover · Tools · Help]  ......  [reviews mail theme | language] [Support] [log out] [you] */
html body .hdr {
  position: sticky; top: 14px; z-index: 70; margin: 14px auto 0; width: min(1320px, calc(100% - 32px)); height: 62px;
  padding: 0 8px 0 10px; gap: 18px; border: 1px solid var(--hair-2); border-radius: 999px;
  background: var(--glass) !important; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -28px rgba(0, 0, 0, .9);
}
html body .hdr-brand { flex: none; gap: 11px; white-space: nowrap; color: var(--ink); font: 700 19px/1 var(--f); letter-spacing: .06em; text-transform: uppercase; padding-right: 4px; }
html body .hdr-brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--hair-2); }
html body .hdr-right { flex: 1; min-width: 0; margin-left: 0; gap: 4px; justify-content: flex-end; }

/* every item: quiet text until hovered */
html body .hbtn { height: 38px; padding: 0 13px; border: 1px solid transparent; background: transparent; color: var(--dim);
  font: 500 13.5px/1 var(--f); border-radius: 999px; transition: color .15s, background-color .15s, border-color .15s; }
html body .hbtn:hover, html body .hbtn[aria-current="page"], html body .hdd [data-dd][aria-expanded="true"], html body .hdd [data-dd][data-current="true"] {
  color: var(--ink); background: var(--hair); border-color: transparent; }
html body .hbtn.team { height: 38px; padding: 0 13px; font-size: 13.5px; border-color: transparent; background: transparent; }
html body .hdd [data-dd] svg { width: 13px; height: 13px; opacity: .6; }

/* group 1: navigation, left */

/* group 2: small round icon buttons + language, with a hairline before them */
html body .hbtn.icon { width: 38px; padding: 0; color: var(--dim); }
html body .hbtn.icon:hover { color: var(--ink); }
html body .hbtn.icon svg { width: 17px; height: 17px; }
html body .hbtn.rev { margin-left: 14px; }
html body .hbtn.rev::before { content: ""; position: absolute; left: -9px; top: 11px; bottom: 11px; width: 1px; background: var(--hair-2); }
html body .hbtn.rev img { width: 18px; height: 18px; border-radius: 4px; filter: grayscale(1) brightness(1.5); opacity: .75; transition: filter .15s, opacity .15s; }
html body .hbtn.rev:hover img, html body .hbtn.rev[aria-current="page"] img { filter: none; opacity: 1; }
html body .hbtn .unread { top: 7px; right: 7px; width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--s1); }
html body .lang-btn { gap: 7px; padding: 0 12px 0 10px; }
html body .lang-btn::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .lang-menu { background: var(--s1); border-color: var(--hair-2); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
html body .lang-menu li[aria-selected="true"] { color: var(--ink); }

/* group 3: actions, right */
html body .hbtn.amber { background: transparent; border-color: var(--hair-2); color: var(--ink); font-weight: 600; }
html body .hbtn.amber:hover { border-color: var(--dim); background: var(--hair); filter: none; }
html body .hbtn[href="/logout"] { width: 38px; padding: 0; font-size: 0; }
html body .hbtn[href="/logout"]::before { content: ""; width: 17px; height: 17px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .hbtn.chip { flex: none; margin: 0 6px 0 0; height: 46px; padding: 0 18px 0 4px; gap: 10px; background: var(--solid); color: var(--solid-ink);
  font: 700 12px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; }
html body .hbtn.chip:hover { background: var(--solid); filter: brightness(.9); }
html body .hbtn.chip img, html body .hbtn.chip .ph { width: 38px; height: 38px; box-shadow: 0 0 0 2px var(--solid); background: var(--s2); }
html body .hbtn.chip .ph { background: transparent; color: inherit; }
html body .hbtn.chip > span:last-child { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

/* dropdowns */
html body .hdd-menu { top: calc(100% + 18px); background: var(--s1); border: 1px solid var(--hair-2); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); }
html body .hdd-small a svg { background: var(--hair); color: var(--ink); }
html body .hdd-small a:hover, html body .hdd-small a[aria-current="page"] { background: var(--hair); }
html body .hdd-menu .hbtn.amber { margin-left: 0; background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }

/* narrow desktops: drop the logo text and tighten before the menu button takes over */
@media (max-width: 1400px) { html body .hdr-brand span { display: none; } html body .hbtn, html body .hbtn.team { padding: 0 11px; } }
@media (max-width: 1180px) {
  html body .hdr-brand span { display: inline; }
  html body .hdr-right { justify-content: flex-end; gap: 6px; }
  html body .hbtn.chip { } html body .lang-pick { } html body .hdr-menu { width: 42px; height: 42px; color: var(--ink); background: var(--hair); }
  html body .hdr-links .hbtn .unread { position: static; margin-left: auto; }
  html body .hdr-links { top: calc(100% + 10px); padding: 10px; gap: 4px; border: 1px solid var(--hair-2); border-radius: 24px; background: var(--s1);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); }
  html body .hdr-links .hbtn { height: 46px; width: auto; padding: 0 16px; justify-content: flex-start; font-size: 14.5px; border-radius: 14px; margin: 0; }
  html body .hdr-links .hbtn .lbl { color: inherit; }
  html body .hdr-links .hbtn.rev::before { display: none; }
  html body .hdr-links .hbtn[href="/logout"] { font-size: 14.5px; gap: 10px; }
  html body .hdd:last-of-type { margin-right: 0; }
}
@media (max-width: 600px) { html body .hbtn.team { display: none; } html body .hdr { gap: 8px; } }
@media (max-width: 480px) {
  html body .hdr { top: 10px; width: calc(100% - 20px); height: 58px; }
  html body .hdr-brand span { display: none; }
  html body .hbtn.chip { padding: 0 4px; height: 44px; } html body .hbtn.chip > span:last-child { display: none; }
  html body .lang-btn span { display: none; }
}


/* home page: the bar floats over the hero instead of taking space */
html body.mp .hdr { position: fixed; left: 50%; top: 14px; margin: 0; transform: translateX(-50%); }
html body .hdr .hbtn.chip, html body .hdr .hbtn.chip:hover { color: var(--solid-ink); }
html body .hdr a.hbtn.amber { color: var(--ink) !important; background: transparent !important; box-shadow: 0 0 0 1px var(--hair-2) inset !important; font-weight: 600; }
html body .hdr a.hbtn.amber:hover { background: var(--hair) !important; filter: none; }
html body .hdr .hdd-menu .hbtn.amber { color: #fff !important; background: linear-gradient(180deg, #8a80ff, #6a5df5) !important; }
@media (max-width: 480px) { html body.mp .hdr { top: 10px; } html body .hdr { top: 10px; margin-top: 10px; } }

/* header text is never link-coloured */
html body .hdr a.hbtn, html body .hdr .hdd-menu a { color: var(--dim); }
html body .hdr a.hbtn:hover, html body .hdr a.hbtn[aria-current="page"], html body .hdr .hdd-menu a:hover { color: var(--ink); }
html body .hdr .hdr-brand, html body .hdr .hdr-brand:hover { color: var(--ink); text-decoration: none; }
html body .hdr .hdd-menu b { color: var(--ink); } html body .hdr .hdd-menu small, html body .hdr .hdd-menu p { color: var(--dim); }
html body .hdr .hbtn.chip, html body .hdr .hbtn.chip:hover { background: var(--solid) !important; color: var(--solid-ink) !important; border-color: transparent !important; }
html body .hdr .hbtn.chip span { color: inherit !important; }

/* =====================================================================================================================
   Applications pages (Overview, Forms, Panels, Submissions, Analytics) in the "command center" look of the home page:
   layered dark glass panels, fine top highlights, KPI tiles with mono sub-labels, tinted icon tiles and live feed rows.
   ===================================================================================================================== */
#tab.ax { --cc-card: linear-gradient(180deg, color-mix(in srgb, var(--s2) 92%, transparent), var(--s1));
  --cc-edge: 0 0 0 1px var(--hair-2), 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -36px rgba(0, 0, 0, .8); }
html[data-theme="light"] #tab.ax { --cc-card: #fff; --cc-edge: 0 0 0 1px var(--hair), 0 18px 40px -30px rgba(15, 23, 42, .3); }

/* every panel */
#tab.ax .ap-box, #tab.ax .ap-tile, #tab.ax .ap-hero, #tab.ax .ap-sumcard, #tab.ax .ax-card, #tab.ax .ax-row, #tab.ax .ax-sub {
  background: var(--cc-card) !important; border: 0 !important; border-radius: 16px !important; box-shadow: var(--cc-edge) !important; }
#tab.ax .ap-box h3, #tab.ax .ax-h2 { display: flex; align-items: center; gap: 10px; font: 600 15px/1.3 var(--f); letter-spacing: -.01em; color: var(--ink); }
#tab.ax .ap-muted { color: var(--mute); font-weight: 400; }

/* live marker */
.ap-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--fm); color: var(--ok); }
.ap-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
@media (prefers-reduced-motion: no-preference) { .ap-live i { animation: cc-pulse 2s ease-in-out infinite; } @keyframes cc-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 0%, transparent); } } }

/* ---- Overview hero: glow + grid, KPI tiles */
#tab.ax .ap-hero { position: relative; overflow: hidden; padding: 26px 28px !important;
  background: radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--ind) 22%, transparent), transparent 65%), var(--cc-card) !important; }
#tab.ax .ap-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--hair) 1px, transparent 1px) 0 0 / 36px 36px, linear-gradient(90deg, var(--hair) 1px, transparent 1px) 0 0 / 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 85% 30%, #000, transparent 70%); }
#tab.ax .ap-hero > * { position: relative; }
#tab.ax .ap-hero h2 { font: 650 26px/1.15 var(--f); letter-spacing: -.035em; }
#tab.ax .ap-hero h2::before { content: "APPLICATIONS"; display: block; margin-bottom: 10px; font: 500 11px/1 var(--fm); letter-spacing: .14em; color: var(--ind); }
#tab.ax .ap-hero-stats > div, #tab.ax .ap-sumcard { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px !important; min-width: 120px;
  background: color-mix(in srgb, var(--bg) 35%, transparent) !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 0 0 1px var(--hair) inset !important; }
#tab.ax .ap-sumcard { background: var(--cc-card) !important; box-shadow: var(--cc-edge) !important; padding: 16px 18px !important; }
#tab.ax .ap-hero-stats span, #tab.ax .ap-sumcard span { order: -1; font: 500 12px/1 var(--f); color: var(--mute); }
#tab.ax .ap-hero-stats b, #tab.ax .ap-sumcard b { font: 650 28px/1 var(--f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
#tab.ax .ap-hero-stats small, #tab.ax .ap-sumcard small { font: 400 11px/1.3 var(--fm); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab.ax .k-wait small { color: var(--wa); } #tab.ax .k-ok small, #tab.ax .ap-sumcard.accepted small { color: var(--ok); }
#tab.ax .ap-sumcard.accepted b { color: var(--ok); } #tab.ax .ap-sumcard.pending b { color: #b0a8ff; }
html[data-theme="light"] #tab.ax .ap-sumcard.pending b { color: var(--ind); }

/* ---- module tiles: tinted icon tile, hover lift, glow */
#tab.ax .ap-tile { position: relative; overflow: hidden; transition: transform .25s var(--e), box-shadow .25s; }
#tab.ax .ap-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px 160px at 20% 0%, color-mix(in srgb, var(--tc, var(--ind)) 18%, transparent), transparent 70%); }
#tab.ax .ap-tile:hover { transform: translateY(-2px); }
#tab.ax .ap-tile:hover::after { opacity: 1; }
#tab.ax .ap-grid .ap-tile:nth-child(1) { --tc: #776BFF; } #tab.ax .ap-grid .ap-tile:nth-child(2) { --tc: #42D9F5; }
#tab.ax .ap-grid .ap-tile:nth-child(3) { --tc: #F3BD65; } #tab.ax .ap-grid .ap-tile:nth-child(4) { --tc: #49D9A0; }
#tab.ax .ap-mod-ico { width: 38px !important; height: 38px !important; border-radius: 11px !important; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc, var(--ind)) 16%, transparent) !important; color: var(--tc, var(--ind)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc, var(--ind)) 35%, transparent); }
#tab.ax .ap-tile small { font: 500 11.5px/1.3 var(--fm); color: var(--tc, var(--ind)); }
#tab.ax .ap-tile .btn-primary { border-radius: 10px; }

/* ---- setup progress */
#tab.ax .ap-prog { height: 6px; border-radius: 6px; background: var(--hair); overflow: hidden; }
#tab.ax .ap-prog i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ind), var(--cy)) !important; box-shadow: 0 0 16px color-mix(in srgb, var(--cy) 60%, transparent); }
#tab.ax .ap-steps li span { border-radius: 7px !important; }
#tab.ax .ap-steps li.ok span { background: color-mix(in srgb, var(--ok) 18%, transparent) !important; color: var(--ok) !important; border-color: transparent !important; }

/* ---- feed rows (waiting list, reviewers) */
#tab.ax .ap-mini { display: grid; gap: 4px; }
#tab.ax .ap-mini li { padding: 9px 10px; border-radius: 11px; transition: background-color .2s; }
#tab.ax .ap-mini li:first-child { background: color-mix(in srgb, var(--ind) 10%, transparent); }
#tab.ax .ap-mini li:hover { background: color-mix(in srgb, var(--ind) 8%, transparent); }
#tab.ax .ap-mini img, #tab.ax .ap-av { border-radius: 10px !important; box-shadow: 0 0 0 1px var(--hair-2); }
#tab.ax .ap-mini small { font: 400 11.5px/1.3 var(--fm); color: var(--dim); }
#tab.ax .ap-rank { font: 500 12px/1 var(--fm); color: var(--mute); }
#tab.ax .ap-rev em { font: 650 18px/1 var(--f); font-style: normal; }

/* ---- charts */
#tab.ax .ap-chart rect[rx] { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
#tab.ax .ap-legend i { border-radius: 3px !important; }
#tab.ax .ap-axis span { font: 400 11px/1 var(--fm); color: var(--mute); }
#tab.ax .ap-hours i { background: linear-gradient(180deg, #9d94ff, #5a4ee6) !important; border-radius: 5px 5px 2px 2px !important; }
#tab.ax .ap-hours div:hover i { background: linear-gradient(180deg, var(--cy), #2a9fc0) !important; }
#tab.ax .ap-hours span { font: 400 10.5px/1 var(--fm); color: var(--mute); }
#tab.ax .ap-table th { font: 500 10.5px/1.3 var(--fm) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--mute) !important; }
#tab.ax .ap-table td { border-color: var(--hair) !important; }
#tab.ax .ap-rate { background: var(--hair) !important; border-radius: 4px; } #tab.ax .ap-rate i { background: linear-gradient(90deg, #2aa877, #6ff0bd) !important; border-radius: 4px; }

/* ---- Submissions: header, status KPI tiles, rows */
#tab.ax .ax-subico, #tab.ax .ax-subhead .ax-subico { border-radius: 12px !important; background: color-mix(in srgb, var(--ind) 16%, transparent) !important; color: #b0a8ff !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ind) 35%, transparent); }
#tab.ax .ax-subhead { background: radial-gradient(480px 200px at 100% 0%, color-mix(in srgb, var(--ind) 18%, transparent), transparent 65%), var(--cc-card) !important; }
#tab.ax .ax-stat { --sc: var(--ind); position: relative; overflow: hidden; border: 0 !important; border-radius: 14px !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 16%, transparent), transparent 70%), var(--cc-card) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sc) 28%, transparent), var(--cc-edge) !important; transition: transform .2s var(--e), box-shadow .2s; }
#tab.ax .ax-stat.accepted { --sc: var(--ok); } #tab.ax .ax-stat.pending { --sc: var(--wa); } #tab.ax .ax-stat.denied { --sc: var(--no); }
#tab.ax .ax-stat:hover { transform: translateY(-2px); }
#tab.ax .ax-stat.on { box-shadow: 0 0 0 1.5px var(--sc), 0 18px 40px -20px color-mix(in srgb, var(--sc) 60%, transparent) !important; }
#tab.ax .ax-stat svg { color: var(--sc) !important; width: 34px !important; height: 34px !important; padding: 7px; border-radius: 10px;
  background: color-mix(in srgb, var(--sc) 16%, transparent); }
#tab.ax .ax-stat b { font: 500 12.5px/1.2 var(--f) !important; color: var(--dim) !important; }
#tab.ax .ax-stat em { font: 650 26px/1.1 var(--f) !important; font-style: normal; letter-spacing: -.03em; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
#tab.ax .ax-searchrow, #tab.ax .ax-in { border-radius: 11px !important; }
#tab.ax .ax-sub { position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s var(--e); }
#tab.ax .ax-sub::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--hair-2); }
#tab.ax .ax-sub:has(.pending)::before { background: var(--wa); } #tab.ax .ax-sub:has(.accepted)::before { background: var(--ok); } #tab.ax .ax-sub:has(.denied)::before { background: var(--no); }
#tab.ax .ax-sub:hover { box-shadow: 0 0 0 1px var(--hair-3), 0 20px 40px -28px rgba(0, 0, 0, .8) !important; }
#tab.ax .ax-av, #tab.ax .ax-sub img { border-radius: 11px !important; box-shadow: 0 0 0 1px var(--hair-2); }
#tab.ax .ax-sub small, #tab.ax .ax-row-sub { font-family: var(--fm) !important; font-size: 11.5px !important; color: var(--dim) !important; }

/* ---- Forms and Panels rows */
#tab.ax .ax-row { position: relative; overflow: hidden; transition: transform .2s var(--e), box-shadow .2s; }
#tab.ax .ax-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--ind), var(--cy)); opacity: .85; }
#tab.ax .ax-row:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--hair-3), 0 20px 40px -28px rgba(0, 0, 0, .8) !important; }
#tab.ax .ax-row-main { font: 600 16px/1.3 var(--f) !important; letter-spacing: -.02em; }
#tab.ax .ax-ib { border-radius: 10px !important; }
#tab.ax .ax-kf-grid > * { border-radius: 12px !important; background: color-mix(in srgb, var(--ind) 9%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ind) 22%, transparent); }
#tab.ax .ax-badges > *, #tab.ax .ax-tags > span, #tab.ax .ax-chip { border-radius: 7px !important; font-family: var(--fm) !important; font-size: 11px !important; }
html[data-theme="light"] #tab.ax .ap-tile small, html[data-theme="light"] #tab.ax .ap-mod-ico { color: color-mix(in srgb, var(--tc, var(--ind)) 70%, #0b1020) !important; }
