:root {
    --bg: #080a0d;
    --panel: #0d1014;
    --panel-2: #11151a;
    --line: #252a30;
    --line-soft: #1a1e23;
    --text: #d8d9d6;
    --muted: #858b90;
    --dim: #5d646b;
    --red: #a33a38;
    --red-bright: #c24a45;
    --max: 1080px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }

.topbar {
    height: 72px;
    border-bottom: 1px solid var(--line);
    background: rgba(8,10,13,.96);
}
.topbar-inner {
    max-width: var(--max);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 240px; }
.brand img { height: 50px; aspect-ratio: 1709 / 2013; width: auto; object-fit: cover; object-position: top center; }
.brand-name {
    font: 600 19px/1 "Barlow Condensed", sans-serif;
    letter-spacing: .13em;
    color: #e4e5e2;
}
nav { display: flex; align-items: center; gap: 24px; }
nav a, .quiet-link { color: var(--muted); font-size: 12px; }
.ext { color: var(--red-bright); font-weight: 400; }
nav a:hover, .quiet-link:hover { color: #e4e5e2; }
.account { margin-left: auto; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.account img { width: 28px; height: 28px; border: 1px solid var(--line); }

.shell { max-width: var(--max); margin: 0 auto; padding: 0 24px 70px; }
.eyebrow { color: var(--dim); font: 10px/1.3 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }

/* Landing */
.landing {
    min-height: 490px;
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: center;
    gap: 56px;
    border-bottom: 1px solid var(--line);
    position: relative;
    isolation: isolate;
}
.landing-video {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    opacity: .28;
    filter: saturate(.7);
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent),
        linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent),
        linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-composite: intersect;
}
@media (prefers-reduced-motion: reduce) { .landing-video { display: none; } }
.landing-mark { display: flex; justify-content: center; }
.landing-mark img { width: 230px; aspect-ratio: 1709 / 2013; height: auto; object-fit: cover; object-position: top center; filter: drop-shadow(0 12px 28px rgba(0,0,0,.4)); }
.landing-copy { max-width: 700px; }
.landing h1 {
    margin: 10px 0 8px;
    font: 600 clamp(48px, 7vw, 76px)/.92 "Barlow Condensed", sans-serif;
    letter-spacing: .005em;
    text-transform: uppercase;
    color: #e2e3e0;
}
.lead { max-width: 610px; margin: 0; color: #969ca1; font-size: 14px; }
.eve-login, .button, .primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding: 11px 14px;
    border: 1px solid #343a41;
    background: #12161b;
    color: #dedfdd;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.eve-login:hover, .button:hover, .primary:hover { border-color: #555d65; background: #171c22; }
.eve-icon {
    min-width: 29px;
    height: 21px;
    display: grid;
    place-items: center;
    background: #222830;
    color: #c7cbd0;
    font: 9px "IBM Plex Mono", monospace;
}
.arrow { color: var(--red-bright); }
.login-note { margin: 10px 0 0; color: var(--dim); font: 10px/1.5 "IBM Plex Mono", monospace; }
.landing-links { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.landing-links > a, .landing-note { min-height: 142px; padding: 24px 25px 24px 0; border-right: 1px solid var(--line); }
.landing-links > a { display: grid; grid-template-columns: 30px 1fr 15px; gap: 11px; }
.landing-links > a:hover { background: rgba(255,255,255,.018); }
.landing-links > a:last-of-type { padding-left: 25px; }
.link-index { color: var(--red); font: 10px "IBM Plex Mono", monospace; }
.landing-links strong { display: block; margin-bottom: 4px; font: 600 20px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.landing-links small { display: block; color: var(--muted); font-size: 11px; line-height: 1.55; }
.landing-links b { color: var(--dim); font-weight: 400; }
.landing-note { padding-left: 25px; border-right: 0; }
.landing-note > span { color: var(--red); font: 10px "IBM Plex Mono", monospace; }
.landing-note p { max-width: 230px; margin: 10px 0 0; color: var(--dim); font-size: 11px; }

/* Shared */
.page-heading { padding: 48px 0 25px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading.compact { padding-bottom: 23px; }
.page-heading h1 { margin: 7px 0 3px; font: 600 39px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .025em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.access-tag { color: #738178; font: 10px "IBM Plex Mono", monospace; letter-spacing: .07em; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.feature-panel { min-height: 220px; padding: 25px; display: grid; grid-template-columns: 34px 1fr; gap: 18px; border-right: 1px solid var(--line); }
.feature-panel:nth-child(even) { border-right: 0; }
.feature-panel:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.feature-panel:hover { background: var(--panel); }
.panel-number { color: var(--red); font: 10px "IBM Plex Mono", monospace; }
.panel-label { color: var(--dim); font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.panel-content h2 { margin: 8px 0 5px; font: 600 29px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.panel-content p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.panel-link { display: inline-block; margin-top: 23px; color: #aeb3b7; font-size: 11px; }
.panel-link b { margin-left: 7px; color: var(--red-bright); }
.member-strip { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.member-strip img { width: 42px; height: 42px; }
.member-info strong { display: block; margin: 1px 0; font: 600 17px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.member-info small { display: block; color: var(--dim); font-size: 10px; }
.member-id { margin-left: auto; color: var(--dim); font: 9px "IBM Plex Mono", monospace; }

/* Guides */
.guide-row { display: grid; grid-template-columns: 125px 1fr 20px; gap: 19px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.guide-row:hover { background: rgba(255,255,255,.015); }
.guide-thumb { height: 73px; border: 1px solid var(--line); background: #111419; background-size: cover; background-position: center; position: relative; }
.guide-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,13,.12), rgba(8,10,13,.58)); }
.guide-thumb span { position: absolute; z-index: 1; left: 8px; bottom: 6px; color: #d2d4d1; font: 9px "IBM Plex Mono", monospace; text-transform: uppercase; }
.guide-info h2 { margin: 4px 0 2px; font: 600 21px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.guide-info p { margin: 0; color: var(--muted); font-size: 12px; }
.guide-meta { color: var(--dim); font: 9px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.guide-meta i { color: var(--red); font-style: normal; }
.guide-arrow { color: var(--dim); }
.guide-row:hover .guide-arrow { color: var(--red-bright); }
.empty { padding: 35px 0; color: var(--muted); }
.empty h2 { margin-bottom: 4px; color: var(--text); font-size: 16px; }

/* Article */
.article-nav { padding: 22px 0 0; }
.article-nav a { color: var(--muted); font: 11px "IBM Plex Mono", monospace; }
.article-nav a:hover { color: var(--text); }
.article { max-width: 800px; margin: 0 auto; }
.article-header { padding: 43px 0 27px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 9px 0 7px; font: 600 42px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .025em; }
.article-header p { margin: 0; color: var(--muted); font-size: 12px; }
.article-body { padding: 29px 0; color: #b9bdc0; font-size: 14px; line-height: 1.8; }
.article-body h1, .article-body h2, .article-body h3 { color: var(--text); font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .025em; font-weight: 600; line-height: 1.15; }
.article-body h1 { font-size: 30px; margin-top: 36px; }
.article-body h2 { font-size: 24px; margin-top: 32px; }
.article-body h3 { font-size: 19px; margin-top: 27px; }
.article-body a { color: #c7cbce; text-decoration: underline; text-decoration-color: #41474e; }
.article-body code { color: #d08a84; background: #111419; padding: 2px 4px; font: .88em "IBM Plex Mono", monospace; }
.article-body pre { margin: 22px 0; padding: 14px; overflow: auto; background: #06080a; border: 1px solid var(--line); }
.article-body pre code { padding: 0; background: transparent; color: #aeb4b8; }
.article-body li { margin: 4px 0; }

/* Logistics */
.calculator { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.calc-form { padding: 25px 25px 28px 0; border-right: 1px solid var(--line); }
.calc-title { margin-bottom: 21px; color: var(--red); font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.calc-form label { display: block; margin-bottom: 17px; }
.calc-form label > span:first-child { display: block; margin-bottom: 6px; color: #aaaeb1; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; }
.calc-form b { color: var(--dim); font-weight: 400; }
select, input[type=number] { width: 100%; padding: 10px; border: 1px solid #30363d; outline: 0; background: #0a0d10; color: var(--text); font: 12px system-ui, sans-serif; }
select:focus, input:focus { border-color: #555e67; }
.check { display: flex !important; gap: 9px; align-items: flex-start; }
.check input { width: 14px; height: 14px; margin-top: 2px; accent-color: var(--red); }
.check span { margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.check strong, .check small { display: block; }
.check strong { color: var(--text); font-size: 12px; }
.check small { color: var(--dim); margin-top: 1px; font-size: 10px; }
.primary { width: 100%; margin-top: 0; background: #12161b; }
.calc-error { min-height: 17px; margin-top: 7px; color: var(--red-bright); font-size: 11px; }
.quote { padding: 25px 0 28px 25px; }
.quote-top { display: flex; justify-content: space-between; color: var(--dim); font: 10px "IBM Plex Mono", monospace; letter-spacing: .06em; }
.quote-top span:last-child { color: #aeb3b7; }
.quote-total { margin-top: 43px; font: 600 48px/1 "Barlow Condensed", sans-serif; letter-spacing: .015em; }
.isk { color: var(--dim); font: 10px "IBM Plex Mono", monospace; }
.quote-lines { margin-top: 35px; border-top: 1px solid var(--line); }
.quote-lines div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.quote-lines span { color: var(--muted); }
.quote-lines strong { font-weight: 500; }
.quote-note { margin: 16px 0 0; color: var(--dim); font-size: 10px; line-height: 1.6; }

/* Doctrines */
.doctrine-row { display: grid; grid-template-columns: 34px 1fr auto 20px; gap: 19px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doctrine-row:hover { background: rgba(255,255,255,.015); }
.doctrine-row:hover .guide-arrow { color: var(--red-bright); }
.doctrine-info h2 { margin: 4px 0 2px; font: 600 24px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.doctrine-info p { margin: 0; color: var(--muted); font-size: 12px; }
.doctrine-counts { display: flex; flex-direction: column; gap: 2px; color: var(--dim); font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; text-align: right; }
.doctrine-counts b { color: #aeb3b7; font-weight: 500; }
.doctrine-brief { max-width: 800px; padding-bottom: 8px; }
.tabs { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 600 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.tab span { margin-left: 5px; color: var(--dim); font: 10px "IBM Plex Mono", monospace; }
.tab:hover { color: var(--text); }
.tab.active { color: #e4e5e2; border-bottom-color: var(--red-bright); }
.tab-panel { padding: 22px 0 0; display: grid; gap: 18px; }
.tab-panel[hidden] { display: none; }
.plan-hint { margin: 0; color: var(--muted); font-size: 12px; }
.plan-hint code { color: #d08a84; font: .92em "IBM Plex Mono", monospace; }
.fit-card { border: 1px solid var(--line); background: var(--panel); }
.fit-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fit-card h2 { margin: 3px 0 0; font: 600 22px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.card-actions { display: flex; gap: 8px; }
.button.small { margin-top: 0; padding: 7px 11px; font-size: 11px; }
.fit-body { margin: 0; padding: 16px; overflow: auto; background: #06080a; color: #aeb4b8; font: 12px/1.6 "IBM Plex Mono", monospace; }
.skill-list { margin: 0; padding: 6px 16px 10px; list-style: none; columns: 2; column-gap: 40px; }
.skill-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); break-inside: avoid; font-size: 12px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border: 1px solid #3a4047; }
.pips i.on { background: var(--red-bright); border-color: var(--red-bright); }

/* Fitting window */
.fit-layout { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 28px; padding: 20px 16px 8px; align-items: start; }
.fitting-window { position: relative; width: 100%; aspect-ratio: 1; }
.fw-ring { position: absolute; inset: 10%; border-radius: 50%; border: 1px solid #2c333a; box-shadow: inset 0 0 0 7px #0a0d10, inset 0 0 0 8px #1d2328; }
.fw-hull { position: absolute; inset: 22%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle, #151a20, #07090b 75%); border: 1px solid var(--line); color: var(--dim); font: 11px "IBM Plex Mono", monospace; text-align: center; }
.fw-hull img { width: 100%; height: 100%; object-fit: cover; }
.fw-slot { position: absolute; width: 7.8%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid #2a3037; background: #0a0d10; display: grid; place-items: center; overflow: hidden; }
.fw-slot.filled { border-color: #4a525a; background: #11151a; }
.fw-slot.high.filled { border-color: #8a5a3a; }
.fw-slot.mid.filled { border-color: #3f6a8a; }
.fw-slot.low.filled { border-color: #4f7f55; }
.fw-slot.rig.filled { border-color: #7a7a42; }
.fw-slot.subsystem.filled { border-color: #7a4a8a; }
.fw-slot img { width: 100%; height: 100%; object-fit: cover; }
.fw-slot b { color: var(--muted); font: 9px "IBM Plex Mono", monospace; }
.fit-modules { display: grid; gap: 14px; align-content: start; }
.fit-group-title { margin-bottom: 4px; color: var(--red); font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.fit-item { display: flex; align-items: center; gap: 9px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.fit-item img, .fit-item i { width: 22px; height: 22px; flex: none; background: #11151a; border: 1px solid var(--line); }
.fit-item span { flex: 1; }
.fit-item em { color: var(--dim); font: normal 10px "IBM Plex Mono", monospace; }
.fit-error { margin: 12px 16px; color: var(--red-bright); font-size: 11px; }
.push-status { min-height: 18px; margin: 4px 16px 14px; color: var(--muted); font-size: 11px; }
.push-status.ok { color: #7da184; }
.push-status.err { color: var(--red-bright); }
.button:disabled { opacity: .55; cursor: default; }
.primary-btn { border-color: #6c3331; background: #1b1212; }
.primary-btn:hover { border-color: var(--red-bright); background: #231515; }

/* Denied */
.denied { max-width: 590px; padding: 95px 0; }
.denied-code { color: var(--red); font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.denied h1 { margin: 8px 0 10px; font: 600 42px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.denied p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.denied .button { background: transparent; }

footer { max-width: var(--max); margin: 0 auto; padding: 19px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #4f555a; font: 9px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }

@media (max-width: 700px) {
    .topbar { height: auto; }
    .topbar-inner { padding: 8px 14px; gap: 8px 16px; flex-wrap: wrap; }
    nav { order: 3; width: 100%; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
    .account { margin-left: auto; }
    .brand { min-width: 0; }
    .brand img { height: 40px; }
    .brand-name { font-size: 15px; }
    nav { gap: 12px; }
    .account span, .quiet-link { display: none; }
    .shell { padding: 0 14px 50px; }
    .landing { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding: 65px 0 55px; }
    .landing-mark { justify-content: flex-start; }
    .landing-mark img { width: 120px; }
    .landing h1 { font-size: 54px; }
    .landing-links, .dashboard-grid, .calculator { grid-template-columns: 1fr; }
    .landing-links > a, .landing-note { min-height: 0; padding: 19px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .landing-links > a:last-of-type, .landing-note { padding-left: 0; }
    .landing-note { border-bottom: 0; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .feature-panel { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .feature-panel:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .feature-panel:last-child { border-bottom: 0; }
    .member-id { display: none; }
    .guide-row { grid-template-columns: 88px 1fr 12px; gap: 11px; }
    .guide-thumb { height: 60px; }
    .doctrine-row { grid-template-columns: 1fr 12px; }
    .doctrine-row .link-index, .doctrine-counts { display: none; }
    .skill-list { columns: 1; }
    .fit-layout { grid-template-columns: 1fr; }
    .fit-card > header { flex-direction: column; align-items: flex-start; }
    .guide-info p { display: none; }
    .article-header h1 { font-size: 36px; }
    .calc-form { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .quote { padding: 22px 0; }
    .quote-total { font-size: 42px; }
    footer { margin: 0 14px; padding-left: 0; padding-right: 0; }
}

/* SpecOps */
.specops-auth { max-width: 560px; padding: 90px 0 100px; }
.specops-auth h1 { margin: 9px 0 9px; font: 600 43px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .025em; }
.specops-auth > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 12px; }
.specops-form { margin-top: 31px; max-width: 430px; }
.specops-form label { display: block; }
.specops-form label > span { display: block; margin-bottom: 7px; color: #aaaeb1; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; }
.specops-form input[type=password] { width: 100%; padding: 11px 12px; border: 1px solid #30363d; outline: 0; background: #0a0d10; color: var(--text); font: 13px "IBM Plex Mono", monospace; }
.specops-form input[type=password]:focus { border-color: #555e67; }
.specops-form .primary { width: 100%; margin-top: 11px; }
.specops-error { margin-top: 10px; color: var(--red-bright); font-size: 11px; }
.specops-note { margin-top: 43px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 430px; }
.specops-note > span { color: var(--red); font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.specops-note p { margin: 8px 0 0; color: var(--dim); font-size: 10px; line-height: 1.6; }
.specops-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.specops-card { display: block; min-height: 170px; padding: 25px; border-right: 1px solid var(--line); }
.specops-card:last-child { border-right: 0; }
.specops-card:hover { background: var(--panel); }
.specops-card h2 { margin: 8px 0 5px; font: 600 29px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.specops-card p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

@media (max-width: 700px) {
    .specops-grid { grid-template-columns: 1fr; }
    .specops-card { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .specops-card:last-child { border-bottom: 0; }
}