/*
 * AI Hub · Liquid Glass
 *
 * A design layer over hub.css, loaded after it. The idea comes from Apple's Liquid Glass (the SwiftUI skill at
 * github.com/haider-nawaz/liquid-glass-skill, iOS 26): translucent surfaces that blur and tint what is behind
 * them, a lit rim and a specular highlight, and motion that answers touch. The skill is SwiftUI; its rules are
 * translated to CSS here:
 *
 *   1. Glass is for the functional layer (navigation, menus, popovers, controls, floating panels). Data-dense
 *      content (tables, long text) keeps a nearly opaque surface so it stays readable.
 *   2. Never stack glass on glass: a surface that blurs its backdrop contains only flat, translucent children.
 *   3. Related glass shares one container (.glass-group), the way GlassEffectContainer shares one sample.
 *   4. Variants: regular (light), dark (on navy), tinted (brand colour), interactive (answers hover and press).
 *   5. Controls are capsules, panels are concentric rounded rectangles, menus morph out of the control that
 *      opened them.
 *
 * Everything degrades: no backdrop-filter, "reduce transparency" and high contrast get solid surfaces; "reduce
 * motion" gets no drift, spring or sliding thumb.
 */
:root {
    --lg-blur: 20px;
    --lg-sat: 1.8;
    --lg-shade: oklch(0.2 0.06 245);               /* what shadows are made of */

    /* Light glass (over the pale page) */
    --lg-fill: oklch(1 0 0 / 0.56);
    --lg-fill-strong: oklch(1 0 0 / 0.82);
    --lg-fill-soft: oklch(1 0 0 / 0.34);
    --lg-rim: oklch(1 0 0 / 0.9);                  /* lit edge, top left */
    --lg-rim-low: oklch(1 0 0 / 0.4);              /* shaded edge, bottom right */
    --lg-line: oklch(0.45 0.05 245 / 0.13);        /* hairline, so glass reads against the light page */
    --lg-shadow: 0 1px 2px oklch(0.2 0.06 245 / 0.05), 0 12px 32px -12px oklch(0.2 0.06 245 / 0.22);
    --lg-shadow-lift: 0 2px 4px oklch(0.2 0.06 245 / 0.06), 0 22px 44px -14px oklch(0.2 0.06 245 / 0.32);

    /* Dark glass (over navy) */
    --lg-dark-fill: oklch(0.34 0.07 245 / 0.46);
    --lg-dark-fill-strong: oklch(0.42 0.07 245 / 0.6);
    --lg-dark-rim: oklch(1 0 0 / 0.32);
    --lg-dark-line: oklch(1 0 0 / 0.11);

    --lg-radius: 22px;
    --lg-radius-sm: 14px;
    --lg-pill: 999px;
    --lg-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --lg-spring: cubic-bezier(0.22, 1.12, 0.32, 1);
    --lg-bg-solid: oklch(0.985 0.004 235);         /* fallback surface */
}

/* No blur available, or the member asked for less transparency: solid surfaces, same shapes. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --lg-blur: 0px; --lg-sat: 1; --lg-fill: oklch(1 0 0 / 0.94); --lg-fill-strong: #fff; --lg-fill-soft: oklch(1 0 0 / 0.8);
            --lg-dark-fill: oklch(0.3 0.07 245 / 0.96); --lg-dark-fill-strong: oklch(0.36 0.07 245); }
}
@media (prefers-reduced-transparency: reduce) {
    :root { --lg-blur: 0px; --lg-sat: 1; --lg-fill: #fff; --lg-fill-strong: #fff; --lg-fill-soft: oklch(0.98 0.005 235);
            --lg-dark-fill: oklch(0.3 0.07 245); --lg-dark-fill-strong: oklch(0.36 0.07 245); }
    body.hub-body::before { display: none; }
    /* Components set their own blur and translucent fills: make every one of them solid. */
    .hub-body *, .hub-body *::before, .hub-body *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    .hub-header::before, .hub-header__menus { background: oklch(0.22 0.06 245) !important; }
    .hub-bell__panel, .hub-usermenu__list, .modal-content, .dropdown-menu, .popover, .tooltip-inner, .hub-ann-actions,
    .hub-notice, .hub-sponsors, .hub-panel, .hub-board, .hub-card, .hub-nc__item, .hub-reach, .hub-nc__bar { background: #fff !important; }
    .hub-tabs, .hub-seg, .hub-body .nav-tabs { background: oklch(0.95 0.006 235) !important; }
    .hub-feature { background: oklch(0.28 0.07 245) !important; }
    .hub-preview { background: oklch(0.24 0.06 245) !important; }
}
@media (prefers-contrast: more) {
    :root { --lg-line: oklch(0.3 0.05 245 / 0.5); --lg-dark-line: oklch(1 0 0 / 0.5); --lg-fill: #fff; --lg-fill-strong: #fff; }
}

/* ------------------------------------------------------------------ */
/* Ambient light: soft colour behind the glass, so there is something to blur */
/* ------------------------------------------------------------------ */
body.hub-body { background: var(--hub-bg); }
body.hub-body::before {
    content: '';
    position: fixed; inset: -12vmax; z-index: -1; pointer-events: none;
    background:
        radial-gradient(42vmax 34vmax at 10% 6%, oklch(0.84 0.14 150 / 0.42), transparent 70%),
        radial-gradient(40vmax 32vmax at 92% 10%, oklch(0.8 0.11 240 / 0.42), transparent 70%),
        radial-gradient(36vmax 30vmax at 84% 82%, oklch(0.88 0.13 78 / 0.34), transparent 70%),
        radial-gradient(38vmax 32vmax at 6% 92%, oklch(0.82 0.11 25 / 0.28), transparent 70%);
    animation: lg-drift 48s ease-in-out infinite alternate;
}
@keyframes lg-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(2vmax, -1.5vmax, 0) scale(1.06); }
}
/* Sections that painted the page flat now let the light through. */
.hub-board-section { background: transparent; border-bottom: 1px solid var(--lg-line); }
.hub-notice, .hub-sponsors {
    background: var(--lg-fill-strong);
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
    border-bottom: 1px solid var(--lg-line);
}

/* ------------------------------------------------------------------ */
/* Primitives                                                          */
/* ------------------------------------------------------------------ */
.glass, .glass-group {
    position: relative;
    background:
        radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), oklch(1 0 0 / calc(var(--spec, 0) * 0.5)), transparent 62%),
        linear-gradient(140deg, oklch(1 0 0 / 0.5), oklch(1 0 0 / 0.1) 46%, oklch(1 0 0 / 0.26)),
        var(--lg-fill);
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
    backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
    border: 1px solid var(--lg-line);
    border-radius: var(--lg-radius);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow);
}
.glass--dark, .glass-group--dark {
    background:
        radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), oklch(1 0 0 / calc(var(--spec, 0) * 0.22)), transparent 62%),
        linear-gradient(140deg, oklch(1 0 0 / 0.16), oklch(1 0 0 / 0.02) 50%, oklch(1 0 0 / 0.08)),
        var(--lg-dark-fill);
    border-color: var(--lg-dark-line);
    color: #fff;
    box-shadow: inset 1px 1px 0 var(--lg-dark-rim), inset -1px -1px 0 oklch(1 0 0 / 0.08), 0 14px 36px -14px oklch(0.1 0.05 245 / 0.6);
}
.glass--interactive { transition: transform 0.35s var(--lg-spring), box-shadow 0.3s var(--lg-ease); cursor: pointer; }
.glass--interactive:hover { --spec: 1; transform: translateY(-2px); box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow-lift); }
.glass--interactive:active { transform: scale(0.985); transition-duration: 0.12s; }

/* ------------------------------------------------------------------ */
/* Header: a bar of dark glass, content blurs beneath it as the page scrolls */
/* ------------------------------------------------------------------ */
/* The glass is a layer behind the bar (::before), not the header's own backdrop-filter: an element with
   backdrop-filter becomes a "backdrop root", and the bell and menus inside it would then blur only what is inside
   the header instead of the page behind it. */
.hub-header { background: none; border-bottom: 0; isolation: isolate; }
.hub-header::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, oklch(0.27 0.07 245 / 0.84), oklch(0.2 0.06 245 / 0.76));
    -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
    border-bottom: 1px solid var(--lg-dark-line);
    box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.16), 0 0 0 oklch(0 0 0 / 0);
    transition: box-shadow 0.3s var(--lg-ease);
}
.hub-header.is-scrolled::before { box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.16), 0 10px 30px -12px oklch(0.1 0.05 245 / 0.6); }
.hub-header__menus { gap: 20px; }
.hub-nav {
    flex: 0 1 auto; flex-wrap: nowrap; min-width: 0; gap: 2px; padding: 4px; border-radius: var(--lg-pill);
    background: oklch(1 0 0 / 0.07);
    box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.1), inset 0 1px 0 oklch(1 0 0 / 0.1);
}
.hub-header__actions { margin-left: auto; }
.hub-nav a, .hub-header__link { border-radius: var(--lg-pill); padding: 7px 14px; transition: background-color 0.25s var(--lg-ease), color 0.2s, box-shadow 0.25s; }
.hub-nav a:hover, .hub-nav a:focus, .hub-header__link:hover, .hub-header__link:focus { background: oklch(1 0 0 / 0.12); }
.hub-nav a.is-active {
    background: linear-gradient(180deg, oklch(1 0 0 / 0.26), oklch(1 0 0 / 0.12));
    box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.4), inset 0 -1px 0 oklch(1 0 0 / 0.06), 0 4px 14px -4px oklch(0 0 0 / 0.45);
}
.hub-burger { border-radius: 12px; background: oklch(1 0 0 / 0.08); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.2); border-color: var(--lg-dark-line); }
.hub-btn-signup {
    border-radius: var(--lg-pill); padding: 8px 18px;
    background: linear-gradient(180deg, oklch(0.78 0.2 148), oklch(0.66 0.19 145));
    color: var(--hub-green-deep);
    box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.6), inset 0 -1px 0 oklch(0.4 0.14 145 / 0.4), 0 6px 18px -6px oklch(0.62 0.19 145 / 0.8);
    transition: transform 0.3s var(--lg-spring), box-shadow 0.25s;
}
.hub-btn-signup:hover, .hub-btn-signup:focus { background: linear-gradient(180deg, oklch(0.82 0.2 148), oklch(0.7 0.19 145)); transform: translateY(-1px); }
.hub-btn-signup:active { transform: scale(0.97); }
.hub-admin-toggle { border-radius: var(--lg-pill); background: oklch(1 0 0 / 0.06); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14); }

/* Account menu */
.hub-usermenu__button { border-radius: var(--lg-pill); padding: 4px 12px 4px 4px; background: oklch(1 0 0 / 0.07); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.1), inset 0 1px 0 oklch(1 0 0 / 0.12); transition: background-color 0.25s; }
.hub-usermenu__button:hover, .hub-usermenu__button[aria-expanded="true"] { background: oklch(1 0 0 / 0.14); }
.hub-avatar { border-radius: 50%; box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.55), 0 2px 8px oklch(0 0 0 / 0.3); }
.hub-usermenu__list {
    top: calc(100% + 10px); min-width: 240px; padding: 8px; border-radius: 18px;
    background: var(--lg-fill-strong);
    -webkit-backdrop-filter: blur(28px) saturate(2); backdrop-filter: blur(28px) saturate(2);
    border: 1px solid var(--lg-line);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), 0 24px 56px -16px oklch(0.15 0.06 245 / 0.5);
    transform-origin: top right;
}
.hub-usermenu__list:not([hidden]) { animation: lg-pop 0.38s var(--lg-spring); }
.hub-usermenu__list a { border-radius: 10px; transition: background-color 0.15s; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hub-usermenu__list a:hover, .hub-usermenu__list a:focus { background: oklch(0.5 0.12 235 / 0.1); }
.hub-usermenu__count { font: 600 11px var(--hub-mono); background: var(--hub-orange); color: #fff; border-radius: var(--lg-pill); padding: 1px 7px; }
@keyframes lg-pop {
    from { opacity: 0; transform: translateY(-8px) scale(0.92); }
    to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Notification bell                                                   */
/* ------------------------------------------------------------------ */
.hub-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hub-icon--lg { width: 32px; height: 32px; stroke-width: 1.5; }
.hub-bell { position: relative; }
.hub-bell--mobile { display: none; }
.hub-bell__button {
    position: relative; width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    background: oklch(1 0 0 / 0.08); border: 0;
    box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.12), inset 0 1px 0 oklch(1 0 0 / 0.2);
    transition: background-color 0.25s, transform 0.35s var(--lg-spring);
}
.hub-bell__button:hover, .hub-bell__button[aria-expanded="true"] { background: oklch(1 0 0 / 0.16); transform: translateY(-1px); }
.hub-bell__button:active { transform: scale(0.94); }
.hub-bell__count {
    position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    border-radius: var(--lg-pill); font: 700 10.5px/18px var(--hub-mono); text-align: center; color: #fff;
    background: linear-gradient(180deg, oklch(0.74 0.2 35), oklch(0.62 0.21 28));
    box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.45), 0 0 0 2px oklch(0.22 0.06 245), 0 4px 10px -2px oklch(0.6 0.2 30 / 0.8);
}
.hub-bell__panel {
    position: absolute; right: -8px; top: calc(100% + 12px); width: 392px; max-width: calc(100vw - 24px); z-index: 1045;
    display: flex; flex-direction: column; max-height: min(72vh, 580px); border-radius: 24px; color: var(--hub-ink);
    background: linear-gradient(160deg, oklch(1 0 0 / 0.5), oklch(1 0 0 / 0.1)), oklch(1 0 0 / 0.86);
    -webkit-backdrop-filter: blur(30px) saturate(2.1); backdrop-filter: blur(30px) saturate(2.1);
    border: 1px solid var(--lg-line);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), 0 30px 70px -20px oklch(0.15 0.06 245 / 0.55);
    transform-origin: calc(100% - 26px) -10px;   /* grows out of the bell */
    overflow: hidden;
}
.hub-bell__panel[hidden] { display: none; }
.hub-bell.is-open .hub-bell__panel { animation: lg-morph 0.46s var(--lg-spring); }
@keyframes lg-morph {
    from { opacity: 0; transform: scale(0.2, 0.12); border-radius: 40px; }
    55% { opacity: 1; }
    to { opacity: 1; transform: none; }
}
.hub-bell__head, .hub-bell__foot { flex: none; }
.hub-bell__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.hub-bell__head h2 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -0.01em; color: var(--hub-ink); }
.hub-bell__markall { border: 0; background: none; padding: 5px 10px; border-radius: var(--lg-pill); font: 600 12px var(--hub-font); color: var(--hub-link); cursor: pointer; }
.hub-bell__markall:hover:not(:disabled) { background: oklch(0.5 0.14 235 / 0.1); }
.hub-bell__markall:disabled { color: var(--hub-muted-3); cursor: default; }
.hub-bell__list { list-style: none; margin: 0; padding: 4px 8px 8px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.hub-bell__list li + li { margin-top: 2px; }
.hub-bell__item {
    display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 16px; text-decoration: none; color: var(--hub-ink);
    transition: background-color 0.2s, transform 0.3s var(--lg-spring);
}
a.hub-bell__item:hover, a.hub-bell__item:focus { background: oklch(0.5 0.12 235 / 0.09); text-decoration: none; color: var(--hub-ink); }
a.hub-bell__item:active { transform: scale(0.985); }
.hub-bell__item.is-unread { background: oklch(0.62 0.16 240 / 0.08); }
.hub-bell__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hub-bell__text strong { font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.hub-bell__body { font-size: 13px; line-height: 1.45; color: var(--hub-muted-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hub-bell__meta { font: 500 11px var(--hub-mono); color: var(--hub-muted-3); margin-top: 2px; }
.hub-bell__dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--hub-blue); box-shadow: 0 0 0 3px oklch(0.62 0.16 240 / 0.18); }
.hub-bell__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; margin: 0; color: var(--hub-muted); font-size: 14px; }
.hub-bell__foot { border-top: 1px solid var(--lg-line); padding: 6px; }
.hub-bell__foot a { display: block; text-align: center; padding: 10px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--hub-link); text-decoration: none; }
.hub-bell__foot a:hover, .hub-bell__foot a:focus { background: oklch(0.5 0.12 235 / 0.09); text-decoration: none; }

/* Kind bubbles: a tinted glass tile per notification type */
.hub-kind {
    --h: 240;
    width: 38px; height: 38px; flex: none; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
    color: oklch(0.38 0.15 var(--h));
    background: linear-gradient(150deg, oklch(0.94 0.06 var(--h)), oklch(0.84 0.11 var(--h)));
    box-shadow: inset 1px 1px 0 oklch(1 0 0 / 0.85), inset -1px -1px 0 oklch(1 0 0 / 0.25), 0 4px 12px -4px oklch(0.6 0.15 var(--h) / 0.55);
}
.hub-kind--news { --h: 240; }
.hub-kind--challenge { --h: 148; }
.hub-kind--update { --h: 300; }
.hub-kind--service { --h: 40; }
.hub-kind--participation { --h: 180; }
.hub-kind--submission { --h: 262; }
.hub-kind--discussion { --h: 85; }

/* ------------------------------------------------------------------ */
/* Page header, hero, footer                                           */
/* ------------------------------------------------------------------ */
.hub-pagehead {
    background:
        radial-gradient(60% 140% at 8% 0%, oklch(0.5 0.15 150 / 0.4), transparent 62%),
        radial-gradient(55% 140% at 96% 20%, oklch(0.5 0.14 240 / 0.45), transparent 60%),
        var(--hub-navy);
}
.hub-hero {
    background:
        radial-gradient(46% 70% at 4% 0%, oklch(0.5 0.16 150 / 0.36), transparent 66%),
        radial-gradient(50% 80% at 98% 30%, oklch(0.52 0.15 240 / 0.45), transparent 62%),
        radial-gradient(40% 60% at 60% 110%, oklch(0.6 0.15 60 / 0.18), transparent 70%),
        var(--hub-navy);
    overflow: hidden;
}
.hub-stripe { height: 4px; opacity: 0.95; }
.hub-feature {
    border-radius: var(--lg-radius) !important;
    background:
        radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), oklch(1 0 0 / calc(var(--spec, 0) * 0.18)), transparent 62%),
        linear-gradient(140deg, oklch(1 0 0 / 0.14), oklch(1 0 0 / 0.02) 50%, oklch(1 0 0 / 0.06)),
        oklch(0.3 0.07 245 / 0.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid var(--lg-dark-line) !important;
    box-shadow: inset 1px 1px 0 var(--lg-dark-rim), inset -1px -1px 0 oklch(1 0 0 / 0.07), 0 30px 70px -24px oklch(0.08 0.05 245 / 0.8);
}
footer.hub-footer {
    background:
        radial-gradient(50% 160% at 0% 0%, oklch(0.5 0.15 150 / 0.22), transparent 62%),
        radial-gradient(50% 160% at 100% 0%, oklch(0.5 0.14 240 / 0.26), transparent 62%),
        var(--hub-navy);
    border-top: 0; position: relative;
}
footer.hub-footer::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--hub-green), var(--hub-blue), var(--hub-orange), var(--hub-yellow));
}

/* ------------------------------------------------------------------ */
/* Controls                                                            */
/* ------------------------------------------------------------------ */
.hub-btn, .hub-btn--lg {
    border-radius: var(--lg-pill); border: 1px solid oklch(0.1 0.05 245 / 0.55);
    background: linear-gradient(180deg, oklch(0.34 0.07 245), oklch(0.22 0.06 245));
    box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.28), inset 0 -1px 0 oklch(0 0 0 / 0.25), 0 8px 18px -8px oklch(0.2 0.06 245 / 0.6);
    transition: transform 0.35s var(--lg-spring), box-shadow 0.25s var(--lg-ease), background-color 0.2s, filter 0.2s;
}
.hub-btn:hover, .hub-btn:focus { background: linear-gradient(180deg, oklch(0.4 0.07 245), oklch(0.26 0.06 245)); transform: translateY(-1px); }
.hub-btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.hub-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.hub-btn--outline, .hub-btn--done, .hub-btn--pending {
    background: linear-gradient(180deg, oklch(1 0 0 / 0.85), oklch(1 0 0 / 0.55));
    border-color: var(--lg-line); color: var(--hub-ink);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), 0 6px 16px -8px oklch(0.2 0.06 245 / 0.3);
}
.hub-btn--outline:hover, .hub-btn--outline:focus { background: linear-gradient(180deg, oklch(1 0 0 / 0.95), oklch(1 0 0 / 0.6)); color: var(--hub-ink); }
.hub-btn--done { color: var(--hub-green-ink); }
.hub-btn--pending { color: var(--hub-blue-ink); }
.hub-btn--green {
    background: linear-gradient(180deg, oklch(0.78 0.2 148), oklch(0.64 0.19 145)); border-color: oklch(0.5 0.16 145 / 0.6); color: var(--hub-green-deep);
    box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.6), inset 0 -1px 0 oklch(0.4 0.14 145 / 0.35), 0 10px 22px -8px oklch(0.6 0.19 145 / 0.75);
}
.hub-btn--green:hover, .hub-btn--green:focus { background: linear-gradient(180deg, oklch(0.83 0.2 148), oklch(0.69 0.19 145)); color: var(--hub-green-deep); }
.hub-btn--ghost-dark {
    background: oklch(1 0 0 / 0.07); border-color: var(--lg-dark-line); color: #fff;
    box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.22);
}
.hub-btn--ghost-dark:hover, .hub-btn--ghost-dark:focus { background: oklch(1 0 0 / 0.14); color: #fff; }
.hub-btn--lg { padding: 12px 22px; }
.hub-mini-btn {
    border-radius: 9px; border-color: var(--lg-line); background: linear-gradient(180deg, oklch(1 0 0 / 0.85), oklch(1 0 0 / 0.5));
    box-shadow: inset 0 1px 0 var(--lg-rim), 0 2px 6px -3px oklch(0.2 0.06 245 / 0.3);
    transition: transform 0.3s var(--lg-spring), background-color 0.2s;
}
.hub-mini-btn:hover, .hub-mini-btn:focus { transform: translateY(-1px); background: #fff; }
.hub-mini-btn:active { transform: scale(0.95); }
.hub-mini-btn.is-on, .hub-mini-btn[aria-pressed="true"] { background: linear-gradient(180deg, oklch(0.34 0.07 245), oklch(0.22 0.06 245)); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25); }

.hub-chip {
    border-color: var(--lg-line); background: linear-gradient(180deg, oklch(1 0 0 / 0.8), oklch(1 0 0 / 0.45)); color: oklch(0.35 0.04 245);
    box-shadow: inset 1px 1px 0 var(--lg-rim), 0 3px 10px -6px oklch(0.2 0.06 245 / 0.35);
    transition: transform 0.3s var(--lg-spring), background-color 0.2s; text-decoration: none; display: inline-block;
}
.hub-chip:hover { border-color: var(--lg-line); background: #fff; transform: translateY(-1px); text-decoration: none; color: oklch(0.3 0.04 245); }
.hub-chip:active { transform: scale(0.96); }
.hub-chip[aria-pressed="true"], .hub-chip.is-active { background: linear-gradient(180deg, oklch(0.34 0.07 245), oklch(0.22 0.06 245)); border-color: oklch(0.1 0.05 245 / 0.5); color: #fff; box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25), 0 6px 14px -6px oklch(0.2 0.06 245 / 0.6); }
.hub-pill, .hub-tag, .hub-badge { border-radius: var(--lg-pill); }
.hub-tag { background: oklch(1 0 0 / 0.6); box-shadow: inset 0 0 0 1px var(--lg-line); }
.hub-badge--live { background: linear-gradient(180deg, oklch(0.96 0.06 145), oklch(0.9 0.1 145)); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.8); }
.hub-badge--dark { box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.2); }

/* Tabs and segmented controls: one capsule of glass, a lit thumb under the active item.
   glass.js moves the thumb (--thumb-x, --thumb-w); without it the active item carries the light itself. */
.hub-tabs, .hub-seg {
    position: relative; display: inline-flex; max-width: 100%; padding: 4px; gap: 2px; border-radius: var(--lg-pill);
    border: 1px solid var(--lg-line); border-bottom-width: 1px;
    background: linear-gradient(180deg, oklch(1 0 0 / 0.5), oklch(1 0 0 / 0.28));
    -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), inset 0 2px 6px oklch(0.2 0.06 245 / 0.06);
}
.hub-tabs::before, .hub-seg::before {
    content: ''; position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--thumb-w, 0px); border-radius: var(--lg-pill);
    transform: translateX(var(--thumb-x, 0px)); opacity: var(--thumb-on, 0);
    background: linear-gradient(180deg, #fff, oklch(1 0 0 / 0.78));
    box-shadow: inset 0 1px 0 #fff, 0 6px 16px -6px oklch(0.2 0.06 245 / 0.4), 0 1px 2px oklch(0.2 0.06 245 / 0.12);
    transition: transform 0.5s var(--lg-spring), width 0.5s var(--lg-spring), opacity 0.2s;
    pointer-events: none;
}
.hub-tabs.no-anim::before, .hub-seg.no-anim::before { transition: none; }
.hub-tab, .hub-seg__item {
    position: relative; z-index: 1; border-radius: var(--lg-pill); border-bottom: 0; margin: 0; padding: 8px 16px;
    font: 600 13.5px var(--hub-font); color: var(--hub-muted); text-decoration: none; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.hub-tab:hover, .hub-tab:focus, .hub-seg__item:hover, .hub-seg__item:focus { color: var(--hub-ink); text-decoration: none; }
.hub-tab[aria-selected="true"], .hub-tab.is-active, .hub-seg__item.is-active { color: var(--hub-ink); border-bottom: 0; }
.hub-tabs:not([data-glass-thumb]) .hub-tab.is-active, .hub-tabs:not([data-glass-thumb]) .hub-tab[aria-selected="true"],
.hub-seg:not([data-glass-thumb]) .hub-seg__item.is-active {
    background: linear-gradient(180deg, #fff, oklch(1 0 0 / 0.78)); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -6px oklch(0.2 0.06 245 / 0.4);
}
.hub-tab__count, .hub-seg__count { border-radius: var(--lg-pill); font: 600 11px var(--hub-mono); background: oklch(0.5 0.05 245 / 0.1); color: oklch(0.4 0.04 245); padding: 2px 8px; }
.hub-tabs--small { padding: 4px; margin-top: 10px; }
.hub-tabs--small .hub-tab { padding: 6px 14px; margin-right: 0; font-size: 13px; }
.hub-dash__tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; box-sizing: border-box; }
.hub-dash__view { margin-left: auto; }

/* Inputs: inset glass */
.hub-input, .hub-search, .hub-sponsor-form input[type="text"], .hub-sponsor-form input[type="url"], .hub-sponsor-form select {
    background: oklch(1 0 0 / 0.62); border-color: var(--lg-line); border-radius: 12px;
    box-shadow: inset 0 2px 5px oklch(0.2 0.06 245 / 0.07), inset 0 1px 0 oklch(1 0 0 / 0.6);
    transition: box-shadow 0.25s var(--lg-ease), border-color 0.2s, background-color 0.2s;
}
.hub-search { border-radius: var(--lg-pill); border: 1px solid var(--lg-line); }
.hub-input:focus, .hub-search:focus-within { background: #fff; border-color: oklch(0.55 0.15 235 / 0.7); box-shadow: 0 0 0 4px oklch(0.55 0.15 235 / 0.16), inset 0 1px 2px oklch(0.2 0.06 245 / 0.05); }
.hub-input::placeholder { color: oklch(0.55 0.02 240 / 0.8); }
.hub-flash__item { border-radius: 16px; background: oklch(0.94 0.07 148 / 0.75); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 1px 1px 0 var(--lg-rim), 0 8px 20px -12px oklch(0.4 0.14 148 / 0.5); border: 1px solid oklch(0.7 0.1 148 / 0.3); }
.hub-flash__item--error { background: oklch(0.94 0.06 28 / 0.8); border-color: oklch(0.7 0.12 28 / 0.35); box-shadow: inset 1px 1px 0 var(--lg-rim), 0 8px 20px -12px oklch(0.5 0.17 28 / 0.5); }
.hub-flash__item--warning { background: oklch(0.95 0.07 85 / 0.85); color: oklch(0.45 0.12 70); border-color: oklch(0.75 0.12 80 / 0.4); }

/* ------------------------------------------------------------------ */
/* Surfaces: the content layer stays calm, so panels are only lightly frosted */
/* ------------------------------------------------------------------ */
.hub-panel, .hub-board, .hub-card, .hub-post, .hub-news__card, .hub-team, .hub-disc-post, .hub-disc-replies,
.hub-prof-stat, .hub-jobs-stat, .hub-popover__panel, .hub-auth__email, .hub-upload, .hub-sponsor-form {
    background:
        linear-gradient(145deg, oklch(1 0 0 / 0.55), oklch(1 0 0 / 0.14) 52%, oklch(1 0 0 / 0.3)),
        var(--lg-fill-strong);
    border: 1px solid var(--lg-line);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow);
}
/* Only the few large surfaces blur their backdrop. Items that repeat in long lists (cards, rows, tiles) keep the
   same fill and rim without it: over the soft page light the blur is invisible, and it is costly in bulk. */
.hub-panel, .hub-board, .hub-popover__panel {
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
}
.hub-panel, .hub-board { border-radius: var(--lg-radius); }
.hub-card, .hub-post, .hub-news__card, .hub-team, .hub-disc-post, .hub-disc-replies { border-radius: 20px; }
.hub-post { border-left-width: 1px; border-left-color: var(--lg-line); box-shadow: inset 4px 0 0 var(--hub-news-color, var(--hub-blue)), inset 1px 1px 0 var(--lg-rim), var(--lg-shadow); }
.hub-card, .hub-news__card, .hub-team { transition: transform 0.4s var(--lg-spring), box-shadow 0.3s var(--lg-ease); }
.hub-card:hover, .hub-news__card:hover, .hub-news__card:focus, .hub-team:hover {
    border-color: var(--lg-line); transform: translateY(-3px);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow-lift);
}
.hub-card__foot, .hub-board__head, .hub-dash-card__head { border-color: oklch(0.45 0.05 245 / 0.1); }
.hub-board__form { background: oklch(1 0 0 / 0.4); border-color: oklch(0.45 0.05 245 / 0.1); }
.hub-notice-row.is-pinned { background: linear-gradient(90deg, oklch(0.95 0.06 80 / 0.7), oklch(0.95 0.06 80 / 0.15)); }
.hub-usermenu__list .hub-divider { background: oklch(0.45 0.05 245 / 0.12); }
.hub-dash-item.is-muted { background: oklch(0.5 0.02 240 / 0.05); }
.hub-dash-item, .hub-notice-row, .hub-table td { border-bottom-color: oklch(0.45 0.05 245 / 0.09); }
.hub-table th { border-bottom-color: oklch(0.45 0.05 245 / 0.14); }
.hub-fieldset { border-color: var(--lg-line); border-radius: 16px; background: oklch(1 0 0 / 0.3); }
.hub-empty { border-color: oklch(0.45 0.05 245 / 0.25); border-radius: var(--lg-radius); background: oklch(1 0 0 / 0.3); }
.hub-bar, .hub-bar > span { border-radius: var(--lg-pill); }
.hub-bar { background: oklch(0.45 0.05 245 / 0.12); box-shadow: inset 0 1px 2px oklch(0.2 0.06 245 / 0.1); }
.hub-stat { border-radius: 2px; }
.hub-orgtile { border-radius: 10px; box-shadow: inset 1px 1px 0 oklch(1 0 0 / 0.5), 0 3px 8px -3px oklch(0.2 0.06 245 / 0.4); }

/* Legacy Bootstrap pieces used by the competition pages */
.modal-content {
    border-radius: 24px; border: 1px solid var(--lg-line);
    background: var(--lg-fill-strong); -webkit-backdrop-filter: blur(30px) saturate(2); backdrop-filter: blur(30px) saturate(2);
    box-shadow: inset 1px 1px 0 var(--lg-rim), 0 40px 90px -24px oklch(0.15 0.06 245 / 0.6);
}
.modal-backdrop.in { opacity: 1; background: oklch(0.2 0.06 245 / 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dropdown-menu, .popover, .tooltip-inner { border-radius: 14px; border: 1px solid var(--lg-line); background: var(--lg-fill-strong); -webkit-backdrop-filter: blur(24px) saturate(1.9); backdrop-filter: blur(24px) saturate(1.9); box-shadow: inset 1px 1px 0 var(--lg-rim), 0 18px 40px -14px oklch(0.15 0.06 245 / 0.45); }
.tooltip-inner { color: var(--hub-ink); }
.panel, .well { border-radius: 18px; border: 1px solid var(--lg-line); background: var(--lg-fill-strong); box-shadow: inset 1px 1px 0 var(--lg-rim), var(--lg-shadow); }
.panel-heading { border-top-left-radius: 17px; border-top-right-radius: 17px; background: oklch(1 0 0 / 0.5) !important; border-bottom-color: var(--lg-line) !important; }
.btn { border-radius: var(--lg-pill); }

/* Legacy pages (Bootstrap 3): tabs and challenge tiles take the same glass language */
.hub-body .nav-tabs {
    display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 4px; margin: 0 0 22px;
    border: 1px solid var(--lg-line); border-radius: var(--lg-pill);
    background: linear-gradient(180deg, oklch(1 0 0 / 0.5), oklch(1 0 0 / 0.28));
    -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), inset 0 2px 6px oklch(0.2 0.06 245 / 0.06);
}
.hub-body .nav-tabs::-webkit-scrollbar { display: none; }
.hub-body .nav-tabs > li { float: none; margin: 0; flex: none; }
.hub-body .nav-tabs > li > a {
    margin: 0; border: 0; border-radius: var(--lg-pill); padding: 8px 16px; font: 600 13.5px var(--hub-font); color: var(--hub-muted);
    background: transparent; white-space: nowrap; transition: color 0.2s, background-color 0.2s;
}
.hub-body .nav-tabs > li > a:hover, .hub-body .nav-tabs > li > a:focus { background: oklch(1 0 0 / 0.55); color: var(--hub-ink); border: 0; }
.hub-body .nav-tabs > li.active > a, .hub-body .nav-tabs > li.active > a:hover, .hub-body .nav-tabs > li.active > a:focus {
    border: 0; color: var(--hub-ink); background: linear-gradient(180deg, #fff, oklch(1 0 0 / 0.78));
    box-shadow: inset 0 1px 0 #fff, 0 6px 16px -6px oklch(0.2 0.06 245 / 0.4);
}
.hub-body .competition-tile {
    border: 1px solid var(--lg-line); border-radius: 20px; overflow: hidden; padding: 14px 18px;
    background: linear-gradient(145deg, oklch(1 0 0 / 0.55), oklch(1 0 0 / 0.14) 52%, oklch(1 0 0 / 0.3)), var(--lg-fill-strong);
    box-shadow: inset 4px 0 0 var(--hub-blue), inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow);
    transition: transform 0.4s var(--lg-spring), box-shadow 0.3s var(--lg-ease);
}
.hub-body .competition-tile:hover {
    border-color: var(--lg-line); transform: translateY(-2px);
    box-shadow: inset 4px 0 0 var(--hub-green), inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow-lift);
}
.hub-body .competition-tile .right-panel {
    color: #fff; background: radial-gradient(90% 70% at 100% 0%, oklch(0.5 0.15 240 / 0.55), transparent 70%), linear-gradient(160deg, oklch(0.32 0.08 245), oklch(0.22 0.06 245));
    box-shadow: inset 1px 0 0 oklch(1 0 0 / 0.12);
}
.hub-body .competition-tile .img-container { border-radius: 12px; overflow: hidden; }
.hub-body .competition-tile h3 { font-weight: 600; letter-spacing: -0.01em; color: var(--hub-ink); }
.hub-body .competition-tile:hover h3 { color: var(--hub-link-hover); }
.hub-body .competition-tile p.organizer { color: var(--hub-muted-3); font-weight: 600; }
a:hover > .competition-tile, a:focus > .competition-tile { text-decoration: none; }

/* Hub pages hang their content on .hub-wrap; the page title lines up with it instead of Bootstrap's narrower container */
.hub-main:has(.hub-wrap) .hub-pagehead .container { max-width: var(--hub-wrap); width: 100%; padding: 0 24px; box-sizing: border-box; }
@media (max-width: 720px) { .hub-main:has(.hub-wrap) .hub-pagehead .container { padding: 0 16px; } }

/* ------------------------------------------------------------------ */
/* Account pages: sign in, sign up, password (account/*.html)          */
/* ------------------------------------------------------------------ */
.hub-auth__card { border-radius: 28px; }
.hub-auth__card--form { text-align: left; padding: 34px 38px 30px; }
.hub-auth--form { max-width: 520px; margin-top: 8px; }
.hub-auth__card--form .row { margin: 0; }
.hub-auth__card--form [class*="col-"] { float: none; width: 100%; padding: 0; }
.hub-auth__card--form .form-group { margin-bottom: 16px; }
.hub-auth__card--form label { font-size: 13px; font-weight: 600; color: var(--hub-ink); margin-bottom: 6px; }
.hub-auth__card--form .form-control, .hub-auth__card--form input[type="text"], .hub-auth__card--form input[type="email"],
.hub-auth__card--form input[type="password"] {
    height: 46px; padding: 0 16px; border-radius: 14px; font-size: 15px; width: 100%;
    background: oklch(1 0 0 / 0.65); border: 1px solid var(--lg-line);
    box-shadow: inset 0 2px 5px oklch(0.2 0.06 245 / 0.07), inset 0 1px 0 oklch(1 0 0 / 0.6);
    transition: box-shadow 0.25s var(--lg-ease), border-color 0.2s, background-color 0.2s;
}
.hub-auth__card--form .form-control:focus, .hub-auth__card--form input:focus {
    background: #fff; border-color: oklch(0.55 0.15 235 / 0.7); outline: 0;
    box-shadow: 0 0 0 4px oklch(0.55 0.15 235 / 0.16), inset 0 1px 2px oklch(0.2 0.06 245 / 0.05);
}
.hub-auth__card--form .checkbox { margin: 0 0 18px; }
.hub-auth__card--form .checkbox label { padding-left: 0; display: inline-flex; align-items: center; cursor: pointer; }
.hub-auth__card--form .checkbox input[type="checkbox"] { position: static; margin: 0 9px 0 0; }
.hub-auth__card--form .checkbox label, .hub-auth__card--form .form-group input[type="checkbox"] + label { font-weight: 500; font-size: 14px; }
.hub-auth__card--form input[type="checkbox"] { accent-color: oklch(0.58 0.19 148); width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: -2px; }
.hub-auth__card--form .btn { border: 1px solid oklch(0.1 0.05 245 / 0.5); }
.hub-auth__card--form .btn-primary, .hub-auth__card--form input[type="submit"].btn-primary {
    width: 100%; margin-top: 8px; padding: 13px 22px; font: 600 15px var(--hub-font); color: var(--hub-green-deep);
    background: linear-gradient(180deg, oklch(0.78 0.2 148), oklch(0.64 0.19 145)); border-color: oklch(0.5 0.16 145 / 0.6);
    box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.6), inset 0 -1px 0 oklch(0.4 0.14 145 / 0.35), 0 10px 22px -8px oklch(0.6 0.19 145 / 0.75);
    transition: transform 0.35s var(--lg-spring), box-shadow 0.25s;
}
.hub-auth__card--form .btn-primary:hover, .hub-auth__card--form .btn-primary:focus { background: linear-gradient(180deg, oklch(0.83 0.2 148), oklch(0.69 0.19 145)); color: var(--hub-green-deep); transform: translateY(-1px); }
.hub-auth__card--form .btn-primary:active { transform: scale(0.98); }
.hub-auth__card--form .btn-danger { background: linear-gradient(180deg, oklch(0.66 0.2 28), oklch(0.55 0.2 28)); color: #fff; padding: 11px 22px; }
.hub-auth__card--form .alert { border-radius: 16px; border: 1px solid oklch(0.7 0.1 28 / 0.35); background: oklch(0.95 0.05 28 / 0.8); color: var(--hub-red-ink); padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.hub-auth__card--form .alert-info { border-color: oklch(0.7 0.08 240 / 0.35); background: oklch(0.95 0.04 240 / 0.8); color: var(--hub-blue-ink); }
.hub-auth__card--form p { font-size: 14px; line-height: 1.6; color: var(--hub-ink-2); margin: 0 0 8px; }
.hub-auth__card--form form + p { margin-top: 20px; }
.hub-auth__card--form a { color: var(--hub-link); font-weight: 500; }
.hub-auth__card--form ul.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--hub-red-ink); font-size: 13px; }
.hub-auth__card--form .socialaccount_providers { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.hub-auth__card--form .login-or { text-align: center; color: var(--hub-muted); font-size: 13px; margin: 10px 0 14px; }
@media (max-width: 560px) { .hub-auth__card--form { padding: 26px 20px 22px; } }

/* ------------------------------------------------------------------ */
/* Notification center page                                            */
/* ------------------------------------------------------------------ */
.hub-nc { max-width: 880px; }
.hub-nc__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px; border-radius: var(--lg-radius); }
.hub-nc__bar .hub-seg { background: none; box-shadow: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hub-nc__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-nc__tools form { margin: 0; }
.hub-nc__kinds { margin: 16px 0 20px; }
.hub-nc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hub-nc__item {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 18px; border-radius: 20px;
    background: linear-gradient(145deg, oklch(1 0 0 / 0.7), oklch(1 0 0 / 0.3) 55%, oklch(1 0 0 / 0.5)), var(--lg-fill-strong);
    border: 1px solid var(--lg-line);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow);
    transition: transform 0.4s var(--lg-spring), box-shadow 0.3s var(--lg-ease);
}
.hub-nc__item:hover { transform: translateY(-2px); box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow-lift); }
.hub-nc__item.is-unread { border-left: 1px solid var(--lg-line); padding-left: 18px; background: linear-gradient(145deg, oklch(1 0 0 / 0.78), oklch(0.96 0.03 235 / 0.55) 60%, oklch(1 0 0 / 0.5)), var(--lg-fill-strong); box-shadow: inset 3px 0 0 var(--hub-blue), inset 1px 1px 0 var(--lg-rim), var(--lg-shadow); }
.hub-nc__title { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; letter-spacing: -0.005em; color: var(--hub-ink); }
.hub-nc__title a { color: inherit; text-decoration: none; }
.hub-nc__title a:hover, .hub-nc__title a:focus { text-decoration: underline; color: inherit; }
.hub-nc__new { font: 700 10px var(--hub-mono); letter-spacing: 0.08em; color: #fff; padding: 3px 8px; border-radius: var(--lg-pill); background: linear-gradient(180deg, oklch(0.7 0.16 240), oklch(0.58 0.16 240)); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.4); }
.hub-nc__body { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--hub-ink-2); overflow-wrap: anywhere; }
.hub-nc__meta { margin: 8px 0 0; font: 500 12px var(--hub-mono); color: var(--hub-muted-3); }
.hub-nc__actions { display: flex; gap: 6px; }
.hub-nc__actions form { margin: 0; }
.hub-nc__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--hub-muted); }
.hub-nc__empty p { margin: 0; max-width: 460px; }
.hub-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }

/* ------------------------------------------------------------------ */
/* Announcements dashboard                                             */
/* ------------------------------------------------------------------ */
.hub-reach {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 24px; overflow: hidden; padding: 0;
}
.hub-reach__tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; position: relative; border-left: 0; }
.hub-reach__tile + .hub-reach__tile::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(180deg, transparent, oklch(0.45 0.05 245 / 0.2), transparent); }
.hub-reach__value { font: 600 30px var(--hub-mono); letter-spacing: -0.02em; line-height: 1.1; color: var(--hub-ink); }
.hub-reach__label { font-size: 13px; color: var(--hub-muted-2); }

.hub-ann-list { padding: 4px 0; }
.hub-ann { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 24px; border-bottom: 1px solid oklch(0.45 0.05 245 / 0.09); transition: background-color 0.2s; }
.hub-ann:last-child { border-bottom: 0; }
.hub-ann:hover { background: oklch(1 0 0 / 0.45); }
.hub-ann__stats { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; min-width: 120px; }
.hub-ann__stats strong { font-family: var(--hub-mono); }
.hub-meter { display: block; width: 110px; height: 6px; border-radius: var(--lg-pill); background: oklch(0.45 0.05 245 / 0.14); box-shadow: inset 0 1px 2px oklch(0.2 0.06 245 / 0.12); overflow: hidden; }
.hub-meter > span { display: block; height: 100%; border-radius: var(--lg-pill); background: linear-gradient(90deg, oklch(0.72 0.19 150), oklch(0.66 0.17 175)); box-shadow: 0 0 10px oklch(0.7 0.19 150 / 0.6); }
.hub-status { display: inline-block; font: 700 10px var(--hub-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--lg-pill); margin-right: 6px; background: oklch(0.5 0.02 240 / 0.12); color: var(--hub-muted); }
.hub-status--sent { background: oklch(0.9 0.1 148 / 0.7); color: var(--hub-green-ink); }
.hub-status--sending { background: oklch(0.9 0.07 240 / 0.7); color: var(--hub-blue-ink); animation: lg-pulse 1.6s ease-in-out infinite; }
.hub-status--failed { background: oklch(0.9 0.08 28 / 0.7); color: var(--hub-red-ink); }
@keyframes lg-pulse { 50% { opacity: 0.55; } }

.hub-ann-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hub-ann-head__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 4px; color: var(--hub-ink); }
.hub-ann-error { padding: 12px 16px; border-radius: 14px; background: var(--hub-red-bg); margin: 0 0 16px; }
.hub-ann-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.hub-ann-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hub-ann-side { position: sticky; top: 84px; }
.hub-ann-sample { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.hub-ann-sample .hub-bell__item { background: oklch(1 0 0 / 0.55); box-shadow: inset 1px 1px 0 var(--lg-rim), 0 8px 22px -12px oklch(0.2 0.06 245 / 0.35); border: 1px solid var(--lg-line); }
.hub-ann-email[hidden] { display: none; }
.hub-ann-email { margin-top: 16px; }
.hub-ann-actions {
    position: sticky; bottom: 16px; z-index: 5; margin-top: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px;
    border-radius: var(--lg-pill);
    background: linear-gradient(140deg, oklch(1 0 0 / 0.6), oklch(1 0 0 / 0.3)), var(--lg-fill);
    -webkit-backdrop-filter: blur(26px) saturate(2); backdrop-filter: blur(26px) saturate(2);
    border: 1px solid var(--lg-line);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), 0 22px 50px -18px oklch(0.15 0.06 245 / 0.45);
}
.hub-ann-actions__spacer { flex: 1; }

.hub-choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.hub-choice {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0; border-radius: 18px; cursor: pointer;
    border: 1px solid var(--lg-line); background: oklch(1 0 0 / 0.4); box-shadow: inset 1px 1px 0 var(--lg-rim);
    transition: background-color 0.25s, box-shadow 0.25s, transform 0.35s var(--lg-spring);
}
.hub-choice:hover { background: oklch(1 0 0 / 0.7); }
.hub-choice:has(input:checked) { background: linear-gradient(140deg, oklch(0.95 0.07 148 / 0.85), oklch(0.97 0.04 160 / 0.6)); border-color: oklch(0.7 0.12 148 / 0.5); box-shadow: inset 1px 1px 0 oklch(1 0 0 / 0.9), 0 10px 24px -14px oklch(0.55 0.17 148 / 0.6); }
.hub-choice input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: oklch(0.58 0.19 148); flex: none; }
.hub-choice__body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hub-choice__body small { color: var(--hub-muted-2); font-size: 12px; line-height: 1.45; }

.hub-aud { padding: 6px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.hub-aud__filter { border-radius: 16px; border: 1px solid var(--lg-line); background: oklch(1 0 0 / 0.38); transition: background-color 0.25s; }
.hub-aud__filter[open] { background: oklch(1 0 0 / 0.6); box-shadow: inset 1px 1px 0 var(--lg-rim); }
.hub-aud__filter > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; color: var(--hub-ink); }
.hub-aud__filter > summary::-webkit-details-marker { display: none; }
.hub-aud__filter > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--hub-muted); border-bottom: 2px solid var(--hub-muted); transform: rotate(45deg); transition: transform 0.3s var(--lg-spring); }
.hub-aud__filter[open] > summary::after { transform: rotate(-135deg); }
.hub-aud__badge { font: 600 11px var(--hub-mono); background: oklch(0.88 0.1 148 / 0.8); color: var(--hub-green-ink); border-radius: var(--lg-pill); padding: 2px 9px; }
.hub-aud__badge[hidden] { display: none; }
.hub-aud__body { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.hub-aud__checklist { list-style: none; margin: 0; padding: 4px; max-height: 220px; overflow-y: auto; border-radius: 12px; border: 1px solid var(--lg-line); background: oklch(1 0 0 / 0.55); }
.hub-aud__checklist li[hidden] { display: none; }
.hub-aud__checklist .hub-inline-check { display: flex; align-items: center; gap: 10px; white-space: normal; padding: 7px 10px; border-radius: 9px; width: 100%; box-sizing: border-box; }
.hub-aud__checklist .hub-inline-check:hover { background: oklch(0.5 0.12 235 / 0.08); }
.hub-aud__checklist .hub-inline-check span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hub-aud__n { font-family: var(--hub-mono); }
.hub-aud__radios { display: flex; flex-direction: column; gap: 6px; }
.hub-aud__radios ul { list-style: none; padding: 0; margin: 0; }
.hub-aud__tiers { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-aud__tiers legend { width: 100%; border: 0; margin: 0 0 6px; padding: 0; font-size: 12px; }
.hub-aud__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chip-check { margin: 0; cursor: pointer; }
.hub-chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.hub-chip-check span { display: inline-block; padding: 6px 13px; border-radius: var(--lg-pill); font: 500 13px var(--hub-font); border: 1px solid var(--lg-line); background: oklch(1 0 0 / 0.7); box-shadow: inset 1px 1px 0 var(--lg-rim); transition: transform 0.3s var(--lg-spring), background-color 0.2s; }
.hub-chip-check:hover span { transform: translateY(-1px); }
.hub-chip-check input:checked + span { background: linear-gradient(180deg, oklch(0.34 0.07 245), oklch(0.22 0.06 245)); color: #fff; border-color: oklch(0.1 0.05 245 / 0.5); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25); }
.hub-chip-check input:focus-visible + span { outline: 2px solid var(--hub-link); outline-offset: 2px; }

.hub-preview {
    padding: 22px 24px; border-radius: var(--lg-radius); color: #fff;
    background:
        radial-gradient(70% 90% at 100% 0%, oklch(0.55 0.17 150 / 0.4), transparent 60%),
        radial-gradient(70% 90% at 0% 100%, oklch(0.5 0.15 240 / 0.4), transparent 60%),
        linear-gradient(160deg, oklch(0.3 0.07 245 / 0.94), oklch(0.2 0.06 245 / 0.92));
    border: 1px solid var(--lg-dark-line);
    box-shadow: inset 1px 1px 0 var(--lg-dark-rim), inset -1px -1px 0 oklch(1 0 0 / 0.07), 0 26px 56px -22px oklch(0.1 0.05 245 / 0.75);
    transition: opacity 0.3s;
}
.hub-preview.is-loading .hub-preview__total strong { opacity: 0.45; }
.hub-preview__title { font: 600 12px var(--hub-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hub-on-navy-2); margin: 0 0 10px; }
.hub-preview__total { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.hub-preview__total strong { font: 600 46px var(--hub-mono); letter-spacing: -0.03em; line-height: 1; color: var(--hub-green-text); text-shadow: 0 0 28px oklch(0.75 0.19 145 / 0.5); transition: opacity 0.2s; }
.hub-preview__total span { color: var(--hub-on-navy); font-size: 15px; }
.hub-preview__email { margin: 8px 0 0; font-size: 14px; color: var(--hub-on-navy); }
.hub-preview__email strong { font-family: var(--hub-mono); color: #fff; }
.hub-preview__summary { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--hub-on-navy); }
.hub-preview__summary li { padding: 6px 12px; border-radius: 12px; background: oklch(1 0 0 / 0.08); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.1); }
.hub-preview__sample { margin: 12px 0 0; color: var(--hub-on-navy-3); }
.hub-preview .hub-error { color: oklch(0.82 0.13 40); margin-top: 10px; }
.hub-dash-card .hub-preview__summary { color: var(--hub-ink-2); }
.hub-dash-card .hub-preview__summary li { background: oklch(0.5 0.05 245 / 0.07); box-shadow: none; }
.hub-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; font-size: 13px; }
.hub-facts dt { color: var(--hub-muted-2); font-weight: 500; }
.hub-facts dd { margin: 0; color: var(--hub-ink); }
.hub-ann-head__note { margin: 0; }
.hub-retry { margin: 0 0 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hub-retry p { margin: 0; }
.hub-retry form { margin: 0; }
.hub-retry__list { margin: 0; padding-left: 18px; font-size: 12px; }

/* Appearance: the theme picker */
.hub-theme-card {
    border: 1px solid var(--lg-line); border-radius: 22px; padding: 14px; gap: 14px;
    background: linear-gradient(145deg, oklch(1 0 0 / 0.6), oklch(1 0 0 / 0.2)), var(--lg-fill-strong);
    box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow);
    transition: transform 0.4s var(--lg-spring), box-shadow 0.3s var(--lg-ease);
}
.hub-theme-card:hover { transform: translateY(-2px); background: linear-gradient(145deg, oklch(1 0 0 / 0.7), oklch(1 0 0 / 0.3)), var(--lg-fill-strong); box-shadow: inset 1px 1px 0 var(--lg-rim), inset -1px -1px 0 var(--lg-rim-low), var(--lg-shadow-lift); }
.hub-theme-card:has(input:checked) {
    border-color: oklch(0.7 0.12 148 / 0.6); background: linear-gradient(140deg, oklch(0.95 0.07 148 / 0.85), oklch(0.97 0.04 160 / 0.6));
    box-shadow: inset 1px 1px 0 oklch(1 0 0 / 0.9), 0 12px 28px -14px oklch(0.55 0.17 148 / 0.6);
}
.hub-theme-card__now { border-radius: var(--lg-pill); padding: 2px 9px; }
.hub-theme-mock { border-radius: 16px; border-color: var(--lg-line); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
/* Between the folded menu (980px) and a roomy bar, keep the nav on one line */
@media (min-width: 981px) and (max-width: 1200px) {
    .hub-header__bar { gap: 14px; }
    .hub-header__menus { gap: 10px; }
    .hub-nav a { padding: 7px 10px; font-size: 13px; }
    .hub-usermenu__button { padding-right: 8px; }
    .hub-usermenu__button > span:not(.hub-avatar):not(.hub-caret) { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 1100px) {
    .hub-ann-grid { grid-template-columns: minmax(0, 1fr); }
    .hub-ann-side { position: static; }
}
@media (max-width: 980px) {
    .hub-header__menus {
        top: 60px; border-radius: 0 0 22px 22px; padding: 14px 16px 18px; border-bottom: 1px solid var(--lg-dark-line);
        background: linear-gradient(180deg, oklch(0.27 0.07 245 / 0.94), oklch(0.2 0.06 245 / 0.96));
        -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
        box-shadow: 0 24px 50px -20px oklch(0.1 0.05 245 / 0.7);
    }
    .hub-nav { border-radius: 22px; }
    .hub-nav a { border-radius: 14px; }
    .hub-header__actions { margin-left: 0; }
    /* The bell leaves the folded menu: it sits next to the menu button, so the badge stays in view. */
    .hub-header__actions .hub-bell { display: none; }
    .hub-bell--mobile { display: block; margin-left: auto; }
    .hub-bell--mobile + .hub-burger { margin-left: 10px; }
    .hub-bell__panel { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; max-width: none; transform-origin: 50% -10px; }
}
@media (max-width: 820px) {
    .hub-ann { grid-template-columns: auto minmax(0, 1fr); }
    .hub-ann__stats { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
    .hub-ann .hub-dash-item__tools { grid-column: 1 / -1; justify-content: flex-start; }
    .hub-nc__item { grid-template-columns: auto minmax(0, 1fr); }
    .hub-nc__actions { grid-column: 2; }
}
@media (max-width: 720px) {
    .hub-ann { padding: 14px 16px; }
    .hub-reach__tile { padding: 14px 16px; }
    .hub-ann-actions { position: static; border-radius: 24px; }  /* a floating bar would cover a third of a phone */
    .hub-ann-actions .hub-btn--lg { width: 100%; }
    .hub-ann-actions__spacer { display: none; }
    .hub-tab, .hub-seg__item { padding: 8px 13px; }
}

/* ------------------------------------------------------------------ */
/* Motion preferences                                                  */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    body.hub-body::before, .hub-bell.is-open .hub-bell__panel, .hub-usermenu__list:not([hidden]), .hub-status--sending { animation: none; }
    .glass--interactive, .hub-btn, .hub-chip, .hub-card, .hub-nc__item, .hub-tabs::before, .hub-seg::before, .hub-mini-btn, .hub-bell__button,
    .hub-btn-signup, .hub-choice, .hub-chip-check span { transition: none; }
    .hub-card:hover, .hub-news__card:hover, .hub-nc__item:hover, .glass--interactive:hover, .hub-btn:hover { transform: none; }
}
