/* Layout: a narrow reading column over a dark "station window" ground; tables may run wider than the column.
   Palette: Gallente teal on blue-black neutrals, with a light theme for daytime reading. */
:root {
  --flag-red: #4c0000; --flag-red-deep: #230000; --flag-black: #0a0608;
  --flag-gold: #c5a368; --flag-gold-light: #e4bc77; --flag-cream: #f3e8d0;
  /* Dark (default): near-black with the flag's warm cast, cream text, teal links. */
  --bg: #0e0b0d;
  --bg-2: #161215;
  --bg-3: #1f1a1d;
  --fg: #ece3d7;
  --fg-2: #a89d93;
  --line: #2d2629;
  --accent: #4cc7ae;
  --accent-ink: #0e0b0d;
  --good: #5fc77f;
  --warn: #e2aa4c;
  --bad: #e36868;
  --gold-text: #e4bc77;                    /* gold that reads on this theme's surfaces */
  --band-uk: #1fa189; --band-us: #bd8a22;  /* prime-time ribbon, validated for colour vision on each theme */
  --show-sun: block; --show-moon: none;   /* header toggle shows the theme you can switch to */
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f2ed; --bg-2: #ffffff; --bg-3: #ece7df; --fg: #1b1618; --fg-2: #5c544f; --line: #ddd5cb;
    --accent: #11836f; --accent-ink: #ffffff; --good: #1f8a48; --warn: #a86a0c; --bad: #b83737;
    --gold-text: #8a6420; --band-uk: #0c9078; --band-us: #b06a05;
    --show-sun: none; --show-moon: block;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f2ed; --bg-2: #ffffff; --bg-3: #ece7df; --fg: #1b1618; --fg-2: #5c544f; --line: #ddd5cb;
  --accent: #11836f; --accent-ink: #ffffff; --good: #1f8a48; --warn: #a86a0c; --bad: #b83737;
  --gold-text: #8a6420; --band-uk: #0c9078; --band-us: #b06a05;
  --show-sun: none; --show-moon: block;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.55 var(--font-body);
  display: flex; flex-direction: column; min-height: 100%;
}
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 16px; }
main.wrap { padding-block: 2rem 3rem; flex: 1; }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: 0.01em; }
h2 { font-size: 1.45rem; margin-top: 2.5rem; margin-bottom: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; max-width: 68ch; }
ul, ol { padding-left: 1.4rem; max-width: 68ch; }
li { margin-bottom: 0.35rem; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--fg-2); }
.small { font-size: 0.875rem; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--accent); }

/* Header and nav */
.site-head { border-top: 3px solid var(--flag-gold); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.8rem; }
.brand { font-family: var(--font-display); font-weight: 700; text-decoration: none; color: var(--fg); font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; object-fit: cover; transform: scale(1.06); clip-path: circle(47%); }
.brand .ticker { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.1em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.85rem; margin-left: auto; }
.nav a { color: var(--fg-2); text-decoration: none; font-size: 0.95rem; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
/* Alliance mark: sits between the brand and the nav. Dropped on a phone; the answers and footer still name the alliance. */
.ally { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--fg-2); font-size: 0.9rem; padding-left: 1.5rem; border-left: 1px solid var(--line); line-height: 1.2; }
.ally img { width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%; background: var(--bg-3); }
.ally .ticker { color: var(--gold-text); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; }
.ally:hover { color: var(--fg); }
@media (max-width: 1320px) { .ally { display: none; } }   /* the alliance mark goes first when the signed-in nav needs the room */

/* Hero */
.hero { display: grid; gap: 1rem; padding-block: 1rem 0.5rem; max-width: 60ch; }
/* Flag banner: the logo's own gold band (rows 34%–65% of the image) continues across the page. */
.banner { width: 100%; max-width: 72rem; margin-inline: auto; background: linear-gradient(100deg, var(--flag-black) 0%, var(--flag-red-deep) 35%, var(--flag-red) 75%, #3a0000 100%); color: var(--flag-cream); color-scheme: dark; border-bottom: 3px solid var(--flag-gold); overflow: hidden; }
.banner .hero { padding-block: 2.5rem; }
.banner .eyebrow { color: var(--flag-gold-light); }
.banner h1 { color: #fff; }
.banner .hero p { color: var(--flag-cream); font-size: 0.95rem; }
.banner .btn { border-color: var(--flag-gold); color: var(--flag-cream); }
.banner .btn:hover { background: rgba(197,163,104,0.18); color: #fff; }
.banner .btn.primary { background: var(--flag-gold-light); color: var(--flag-black); border-color: var(--flag-gold-light); }
.banner .btn.primary:hover { background: #f0cc8a; color: var(--flag-black); }
.hero-with-logo { max-width: none; grid-template-columns: minmax(0, 68ch) auto; align-items: center; justify-content: space-between; gap: 2rem; }
.hero-text { display: grid; gap: 1rem; min-width: 0; position: relative; z-index: 1; }
.hero-logo-wrap { position: relative; justify-self: end; line-height: 0; }
.hero-logo-wrap::before { content: ""; position: absolute; top: 34.4%; height: 31.2%; right: 50%; width: 100vw;
  background: linear-gradient(90deg, rgba(228,188,119,0) 0%, rgba(228,188,119,0) 30%, rgba(228,188,119,0.5) 70%, rgba(228,188,119,0.83) 100%); }
.hero-logo { position: relative; width: clamp(9rem, 22vw, 15rem); height: auto; filter: drop-shadow(0 0.5rem 1.5rem rgba(0,0,0,0.5)); }
@media (max-width: 760px) {
  .hero-with-logo { grid-template-columns: 1fr; }
  .hero-logo-wrap { order: -1; justify-self: center; }
  .hero-logo { width: 9rem; }
  .hero-logo-wrap::before { right: auto; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(228,188,119,0) 0%, rgba(228,188,119,0.83) 35%, rgba(228,188,119,0.83) 65%, rgba(228,188,119,0) 100%); }
}
.hero p { font-size: 1.1rem; color: var(--fg-2); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; padding: 0.55rem 1.05rem; border-radius: 4px; font-family: var(--font-display); font-weight: 600;
  text-decoration: none; border: 1px solid var(--accent); color: var(--accent); background: transparent; cursor: pointer; font-size: 0.95rem;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.btn.is-done { border-color: var(--good); color: var(--good); }

/* Straight answers on the home page: question on the left, answer on the right, two cards per row. */
.answers { margin-block: 2rem; }
.answers h2 { margin: 0 0 1rem; border-top: 0; padding-top: 0; }
.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.answer { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 1rem; align-items: start; background: var(--bg-2); border: 1px solid var(--line); padding: 1rem 1.25rem; min-width: 0; }
.answer.span { grid-column: 1 / -1; }
.answer h3 { margin: 0; font-size: 1.05rem; }
.answer p { margin: 0; color: var(--fg-2); font-size: 0.95rem; max-width: none; }
.answer h3 + p { margin-top: 0.4rem; font-size: 0.9rem; }
@media (max-width: 900px) { .answer-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .answer { grid-template-columns: 1fr; gap: 0.4rem; } .answer h3 + p { margin-top: 0; } }

/* Prime-time ribbon: a 24 hour bar in EVE time with the two evening bands and a marker at "now". */
.ribbon { display: grid; gap: 0.6rem; min-width: 0; }
.ribbon-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 0.75rem; }
.ribbon-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--fg-2); }
.ribbon-head b { font-family: var(--font-mono); font-weight: 400; color: var(--fg); }
.ribbon-bar { position: relative; height: 2.1rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.ribbon-bar > span { position: absolute; top: 0; bottom: 0; }
.ribbon .uk { background: var(--band-uk); }
.ribbon .us { background: var(--band-us); }
.ribbon .both { background: repeating-linear-gradient(135deg, var(--band-uk) 0 5px, var(--band-us) 5px 10px); }
.ribbon-now { width: 2px; margin-left: -1px; background: var(--fg); }
.ribbon-now::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--fg); }
.ribbon-axis { display: flex; justify-content: space-between; font: 0.7rem var(--font-mono); color: var(--fg-2); padding-inline: 1px; }
.ribbon-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.85rem; color: var(--fg-2); }
.ribbon-key span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ribbon-key i { width: 0.75rem; height: 0.75rem; border-radius: 2px; display: inline-block; flex: none; }

/* Tables */
.table-wrap { overflow-x: auto; margin-block: 0.75rem 1.25rem; border: 1px solid var(--line); background: var(--bg-2); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { padding: 0.5rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-2); background: var(--bg-3); white-space: normal; vertical-align: bottom; }
td.wrap-cell, th.wrap-cell { white-space: normal; min-width: 14rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 0.88rem; }
tr:last-child td { border-bottom: 0; }
td.empty { color: var(--fg-2); text-align: center; }
.pos { color: var(--good); } .neg { color: var(--bad); } .warnc { color: var(--warn); }
.stamp { font-size: 0.8rem; color: var(--fg-2); margin-top: -0.75rem; margin-bottom: 1.25rem; }

/* Code blocks and copy buttons */
.template { margin-block: 0.75rem 1.5rem; }
.template-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.template-head h3 { margin: 0; }
pre {
  margin: 0; background: var(--bg-2); border: 1px solid var(--line); padding: 0.8rem 1rem; overflow-x: auto;
  font: 0.78rem/1.5 var(--font-mono); color: var(--fg-2); max-height: 7.5rem;
}
.btn.copy { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

/* Kill feed */
.kills { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.kill { display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.25rem 0.9rem; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-left-width: 3px; padding: 0.6rem 0.9rem; min-width: 0; }
.kill.loss { border-left-color: var(--bad); }
.kill.win  { border-left-color: var(--good); }
.kill .pics { display: flex; gap: 2px; line-height: 0; }
.kill .pic { width: 3rem; height: 3rem; object-fit: cover; background: var(--bg-3); border: 1px solid var(--line); }
.kill .pic.portrait { border-radius: 3px; }
/* zKill-style: the victim's ship and pilot are outlined red on a loss, green on a kill. */
.kill.loss .victim-pics .pic { border: 2px solid var(--bad); box-shadow: 0 0 0.5rem color-mix(in srgb, var(--bad) 45%, transparent); }
.kill.win  .victim-pics .pic { border: 2px solid var(--good); box-shadow: 0 0 0.5rem color-mix(in srgb, var(--good) 45%, transparent); }
.kill .fb-pics .pic { width: 2.25rem; height: 2.25rem; opacity: 0.85; }
.kill .what { min-width: 0; overflow-wrap: anywhere; }
.kill { position: relative; }
.kill .what a { color: var(--fg); text-decoration: none; font-weight: 600; }
/* Stretch the one link over the whole card, so the row opens the killmail on zKillboard. */
.kill .what a::after { content: ""; position: absolute; inset: 0; }
.kill:hover { border-color: var(--accent); background: var(--bg-3); }
.kill:hover .what a { color: var(--accent); }
.kill:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.kill .what a:focus-visible { outline: none; }
.kill .what a::after { cursor: pointer; }
.kill .meta { color: var(--fg-2); font-size: 0.85rem; }
.kill .value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .kill { grid-template-columns: auto 1fr; }
  .kill .victim-pics { grid-column: 1; grid-row: 1; }
  .kill .what { grid-column: 2; grid-row: 1 / 3; }
  .kill .fb-pics { grid-column: 1; grid-row: 2; }
  .kill .value { grid-column: 2; grid-row: 3; text-align: left; }
}

/* Inputs */
input[type="number"] { font: inherit; font-family: var(--font-mono); font-size: 0.88rem; width: 7rem; padding: 0.25rem 0.4rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 3px; text-align: right; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--fg-2); font-size: 0.8rem; }
.site-foot .wrap { padding-block: 1.25rem; display: grid; gap: 0.5rem; }
.site-foot p { margin: 0; max-width: none; }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--bg-2); padding: 0.75rem 1rem; margin-block: 1rem; max-width: 68ch; }
.notice p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color 120ms, color 120ms, border-color 120ms; } }

/* Theme toggle: sun in dark mode, moon in light mode, i.e. the theme a click gives you. */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg-2); cursor: pointer; }
.theme-toggle:hover { color: var(--fg); border-color: var(--accent); }
.theme-toggle .sun { display: var(--show-sun); }
.theme-toggle .moon { display: var(--show-moon); }

/* Members area */
.nav .account { margin-left: auto; border: 1px solid var(--line); border-radius: 3px; padding: 0.15rem 0.6rem; }
.nav .account.is-signed-in { border-color: var(--accent); color: var(--fg); display: inline-flex; align-items: center; gap: 0.4rem; padding-block: 0.1rem; }
.nav .account img { width: 1.5rem; height: 1.5rem; border-radius: 50%; box-shadow: 0 0 0 1px var(--flag-gold); }
.sso { margin-block: 1.5rem; }
.sso img { max-width: 100%; height: auto; }
.notice-line { padding: 0.6rem 0.9rem; border-left: 3px solid var(--warn); background: var(--bg-2); }

/* Anything marked hidden stays hidden even when a class sets display. */
[hidden] { display: none !important; }

/* Join steps */
.join { margin-block: 2.5rem 1rem; }
.join h2 { margin-bottom: 1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; background: var(--bg-2); border: 1px solid var(--line); padding: 1rem 1.1rem; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--flag-gold); }
.steps p { margin: 0; }
.join .after { margin-top: 1rem; color: var(--fg-2); max-width: 60ch; }

/* Closing lines and the three contact cards */
.join-foot { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.join-foot .after { margin-top: 0; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.contact { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); padding: 0.75rem 1.1rem 0.75rem 0.75rem; min-width: 0; }
.contact:hover { border-color: var(--flag-gold); }
.contact img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--flag-gold); }
.contact-text { display: grid; line-height: 1.3; min-width: 0; }
.contact-text strong { font-family: var(--font-display); font-size: 1.1rem; }
.contact-text > span { color: var(--fg-2); font-size: 0.9rem; }

.join, .steps, .join-foot, .contacts { max-width: none; }

/* Members landing, pulse and project panels. One card style, used by role rather than everywhere. */
.card { background: var(--bg-2); border: 1px solid var(--line); padding: 1rem 1.1rem; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.card h2, .card h3 { margin: 0; font-size: 1.1rem; border: 0; padding: 0; }
.card p { margin: 0; color: var(--fg-2); font-size: 0.95rem; max-width: none; }
.card.acc { border-left: 3px solid var(--accent); }
.card.gold { border-left: 3px solid var(--flag-gold); }
.card.warn { border-left: 3px solid var(--warn); }
.card.sunk { background: var(--bg); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--accent); }
.card .foot { margin-top: auto; }
.card .sub { color: var(--fg-2); font-size: 0.85rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.stack { display: grid; gap: 1.5rem; align-content: start; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); white-space: nowrap; }
.chip.teal { border-color: var(--accent); color: var(--accent); }
.chip.gold { border-color: var(--gold-text); color: var(--gold-text); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.kpi { display: grid; gap: 0.15rem; }
.kpi .lbl { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.kpi b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 1rem; font-weight: 400; color: var(--fg-2); }
.kpi .sub { color: var(--fg-2); font-size: 0.85rem; }
.kpi.warn b { color: var(--warn); }
.bar { height: 0.5rem; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar.thick { height: 0.75rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.btn.sm { padding: 0.35rem 0.8rem; font-size: 0.85rem; }
.btn.quiet { border-color: var(--line); color: var(--fg-2); }
.btn.quiet:hover { color: var(--fg); border-color: var(--accent); }
.btn.is-on { background: var(--bg-3); color: var(--fg); border-color: var(--line); }

/* Members landing: greeting row */
.greet { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.greet-who { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.greet-who img { width: 4rem; height: 4rem; border-radius: 50%; box-shadow: 0 0 0 2px var(--flag-gold); flex: none; }
.greet-who h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.greet-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; color: var(--fg-2); font-size: 0.9rem; margin-top: 0.3rem; }

/* Project progress rows (members landing and buyback) */
.projects { display: grid; gap: 0.75rem; }
.project { display: grid; gap: 0.35rem; }
.project-row { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; font-size: 0.9rem; }
.project-row b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; margin-right: auto; }
.project-row .top { flex: none; width: 22px; height: 22px; line-height: 0; }
.project-row .top img { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.project-row .top:hover img { border-color: var(--accent); }
.project .sub { font-size: 0.8rem; color: var(--fg-2); }
.project.done { opacity: 0.6; }
.project.done .bar i { background: var(--fg-2); }
.projects-done { display: grid; gap: 0.75rem; margin-top: 0.25rem; }
.projects-done summary { cursor: pointer; font-size: 0.85rem; color: var(--fg-2); }
.projects-done summary:hover { color: var(--fg); }

/* Accounts page (directors): one card per EVE account */
.acct { display: grid; gap: 0.6rem; align-content: start; }
.acct-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.acct-head h2 { font-size: 1rem; }
.acct-rows { display: grid; gap: 0.5rem; }
.acct-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.45rem 0.6rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 3px; font-size: 0.9rem; }
.acct-row img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.acct-row .who { display: grid; gap: 0.1rem; min-width: 0; }
.acct-row .who b { overflow-wrap: anywhere; }
.acct-row .who .sub { font-size: 0.8rem; color: var(--fg-2); }
.acct-row .when { text-align: right; font-size: 0.8rem; color: var(--fg-2); white-space: nowrap; }
@media (max-width: 560px) { .acct-row { grid-template-columns: auto minmax(0, 1fr); } .acct-row .when { grid-column: 2; text-align: left; } }

/* Connected characters */
.conn { display: flex; align-items: center; gap: 0.6rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 3px; padding: 0.6rem 0.75rem; }
.conn img { width: 2.25rem; height: 2.25rem; border-radius: 50%; flex: none; }
.conn .who { display: grid; min-width: 0; flex: 1; }
.conn .who b { font-size: 0.9rem; }
.conn .who span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-list { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--fg-2); }
.scope-list code { font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg); }

/* Pulse: band rows, weekly bars, people rows */
.rows { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem 0.75rem; align-items: center; font-size: 0.9rem; }
.rows .n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.weeks { display: flex; gap: 0.4rem; align-items: flex-end; border-bottom: 1px solid var(--line); min-height: 8.5rem; }
.week { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-width: 0; }
.week .bars { display: flex; align-items: flex-end; gap: 2px; height: 7.5rem; position: relative; }
.week .bars i { display: block; width: 0.6rem; border-radius: 4px 4px 0 0; min-height: 0; position: relative; }
.week .bars i.k { background: var(--band-uk); }
.week .bars i.l { background: var(--band-us); }
.week .bars i[data-v]::after { content: attr(data-v); position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font: 0.7rem var(--font-mono); color: var(--fg); }
.week .lab { font: 0.7rem var(--font-mono); color: var(--fg-2); }
.key { display: flex; gap: 0.8rem; font-size: 0.8rem; color: var(--fg-2); white-space: nowrap; }
.key span { display: inline-flex; align-items: center; gap: 0.3rem; }
.key i { width: 0.65rem; height: 0.65rem; border-radius: 2px; display: inline-block; }
.key i.k { background: var(--band-uk); } .key i.l { background: var(--band-us); }
.pf { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.pf img { width: 2rem; height: 2rem; border-radius: 50%; flex: none; }
.pf .who { flex: 1; min-width: 0; display: grid; }
.pf .who .sub { font-size: 0.8rem; }
.pf b { font-weight: 600; }
.empty { color: var(--fg-2); font-size: 0.9rem; }
.msg { padding: 0.6rem 0.9rem; border-left: 3px solid var(--accent); background: var(--bg-2); font-size: 0.95rem; }
.msg.bad { border-left-color: var(--bad); }
