/*
 * AI Hub v2.0 interface: site chrome (header, footer, page header) and the
 * homepage. Loaded after Bootstrap/imports.css, so rules here are scoped to
 * hub-* classes and set their own type, spacing and color.
 */
:root {
    --hub-navy: oklch(0.2 0.06 245);
    --hub-navy-2: oklch(0.25 0.06 245);
    --hub-navy-3: oklch(0.28 0.06 245);
    --hub-navy-line: oklch(0.33 0.06 245);
    --hub-navy-line-2: oklch(0.42 0.06 245);
    --hub-ink: oklch(0.22 0.04 245);
    --hub-ink-2: oklch(0.3 0.04 245);
    --hub-bg: oklch(0.975 0.006 230);
    --hub-surface: #fff;
    --hub-line: oklch(0.9 0.01 240);
    --hub-line-2: oklch(0.88 0.01 240);
    --hub-line-soft: oklch(0.94 0.01 240);
    --hub-muted: oklch(0.5 0.02 240);
    --hub-muted-2: oklch(0.48 0.04 245);
    --hub-muted-3: oklch(0.55 0.02 240);
    --hub-on-navy: oklch(0.82 0.02 240);
    --hub-on-navy-2: oklch(0.75 0.03 240);
    --hub-on-navy-3: oklch(0.68 0.03 240);
    --hub-green: oklch(0.62 0.19 145);
    --hub-green-hi: oklch(0.68 0.19 145);
    --hub-green-text: oklch(0.75 0.19 145);
    --hub-green-deep: oklch(0.15 0.05 145);
    --hub-green-ink: oklch(0.42 0.16 145);
    --hub-green-bg: oklch(0.94 0.06 145);
    --hub-blue: oklch(0.62 0.16 240);
    --hub-blue-ink: oklch(0.48 0.13 240);
    --hub-blue-bg: oklch(0.94 0.04 240);
    --hub-orange: oklch(0.68 0.19 30);
    --hub-red-ink: oklch(0.5 0.18 28);
    --hub-red-bg: oklch(0.94 0.05 30);
    --hub-yellow: oklch(0.8 0.16 75);
    --hub-link: oklch(0.5 0.14 235);
    --hub-link-hover: oklch(0.4 0.14 235);
    --hub-font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --hub-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --hub-wrap: 1280px;
}

/* ------------------------------------------------------------------ */
/* Site-wide                                                           */
/* ------------------------------------------------------------------ */
body.hub-body {
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    background: var(--hub-bg);
    color: var(--hub-ink);
    font-family: var(--hub-font);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.hub-body > .hub-main { flex: 1 0 auto; }
/* Keep in-page anchor targets clear of the sticky header. */
.hub-main [id] { scroll-margin-top: 76px; }
/* Components below set their own display; the hidden attribute must still win. */
.hub-body [hidden] { display: none !important; }
body.hub-body h1, body.hub-body h2, body.hub-body h3, body.hub-body h4,
body.hub-body .btn, body.hub-body input, body.hub-body select, body.hub-body textarea { font-family: var(--hub-font); }

.hub-wrap {
    max-width: var(--hub-wrap);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}
.hub-mono { font-family: var(--hub-mono); }
.hub-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hub-skip {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    background: #fff; color: var(--hub-ink); padding: 8px 12px; border-radius: 6px;
}
.hub-skip:focus { top: 12px; }

/* ---- Header ---- */
.hub-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--hub-navy);
    color: #fff;
    border-bottom: 1px solid var(--hub-navy-3);
}
.hub-header__bar {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.hub-logo { display: flex; align-items: center; flex: none; }
.hub-logo img { height: 38px; width: auto; display: block; }
.hub-header__menus { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; }
.hub-nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.hub-nav a, .hub-header__link {
    color: var(--hub-on-navy);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.hub-nav a:hover, .hub-nav a:focus, .hub-header__link:hover, .hub-header__link:focus {
    background: var(--hub-navy-3);
    color: #fff;
    text-decoration: none;
}
.hub-nav a.is-active { color: #fff; font-weight: 600; }
.hub-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hub-header__link { color: #fff; }
.hub-btn-signup {
    background: var(--hub-green);
    color: var(--hub-green-deep);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.hub-btn-signup:hover, .hub-btn-signup:focus { background: var(--hub-green-hi); color: var(--hub-green-deep); text-decoration: none; }
.hub-admin-toggle {
    border: 1px solid var(--hub-navy-line-2);
    background: transparent;
    color: oklch(0.8 0.03 240);
    font: 500 12px var(--hub-mono);
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.hub-admin-toggle[aria-pressed="true"] { background: var(--hub-orange); border-color: var(--hub-orange); color: #fff; }

.hub-burger {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--hub-navy-line-2);
    color: #fff;
    border-radius: 6px;
    width: 40px;
    height: 36px;
    cursor: pointer;
    padding: 0;
}
.hub-burger__icon, .hub-burger__icon::before, .hub-burger__icon::after {
    display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 1px;
}
.hub-burger__icon::before, .hub-burger__icon::after { content: ''; position: absolute; left: 0; }
.hub-burger__icon::before { top: -6px; }
.hub-burger__icon::after { top: 6px; }

/* User menu */
.hub-usermenu { position: relative; }
.hub-usermenu__button {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: 0; color: #fff; cursor: pointer;
    font: 500 14px var(--hub-font); padding: 6px 10px; border-radius: 6px;
}
.hub-usermenu__button:hover, .hub-usermenu__button[aria-expanded="true"] { background: var(--hub-navy-3); }
.hub-avatar {
    width: 28px; height: 28px; border-radius: 6px; flex: none;
    background: var(--hub-green); color: var(--hub-green-deep);
    display: inline-flex; align-items: center; justify-content: center;
    font: 600 11px var(--hub-mono);
}
.hub-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.7; }
.hub-usermenu__list {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
    background: #fff; color: var(--hub-ink); border: 1px solid var(--hub-line); border-radius: 10px;
    box-shadow: 0 12px 32px oklch(0.2 0.06 245 / 0.18); padding: 6px; margin: 0; list-style: none; z-index: 1040;
}
.hub-usermenu__list[hidden] { display: none; }
.hub-usermenu__list a {
    display: block; padding: 8px 12px; border-radius: 6px; color: var(--hub-ink); font-size: 14px; text-decoration: none;
}
.hub-usermenu__list a:hover, .hub-usermenu__list a:focus { background: var(--hub-bg); text-decoration: none; color: var(--hub-ink); }
.hub-usermenu__list .hub-divider { height: 1px; background: var(--hub-line-soft); margin: 6px 4px; }
.hub-usermenu__who { padding: 8px 12px 6px; font-size: 12px; color: var(--hub-muted); }

/* ---- Page header on inner pages ---- */
.hub-pagehead {
    background: var(--hub-navy);
    color: #fff;
    position: relative;
    margin: 0 0 32px;
    padding: 32px 0 38px;
    border: 0;
}
.hub-pagehead h1 { color: #fff; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.hub-stripe {
    position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.hub-stripe > span:nth-child(1) { background: var(--hub-green); }
.hub-stripe > span:nth-child(2) { background: var(--hub-blue); }
.hub-stripe > span:nth-child(3) { background: var(--hub-orange); }
.hub-stripe > span:nth-child(4) { background: var(--hub-yellow); }

/* ---- Footer ---- */
footer.hub-footer {
    height: auto;
    margin-top: 96px;
    background: var(--hub-navy);
    color: var(--hub-on-navy-2);
    border-top: 6px solid var(--hub-green);
    font-size: 13px;
    flex: none;
}
footer.hub-footer a { color: #fff; }
.hub-footer__inner {
    padding-top: 28px; padding-bottom: 28px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hub-footer__brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hub-footer__brand img { height: 28px; width: auto; display: block; }
.hub-footer__brand > div { display: flex; flex-direction: column; gap: 2px; }
.hub-footer__managed { color: oklch(0.65 0.03 240); }
.hub-footer__links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* ---- Buttons shared by homepage & inner hub pages ---- */
.hub-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid var(--hub-ink); background: var(--hub-ink); color: #fff;
    font: 600 13px var(--hub-font); line-height: 18px; padding: 7px 14px; border-radius: 6px;
    cursor: pointer; text-decoration: none; white-space: nowrap;
}
.hub-btn:hover, .hub-btn:focus { color: #fff; text-decoration: none; background: var(--hub-ink-2); }
.hub-btn--outline { background: #fff; color: var(--hub-ink); border-color: oklch(0.85 0.01 240); }
.hub-btn--outline:hover, .hub-btn--outline:focus { background: var(--hub-bg); color: var(--hub-ink); }
.hub-btn--done { background: #fff; color: var(--hub-green-ink); border-color: oklch(0.75 0.1 150); }
.hub-btn--done:hover, .hub-btn--done:focus { background: oklch(0.97 0.03 150); color: var(--hub-green-ink); }
.hub-btn--pending { background: #fff; color: var(--hub-blue-ink); border-color: oklch(0.8 0.06 240); }
.hub-btn--pending:hover, .hub-btn--pending:focus { background: var(--hub-blue-bg); color: var(--hub-blue-ink); }
.hub-btn--green { background: var(--hub-green); border-color: var(--hub-green); color: var(--hub-green-deep); }
.hub-btn--green:hover, .hub-btn--green:focus { background: var(--hub-green-hi); border-color: var(--hub-green-hi); color: var(--hub-green-deep); }
.hub-btn--lg { font-size: 15px; padding: 12px 20px; border-radius: 8px; }
.hub-btn--ghost-dark { background: transparent; border-color: var(--hub-navy-line-2); color: #fff; font-weight: 500; }
.hub-btn--ghost-dark:hover, .hub-btn--ghost-dark:focus { background: oklch(0.26 0.06 245); color: #fff; }
.hub-btn--block { width: 100%; }

.hub-link { color: var(--hub-link); text-decoration: none; font-weight: 500; }
.hub-link:hover, .hub-link:focus { color: var(--hub-link-hover); text-decoration: underline; }

.hub-tag {
    display: inline-block;
    font: 500 11px var(--hub-mono);
    line-height: 16px;
    color: oklch(0.42 0.04 245);
    background: oklch(0.95 0.01 240);
    border-radius: 4px;
    padding: 3px 7px;
}
.hub-badge {
    display: inline-block;
    font: 600 10px var(--hub-mono);
    letter-spacing: 0.08em;
    padding: 4px 7px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 12px;
}
.hub-badge--live { background: var(--hub-green-bg); color: var(--hub-green-ink); }
.hub-badge--soon { background: var(--hub-red-bg); color: var(--hub-red-ink); }
.hub-badge--upcoming { background: var(--hub-blue-bg); color: var(--hub-blue-ink); }
.hub-badge--ended { background: oklch(0.94 0.01 240); color: var(--hub-muted); }
.hub-badge--dark { background: var(--hub-navy); color: var(--hub-green-text); }

.hub-panel {
    position: relative; /* contains absolutely positioned .hub-sr labels inside scrolling tables */
    background: #fff;
    border: 1px solid var(--hub-line);
    border-radius: 10px;
    overflow: hidden;
}
.hub-empty {
    border: 1px dashed oklch(0.82 0.01 240);
    border-radius: 10px;
    padding: 40px 24px;
    text-align: center;
    color: var(--hub-muted);
    font-size: 15px;
}
.hub-tabs { display: flex; border-bottom: 1px solid var(--hub-line-2); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tab {
    border: 0; background: transparent; padding: 12px 18px; margin-bottom: -1px;
    border-bottom: 2px solid transparent; cursor: pointer; display: flex; gap: 8px; align-items: center;
    font: 600 14px var(--hub-font); color: var(--hub-muted); white-space: nowrap; text-decoration: none;
}
.hub-tab:hover, .hub-tab:focus { color: var(--hub-ink); text-decoration: none; }
.hub-tab[aria-selected="true"], .hub-tab.is-active { color: var(--hub-ink); border-bottom-color: var(--hub-ink); }
.hub-tab__count {
    font: 500 11px var(--hub-mono); background: oklch(0.93 0.01 240); color: oklch(0.4 0.04 245);
    border-radius: 4px; padding: 2px 6px;
}
.hub-tabs--small { padding: 0 20px; margin-top: 10px; border-bottom-color: oklch(0.92 0.01 240); }
.hub-tabs--small .hub-tab { font-weight: 500; font-size: 13px; padding: 8px 0; margin-right: 18px; }

/* ------------------------------------------------------------------ */
/* Homepage                                                            */
/* ------------------------------------------------------------------ */
.hub-hero { background: var(--hub-navy); color: #fff; position: relative; }
.hub-hero__inner {
    padding-top: 64px; padding-bottom: 80px;
    display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hub-hero__copy { flex: 1 1 480px; min-width: 0; }
.hub-kicker {
    display: flex; align-items: center; gap: 8px;
    font: 500 12px var(--hub-mono); letter-spacing: 0.08em; color: var(--hub-green-text); text-transform: uppercase;
}
.hub-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: oklch(0.7 0.2 145);
    box-shadow: 0 0 0 4px oklch(0.7 0.2 145 / 0.2); flex: none;
}
.hub-hero h1 {
    font-size: 60px; line-height: 1.02; font-weight: 700; letter-spacing: -0.03em;
    margin: 24px 0 20px; text-wrap: balance; color: #fff;
}
.hub-hero h1 em { font-style: normal; color: var(--hub-green-text); }
.hub-hero__lead {
    font-size: 18px; line-height: 1.55; color: var(--hub-on-navy); margin: 0 0 32px; max-width: 540px; text-wrap: pretty;
}
.hub-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hub-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hub-stat { border-left: 3px solid var(--hub-green); padding-left: 14px; }
.hub-stat:nth-child(2) { border-left-color: var(--hub-blue); }
.hub-stat:nth-child(3) { border-left-color: var(--hub-yellow); }
.hub-stat__value { font: 600 28px var(--hub-mono); letter-spacing: -0.02em; line-height: 1.2; }
.hub-stat__label { font-size: 13px; color: var(--hub-on-navy-2); margin-top: 4px; }

.hub-feature {
    flex: 1 1 440px; min-width: 0;
    background: var(--hub-navy-2); border: 1px solid var(--hub-navy-line); border-radius: 12px; overflow: hidden;
}
.hub-feature__head {
    padding: 18px 24px; border-bottom: 1px solid var(--hub-navy-line);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.hub-feature__label { font: 500 11px var(--hub-mono); letter-spacing: 0.1em; color: var(--hub-green-text); }
.hub-feature__org { font-size: 12px; color: var(--hub-on-navy-2); text-align: right; }
.hub-feature__body { padding: 24px; }
.hub-feature__title { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: #fff; display: block; }
.hub-feature__title:hover, .hub-feature__title:focus { color: #fff; text-decoration: underline; }
.hub-feature__tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hub-feature__tags .hub-tag { color: oklch(0.85 0.02 240); background: transparent; border: 1px solid oklch(0.4 0.06 245); padding: 2px 7px; }
.hub-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
.hub-clock__cell { background: var(--hub-navy); border-radius: 8px; padding: 12px 8px; text-align: center; }
.hub-clock__value { font: 600 32px var(--hub-mono); color: #fff; line-height: 1.15; }
.hub-clock__unit { font: 500 10px var(--hub-mono); letter-spacing: 0.1em; color: var(--hub-on-navy-3); margin-top: 2px; }
.hub-clock-note {
    margin-top: 24px; background: var(--hub-navy); border-radius: 8px; padding: 16px;
    font: 500 13px var(--hub-mono); color: var(--hub-on-navy-2); text-align: center;
}
.hub-lb-head {
    margin-top: 24px; display: flex; justify-content: space-between; gap: 12px;
    font: 500 11px var(--hub-mono); letter-spacing: 0.08em; color: var(--hub-on-navy-3); text-transform: uppercase;
}
.hub-lb { margin-top: 8px; display: flex; flex-direction: column; list-style: none; padding-left: 0; }
.hub-lb__row {
    display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
    padding: 9px 8px; border-top: 1px solid oklch(0.32 0.06 245); border-radius: 4px;
    transition: background-color 1.2s;
}
.hub-lb__row.is-new { background: oklch(0.7 0.2 145 / 0.12); transition: none; }
.hub-lb__rank { font: 600 13px var(--hub-mono); color: var(--hub-on-navy-3); }
.hub-lb__name { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-lb__score { font: 600 14px var(--hub-mono); color: #fff; text-align: right; }
.hub-lb__empty { padding: 16px 8px; border-top: 1px solid oklch(0.32 0.06 245); color: var(--hub-on-navy-2); font-size: 14px; }
.hub-feature .hub-btn { margin-top: 20px; }

.hub-notice { background: #fff; border-bottom: 1px solid var(--hub-line); }
.hub-notice__inner { padding-top: 16px; padding-bottom: 16px; font-size: 14px; line-height: 1.5; }
.hub-notice__inner p:last-child { margin-bottom: 0; }

/* Sponsors */
.hub-sponsors { background: #fff; border-bottom: 1px solid var(--hub-line); }
.hub-sponsors__inner { padding-top: 40px; padding-bottom: 36px; }
.hub-sponsors__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hub-sponsors__title { display: flex; align-items: center; gap: 12px; }
.hub-eyebrow { font: 500 12px var(--hub-mono); letter-spacing: 0.08em; color: var(--hub-muted); text-transform: uppercase; }
.hub-admin-chip {
    font: 500 11px var(--hub-mono); letter-spacing: 0.06em; color: oklch(0.45 0.16 30);
    background: oklch(0.95 0.04 30); border-radius: 4px; padding: 3px 8px;
}
.hub-tiers { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.hub-tier {
    display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
    padding-top: 20px; border-top: 1px solid oklch(0.93 0.01 240);
}
.hub-tier__label { display: flex; align-items: center; gap: 8px; font: 500 12px var(--hub-mono); letter-spacing: 0.06em; color: oklch(0.4 0.03 240); }
.hub-tier__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--hub-yellow); }
.hub-tier[data-tier="platinum"] .hub-tier__dot { background: var(--hub-blue); }
.hub-tier[data-tier="silver"] .hub-tier__dot { background: oklch(0.75 0.01 250); }
.hub-tier__items { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; min-height: 26px; }
.hub-sponsor { display: flex; align-items: center; gap: 10px; }
.hub-sponsor__logo {
    /* Fixed boxes per tier (v2.0.1) so wide and square logos line up. */
    height: 34px; width: 120px; object-fit: contain; object-position: left center; display: block;
    filter: grayscale(1); opacity: 0.75; transition: filter .2s, opacity .2s;
}
.hub-sponsor a:hover .hub-sponsor__logo, .hub-sponsor a:focus .hub-sponsor__logo, .hub-sponsor__logo:hover { filter: none; opacity: 1; }
.hub-tier[data-tier="platinum"] .hub-sponsor__logo { height: 44px; width: 160px; }
.hub-tier[data-tier="silver"] .hub-sponsor__logo { height: 26px; width: 90px; }
.hub-sponsor__word {
    display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
    border: 1px solid oklch(0.88 0.01 240); border-radius: 6px;
    font: 600 16px var(--hub-mono); letter-spacing: -0.01em; color: oklch(0.35 0.04 245); background: oklch(0.98 0.004 240);
}
.hub-tier[data-tier="platinum"] .hub-sponsor__word { height: 44px; font-size: 20px; }
.hub-tier[data-tier="silver"] .hub-sponsor__word { height: 26px; font-size: 13px; }
.hub-tier__empty { font-size: 13px; color: oklch(0.6 0.02 240); }
.hub-sponsor__tools { display: none; gap: 4px; align-items: center; }
.hub-admin-on .hub-sponsor__tools { display: flex; }
.hub-sponsor__tools select, .hub-sponsor__tools label, .hub-sponsor__tools button {
    font: 12px var(--hub-font); border: 1px solid oklch(0.85 0.01 240); border-radius: 5px; background: #fff;
    color: inherit; margin: 0; height: 24px; line-height: 22px;
}
.hub-sponsor__tools select { padding: 0 2px; }
.hub-sponsor__tools label { padding: 0 7px; cursor: pointer; font-weight: 400; }
.hub-sponsor__tools button { width: 24px; padding: 0; cursor: pointer; color: oklch(0.5 0.16 30); font-size: 14px; }
.hub-tier.is-empty { display: none; }
.hub-admin-on .hub-tier.is-empty { display: grid; }
.hub-sponsor-form {
    display: none; margin-top: 24px; padding: 16px 20px; background: var(--hub-bg);
    border: 1px dashed oklch(0.82 0.02 240); border-radius: 10px; gap: 10px; align-items: center; flex-wrap: wrap;
}
.hub-admin-on .hub-sponsor-form { display: flex; }
.hub-sponsor-form strong { font-size: 13px; margin-right: 6px; }
.hub-sponsor-form input[type="text"], .hub-sponsor-form input[type="url"], .hub-sponsor-form select, .hub-sponsor-form .hub-file {
    height: 36px; border: 1px solid oklch(0.85 0.01 240); border-radius: 6px; padding: 0 12px; font: 14px var(--hub-font);
    background: #fff; color: inherit; margin: 0; box-sizing: border-box;
}
.hub-sponsor-form input[type="text"] { flex: 1 1 180px; min-width: 0; }
.hub-sponsor-form input[type="url"] { flex: 1 1 160px; min-width: 0; }
.hub-file { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; max-width: 220px; }
.hub-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-file input, .hub-sponsor__tools input[type="file"] { display: none; }
.hub-sponsor-form__note { font-size: 12px; color: var(--hub-muted-3); flex-basis: 100%; }
.hub-sponsor-form__error { font-size: 13px; color: var(--hub-red-ink); flex-basis: 100%; }
.hub-sponsor-form__error:empty { display: none; }

/* Main grid */
.hub-main-grid {
    padding-top: 56px;
    display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start;
}
.hub-challenges { flex: 1 1 640px; min-width: 0; }
.hub-aside { flex: 1 1 300px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hub-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hub-h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.15; color: var(--hub-ink); }
.hub-h3 { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -0.01em; line-height: 1.2; color: var(--hub-ink); }
.hub-sub { margin: 6px 0 20px; color: var(--hub-muted-2); font-size: 14px; line-height: 1.5; }
.hub-search {
    display: flex; align-items: center; gap: 8px; border: 1px solid var(--hub-line-2); border-radius: 8px;
    background: #fff; padding: 0 12px; height: 40px; flex: 0 1 300px; box-sizing: border-box;
}
.hub-search:focus-within { border-color: var(--hub-link); box-shadow: 0 0 0 3px oklch(0.5 0.14 235 / 0.15); }
.hub-search kbd { font: 500 12px var(--hub-mono); color: var(--hub-muted-3); background: none; box-shadow: none; padding: 0; }
.hub-search input { border: 0; outline: 0; flex: 1; font: 14px var(--hub-font); background: transparent; min-width: 0; color: inherit; height: 38px; }
.hub-challenges .hub-tabs { margin-top: 24px; }
.hub-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hub-chip {
    border: 1px solid oklch(0.86 0.01 240); background: #fff; color: oklch(0.35 0.04 245);
    font: 500 13px var(--hub-font); padding: 6px 12px; border-radius: 999px; cursor: pointer; line-height: 18px;
}
.hub-chip:hover { border-color: var(--hub-ink); }
.hub-chip[aria-pressed="true"] { background: var(--hub-ink); border-color: var(--hub-ink); color: #fff; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 24px; }
.hub-card {
    background: #fff; border: 1px solid var(--hub-line); border-radius: 10px;
    display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s;
}
.hub-card:hover { border-color: oklch(0.7 0.08 150); }
.hub-card[hidden] { display: none; }
.hub-card__body { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.hub-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hub-card__org { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.hub-orgtile {
    width: 32px; height: 32px; flex: none; border-radius: 7px; color: #fff;
    display: flex; align-items: center; justify-content: center; font: 600 11px var(--hub-mono); overflow: hidden;
}
.hub-orgtile img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hub-card__orgname { font-size: 13px; color: var(--hub-muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.hub-card__title { font-size: 17px; font-weight: 600; line-height: 1.3; text-wrap: pretty; letter-spacing: -0.01em; color: var(--hub-ink); }
.hub-card__title:hover, .hub-card__title:focus { color: var(--hub-ink); text-decoration: underline; }
.hub-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hub-card__time { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.hub-card__timerow { display: flex; justify-content: space-between; font-size: 12px; color: var(--hub-muted); gap: 8px; }
.hub-card__timeval { font: 600 13px var(--hub-mono); color: var(--hub-ink); }
.hub-card.is-urgent .hub-card__timeval { color: oklch(0.58 0.19 28); }
.hub-bar { height: 3px; border-radius: 2px; background: oklch(0.93 0.01 240); }
.hub-bar > span { display: block; height: 3px; border-radius: 2px; background: var(--hub-green); }
.hub-card[data-status="upcoming"] .hub-bar > span { background: var(--hub-blue); }
.hub-card[data-status="ended"] .hub-bar > span { background: oklch(0.8 0.01 240); }
.hub-card.is-urgent .hub-bar > span { background: oklch(0.63 0.19 28); }
.hub-card__foot {
    border-top: 1px solid oklch(0.92 0.01 240); padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.hub-card__meta { display: flex; gap: 16px; font-size: 13px; color: oklch(0.45 0.04 245); min-width: 0; }
.hub-card__meta strong { font-family: var(--hub-mono); color: var(--hub-ink); font-weight: 600; }
.hub-card__prize { font-family: var(--hub-mono); color: var(--hub-ink); }
.hub-more { display: flex; justify-content: center; margin-top: 20px; gap: 12px; flex-wrap: wrap; }

/* Aside: activity + rankings */
.hub-panel__head {
    padding: 16px 20px; border-bottom: 1px solid oklch(0.92 0.01 240);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.hub-panel__title { font-weight: 600; font-size: 15px; margin: 0; }
.hub-live {
    display: flex; align-items: center; gap: 6px; font: 500 11px var(--hub-mono); color: oklch(0.45 0.16 145);
}
.hub-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: oklch(0.58 0.19 145); }
.hub-live.is-paused { color: var(--hub-muted); }
.hub-live.is-paused::before { background: var(--hub-muted); }
.hub-feed { list-style: none; margin: 0; padding: 0; }
.hub-feed__item {
    padding: 12px 20px; border-bottom: 1px solid var(--hub-line-soft);
    display: flex; gap: 12px; align-items: flex-start; transition: background-color 1.5s;
}
.hub-feed__item:last-child { border-bottom: 0; }
.hub-feed__item.is-new { background: oklch(0.97 0.03 150); transition: none; }
.hub-feed__avatar {
    width: 28px; height: 28px; flex: none; border-radius: 6px; background: oklch(0.93 0.02 240); color: oklch(0.35 0.06 245);
    display: flex; align-items: center; justify-content: center; font: 600 10px var(--hub-mono);
}
.hub-feed__text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.hub-feed__text strong { font-weight: 600; }
.hub-feed__verb { color: var(--hub-muted-2); }
.hub-feed__comp { font-weight: 500; color: var(--hub-ink); }
.hub-feed__comp:hover { color: var(--hub-ink); }
.hub-feed__meta { display: flex; gap: 10px; margin-top: 3px; font: 500 11px var(--hub-mono); color: var(--hub-muted-3); }
.hub-feed__score { color: var(--hub-ink); }
.hub-feed__note { color: oklch(0.45 0.16 145); }
.hub-feed__ago { margin-left: auto; white-space: nowrap; }
.hub-feed__empty { padding: 20px; color: var(--hub-muted); font-size: 13px; }

.hub-rank { list-style: none; margin: 0; padding: 0; }
.hub-rank__row {
    display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
    padding: 11px 20px; border-bottom: 1px solid var(--hub-line-soft);
}
.hub-rank__row:last-child { border-bottom: 0; }
.hub-rank__pos { font: 600 13px var(--hub-mono); color: var(--hub-muted); }
.hub-rank__name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--hub-ink); display: block; }
.hub-rank__name:hover { color: var(--hub-ink); }
.hub-rank__sub { display: flex; gap: 6px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.hub-tier-badge { font: 600 10px var(--hub-mono); letter-spacing: 0.05em; padding: 2px 5px; border-radius: 3px; text-transform: uppercase; }
.hub-tier-badge--grandmaster { background: var(--hub-navy); color: var(--hub-green-text); }
.hub-tier-badge--master { background: var(--hub-green-bg); color: var(--hub-green-ink); }
.hub-tier-badge--expert { background: var(--hub-blue-bg); color: var(--hub-blue-ink); }
.hub-tier-badge--contributor { background: oklch(0.94 0.01 240); color: var(--hub-muted); }
.hub-medals { display: flex; gap: 6px; font: 500 11px var(--hub-mono); color: var(--hub-muted); }
.hub-medal { display: flex; align-items: center; gap: 3px; }
.hub-medal::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--hub-yellow); }
.hub-medal--silver::before { background: oklch(0.78 0.01 250); }
.hub-medal--bronze::before { background: oklch(0.62 0.12 45); }
.hub-rank__pts { font: 600 13px var(--hub-mono); }
.hub-rank[hidden] { display: none; }

/* Notebooks, teams */
.hub-duo {
    padding-top: 72px;
    display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start;
}
.hub-notebooks { flex: 1 1 560px; min-width: 0; }
.hub-teams { flex: 1 1 400px; min-width: 0; }
.hub-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hub-nb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hub-line-2); }
.hub-nb {
    display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 16px 0;
    border-bottom: 1px solid var(--hub-line); align-items: start;
}
.hub-vote {
    border: 1px solid oklch(0.86 0.01 240); background: #fff; color: var(--hub-ink);
    padding: 8px 0; border-radius: 8px; cursor: pointer; width: 56px;
    display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 13px var(--hub-mono); line-height: 1.2;
}
.hub-vote__arrow { font-size: 13px; line-height: 1; }
.hub-vote[aria-pressed="true"] { background: var(--hub-ink); border-color: var(--hub-ink); color: var(--hub-green-text); }
.hub-vote:disabled { opacity: 0.6; cursor: progress; }
.hub-nb__titlerow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hub-nb__title { font-size: 16px; font-weight: 600; color: var(--hub-ink); overflow-wrap: anywhere; }
.hub-nb__title:hover { color: var(--hub-ink); }
.hub-nb__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--hub-muted-2); }
.hub-nb__meta a { color: var(--hub-muted-2); }
.hub-nb__desc { margin: 6px 0 0; font-size: 13px; color: var(--hub-ink-2); line-height: 1.5; }
.hub-popover { position: relative; }
.hub-popover > summary { list-style: none; cursor: pointer; }
.hub-popover > summary::-webkit-details-marker { display: none; }
.hub-popover__panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(340px, 80vw);
    background: #fff; border: 1px solid var(--hub-line); border-radius: 10px; padding: 16px;
    box-shadow: 0 12px 32px oklch(0.2 0.06 245 / 0.14); font-size: 13px; line-height: 1.55; color: var(--hub-ink-2);
}
.hub-popover__panel ol { margin: 8px 0 0; padding-left: 18px; }
.hub-popover__panel ul { list-style: none; margin: 8px 0 0; padding: 0; }
.hub-popover__panel li + li { margin-top: 4px; }
.hub-team-list { display: flex; flex-direction: column; gap: 12px; }
.hub-team {
    background: #fff; border: 1px solid var(--hub-line); border-radius: 10px; padding: 18px 20px;
    display: flex; flex-direction: column; gap: 12px;
}
.hub-team__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hub-team__name { font-weight: 600; font-size: 15px; }
.hub-team__comp { font-size: 13px; color: var(--hub-muted-2); margin-top: 2px; }
.hub-team__slots { font: 600 12px var(--hub-mono); white-space: nowrap; }
.hub-team__pitch { font-size: 14px; line-height: 1.5; color: var(--hub-ink-2); text-wrap: pretty; margin: 0; }
.hub-team__pitch--none { color: var(--hub-muted); font-style: italic; }
.hub-team__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hub-skill { font: 500 11px var(--hub-mono); color: oklch(0.4 0.1 150); background: oklch(0.95 0.04 150); border-radius: 4px; padding: 3px 7px; }

/* News */
.hub-block { padding-top: 72px; }
.hub-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.hub-news__card {
    display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--hub-line);
    border-top: 3px solid var(--hub-news-color, var(--hub-blue)); border-radius: 10px; padding: 20px; color: inherit;
    text-decoration: none;
}
.hub-news__card:hover, .hub-news__card:focus { border-color: oklch(0.75 0.03 240); border-top-color: var(--hub-news-color, var(--hub-blue)); text-decoration: none; color: inherit; }
.hub-news__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hub-news__kind { font: 500 11px var(--hub-mono); letter-spacing: 0.08em; color: var(--hub-news-color, var(--hub-blue)); }
.hub-news__date { font: 500 12px var(--hub-mono); color: var(--hub-muted-3); white-space: nowrap; }
.hub-news__title { font-size: 16px; font-weight: 600; line-height: 1.35; text-wrap: pretty; color: var(--hub-ink); }
.hub-news__body { font-size: 14px; line-height: 1.5; color: oklch(0.45 0.04 245); text-wrap: pretty; }
.hub-news__by { margin-top: auto; font-size: 13px; color: var(--hub-muted-2); }

/* Archive */
.hub-archive { margin-top: 20px; overflow-x: auto; }
.hub-archive table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
.hub-archive th {
    text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--hub-line);
    font: 500 11px var(--hub-mono); letter-spacing: 0.08em; color: var(--hub-muted); text-transform: uppercase;
}
.hub-archive td { padding: 14px 20px; border-bottom: 1px solid var(--hub-line-soft); vertical-align: middle; }
.hub-archive tr:last-child td { border-bottom: 0; }
.hub-archive tbody tr:hover { background: oklch(0.98 0.006 230); }
.hub-archive tr[hidden] { display: none; }
.hub-archive__year { font-family: var(--hub-mono); color: var(--hub-muted); width: 70px; }
.hub-archive__title { font-weight: 500; color: var(--hub-ink); }
.hub-archive__title:hover { color: var(--hub-ink); }
.hub-archive__org { color: var(--hub-muted-2); width: 180px; }
.hub-archive__teams { font-family: var(--hub-mono); width: 110px; }
.hub-archive__go { text-align: right; width: 160px; white-space: nowrap; font-size: 13px; }

/* ------------------------------------------------------------------ */
/* Inner hub pages (rankings, news)                                    */
/* ------------------------------------------------------------------ */
.hub-page { padding-bottom: 8px; }
.hub-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hub-table th {
    text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hub-line);
    font: 500 11px var(--hub-mono); letter-spacing: 0.08em; color: var(--hub-muted); text-transform: uppercase; white-space: nowrap;
}
.hub-table td { padding: 12px 16px; border-bottom: 1px solid var(--hub-line-soft); }
.hub-table tr:last-child td { border-bottom: 0; }
.hub-table .num { text-align: right; font-family: var(--hub-mono); }
.hub-note { font-size: 13px; color: var(--hub-muted-2); line-height: 1.6; }
.hub-note h2 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: var(--hub-ink); }
.hub-note ul { padding-left: 18px; margin: 0; }
.hub-page-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.hub-page-grid > .hub-panel { flex: 1 1 640px; min-width: 0; overflow-x: auto; }
.hub-page-grid > aside { flex: 0 1 300px; min-width: 0; }
@media (max-width: 980px) { .hub-page-grid > aside { flex: 1 1 100%; } }
.hub-post { background: #fff; border: 1px solid var(--hub-line); border-left: 4px solid var(--hub-news-color, var(--hub-blue)); border-radius: 10px; padding: 20px 24px; scroll-margin-top: 80px; }
.hub-post + .hub-post { margin-top: 16px; }
.hub-post:target { box-shadow: 0 0 0 3px oklch(0.5 0.14 235 / 0.2); }
.hub-post__body { font-size: 15px; line-height: 1.6; color: var(--hub-ink-2); margin-top: 10px; white-space: pre-line; }

/* ------------------------------------------------------------------ */
/* v2.0.1: notification board                                          */
/* ------------------------------------------------------------------ */
.hub-board-section { background: var(--hub-bg); border-bottom: 1px solid var(--hub-line); }
.hub-board-section__inner { padding-top: 40px; padding-bottom: 40px; }
.hub-board { background: #fff; border: 1px solid var(--hub-line); border-radius: 12px; overflow: hidden; }
.hub-board__head {
    padding: 16px 24px; border-bottom: 1px solid oklch(0.92 0.01 240);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.hub-board__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hub-board__by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hub-muted); flex-wrap: wrap; }
.hub-pill {
    font: 500 11px var(--hub-mono); color: var(--hub-muted); border: 1px solid var(--hub-line-2);
    border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.hub-board__list { list-style: none; margin: 0; padding: 0; }
.hub-notice-row {
    display: grid; grid-template-columns: 124px 1fr auto; gap: 16px; align-items: start;
    padding: 14px 24px; border-bottom: 1px solid var(--hub-line-soft);
}
.hub-notice-row:last-child { border-bottom: 0; }
.hub-notice-row.is-pinned { background: oklch(0.985 0.015 75); }
.hub-notice-tag {
    justify-self: start; font: 600 10px var(--hub-mono); letter-spacing: 0.08em; padding: 4px 8px; border-radius: 4px;
    white-space: nowrap; margin-top: 2px; line-height: 12px;
    background: var(--hub-green-bg); color: oklch(0.4 0.16 145);
}
.hub-notice-tag--update { background: var(--hub-blue-bg); color: oklch(0.45 0.14 240); }
.hub-notice-tag--platform { background: oklch(0.95 0.04 30); color: oklch(0.48 0.16 30); }
.hub-notice-tag--legacy { background: oklch(0.95 0.05 75); color: oklch(0.5 0.13 65); }
.hub-notice-row__main { min-width: 0; }
.hub-notice-row__title { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.hub-notice-pinned { font: 600 10px var(--hub-mono); letter-spacing: 0.08em; color: oklch(0.55 0.13 65); }
.hub-notice-row__body { font-size: 14px; line-height: 1.5; color: oklch(0.45 0.04 245); margin: 3px 0 0; text-wrap: pretty; }
.hub-notice-row__meta { display: flex; gap: 6px 14px; margin-top: 6px; font-size: 13px; align-items: center; flex-wrap: wrap; }
.hub-notice-row__meta time { font: 500 12px var(--hub-mono); color: var(--hub-muted-3); white-space: nowrap; }
.hub-notice-row__meta .hub-link { overflow-wrap: anywhere; }
.hub-notice-row__tools { display: flex; gap: 4px; }
.hub-board__more { padding: 12px 24px; border-top: 1px solid var(--hub-line-soft); font-size: 14px; }
.hub-board__form {
    padding: 16px 24px; background: var(--hub-bg); border-top: 1px solid var(--hub-line-soft);
    display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 10px; align-items: center;
}
.hub-board__form-title { font-size: 13px; grid-column: 1 / -1; }
.hub-board__wide { grid-column: 1 / -1; }
.hub-board__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hub-mini-btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px;
    border: 1px solid oklch(0.85 0.01 240); background: #fff; color: var(--hub-ink); border-radius: 5px; cursor: pointer;
    font: 500 11px var(--hub-mono); letter-spacing: 0.04em; text-decoration: none; margin: 0; line-height: 1;
}
.hub-mini-btn:hover, .hub-mini-btn:focus { border-color: var(--hub-ink); color: var(--hub-ink); text-decoration: none; }
.hub-mini-btn.is-on, .hub-mini-btn[aria-pressed="true"] { background: var(--hub-ink); border-color: var(--hub-ink); color: #fff; }
.hub-mini-btn--danger { color: oklch(0.5 0.16 30); font-size: 15px; }
.hub-mini-btn:disabled { opacity: 0.4; cursor: default; }

/* Shared inputs (board form, dashboard) */
.hub-input {
    height: 38px; border: 1px solid oklch(0.85 0.01 240); border-radius: 6px; padding: 0 12px;
    font: 14px var(--hub-font); background: #fff; color: var(--hub-ink); min-width: 0; width: 100%;
    box-sizing: border-box; margin: 0;
}
textarea.hub-input { height: auto; padding: 8px 12px; line-height: 1.5; resize: vertical; }
select.hub-input { padding: 0 8px; }
.hub-input:focus { outline: 0; border-color: var(--hub-link); box-shadow: 0 0 0 3px oklch(0.5 0.14 235 / 0.15); }
.hub-inline-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 400; margin: 0; white-space: nowrap; cursor: pointer; }
.hub-inline-check input { margin: 0; }

/* Homepage additions */
.hub-row-head__links { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.hub-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.hub-chips--scroll::-webkit-scrollbar { display: none; }
.hub-chips--scroll .hub-chip { white-space: nowrap; flex: none; }
.hub-chip__count { font: 500 11px var(--hub-mono); opacity: 0.7; margin-left: 2px; }
.hub-nb-foot { padding-top: 14px; font-size: 14px; }
.hub-news__stars { font: 600 12px var(--hub-mono); color: oklch(0.55 0.13 65); white-space: nowrap; }
.hub-badge--legacy { background: oklch(0.95 0.05 75); color: oklch(0.5 0.13 65); margin-left: 6px; vertical-align: 1px; }
.hub-vote--static { cursor: default; }
.hub-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.hub-filter .hub-input { width: auto; max-width: 100%; flex: 0 1 420px; }
.hub-sol-group + .hub-sol-group { margin-top: 40px; }

/* ------------------------------------------------------------------ */
/* v2.0.1: homepage dashboard                                          */
/* ------------------------------------------------------------------ */
.hub-dash__tabs { margin-bottom: 24px; }
.hub-dash__view { margin-left: auto; font-weight: 500; }
.hub-flash { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hub-flash__item { padding: 12px 16px; border-radius: 8px; background: var(--hub-green-bg); color: var(--hub-green-ink); font-size: 14px; }
.hub-flash__item--error { background: var(--hub-red-bg); color: var(--hub-red-ink); }
.hub-dash-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.hub-dash-card { padding: 0; overflow: visible; }
.hub-dash-card__head { padding: 18px 24px; border-bottom: 1px solid var(--hub-line-soft); }
.hub-dash-card__head--row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hub-dash-card__head .hub-help { margin: 6px 0 0; }
.hub-dash-form { padding: 20px 24px; }
.hub-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.hub-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hub-field--wide { grid-column: 1 / -1; }
.hub-field > label { font-size: 13px; font-weight: 600; margin: 0; color: var(--hub-ink); }
.hub-field--check { justify-content: center; }
.hub-field.has-error .hub-input { border-color: var(--hub-red-ink); }
.hub-req { color: var(--hub-red-ink); }
.hub-help { font-size: 12px; color: var(--hub-muted-2); line-height: 1.5; font-weight: 400; }
.hub-error { font-size: 12px; color: var(--hub-red-ink); margin: 0; }
.hub-input-file { font-size: 13px; }
.hub-fieldset { border: 1px solid var(--hub-line); border-radius: 8px; padding: 12px 16px 16px; margin: 18px 0 0; min-width: 0; }
.hub-fieldset legend { font-size: 13px; font-weight: 600; padding: 0 6px; width: auto; border: 0; margin: 0; }
.hub-link-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; gap: 10px; align-items: end; }
.hub-link-row + .hub-link-row { margin-top: 10px; }
.hub-link-row .hub-field > label { font-weight: 500; font-size: 12px; color: var(--hub-muted-2); }
.hub-link-row__del { height: 38px; font-size: 13px; }
.hub-form-actions { display: flex; align-items: center; gap: 12px 18px; margin-top: 18px; flex-wrap: wrap; }
.hub-dash-list { list-style: none; margin: 0; padding: 0; }
.hub-dash-list .hub-empty { margin: 16px 24px; }
.hub-dash-item {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 12px 24px; border-bottom: 1px solid var(--hub-line-soft);
}
.hub-dash-item:last-child { border-bottom: 0; }
.hub-dash-item.is-muted { background: oklch(0.985 0.004 240); }
.hub-dash-item.is-muted .hub-dash-item__title { color: var(--hub-muted); }
.hub-dash-item .hub-notice-tag { margin-top: 0; }
.hub-dash-item__title { font-weight: 600; font-size: 14px; color: var(--hub-ink); overflow-wrap: anywhere; }
.hub-dash-item__title:hover { color: var(--hub-ink); }
.hub-dash-item__meta { font-size: 12px; color: var(--hub-muted-2); margin-top: 2px; overflow-wrap: anywhere; }
.hub-dash-item__tools { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.hub-dash-item__tools form { margin: 0; }
.hub-dash-item .hub-vote { width: 48px; padding: 6px 0; }
.hub-dash-subhead { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 24px 6px; font: 500 12px var(--hub-mono); letter-spacing: 0.06em; color: oklch(0.4 0.03 240); }
.hub-tier__dot--platinum { background: var(--hub-blue); }
.hub-tier__dot--silver { background: oklch(0.75 0.01 250); }
.hub-dash-order { font: 600 13px var(--hub-mono); color: var(--hub-muted); width: 18px; text-align: right; }
.hub-dash-item:has(.hub-dash-order) { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.hub-dash-logo { display: flex; align-items: center; width: 110px; height: 32px; }
.hub-dash-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hub-dash-logo--lg { width: 180px; height: 48px; margin: 12px 0 0; }
.hub-dash-empty { padding: 8px 24px 14px; font-size: 13px; color: var(--hub-muted); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 980px) {
    .hub-burger { display: inline-flex; align-items: center; justify-content: center; }
    .hub-header__bar { gap: 16px; }
    .hub-header__menus {
        display: none;
        position: absolute; left: 0; right: 0; top: 60px;
        background: var(--hub-navy); border-bottom: 1px solid var(--hub-navy-3);
        flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px 16px;
    }
    .hub-header.is-open .hub-header__menus { display: flex; }
    .hub-nav { flex-direction: column; }
    .hub-header__actions { flex-wrap: wrap; }
    .hub-usermenu__list { left: 0; right: auto; }
}
@media (max-width: 1100px) {
    .hub-dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
    /* Tablet portrait */
    .hub-hero__inner { padding-top: 48px; padding-bottom: 64px; }
    .hub-hero h1 { font-size: 48px; }
    .hub-main-grid { gap: 32px; }
    .hub-aside { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
    .hub-notice-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 20px; }
    .hub-notice-row .hub-notice-tag { grid-column: 1; grid-row: 1; }
    .hub-notice-row__main { grid-column: 1 / -1; grid-row: 2; }
    .hub-notice-row__tools { grid-column: 2; grid-row: 1; }
    .hub-board__head, .hub-board__more, .hub-board__form { padding-left: 20px; padding-right: 20px; }
    .hub-board__form { grid-template-columns: 1fr; }
    /* Archive tables become stacked cards instead of scrolling sideways */
    .hub-archive { overflow: visible; }
    .hub-archive table { min-width: 0; }
    .hub-archive thead { display: none; }
    .hub-archive tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 20px; border-bottom: 1px solid var(--hub-line-soft); }
    .hub-archive tbody tr[hidden] { display: none; }
    .hub-archive td { padding: 0; border: 0; width: auto; }
    .hub-archive td[data-label="Challenge"] { flex-basis: 100%; order: -1; font-size: 15px; }
    .hub-archive__year, .hub-archive__org, .hub-archive__teams { font-size: 13px; }
    .hub-archive__year::before { content: attr(data-label) ' '; font-family: var(--hub-font); color: var(--hub-muted); }
    .hub-archive__teams::after { content: ' participants'; font-family: var(--hub-font); color: var(--hub-muted); }
    .hub-archive__go { margin-left: auto; text-align: right; }
    .hub-link-row { grid-template-columns: 1fr; gap: 8px; }
    .hub-link-row + .hub-link-row { padding-top: 10px; border-top: 1px dashed var(--hub-line); }
    .hub-dash__view { margin-left: 0; }
}
@media (max-width: 720px) {
    .hub-wrap { padding: 0 16px; }
    .hub-form-grid { grid-template-columns: minmax(0, 1fr); }
    .hub-dash-card__head, .hub-dash-form { padding-left: 16px; padding-right: 16px; }
    .hub-dash-item { grid-template-columns: auto minmax(0, 1fr); padding: 12px 16px; }
    .hub-dash-item:has(.hub-dash-order) { grid-template-columns: auto minmax(0, 1fr); }
    .hub-dash-item:has(.hub-dash-order) .hub-dash-logo { display: none; }
    .hub-dash-item__tools { grid-column: 1 / -1; justify-content: flex-start; }
    .hub-dash-subhead { padding-left: 16px; padding-right: 16px; }
    .hub-tier__items { gap: 12px 20px; }
    .hub-tier[data-tier="platinum"] .hub-sponsor__logo { width: 140px; }
    .hub-hero__inner { padding-top: 40px; padding-bottom: 56px; gap: 36px; }
    .hub-hero h1 { font-size: 40px; }
    .hub-hero__lead { font-size: 16px; }
    .hub-stats { gap: 20px; margin-top: 36px; }
    .hub-stat__value { font-size: 22px; }
    .hub-feature { flex-basis: 100%; }
    .hub-feature__body { padding: 20px 16px; }
    .hub-feature__head { padding: 14px 16px; }
    .hub-clock__value { font-size: 24px; }
    .hub-h2 { font-size: 26px; }
    .hub-search { flex-basis: 100%; }
    .hub-tier { grid-template-columns: 1fr; gap: 10px; }
    .hub-cards { grid-template-columns: 1fr; }
    .hub-main-grid { padding-top: 40px; }
    .hub-duo, .hub-block { padding-top: 56px; }
    .hub-pagehead h1 { font-size: 26px; }
    footer.hub-footer { margin-top: 64px; }
}

/* Link rows are optional as a whole; only a filled-in row needs both fields. */
.hub-link-row .hub-req { display: none; }

/* Bootstrap's fixed .container widths (1170px from 992px up in this build)
   overflow tablets in landscape; never let a container exceed the viewport. */
.hub-body .container { max-width: 100%; }
/* Long challenge names must not stretch filter selects past the screen. */
.hub-filter { min-width: 0; max-width: 100%; flex: 0 1 420px; }
.hub-filter .hub-input { flex: 1 1 auto; width: 100%; min-width: 0; text-overflow: ellipsis; }

/* Latest news: GitHub trending cards */
.hub-news__card--repo .hub-news__title { overflow-wrap: anywhere; }
.hub-repo__owner { font-weight: 400; color: var(--hub-muted-2); }
.hub-repo__stats { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.hub-repo__stats .hub-mono { font-size: 12px; }
.hub-tab__short, .hub-only-mobile { display: none; }
@media (max-width: 560px) {
    [data-hub-tabs] .hub-tab { padding-left: 9px; padding-right: 9px; gap: 6px; }
    .hub-tab__full { display: none; }
    .hub-tab__short { display: inline; }
    .hub-only-mobile { display: inline; }
    /* Keep the trending list short on phones; the news page has all of them. */
    .hub-news--compact-mobile > :nth-child(n+5) { display: none; }
}
@media (max-width: 380px) {
    [data-hub-tabs] .hub-tab__count { display: none; }
}

/* ------------------------------------------------------------------ */
/* Teams: request to join                                              */
/* ------------------------------------------------------------------ */
.hub-crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--hub-muted); margin: 0 0 16px; }
.hub-join__logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--hub-line); }
.hub-join__logo--letter {
    display: inline-flex; align-items: center; justify-content: center; border: 0;
    background: var(--hub-navy); color: var(--hub-green-text); font: 600 20px var(--hub-mono);
}
.hub-join__members { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hub-join__member { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hub-ink-2); }
.hub-join__member .hub-avatar { width: 24px; height: 24px; font-size: 10px; }
.hub-join__form { padding: 24px; margin-top: 20px; overflow: visible; }
.hub-join__blocked { margin-top: 20px; padding: 20px 24px; border-radius: 10px; background: var(--hub-blue-bg); color: var(--hub-ink); font-size: 15px; line-height: 1.5; }
.hub-join__warn { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: oklch(0.96 0.05 75); color: oklch(0.4 0.1 65); font-size: 14px; line-height: 1.5; }
.hub-join__count { align-self: flex-end; font-family: var(--hub-mono); }

/* ------------------------------------------------------------------ */
/* Community discussions (apps.discussions)                            */
/* ------------------------------------------------------------------ */
.hub-disc-main { flex: 1 1 640px; min-width: 0; }
.hub-disc-aside { flex: 0 1 320px; min-width: 0; }
@media (max-width: 980px) { .hub-disc-aside { flex: 1 1 100%; } }
.hub-disc-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.hub-disc-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--hub-muted-2); margin: 0; }
.hub-disc-sort .hub-input { width: auto; }
.hub-disc-kind {
    font: 600 10px var(--hub-mono); letter-spacing: 0.06em; line-height: 14px; padding: 3px 7px; border-radius: 4px;
    background: var(--hub-blue-bg); color: var(--hub-blue-ink); overflow-wrap: anywhere;
}
.hub-disc-kind--repo { background: var(--hub-green-bg); color: var(--hub-green-ink); }
.hub-disc-like { margin: 0; }
a.hub-vote { text-decoration: none; }
a.hub-vote:hover, a.hub-vote:focus, .hub-disc-like .hub-vote:hover { border-color: var(--hub-ink); color: var(--hub-ink); text-decoration: none; }
.hub-disc-like .hub-vote[aria-pressed="true"]:hover { color: var(--hub-green-text); }
.hub-disc-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; font-size: 13px; color: var(--hub-muted-2); }
.hub-disc-card { padding: 18px 20px; overflow: visible; }
.hub-disc-card__title { font-size: 15px; font-weight: 600; margin: 0; color: var(--hub-ink); }
.hub-disc-trend { list-style: none; margin: 12px 0 0; padding: 0; }
.hub-disc-trend li { padding: 10px 0; border-top: 1px solid var(--hub-line-soft); }
.hub-disc-trend__name { font-size: 14px; font-weight: 600; color: var(--hub-ink); overflow-wrap: anywhere; }
.hub-disc-trend__name:hover { color: var(--hub-ink); }
.hub-disc-trend__meta { display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--hub-muted-2); }
.hub-disc-trend__meta .hub-link { margin-left: auto; }

.hub-disc-post {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px;
    background: #fff; border: 1px solid var(--hub-line); border-radius: 12px; padding: 24px;
}
.hub-disc-post__badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hub-disc-post__title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 10px 0 0; color: var(--hub-ink); overflow-wrap: anywhere; }
.hub-disc-byline { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--hub-muted-2); }
.hub-disc-byline strong { color: var(--hub-ink); font-weight: 600; }
.hub-disc-repo {
    display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding: 16px 18px;
    border: 1px solid var(--hub-line); border-left: 4px solid var(--hub-green); border-radius: 10px;
    background: var(--hub-bg); color: inherit; text-decoration: none;
}
.hub-disc-repo:hover, .hub-disc-repo:focus { border-color: oklch(0.75 0.03 240); border-left-color: var(--hub-green); color: inherit; text-decoration: none; }
.hub-disc-repo__name { font-size: 16px; font-weight: 600; color: var(--hub-ink); overflow-wrap: anywhere; }
.hub-disc-repo__desc { font-size: 14px; line-height: 1.5; color: var(--hub-ink-2); }
.hub-disc-body { font-size: 15px; line-height: 1.65; color: var(--hub-ink-2); margin-top: 16px; overflow-wrap: anywhere; }
.hub-disc-body p { margin: 0 0 12px; }
.hub-disc-body p:last-child { margin-bottom: 0; }
.hub-disc-body a { color: var(--hub-link); }
.hub-disc-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hub-line-soft); }
.hub-disc-tools form { margin: 0; }
.hub-disc-replies { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--hub-line); border-radius: 12px; overflow: hidden; }
.hub-disc-reply { display: flex; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--hub-line-soft); scroll-margin-top: 80px; }
.hub-disc-reply:last-child { border-bottom: 0; }
.hub-disc-reply:target { background: oklch(0.97 0.03 235); }
.hub-disc-reply__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.hub-disc-reply__head form { margin: 0; }
.hub-disc-reply__time { font: 500 12px var(--hub-mono); color: var(--hub-muted-3); }
.hub-disc-reply__time:hover { color: var(--hub-muted-2); }
.hub-disc-reply .hub-disc-body { margin-top: 6px; font-size: 14px; }
.hub-disc-form { padding: 24px; margin-top: 20px; overflow: visible; }
.hub-disc-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 8px; background: var(--hub-blue-bg); color: var(--hub-ink); font-size: 14px; line-height: 1.5; }
.hub-disc-kinds { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hub-disc-kinds legend { font-size: 13px; font-weight: 600; margin: 0 0 8px; padding: 0; border: 0; width: auto; color: var(--hub-ink); }
.hub-disc-kindopt {
    position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; max-width: none;
    padding: 14px 16px 14px 42px; border: 1px solid oklch(0.85 0.01 240); border-radius: 10px;
    background: #fff; cursor: pointer; font-weight: 400;
}
.hub-disc-kindopt input { position: absolute; left: 16px; top: 17px; margin: 0; accent-color: var(--hub-ink); }
.hub-disc-kindopt:has(input:checked) { border-color: var(--hub-ink); box-shadow: 0 0 0 1px var(--hub-ink); }
.hub-disc-kindopt:has(input:focus-visible) { outline: 2px solid var(--hub-link); outline-offset: 2px; }
.hub-disc-kindopt__title { font-size: 14px; font-weight: 600; color: var(--hub-ink); }
.hub-disc-kindopt__help { font-size: 12px; color: var(--hub-muted-2); line-height: 1.45; }
.hub-disc-picks { margin-top: 12px; }
.hub-disc-picks .hub-chip { font-family: var(--hub-mono); font-size: 12px; }
.hub-disc-card-repo { font-size: 12px; color: var(--hub-green-ink); overflow-wrap: anywhere; margin-top: -4px; }

/* Trending cards: the title link covers the card, "Discuss" stays clickable above it. */
.hub-news__card--stretch { position: relative; }
.hub-news__stretch { text-decoration: none; }
.hub-news__stretch::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.hub-news__stretch:hover, .hub-news__stretch:focus { color: var(--hub-ink); text-decoration: none; }
.hub-news__stretch:focus-visible { outline: none; }
.hub-news__stretch:focus-visible::after { box-shadow: 0 0 0 3px oklch(0.5 0.14 235 / 0.35); }
.hub-news__card--stretch:hover { border-color: oklch(0.75 0.03 240); border-top-color: var(--hub-news-color, var(--hub-blue)); }
.hub-news__discuss {
    position: relative; z-index: 1; margin-left: auto; padding: 2px 10px; border-radius: 999px;
    border: 1px solid oklch(0.85 0.03 240); background: #fff; color: var(--hub-link);
    font: 600 12px var(--hub-font); line-height: 18px; text-decoration: none; white-space: nowrap;
}
.hub-news__discuss:hover, .hub-news__discuss:focus { border-color: var(--hub-link); color: var(--hub-link-hover); text-decoration: none; }

@media (max-width: 720px) {
    .hub-disc-post { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
    .hub-disc-post__side { order: 2; }
    .hub-disc-post__side .hub-vote { flex-direction: row; width: auto; padding: 6px 14px; gap: 6px; }
    .hub-disc-post__title { font-size: 22px; }
    .hub-disc-kinds { grid-template-columns: minmax(0, 1fr); }
    .hub-disc-reply { padding: 14px 16px; }
    .hub-disc-form, .hub-join__form { padding: 18px 16px; }
}

/* ------------------------------------------------------------------ */
/* Discussions: rendered Markdown, the editor, the AI assistant        */
/* ------------------------------------------------------------------ */
.hub-md > :first-child { margin-top: 0; }
.hub-md > :last-child { margin-bottom: 0; }
.hub-md p, .hub-md ul, .hub-md ol, .hub-md blockquote, .hub-md pre, .hub-md table, .hub-md .hub-mermaid { margin: 0 0 14px; }
.hub-md h1, .hub-md h2, .hub-md h3, .hub-md h4, .hub-md h5, .hub-md h6 {
    color: var(--hub-ink); font-weight: 650; line-height: 1.3; margin: 22px 0 10px; letter-spacing: -0.005em;
}
.hub-md h1 { font-size: 22px; } .hub-md h2 { font-size: 19px; } .hub-md h3 { font-size: 17px; }
.hub-md h4, .hub-md h5, .hub-md h6 { font-size: 15px; }
.hub-md ul, .hub-md ol { padding-left: 24px; }
.hub-md li + li { margin-top: 4px; }
.hub-md blockquote { border-left: 3px solid var(--hub-line-2); padding: 2px 0 2px 14px; color: var(--hub-muted-2); font-size: inherit; }
.hub-md code { font: 0.9em var(--hub-mono); background: oklch(0.95 0.01 240); color: var(--hub-ink); border-radius: 4px; padding: 1px 5px; border: 0; white-space: break-spaces; }
.hub-md pre { background: oklch(0.97 0.006 240); border: 1px solid var(--hub-line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; }
.hub-md pre code { background: none; padding: 0; font-size: 13px; line-height: 1.55; white-space: pre; }
.hub-md table { border-collapse: collapse; display: block; overflow-x: auto; width: max-content; max-width: 100%; font-size: 14px; background: transparent; }
.hub-md th, .hub-md td { border: 1px solid var(--hub-line); padding: 6px 12px; text-align: left; }
.hub-md th { background: oklch(0.97 0.006 240); font-weight: 600; }
.hub-md img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--hub-line); margin: 4px 0; }
.hub-md hr { border: 0; border-top: 1px solid var(--hub-line); margin: 20px 0; }
.hub-mermaid {
    background: #fff; border: 1px solid var(--hub-line); border-radius: 8px; padding: 14px; overflow-x: auto;
    text-align: center; white-space: pre; font: 12px var(--hub-mono); color: var(--hub-muted-2);
}
.hub-mermaid svg { max-width: 100%; height: auto; }
.hub-mermaid.is-failed { text-align: left; border-color: oklch(0.85 0.06 30); }
.hub-mermaid.is-failed::before { content: 'This diagram could not be drawn. Its Mermaid source:'; display: block; margin-bottom: 8px; font-family: var(--hub-font); color: var(--hub-red-ink); white-space: normal; }

.hub-editor__box { border: 1px solid oklch(0.85 0.01 240); border-radius: 8px; background: #fff; overflow: hidden; }
.hub-editor__box:focus-within { border-color: var(--hub-link); box-shadow: 0 0 0 3px oklch(0.5 0.14 235 / 0.15); }
.hub-field.has-error .hub-editor__box { border-color: var(--hub-red-ink); }
.hub-editor__bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 8px;
    background: oklch(0.98 0.004 240); border-bottom: 1px solid var(--hub-line);
}
.hub-editor__tabs { display: flex; gap: 2px; }
.hub-editor__tab {
    border: 1px solid transparent; background: none; border-radius: 6px; padding: 5px 10px; cursor: pointer;
    font: 600 13px var(--hub-font); color: var(--hub-muted);
}
.hub-editor__tab[aria-selected="true"] { background: #fff; border-color: var(--hub-line); color: var(--hub-ink); }
.hub-editor__tools { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; }
.hub-editor__tools.is-disabled { opacity: 0.4; pointer-events: none; }
.hub-editor__tool {
    border: 1px solid transparent; background: none; border-radius: 5px; padding: 4px 8px; min-width: 30px; cursor: pointer;
    font: 500 12px var(--hub-font); color: var(--hub-ink-2); line-height: 18px;
}
.hub-editor__tool:hover, .hub-editor__tool:focus-visible { background: #fff; border-color: var(--hub-line-2); color: var(--hub-ink); }
.hub-editor__ai-toggle {
    margin-left: auto; border: 1px solid oklch(0.8 0.08 290); background: oklch(0.97 0.02 290); color: oklch(0.42 0.14 290);
    border-radius: 999px; padding: 4px 12px; cursor: pointer; font: 600 12px var(--hub-font); line-height: 18px;
}
.hub-editor__ai-toggle:hover, .hub-editor__ai-toggle[aria-expanded="true"] { background: oklch(0.42 0.14 290); border-color: oklch(0.42 0.14 290); color: #fff; }
.hub-editor__box textarea.hub-input { border: 0; border-radius: 0; box-shadow: none; min-height: 180px; display: block; }
.hub-editor__box textarea.hub-input:focus { box-shadow: none; }
.hub-editor__box textarea.is-dragover { background: var(--hub-blue-bg); }
.hub-editor__preview { min-height: 180px; padding: 12px 14px; font-size: 15px; line-height: 1.65; color: var(--hub-ink-2); overflow-wrap: anywhere; }
.hub-editor__foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 6px 10px;
    border-top: 1px dashed var(--hub-line); font-size: 12px; color: var(--hub-muted-2);
}
.hub-editor__status { font-weight: 500; color: var(--hub-green-ink); }
.hub-editor__status.is-error { color: var(--hub-red-ink); }
.hub-editor__linkbtn { border: 0; background: none; padding: 0; color: var(--hub-link); font: inherit; font-weight: 500; cursor: pointer; }
.hub-editor__linkbtn:hover { text-decoration: underline; }

.hub-ai {
    margin-top: 12px; padding: 16px; border-radius: 10px;
    border: 1px solid oklch(0.85 0.06 290); background: oklch(0.985 0.01 290);
}
.hub-ai__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; font-size: 14px; color: oklch(0.35 0.12 290); }
.hub-ai .hub-chip:disabled, .hub-ai .hub-btn:disabled { opacity: 0.5; cursor: progress; }
.hub-ai__ask { display: flex; gap: 8px; margin-top: 12px; }
.hub-ai__result { margin-top: 14px; padding: 14px; background: #fff; border: 1px solid var(--hub-line); border-radius: 8px; }
.hub-ai__output { font-size: 14px; line-height: 1.6; color: var(--hub-ink-2); max-height: 420px; overflow-y: auto; }
.hub-ai__thinking { margin: 0; color: oklch(0.45 0.12 290); font-weight: 500; animation: hub-ai-pulse 1.2s ease-in-out infinite; }
@keyframes hub-ai-pulse { 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .hub-ai__thinking { animation: none; } }
.hub-ai__error { margin: 0; color: var(--hub-red-ink); font-size: 14px; }
.hub-ai__titles { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hub-ai__title {
    width: 100%; text-align: left; border: 1px solid var(--hub-line); background: #fff; border-radius: 6px; padding: 8px 12px;
    font: 500 14px var(--hub-font); color: var(--hub-ink); cursor: pointer;
}
.hub-ai__title:hover, .hub-ai__title:focus-visible { border-color: var(--hub-ink); }
.hub-ai__apply { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hub-line-soft); }
.hub-ai-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hub-ai-stats > div { display: flex; flex-direction: column; gap: 2px; }
.hub-ai-stats__n { font: 600 24px var(--hub-mono); color: var(--hub-ink); }
.hub-ai-top { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hub-ai-top li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--hub-line-soft); }
@media (max-width: 720px) {
    .hub-editor__ai-toggle { margin-left: 0; }
    .hub-ai__ask { flex-direction: column; }
}

/* ------------------------------------------------------------------ */
/* Member profiles (apps.profiles)                                     */
/* ------------------------------------------------------------------ */
.hub-prof-banner {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px;
    margin-bottom: 20px; padding: 12px 16px; border-radius: 10px; background: var(--hub-blue-bg); font-size: 14px; color: var(--hub-ink);
}
.hub-prof-banner__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hub-prof-avatar { flex: none; border-radius: 16px; object-fit: cover; border: 1px solid var(--hub-line); background: #fff; }
.hub-prof-avatar--lg { width: 104px; height: 104px; }
.hub-prof-avatar--sm { width: 44px; height: 44px; border-radius: 10px; }
.hub-prof-avatar--letter {
    display: inline-flex; align-items: center; justify-content: center; border: 0;
    background: var(--hub-navy); color: var(--hub-green-text); font: 600 40px var(--hub-mono);
}
.hub-prof-avatar--sm.hub-prof-avatar--letter { font-size: 18px; }
.hub-prof-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding: 28px; align-items: start; overflow: visible; }
.hub-prof-card__name { font-size: 28px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0; color: var(--hub-ink); overflow-wrap: anywhere; }
.hub-prof-card__handle { font: 500 13px var(--hub-mono); color: var(--hub-muted); margin-top: 2px; overflow-wrap: anywhere; }
.hub-prof-card__headline { font-size: 16px; color: var(--hub-ink-2); margin: 10px 0 0; line-height: 1.45; }
.hub-prof-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 13px; color: var(--hub-muted-2); }
.hub-prof-card__actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 150px; }
.hub-prof-card__actions .hub-tag { align-self: flex-start; }
.hub-prof-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.hub-prof-status__badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
    font-size: 13px; font-weight: 600; background: var(--hub-green-bg); color: var(--hub-green-ink);
}
.hub-prof-status__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hub-prof-status__badge--collab { background: oklch(0.95 0.03 290); color: oklch(0.45 0.14 290); }
.hub-prof-status__note { font-size: 14px; color: var(--hub-ink-2); }
.hub-prof-skills, .hub-prof-links { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hub-prof-skills { gap: 6px; }
.hub-prof-links { font-size: 14px; }
.hub-prof-section { margin-top: 28px; }
.hub-prof-h { font-size: 20px; margin-bottom: 12px; }
.hub-prof-pad { padding: 20px 24px; overflow: visible; }
.hub-prof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.hub-prof-stat { background: #fff; border: 1px solid var(--hub-line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.hub-prof-stat dt { font: 500 11px var(--hub-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hub-muted); }
.hub-prof-stat dd { margin: 0; }
.hub-prof-stat__n { font: 600 26px var(--hub-mono); color: var(--hub-ink); margin-top: 6px !important; line-height: 1.1; }
.hub-prof-stat__of { font-size: 13px; font-weight: 500; color: var(--hub-muted); }
.hub-prof-stat__sub { font-size: 12px; color: var(--hub-muted-2); margin-top: 6px !important; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; overflow: hidden; text-overflow: ellipsis; }
.hub-prof-edit__aside .hub-prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hub-prof-edit__aside .hub-prof-stat { padding: 10px 12px; }
.hub-prof-edit__aside .hub-prof-stat__n { font-size: 20px; }

.hub-prof-cal { overflow-x: auto; margin-top: 14px; padding-bottom: 4px; }
.hub-prof-cal__months, .hub-prof-cal__grid { display: grid; grid-template-columns: repeat(var(--weeks), 12px); gap: 3px; width: max-content; }
.hub-prof-cal__months { font-size: 10px; color: var(--hub-muted); height: 14px; }
.hub-prof-cal__months span { white-space: nowrap; }
.hub-prof-cal__grid { grid-template-rows: repeat(7, 12px); grid-auto-flow: column; }
.hub-prof-cal__day { width: 12px; height: 12px; border-radius: 3px; background: oklch(0.94 0.01 240); display: inline-block; }
.hub-prof-cal__day[data-level="1"] { background: oklch(0.88 0.07 145); }
.hub-prof-cal__day[data-level="2"] { background: oklch(0.76 0.13 145); }
.hub-prof-cal__day[data-level="3"] { background: oklch(0.64 0.17 145); }
.hub-prof-cal__day[data-level="4"] { background: oklch(0.5 0.16 145); }
.hub-prof-cal__day.is-future { background: transparent; }
.hub-prof-cal__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--hub-muted-2); }
.hub-prof-cal__scale { display: inline-flex; align-items: center; gap: 3px; }

.hub-prof-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.hub-prof-grid__main, .hub-prof-grid__aside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hub-prof-hist { list-style: none; margin: 0; padding: 0; }
.hub-prof-hist__row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap;
    padding: 14px 24px; border-top: 1px solid var(--hub-line-soft);
}
.hub-prof-hist__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.hub-prof-hist__title a { color: var(--hub-ink); overflow-wrap: anywhere; }
.hub-prof-hist__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--hub-muted-2); }
.hub-prof-hist__result { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.hub-prof-medal { font: 600 12px var(--hub-font); color: var(--hub-ink-2); }
.hub-prof-feed { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.hub-prof-feed li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--hub-line-soft); overflow-wrap: anywhere; }
.hub-prof-feed time { font: 500 12px var(--hub-mono); color: var(--hub-muted-3); }
.hub-disc-author { font-weight: 600; color: var(--hub-ink); }

/* Editing */
.hub-prof-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.hub-prof-edit__form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hub-prof-edit__aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hub-prof-photo { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hub-prof-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hub-prof-toggle {
    position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 16px 14px 44px;
    border: 1px solid oklch(0.85 0.01 240); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 400;
}
.hub-prof-toggle input { position: absolute; left: 16px; top: 16px; margin: 0; width: 16px; height: 16px; accent-color: var(--hub-green); }
.hub-prof-toggle--collab input { accent-color: oklch(0.45 0.14 290); }
.hub-prof-toggle:has(input:checked) { border-color: var(--hub-green); background: oklch(0.985 0.02 145); }
.hub-prof-toggle--collab:has(input:checked) { border-color: oklch(0.6 0.12 290); background: oklch(0.985 0.012 290); }
.hub-prof-toggle:has(input:focus-visible) { outline: 2px solid var(--hub-link); outline-offset: 2px; }
.hub-prof-toggle__title { font-size: 14px; font-weight: 600; color: var(--hub-ink); }
.hub-prof-toggle__help { font-size: 12px; color: var(--hub-muted-2); line-height: 1.45; }
.hub-prof-vis, .hub-prof-share { border: 0; padding: 0; margin: 0; min-width: 0; }
.hub-prof-vis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hub-prof-share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 22px; }
.hub-prof-vis legend, .hub-prof-share legend { font-size: 13px; font-weight: 600; margin: 0 0 8px; padding: 0; border: 0; width: auto; color: var(--hub-ink); }
.hub-prof-share .hub-field--check { justify-content: flex-start; }
.hub-prof-savebar {
    position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    padding: 14px 20px; background: oklch(0.975 0.006 230 / 0.95); border: 1px solid var(--hub-line); border-radius: 12px;
    backdrop-filter: blur(6px);
}
.hub-prof-mini { display: flex; gap: 12px; align-items: center; }
.hub-prof-mini strong { display: block; overflow-wrap: anywhere; }
.hub-prof-meter { height: 6px; border-radius: 999px; background: oklch(0.93 0.01 240); margin-top: 16px; overflow: hidden; }
.hub-prof-meter span { display: block; height: 100%; background: var(--hub-green); border-radius: inherit; }
.hub-prof-mini__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 13px; }

@media (max-width: 1100px) {
    .hub-prof-edit { grid-template-columns: minmax(0, 1fr); }
    .hub-prof-edit__aside { position: static; order: -1; }
}
@media (max-width: 860px) {
    .hub-prof-grid { grid-template-columns: minmax(0, 1fr); }
    .hub-prof-card { grid-template-columns: auto minmax(0, 1fr); }
    .hub-prof-card__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 720px) {
    .hub-prof-card { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 16px; }
    .hub-prof-avatar--lg { width: 80px; height: 80px; }
    .hub-prof-card__name { font-size: 24px; }
    .hub-prof-toggles, .hub-prof-vis, .hub-prof-share { grid-template-columns: minmax(0, 1fr); }
    .hub-prof-hist__row { padding: 12px 16px; }
    .hub-prof-pad { padding: 16px; }
}

/* ------------------------------------------------------------------ */
/* Maintenance mode (apps.maintenance)                                 */
/* ------------------------------------------------------------------ */
.hub-maint-banner { background: oklch(0.55 0.2 28); color: #fff; font-size: 14px; }
.hub-maint-banner__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
.hub-maint-banner__tools { display: flex; align-items: center; gap: 14px; }
.hub-maint-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.hub-maint-banner form { margin: 0; }
.hub-maint-banner button {
    border: 1px solid #fff; background: #fff; color: oklch(0.45 0.18 28); border-radius: 6px; padding: 3px 12px;
    font: 600 13px var(--hub-font); cursor: pointer;
}
.hub-maint-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.hub-maint-status .hub-panel__title { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.hub-maint-status .hub-dash-card__head > div { flex: 1 1 260px; min-width: 0; }
.hub-maint-status .hub-dash-card__head form { margin: 0; }
.hub-maint-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hub-green); box-shadow: 0 0 0 4px var(--hub-green-bg); }
.hub-maint-status.is-on { border-color: oklch(0.75 0.12 28); }
.hub-maint-status.is-on .hub-dash-card__head { background: oklch(0.97 0.025 28); }
.hub-maint-status.is-on .hub-maint-dot { background: oklch(0.58 0.2 28); box-shadow: 0 0 0 4px oklch(0.92 0.05 28); }
.hub-maint-on { background: oklch(0.55 0.2 28); border-color: oklch(0.55 0.2 28); }
.hub-maint-on:hover, .hub-maint-on:focus { background: oklch(0.48 0.19 28); border-color: oklch(0.48 0.19 28); }
.hub-maint-facts { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--hub-ink-2); }
.hub-maint-facts code, .hub-maint-tips code { font: 12px var(--hub-mono); background: oklch(0.95 0.01 240); border-radius: 4px; padding: 1px 5px; color: var(--hub-ink); border: 0; }
textarea.hub-maint-code { font: 13px/1.55 var(--hub-mono); }
.hub-maint-tips { margin-top: 14px; font-size: 13px; color: var(--hub-ink-2); }
.hub-maint-tips summary { cursor: pointer; }
.hub-maint-tips ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.hub-maint-preview { position: sticky; top: 84px; }
.hub-maint-preview iframe { display: block; width: 100%; height: 720px; border: 0; border-top: 1px solid var(--hub-line-soft); background: var(--hub-bg); }
@media (max-width: 1100px) {
    .hub-maint-grid { grid-template-columns: minmax(0, 1fr); }
    .hub-maint-preview { position: static; }
    .hub-maint-preview iframe { height: 600px; }
}

/* ------------------------------------------------------------------ */
/* Featured slideshow (hero): up to 5 challenges picked by the admin role */
/* ------------------------------------------------------------------ */
.hub-feature { display: flex; flex-direction: column; }
.hub-feature__track { display: grid; flex: 1; }
.hub-feature__slide { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; }
.hub-feature__slide > .hub-feature__body { flex: 1; display: flex; flex-direction: column; }
.hub-feature__slide > .hub-feature__body > .hub-btn:last-child { margin-top: auto; }
.hub-feature__slide > .hub-feature__body > .hub-lb { margin-bottom: 20px; }
/* All slides share one grid cell, so the card keeps the height of the tallest and never jumps. */
.hub-feature--slides .hub-feature__slide {
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0s;
}
.hub-feature--slides .hub-feature__slide:not(.is-active) {
    opacity: 0; visibility: hidden; transform: translateX(18px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}
.hub-feature__nav {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px 24px; border-top: 1px solid var(--hub-navy-line);
}
.hub-feature__dots { display: flex; gap: 6px; flex: 1; min-width: 0; }
.hub-feature__dot {
    position: relative; flex: 1; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.hub-feature__dot::before, .hub-feature__dot-fill {
    content: ''; position: absolute; left: 0; top: 10px; height: 4px; border-radius: 2px;
}
.hub-feature__dot::before { right: 0; background: oklch(0.36 0.05 245); }
.hub-feature__dot:hover::before { background: oklch(0.46 0.05 245); }
.hub-feature__dot-fill { width: 0; background: var(--hub-green); }
.hub-feature__dot[aria-current="true"] .hub-feature__dot-fill { width: 100%; }
.hub-feature--slides.is-timing .hub-feature__dot[aria-current="true"] .hub-feature__dot-fill {
    animation: hub-slide-progress var(--hub-slide-ms, 8s) linear forwards;
}
@keyframes hub-slide-progress { from { width: 0; } to { width: 100%; } }
.hub-feature__dot:focus-visible, .hub-feature__arrow:focus-visible, .hub-feature__pause:focus-visible {
    outline: 2px solid var(--hub-green-text); outline-offset: 2px; border-radius: 4px;
}
.hub-feature__arrow, .hub-feature__pause {
    flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hub-navy-line-2);
    background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    font: 500 20px/1 var(--hub-font); padding: 0 0 2px;
}
.hub-feature__arrow:hover, .hub-feature__pause:hover { background: var(--hub-navy-3); }
.hub-feature__pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hub-feature__pause[aria-pressed="true"] .hub-feature__pause-icon {
    width: 0; height: 0; border-right: 0; border-left: 10px solid currentColor;
    border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .hub-feature--slides .hub-feature__slide, .hub-feature--slides .hub-feature__slide:not(.is-active) { transition: none; transform: none; }
    .hub-feature--slides.is-timing .hub-feature__dot[aria-current="true"] .hub-feature__dot-fill { animation: none; }
}
@media (max-width: 720px) {
    .hub-feature__nav { padding: 8px 12px 12px 16px; }
}

/* ------------------------------------------------------------------ */
/* Jobs & health (/health/status/)                                     */
/* ------------------------------------------------------------------ */
.hub-jobs { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
.hub-jobs .hub-flash { margin: 0; }
.hub-jobs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hub-jobs-stat { background: #fff; border: 1px solid var(--hub-line); border-left: 3px solid var(--hub-blue); border-radius: 8px; padding: 14px 16px; }
.hub-jobs-stat--warn { border-left-color: var(--hub-yellow); }
.hub-jobs-stat--bad { border-left-color: var(--hub-orange); }
.hub-jobs-stat__value { font: 600 24px var(--hub-mono); letter-spacing: -0.02em; line-height: 1.2; color: var(--hub-ink); }
.hub-jobs-stat__label { font-size: 12px; color: var(--hub-muted-2); margin-top: 4px; }
.hub-jobs-filter { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--hub-line-soft); margin: 0; }
.hub-jobs-filter label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--hub-muted-2); }
.hub-jobs-filter .hub-input { width: auto; height: 32px; font-size: 13px; }
.hub-jobs-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--hub-line-soft); background: var(--hub-bg); }
.hub-jobs-bulk .hub-help { margin-right: auto; }
.hub-jobs-bulk .hub-btn:disabled { opacity: 0.45; cursor: default; }
.hub-jobs-danger { color: var(--hub-red-ink); }
.hub-jobs-danger:hover, .hub-jobs-danger:focus { color: var(--hub-red-ink); background: var(--hub-red-bg); }
.hub-jobs-danger-solid { background: var(--hub-red-ink); border-color: var(--hub-red-ink); }
.hub-jobs-danger-solid:hover, .hub-jobs-danger-solid:focus { background: oklch(0.44 0.18 28); }
.hub-jobs-danger-solid:disabled { opacity: 0.45; cursor: default; }
.hub-jobs-table-wrap { overflow-x: auto; }
.hub-jobs-table td { vertical-align: top; padding: 10px 16px; }
.hub-jobs-table th:first-child, .hub-jobs-table td:first-child { padding-right: 0; width: 1%; }
.hub-jobs-table input[type="checkbox"] { margin: 3px 0 0; }
.hub-jobs-about { min-width: 260px; overflow-wrap: anywhere; }
.hub-jobs-when { white-space: nowrap; font-size: 13px; }
.hub-jobs-actions-col { text-align: right; }
.hub-jobs-actions { white-space: nowrap; text-align: right; }
.hub-jobs-actions .hub-mini-btn + .hub-mini-btn { margin-left: 4px; }
.hub-jobs-error { margin-top: 6px; font-size: 12px; }
.hub-jobs-error summary { cursor: pointer; color: var(--hub-red-ink); font-weight: 500; }
.hub-jobs-error pre { margin: 6px 0 0; max-height: 240px; overflow: auto; font: 11px/1.5 var(--hub-mono); background: var(--hub-bg); border: 1px solid var(--hub-line-soft); border-radius: 6px; padding: 8px; white-space: pre-wrap; }
.hub-job-status { display: inline-block; font: 600 10px var(--hub-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; background: oklch(0.94 0.01 240); color: var(--hub-muted); white-space: nowrap; }
.hub-job-status--pending, .hub-job-status--sub-submitting, .hub-job-status--sub-submitted { background: var(--hub-blue-bg); color: var(--hub-blue-ink); }
.hub-job-status--running, .hub-job-status--sub-running { background: oklch(0.95 0.06 85); color: oklch(0.45 0.1 70); }
.hub-job-status--finished, .hub-job-status--sub-finished { background: var(--hub-green-bg); color: var(--hub-green-ink); }
.hub-job-status--failed, .hub-job-status--sub-failed { background: var(--hub-red-bg); color: var(--hub-red-ink); }
.hub-jobs-pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--hub-line-soft); }
.hub-jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.hub-jobs-settings { display: flex; flex-direction: column; gap: 8px; }
.hub-jobs-settings label { margin: 6px 0 0; font-size: 13px; font-weight: 500; }
.hub-jobs-settings .hub-btn { margin-top: 8px; }
.hub-jobs-zone { border-color: oklch(0.85 0.06 30); }
.hub-jobs-zone .hub-dash-card__head { background: oklch(0.98 0.015 30); }
@media (max-width: 720px) {
    .hub-jobs { padding-top: 16px; }
    .hub-jobs-filter, .hub-jobs-bulk { padding-left: 16px; padding-right: 16px; }
    .hub-jobs-table td, .hub-jobs-table th { padding-left: 10px; padding-right: 10px; }
}
