/* IntelParser — tool page (Parser / Wingmen) and the result pages it creates (scans.eve-webtools.com).
   Follows the site-wide cosmetic: same top bar and tokens as Atlas and LedgerParser.
   Result pages saved before this stylesheet existed keep using styles.css + script.js. */

:root {
    --textColor: #999999;
    --textColor2: #474747;
    --themeColor: #d2d2d2;
    --backgroundColor: #00000042;
    --borderColor31: #313131;
    --ghost: #d2d2d242;
    --ghostHover: #d2d2d263;
    --ghostActive: #d2d2d2a0;
    --box42: #42424284;
    --accent: #ff7a5c;
}

@font-face { font-family: 'Shentox Bold';     src: url(https://www.eve-webtools.com/font/Shentox%20W04%20Bold.ttf); }
@font-face { font-family: 'Shentox SemiBold'; src: url(https://www.eve-webtools.com/font/Shentox%20W04%20SemiBold.ttf); }
@font-face { font-family: 'Shentox Medium';   src: url(https://www.eve-webtools.com/font/Shentox%20W04%20Medium.ttf); }
@font-face { font-family: 'Shentox Regular';  src: url(https://www.eve-webtools.com/font/Shentox%20W04%20Regular.ttf); }
@font-face { font-family: 'Shentox Light';    src: url(https://www.eve-webtools.com/font/Shentox%20W04%20Light.ttf); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
    padding: 0;
    margin: 0;
    font-family: 'Shentox Regular', 'Segoe UI', sans-serif;
    font-size: 1em;
    color: var(--textColor);
    cursor: default;
    height: 100%;
    width: 100%;
}

#mainWrapperWrapper {
    display: flex;
    justify-content: center;
    background: radial-gradient(circle, rgba(42,42,42,1) 0%, rgba(21,21,21,1) 100%);
    height: 100%;
    width: 100%;
}
#mainWrapper { display: flex; flex-direction: column; height: 100%; width: 100%; overflow: hidden; }

/* ---------------- top bar (identical to Atlas / LedgerParser) ---------------- */
#mainTop {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    background-color: var(--backgroundColor);
    border-bottom: 1px solid var(--borderColor31);
    height: 64px;
    width: 100%;
    z-index: 20;
}
#mainTop-Logo { display: flex; justify-content: center; align-items: center; height: 64px; width: 64px; flex-shrink: 0; }
.svg_ewtLogo { fill: var(--ghost); height: 48px; width: 48px; }
#mainTop-Logo:hover .svg_ewtLogo { fill: var(--ghostHover); }
.topSeparator { width: 1px; height: 36px; background-color: var(--borderColor31); flex-shrink: 0; }
#appSwitcher { display: flex; flex-direction: row; align-items: center; }
.appIcon { display: flex; justify-content: center; align-items: center; width: 48px; height: 48px; cursor: pointer; }
.appIcon svg { fill: #d2d2d221; width: 24px; height: 24px; transition: all 0.25s linear; }
.appIcon:hover svg, .appIcon-current svg { fill: var(--ghostHover); width: 32px; height: 32px; }
#mainTop-Right { display: flex; flex-direction: row; align-items: center; margin-left: auto; }
#pageMenu { display: flex; flex-direction: row; }
.menuIcon { display: flex; justify-content: center; align-items: center; width: 42px; height: 64px; cursor: pointer; }
.menuIcon svg { stroke: var(--ghost); fill: none; stroke-width: 1.6; width: 21px; height: 21px; }
.menuIcon:hover svg, .menuIcon-active svg { stroke: var(--ghostActive); }
#pageName { font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 1.8em; color: var(--ghostHover); letter-spacing: 1px; margin: 0 20px 0 14px; user-select: none; }

/* ---------------- content ---------------- */
#content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 40px 24px 40px; display: flex; flex-direction: column; gap: 24px; scrollbar-color: #555 #1a1a1a; }
.view { display: none; flex-direction: column; gap: 24px; }
.view-active { display: flex; }

.panel { background-color: var(--backgroundColor); padding: 16px 22px 18px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panelHead { display: flex; flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.panelTitle { font-family: 'Shentox Light', 'Segoe UI', sans-serif; font-weight: 400; font-size: 1.2857em; color: var(--ghostHover); letter-spacing: 2px; margin: 0; user-select: none; }
.panelHint { margin: 0; font-size: 0.9286em; color: var(--textColor2); }
.panelNote { font-size: 0.8571em; color: var(--textColor2); }
.panelNote.isError { color: #e0674a; }
.panelCount { margin-left: auto; font-size: 0.8571em; color: var(--textColor2); white-space: nowrap; }
.panelEmpty { color: var(--textColor); font-size: 0.9286em; padding: 6px 0; }

#pasteBox {
    width: 100%;
    resize: vertical;
    background-color: #000000a8;
    border: 1px solid var(--borderColor31);
    color: var(--themeColor);
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 0.9286em;
    line-height: 1.45;
    padding: 12px 14px;
    outline: none;
    tab-size: 12;
}
#pasteBox:focus { border-color: var(--themeColor); }
#pasteBox::placeholder { color: #555555; }
.parseRow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    background: none;
    border: 1px solid var(--borderColor31);
    font-family: 'Shentox Medium', 'Segoe UI', sans-serif;
    font-size: 0.9286em;
    letter-spacing: 1px;
    color: var(--textColor);
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { color: var(--themeColor); border-color: var(--themeColor); }
.btn-primary { background-color: #d2d2d208; color: var(--themeColor); box-shadow: inset 3px 0 0 #d2d2d2; }
.btn:disabled { cursor: not-allowed; color: var(--textColor2); border-color: var(--borderColor31); box-shadow: none; background: none; }
.btn-small { padding: 6px 14px; font-size: 0.7857em; }

.tabRow { display: flex; gap: 3px; font-size: 0.8929em; flex-wrap: wrap; }
.tab { padding: 6px 13px; background: none; border: 1px solid var(--borderColor31); font-family: inherit; font-size: inherit; color: var(--textColor2); cursor: pointer; }
.tab:hover { color: var(--textColor); }
.tab-active { background-color: #d2d2d208; color: var(--themeColor); box-shadow: inset 3px 0 0 #d2d2d2; }

.strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background-color: var(--backgroundColor); padding: 10px 18px; box-shadow: inset 3px 0 0 var(--ghostHover); }
.fact { display: flex; flex-direction: column; }
.fact b { font-weight: normal; font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 1.5714em; color: var(--themeColor); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact b a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--borderColor31); }
.fact b a:hover { border-color: var(--themeColor); }
.fact span { font-size: 0.75em; letter-spacing: 1.5px; text-transform: uppercase; color: var(--textColor2); white-space: nowrap; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; }
.acts { display: flex; gap: 6px; margin-left: auto; }

/* ---------------- Wingmen ---------------- */
.wmForm { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.wmField { display: flex; flex-direction: column; gap: 6px; }
.wmField > label { font-size: 0.75em; letter-spacing: 2px; color: var(--textColor2); user-select: none; }
#wmSearch, #dsSearch { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--borderColor31); background-color: #00000060; width: 400px; max-width: 100%; }
#wmSearch:focus-within, #dsSearch:focus-within { border-color: var(--themeColor); }
#wmSearch svg, #dsSearch svg { width: 15px; height: 15px; fill: none; stroke: var(--textColor2); stroke-width: 2; flex-shrink: 0; }
#wmInput, #dsInput { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-family: inherit; font-size: 0.9286em; color: var(--themeColor); }
#wmInput::placeholder, #dsInput::placeholder { color: #666666; }
#wmInput::-webkit-search-cancel-button, #dsInput::-webkit-search-cancel-button { display: none; }
#wmSugg, #dsSugg { position: absolute; top: calc(100% + 3px); left: -1px; right: -1px; z-index: 30; list-style: none; margin: 0; padding: 4px 0; max-height: 420px; overflow-y: auto; background-color: #0d0d0df2; border: 1px solid var(--borderColor31); box-shadow: 0 12px 32px #000000a0; }
#wmSugg li, #dsSugg li { display: flex; align-items: center; gap: 10px; padding: 5px 12px; cursor: pointer; font-size: 0.9286em; white-space: nowrap; }
#wmSugg li:hover, #wmSugg li.isOn, #dsSugg li:hover, #dsSugg li.isOn { background-color: #d2d2d20a; color: var(--themeColor); }
#wmSugg li img, #dsSugg li img { width: 24px; height: 24px; border: 1px solid var(--borderColor31); background-color: #151515; }
#wmSugg li .logos, #dsSugg li .logos { display: flex; gap: 4px; }
#wmSugg li .sName, #dsSugg li .sName { overflow: hidden; text-overflow: ellipsis; }
#wmSugg li .sKind, #dsSugg li .sKind { margin-left: auto; padding-left: 12px; font-size: 0.7857em; letter-spacing: 1px; text-transform: uppercase; color: var(--textColor2); }
#wmSugg li .sysGlyph, #dsSugg li .sysGlyph { width: 24px; height: 24px; flex-shrink: 0; border: 1px solid var(--borderColor31); background: radial-gradient(circle, var(--ghostActive) 0 3px, transparent 4px), #151515; }
.wmForm .btn { height: 34px; padding: 0 26px; }

#wmResult { display: flex; flex-direction: column; gap: 24px; }
#wmResult:empty { display: none; }
#dsResult { display: flex; flex-direction: column; gap: 24px; }
#dsResult:empty { display: none; }
.wmSummary > img { width: 44px; height: 44px; border: 1px solid var(--borderColor31); background-color: #151515; }
.wmWho { display: flex; flex-direction: column; gap: 2px; margin-right: 10px; }
.wmWho b { font-weight: normal; font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 1.1429em; color: var(--themeColor); letter-spacing: 1px; }
.wmWho span { font-size: 0.8571em; color: var(--textColor2); }
.wmSec .secBadge { width: 44px; line-height: 44px; font-size: 1em; }
.secBadge { display: inline-block; width: 34px; text-align: center; font-size: 0.7857em; line-height: 1.5; color: #151515; flex-shrink: 0; font-family: 'Shentox SemiBold', 'Segoe UI', sans-serif; }
.sysName { color: var(--themeColor); text-decoration: none; border-bottom: 1px solid var(--borderColor31); }
.sysName:hover { border-color: var(--themeColor); }
.dim { color: var(--textColor2); }

/* a name that starts a new search */
.jump { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.jump:hover { color: var(--themeColor); text-decoration: underline; text-underline-offset: 3px; }
table.wm .who .jump { color: var(--themeColor); }

.classRow { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.classChip { display: flex; align-items: center; gap: 10px; font-size: 0.9286em; white-space: nowrap; }
.classChip b { font-weight: normal; font-family: 'Shentox Medium', 'Segoe UI', sans-serif; color: var(--themeColor); font-variant-numeric: tabular-nums; }
.classBar { display: inline-block; width: 60px; height: 4px; background-color: #d2d2d214; }
.classBar i { display: block; height: 4px; background-color: var(--accent); }

.sysRows { display: flex; flex-direction: column; }
.sysRow { display: grid; grid-template-columns: 34px minmax(90px, 1.2fr) minmax(90px, 1.5fr) 120px 110px auto; align-items: center; gap: 12px; padding: 6px 10px; border-bottom: 1px solid #232323; font-size: 0.9286em; white-space: nowrap; }
.sysRow:hover { background-color: #d2d2d20a; }
.sysRow .sysName { justify-self: start; }
.sysRow .sysN b { font-weight: normal; color: var(--themeColor); font-variant-numeric: tabular-nums; }
.sysRow .jump { justify-self: end; font-size: 0.8462em; letter-spacing: 1px; text-transform: uppercase; color: var(--textColor); border: 1px solid var(--borderColor31); padding: 3px 10px; }
.sysRow .jump:hover { color: var(--themeColor); border-color: var(--themeColor); text-decoration: none; }
.sysCell { display: inline-flex; align-items: center; gap: 10px; }
#wmPilots .tabRow { font-size: 0.7857em; }

.shipRow { display: flex; flex-wrap: wrap; gap: 8px; }
.shipChip { display: flex; align-items: center; gap: 10px; border: 1px solid var(--borderColor31); background-color: #00000040; height: 44px; }
.shipChip img { width: 42px; height: 42px; background-color: #151515; }
.shipChip .shipName { color: var(--textColor); font-size: 0.9286em; white-space: nowrap; }
.shipChip .shipN { align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 40px; padding: 0 8px; background-color: #d2d2d214; color: var(--themeColor); font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 1.1429em; font-variant-numeric: tabular-nums; }

.tableWrap { overflow-x: auto; }
table.wm { border-collapse: collapse; width: 100%; font-size: 0.9286em; }
table.wm th { text-align: left; font-weight: normal; font-size: 0.8em; letter-spacing: 1.5px; text-transform: uppercase; color: var(--textColor2); padding: 0 10px 8px 10px; border-bottom: 1px solid var(--borderColor31); white-space: nowrap; user-select: none; }
table.wm td { padding: 6px 10px; border-bottom: 1px solid #232323; vertical-align: middle; white-space: nowrap; }
table.wm tr:hover td { background-color: #d2d2d20a; }
table.wm tr.isTarget td { background-color: #d2d2d20c; }
table.wm tr.isTarget td:first-child { box-shadow: inset 3px 0 0 #d2d2d2; }
table.wm .who { display: flex; align-items: center; gap: 10px; }
table.wm .who img { width: 32px; height: 32px; border: 1px solid var(--borderColor31); background-color: #151515; }
table.wm .name { color: var(--themeColor); }
table.wm .tag { font-size: 0.7143em; letter-spacing: 1px; text-transform: uppercase; color: var(--textColor2); border: 1px solid var(--borderColor31); padding: 1px 6px; }
table.wm .tk, table.wm .dim { color: var(--textColor2); }
table.wm td.ships { white-space: normal; }
table.wm .flown { display: inline-flex; align-items: center; gap: 6px; margin: 1px 14px 1px 0; }
table.wm .flown img { width: 28px; height: 28px; background-color: #151515; border: 1px solid var(--borderColor31); }
table.wm td.num, table.wm th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.wm td.num { color: var(--themeColor); }
table.wm .kbar { display: inline-block; vertical-align: middle; width: 70px; height: 4px; background-color: #d2d2d214; margin-right: 10px; }
table.wm .kbar i { display: block; height: 4px; margin-left: auto; background-color: var(--accent); }
table.wm td.lnk { text-align: right; }
table.wm td.lnk a { display: inline-block; opacity: 0.33; margin-left: 4px; }
table.wm td.lnk a:hover { opacity: 1; }
table.wm td.lnk img { width: 20px; height: 20px; background: #000000; vertical-align: middle; }

/* ---------------- result pages (Local / D-scan) ---------------- */
.resKind { font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 0.7857em; letter-spacing: 2px; text-transform: uppercase; color: #111; background-color: var(--ghostActive); padding: 3px 10px; }
.resNote { font-size: 0.8571em; color: var(--textColor2); margin-top: -12px; }
.resNote b { font-weight: normal; color: var(--textColor); }
.colTitle { font-family: 'Shentox Light', 'Segoe UI', sans-serif; font-size: 1.1429em; letter-spacing: 2px; color: var(--ghostHover); margin: 0 2px 8px 2px; user-select: none; display: flex; align-items: baseline; gap: 10px; }
.colTitle small { font-family: 'Shentox Regular', 'Segoe UI', sans-serif; font-size: 0.65em; letter-spacing: 1px; color: var(--textColor2); }

/* the two columns: the same structure and rows as the earlier result pages */
#contentBody { display: flex; justify-content: center; align-items: flex-start; flex-direction: row; width: 100%; gap: 8%; }
#contentBody ul { min-width: 20%; display: flex; justify-content: center; align-items: flex-start; flex-direction: column; list-style: none; margin: 0; padding: 0; }
#contentBody li { display: flex; justify-content: flex-start; align-items: center; flex-direction: row; width: 100%; height: 32px; margin: 2px; background: var(--backgroundColor); }
#contentBody .shipsList-ul-li img, #contentBody .groupList-ul-li img { width: 32px; height: 32px; margin-right: 4px; background: var(--box42); }
#contentBody .shipsList-ul-li span:nth-last-child(2), #contentBody .groupList-ul-li span:nth-last-child(2) { padding-left: 4px; padding-right: 12px; white-space: nowrap; }
#contentBody .shipsList-ul-li span:last-child, #contentBody .groupList-ul-li span:last-child {
    height: 100%; width: max-content; min-width: 36px; line-height: 28px; font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 18px;
    text-align: center; padding: 4px; margin-left: auto; background: var(--box42);
}
#contentBody .alliancesList-ul-li, #contentBody .corporationsList-ul-li { height: 40px; }
.alliancesList-ul-li > div:nth-child(1), .corporationsList-ul-li > div:nth-child(1) { display: flex; justify-content: center; align-items: center; flex-direction: column; height: 100%; background: var(--box42); user-select: none; }
.alliancesList-ul-li > div:nth-child(1) img, .corporationsList-ul-li > div:nth-child(1) img { height: 40px; width: 40px; }
.alliancesList-ul-li > div:nth-child(2), .corporationsList-ul-li > div:nth-child(2) { display: flex; justify-content: space-evenly; align-items: flex-start; flex-direction: column; white-space: nowrap; height: 100%; margin-left: 8px; }
.alliancesList-ul-li > div:nth-child(2) span:nth-child(1), .corporationsList-ul-li > div:nth-child(2) span:nth-child(1) { font-family: 'Shentox Light', 'Segoe UI', sans-serif; font-size: 16px; }
.alliancesList-ul-li > div:nth-child(2) span:nth-child(2), .corporationsList-ul-li > div:nth-child(2) span:nth-child(2) { font-family: 'Shentox SemiBold', 'Segoe UI', sans-serif; font-size: 16px; margin-right: 8px; }
.alliancesList-ul-li > div:nth-child(3), .corporationsList-ul-li > div:nth-child(3) {
    height: 100%; width: max-content; min-width: 40px; line-height: 40px; font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 20px;
    text-align: center; padding: 0 2px; margin-left: auto; background: var(--box42);
}
.alliancesList-ul-li > div:last-child, .corporationsList-ul-li > div:last-child { display: flex; justify-content: space-between; align-items: center; flex-direction: column; opacity: 0.33; height: 40px; user-select: none; }
.alliancesList-ul-li > div:last-child a, .corporationsList-ul-li > div:last-child a { height: 20px; }
.alliancesList-ul-li > div:last-child img, .corporationsList-ul-li > div:last-child img { height: 20px; width: 20px; background: #000000; }
.hoveredBackground { background: radial-gradient(#d2d2d221 0%, #d2d2d20a 100%) !important; }

/* ---------------- loading (the radar sweep) ---------------- */
#loading { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: center; background: #00000042; }
/* the module's radar (the switcher glyph) scanning: the beam turns, a contact lights up each time it passes */
#loading_Radar { width: 240px; height: 240px; border-radius: 50%; background-color: #00000042; fill: #888888; }
#loading_Radar .lrRing { fill: none; stroke: #888888; stroke-width: 5; opacity: .55; }
#loading_Radar .lrInner { stroke-width: 4.2; opacity: .35; }
#loading_Radar .lrBeam { transform-box: view-box; transform-origin: 32px 32px; animation: lrSweep 1.8s linear infinite; }
#loading_Radar .lrWedge { opacity: .9; }
#loading_Radar .lrTrail { opacity: .15; }
#loading_Radar .lrBlip { opacity: .12; animation: lrPing 1.8s linear infinite; animation-delay: calc(var(--at) * 1.8s); }
@keyframes lrSweep { to { transform: rotate(360deg); } }
@keyframes lrPing { 0% { opacity: 1; } 55% { opacity: .12; } 100% { opacity: .12; } }
@media (prefers-reduced-motion: reduce) { #loading_Radar .lrBeam, #loading_Radar .lrBlip { animation: none; } #loading_Radar .lrBlip { opacity: .9; } }

/* ---- Local: the PILOTS column (filled by intel.js from f=localPilots when the page opens) ---- */
main[data-kind="local"] #contentBody { gap: 4%; }
#contentBody ul#pilotsList-ul { min-width: 44%; flex: 1 1 44%; }
.plBar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 2px 8px; }
.plFilter, .plSort { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.plFilter .tab, .plSort .tab { padding: 3px 10px; font-size: .8571em; }
.plSort span { font-size: .7143em; letter-spacing: 1.5px; text-transform: uppercase; color: var(--textColor2); margin-right: 2px; }
#contentBody li.pl { height: auto; min-height: 40px; gap: 10px; padding-right: 10px; cursor: pointer; }
#contentBody li.pl:hover { background: #d2d2d214; }
li.pl > img { width: 40px; height: 40px; background: var(--box42); flex-shrink: 0; }
li.pl .pn { display: flex; flex-direction: column; min-width: 150px; white-space: nowrap; }
li.pl .pn b { font-weight: normal; color: var(--themeColor); font-size: .9286em; }
li.pl .pn span { font-size: .7857em; color: var(--textColor2); display: flex; align-items: center; }
li.pl .hull { display: flex; align-items: center; gap: 3px; font-size: .8571em; min-width: 150px; white-space: nowrap; }
li.pl .hull img { width: 26px; height: 26px; background: #151515; border: 1px solid var(--borderColor31); }
li.pl .hull img + img { margin-left: -4px; }
li.pl .hull b { font-weight: normal; margin-left: 4px; }
li.pl .hull.none { color: var(--textColor2); }
li.pl .chips { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; padding: 2px 0; }
.chip { font-size: .6429em; letter-spacing: 1px; text-transform: uppercase; border: 1px solid var(--borderColor31); padding: 1px 6px; color: var(--textColor); white-space: nowrap; }
.chip.hot { border-color: #ff7a5c80; color: #ffb39f; }
.chip.gang { color: var(--textColor2); border-style: dashed; }
.chip.mil { --m: #999; border-color: var(--m); color: var(--m); margin-left: 6px; }
li.pl .dng { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: .7857em; color: var(--textColor2); width: 82px; flex-shrink: 0; }
li.pl .dng i { display: block; width: 44px; height: 4px; background: #d2d2d214; position: relative; }
li.pl .dng small { font-size: .85em; color: var(--textColor2); letter-spacing: .3px; }
li.pl .dng i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--d); background: var(--accent); }
li.pl.quiet { opacity: .5; }
li.pl.loading .chips::before { content: ""; width: 120px; height: 8px; background: linear-gradient(90deg, #222, #2c2c2c, #222); }
li.pl.later .chips::before { content: "later"; font-size: .7143em; color: var(--textColor2); letter-spacing: 1px; }
li.pl[hidden] { display: none; }
.plMore { margin: 8px 2px 0; font-size: .8571em; color: var(--textColor2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
/* the MILITIAS column: the factional warfare icon with the enlisted count, one logo per militia (count badge, name on hover, click = filter) */
#contentBody ul.milCol { min-width: 0; flex: 0 0 auto; align-items: center; }
.milCol .colTitle { margin: 0 0 8px; height: 1.3em; display: flex; align-items: center; gap: 6px; }
.fwIcon { width: 24px; height: 24px; stroke: var(--ghostHover); fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.milDots { display: flex; flex-direction: column; gap: 10px; align-items: center; padding-top: 2px; }
.milDot { --m: #999; position: relative; width: 40px; height: 40px; padding: 0; background: var(--backgroundColor); border: 1px solid var(--borderColor31); box-shadow: inset 0 -3px 0 var(--m); cursor: pointer; font: inherit; }
.milDot img { width: 100%; height: 100%; display: block; background: var(--box42); }
.milDot em { position: absolute; right: -6px; top: -7px; min-width: 18px; height: 18px; padding: 0 5px; font-style: normal; font-size: .7143em; line-height: 18px; text-align: center; color: var(--themeColor); background: #151515; border: 1px solid var(--borderColor31); }
.milDot:hover, .milDot.on { border-color: var(--m); }
.milDot.on { background: #d2d2d214; }
.milDot::after { content: attr(title); position: absolute; left: 100%; top: 50%; transform: translate(10px, -50%); white-space: nowrap; font-size: .7857em; color: var(--themeColor); background: #0d0d0d; border: 1px solid var(--borderColor31); padding: 3px 8px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.milDot:hover::after { opacity: 1; }
@media (max-width: 900px) {
    #content { padding: 16px 14px; }
    #appSwitcher { display: none; }
    #contentBody { flex-direction: column; gap: 24px; align-items: stretch; }
    #contentBody ul#pilotsList-ul { min-width: 0; }
    li.pl .pn { min-width: 120px; } li.pl .hull { min-width: 0; }
    /* the militias on one line, under the corporations */
    #contentBody ul.milCol { align-items: flex-start; }
    .milDots { flex-direction: row; flex-wrap: wrap; padding: 4px 0 0 2px; }
    .milDot::after { left: 0; top: 100%; transform: translate(0, 6px); }
    #wmSearch, #dsSearch { width: 100%; }
    .sysRow { grid-template-columns: 34px 1fr auto; }
    .sysRow > .dim, .sysRow .jump { display: none; }
}

/* ---------------- Dossier: one pilot (the search box shares the Wingmen rules: #dsSearch, #dsSugg) ---------------- */
.dsSummary > img { width: 64px; height: 64px; border: 1px solid var(--borderColor31); background-color: #151515; }
.dsWho { display: flex; flex-direction: column; gap: 3px; min-width: 200px; margin-right: 10px; }
.dsWho b { font-weight: normal; font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 1.4286em; color: var(--themeColor); }
.dsWho span { font-size: 0.9286em; }
.dsWho .dim { color: var(--textColor2); }
.dsSummary + .resNote { margin-top: -16px; padding: 0 22px; }
.flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.flag { border: 1px solid var(--borderColor31); background-color: #00000040; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 3px 0 0 var(--accent); }
.flag.calm { box-shadow: inset 3px 0 0 #6b6b6b; }
.flag .fl { display: flex; align-items: baseline; gap: 10px; }
.flag .fl b { font-weight: normal; font-family: 'Shentox Medium', 'Segoe UI', sans-serif; letter-spacing: 2px; font-size: 0.8571em; color: var(--themeColor); }
.flag .fl span { margin-left: auto; font-size: 0.7857em; color: var(--textColor2); white-space: nowrap; }
.flag p { margin: 0; font-size: 0.9286em; line-height: 1.45; }
.flag p em { font-style: normal; color: var(--themeColor); }
.flag a { color: var(--textColor); font-size: 0.8571em; text-decoration: none; border-bottom: 1px solid #444; align-self: flex-start; }
.flag a:hover { color: var(--themeColor); border-color: var(--themeColor); }
.dsShips .shipChip { padding-right: 0; }
.dsShips .shipChip .lost { font-size: 0.7857em; color: var(--textColor2); white-space: nowrap; }
.fitWrap { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px); gap: 18px; align-items: start; }
.fitText { margin: 0; padding: 12px 14px; background-color: #0b0b0b; border: 1px solid var(--borderColor31); color: var(--themeColor); font-family: 'Consolas', 'Menlo', monospace; font-size: 0.8571em; line-height: 1.55; white-space: pre; overflow-x: auto; }
.fitMeta { display: flex; flex-direction: column; gap: 10px; font-size: 0.9286em; }
.fitMeta .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #232323; padding-bottom: 6px; }
.fitMeta .row b { font-weight: normal; color: var(--themeColor); text-align: right; }
.fitMeta .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.fitMeta .btns a.btn { text-decoration: none; }
.fitMeta .warn { font-size: 0.8571em; color: var(--textColor2); line-height: 1.4; }
.dsTwo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 120px; }
.hours i { display: block; background-color: #d2d2d21f; min-height: 2px; }
.hours i.hot { background-color: var(--accent); }
.hoursAxis { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; font-size: 0.7143em; color: var(--textColor2); text-align: center; }
.days { display: flex; gap: 6px; font-size: 0.7857em; color: var(--textColor2); }
.days span { flex: 1; text-align: center; padding: 4px 0; background-color: #d2d2d20a; }
.days span.hot { color: var(--themeColor); background-color: #d2d2d21c; }
.panelHint b { font-weight: normal; color: var(--themeColor); }
.sysRow.dsSys { grid-template-columns: 34px minmax(80px, 1fr) minmax(80px, 1.2fr) 70px 92px; }
table.wm td.lnk a.dsLink, .dsLink { opacity: 1; font-size: 0.8462em; letter-spacing: 1px; text-transform: uppercase; color: var(--textColor); text-decoration: none; border: 1px solid var(--borderColor31); padding: 3px 10px; }
table.wm td.lnk a.dsLink:hover { color: var(--themeColor); border-color: var(--themeColor); }
#dsResult a.jump { text-decoration: none; color: var(--themeColor); }
#dsResult a.jump:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .dsTwo { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .fitWrap { grid-template-columns: 1fr; } #dsSearch { width: 100%; } }

/* ---------------- footer: the legal line, as on the other modules ---------------- */
#LegalNotice { font-size: 0.8571em; color: #353535; text-align: center; padding: 2px 16px 6px 16px; flex-shrink: 0; }
#legnot { font-size: 0.7143em !important; }
@media (max-width: 640px) { #legnot { display: none; } }
@media (max-width: 640px) {
    /* a pilot row on two lines: name and danger, then hull and chips */
    #contentBody li.pl { display: grid; grid-template-columns: 40px minmax(0, 1fr) fit-content(48%); grid-template-areas: "img pn dng" "img hull chips"; height: auto; column-gap: 8px; row-gap: 2px; padding: 0 8px 4px 0; }
    li.pl > img { grid-area: img; align-self: start; } li.pl .pn { grid-area: pn; min-width: 0; } li.pl .pn b { overflow: hidden; text-overflow: ellipsis; }
    li.pl .dng { grid-area: dng; } li.pl .hull { grid-area: hull; min-width: 0; overflow: hidden; } li.pl .hull img { width: 22px; height: 22px; } li.pl .hull b { overflow: hidden; text-overflow: ellipsis; }
    li.pl .chips { grid-area: chips; justify-content: flex-end; justify-self: end; }
    li.pl .pn span { flex-wrap: wrap; } .chip.mil { margin-left: 4px; }
}
