/*
    The EventStage design system.

    Bootstrap 5.3 stays underneath — the grid, the dropdown, the utility classes — but every
    surface a person actually looks at is redefined here. Colour, radius and shadow live in one
    place, the token block below: somebody changing a shade edits that block rather than forty
    files.

    Every font is a system font. The content security policy allows no third-party origin (§23),
    so a webfont would have to be downloaded and self-hosted for very little in return.
*/

/* ------------------------------------------------------------------- tokens */

:root {
    /* Brand */
    --es-brand: #4f46e5;
    --es-brand-strong: #4338ca;
    --es-brand-soft: #eef2ff;
    --es-brand-border: #c7d2fe;

    /* Ink */
    --es-ink: #0f172a;
    --es-body: #334155;
    --es-muted: #64748b;
    --es-faint: #94a3b8;

    /* Surfaces */
    --es-page: #f5f6fa;
    --es-surface: #ffffff;
    --es-raised: #fbfbfd;
    --es-line: #e6e8ef;
    --es-line-strong: #d3d7e2;

    /* Status colours: each one a text tone, a fill and a border that go together */
    --es-ok: #047857;
    --es-ok-soft: #ecfdf5;
    --es-ok-border: #a7f3d0;
    --es-warn: #b45309;
    --es-warn-soft: #fffbeb;
    --es-warn-border: #fde68a;
    --es-bad: #b91c1c;
    --es-bad-soft: #fef2f2;
    --es-bad-border: #fecaca;
    --es-info: #0369a1;
    --es-info-soft: #f0f9ff;
    --es-info-border: #bae6fd;

    /* The dark shell shared by the portal and admin sidebars */
    --es-shell: #131a2b;
    --es-shell-2: #1b2438;
    --es-shell-line: rgba(255, 255, 255, .09);
    --es-shell-text: #aab4c8;
    --es-shell-bright: #ffffff;

    /* Shape */
    --es-r-sm: 8px;
    --es-r: 12px;
    --es-r-lg: 16px;
    --es-r-pill: 999px;
    --es-shadow-1: 0 1px 2px rgba(15, 23, 42, .05);
    --es-shadow-2: 0 4px 16px rgba(15, 23, 42, .07);
    --es-shadow-3: 0 12px 32px rgba(15, 23, 42, .11);
    --es-sidebar-w: 264px;

    /* Bootstrap's own variables are pointed at the same palette, so the components that are
       not overridden by hand below still come out in the right colour. */
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-body-color: #334155;
    --bs-body-bg: #f5f6fa;
    --bs-border-color: #e6e8ef;
    --bs-border-radius: 12px;
    --bs-border-radius-sm: 8px;
    --bs-border-radius-lg: 16px;
    --bs-link-color: #4338ca;
    --bs-link-hover-color: #312e81;
    --bs-secondary-color: #64748b;
    --bs-emphasis-color: #0f172a;
    --bs-font-sans-serif: "Segoe UI", system-ui, -apple-system, "Inter", "Roboto",
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------- base */

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--es-page);
    color: var(--es-body);
    font-family: var(--bs-font-sans-serif);
    font-size: .975rem;
    line-height: 1.6;
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--es-ink);
    font-weight: 650;
    letter-spacing: -.02em;
}

a {
    color: var(--es-brand-strong);
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: #312e81;
}

code, .font-monospace {
    font-family: "Cascadia Mono", "Consolas", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .875em;
}

code {
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
    padding: .12em .4em;
    border-radius: 6px;
}

hr {
    border-color: var(--es-line);
    opacity: 1;
}

::selection {
    background: var(--es-brand-border);
    color: var(--es-ink);
}

/* One focus ring everywhere, so somebody driving the site from the keyboard can always see
   where they are. */
:focus-visible {
    outline: 2px solid var(--es-brand);
    outline-offset: 2px;
    border-radius: var(--es-r-sm);
}

.text-muted {
    color: var(--es-muted) !important;
}

.small, small {
    font-size: .845rem;
}

.es-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--es-faint);
}

/* ------------------------------------------------------------- page headers */

/*
    One shape for the top of every page: title and a one-line explanation on the left, the
    actions for that page on the right. The explanation is a habit rather than an option — a
    reader should not have to guess what a page is for from its title alone.
*/
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-head__title {
    font-size: 1.6rem;
    margin: 0;
}

.page-head__lead {
    color: var(--es-muted);
    margin: .35rem 0 0;
    max-width: 62ch;
}

.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin: 2rem 0 .9rem;
}

.section-head:first-child {
    margin-top: 0;
}

.section-head h2 {
    font-size: 1.15rem;
    margin: 0;
}

/* --------------------------------------------------------------- breadcrumb */

.breadcrumb {
    font-size: .855rem;
    margin-bottom: .85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--es-faint);
}

.breadcrumb-item a {
    color: var(--es-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--es-brand-strong);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--es-ink);
    font-weight: 550;
}

/* ------------------------------------------------------------- public shell */

/* The public site: sticky header, centred content, a quiet footer. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--es-line);
}

.site-header .navbar {
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: -.02em;
    color: var(--es-ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--es-brand-strong);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--es-brand) 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, .35);
    flex: 0 0 auto;
}

.brand__mark svg {
    width: 18px;
    height: 18px;
}

.site-nav .nav-link {
    color: var(--es-body);
    font-weight: 550;
    font-size: .93rem;
    padding: .4rem .75rem;
    border-radius: var(--es-r-sm);
}

.site-nav .nav-link:hover {
    color: var(--es-brand-strong);
    background: var(--es-brand-soft);
}

.site-nav .nav-link.is-active {
    color: var(--es-brand-strong);
    background: var(--es-brand-soft);
}

.site-main {
    padding-block: 2rem 3rem;
}

.site-footer {
    border-top: 1px solid var(--es-line);
    background: var(--es-surface);
    color: var(--es-muted);
    font-size: .875rem;
    padding-block: 1.5rem;
}

.site-footer a {
    color: var(--es-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--es-brand-strong);
}

/* ----------------------------------------------------------------- app shell */

/*
    The portal and the admin area share this skeleton; what separates them is --es-accent on
    the sidebar mark. An administrator who thinks they are in an organizer's portal is one
    click away from the wrong button.
*/
.app {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--es-sidebar-w);
    background: var(--es-shell);
    color: var(--es-shell-text);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    overflow-y: auto;
}

.app-sidebar__head {
    padding: 1.1rem 1.1rem .9rem;
    border-bottom: 1px solid var(--es-shell-line);
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--es-shell-bright);
    text-decoration: none;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.app-sidebar__brand:hover {
    color: var(--es-shell-bright);
    opacity: .85;
}

.app-sidebar__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--es-accent, linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%));
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
}

.app-sidebar__mark svg {
    width: 18px;
    height: 18px;
}

.app-sidebar__kicker {
    display: block;
    font-size: .715rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--es-shell-text);
    opacity: .75;
    margin-top: .1rem;
}

.app-sidebar__nav {
    padding: .85rem .7rem 1.5rem;
    flex: 1 1 auto;
}

.app-sidebar__group {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    padding: 1rem .55rem .35rem;
}

.app-sidebar__group:first-child {
    padding-top: .25rem;
}

.side-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .52rem .6rem;
    margin-bottom: .1rem;
    border-radius: var(--es-r-sm);
    color: var(--es-shell-text);
    text-decoration: none;
    font-size: .915rem;
    font-weight: 500;
    transition: background-color .12s ease, color .12s ease;
}

.side-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    opacity: .8;
}

.side-link:hover {
    background: rgba(255, 255, 255, .07);
    color: var(--es-shell-bright);
}

.side-link.is-active {
    background: rgba(255, 255, 255, .12);
    color: var(--es-shell-bright);
    font-weight: 600;
}

.side-link.is-active svg {
    opacity: 1;
}

.side-link--sub {
    padding-left: 2.5rem;
    font-size: .875rem;
}

.app-sidebar__foot {
    padding: .85rem 1.1rem 1.1rem;
    border-top: 1px solid var(--es-shell-line);
    font-size: .8rem;
}

.app-sidebar__foot a,
.app-sidebar__foot button {
    color: var(--es-shell-text);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
}

.app-sidebar__foot a:hover,
.app-sidebar__foot button:hover {
    color: var(--es-shell-bright);
    text-decoration: underline;
}

.app-body {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: var(--es-sidebar-w);
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 1.75rem;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--es-line);
}

.app-topbar__who {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    color: var(--es-muted);
}

.app-topbar__who a {
    color: var(--es-body);
    text-decoration: none;
    font-weight: 550;
}

.app-topbar__who a:hover {
    color: var(--es-brand-strong);
}

.app-main {
    padding: 1.75rem 1.75rem 3rem;
    flex: 1 1 auto;
}

.app-sidebar__toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: var(--es-shadow-3);
    }

    .app-sidebar.is-open {
        transform: none;
    }

    .app-body {
        margin-left: 0;
    }

    .app-sidebar__toggle {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: var(--es-r-sm);
        border: 1px solid var(--es-line);
        background: var(--es-surface);
        color: var(--es-body);
    }

    .app-main {
        padding: 1.25rem 1rem 2.5rem;
    }

    .app-topbar {
        padding: .65rem 1rem;
    }
}

/* -------------------------------------------------------------------- cards */

.card {
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-lg);
    box-shadow: var(--es-shadow-1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--es-line);
    padding: .9rem 1.15rem;
    font-weight: 650;
    color: var(--es-ink);
    font-size: .95rem;
}

.card-body {
    padding: 1.15rem;
}

.card-footer {
    background: var(--es-raised);
    border-top: 1px solid var(--es-line);
    padding: .75rem 1.15rem;
}

/* A card that is itself a link lifts on hover, so that it reads as clickable. */
.card-link-surface {
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.card-link-surface:hover {
    transform: translateY(-2px);
    box-shadow: var(--es-shadow-2);
    border-color: var(--es-brand-border);
}

/* --------------------------------------------------------------- stat tiles */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .85rem;
    margin-bottom: 1.75rem;
}

.stat {
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r);
    padding: .95rem 1.05rem;
    box-shadow: var(--es-shadow-1);
}

.stat__label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .76rem;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--es-faint);
}

.stat__value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--es-ink);
    letter-spacing: -.03em;
    margin-top: .2rem;
    font-variant-numeric: tabular-nums;
}

.stat__hint {
    font-size: .8rem;
    color: var(--es-muted);
    margin-top: .1rem;
}

.stat--ok .stat__value {
    color: var(--es-ok);
}

.stat--warn .stat__value {
    color: var(--es-warn);
}

.stat--bad .stat__value {
    color: var(--es-bad);
}

/* The thin bar under a rate, so the proportion is visible without reading the number. */
.stat__bar {
    height: 5px;
    border-radius: var(--es-r-pill);
    background: var(--es-line);
    overflow: hidden;
    margin-top: .55rem;
}

.stat__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--es-brand);
}

/* ------------------------------------------------------------------- badges */

/*
    One badge family. Bootstrap's text-bg-* classes are repainted onto the same palette so a
    view that still uses them does not stand out; anything new uses .pill.
*/
.pill,
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .6rem;
    border-radius: var(--es-r-pill);
    font-size: .765rem;
    font-weight: 650;
    letter-spacing: .01em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.pill--muted, .badge.text-bg-secondary, .badge.text-bg-light {
    background: #f1f3f9;
    color: var(--es-muted);
    border-color: var(--es-line);
}

.pill--ok, .badge.text-bg-success {
    background: var(--es-ok-soft);
    color: var(--es-ok);
    border-color: var(--es-ok-border);
}

.pill--warn, .badge.text-bg-warning {
    background: var(--es-warn-soft);
    color: var(--es-warn);
    border-color: var(--es-warn-border);
}

.pill--bad, .badge.text-bg-danger {
    background: var(--es-bad-soft);
    color: var(--es-bad);
    border-color: var(--es-bad-border);
}

.pill--info, .badge.text-bg-info {
    background: var(--es-info-soft);
    color: var(--es-info);
    border-color: var(--es-info-border);
}

.pill--brand, .badge.text-bg-primary {
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
    border-color: var(--es-brand-border);
}

/* ------------------------------------------------------------------ buttons */

.btn {
    --bs-btn-border-radius: var(--es-r-sm);
    font-weight: 570;
    font-size: .915rem;
    padding: .48rem .95rem;
    border-radius: var(--es-r-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease,
        box-shadow .12s ease, transform .12s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: .3rem .65rem;
    font-size: .83rem;
}

.btn-lg {
    padding: .68rem 1.35rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--es-brand);
    border-color: var(--es-brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(79, 70, 229, .3);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--es-brand-strong);
    border-color: var(--es-brand-strong);
    color: #fff;
}

.btn-outline-primary {
    color: var(--es-brand-strong);
    border-color: var(--es-brand-border);
    background: var(--es-surface);
}

.btn-outline-primary:hover {
    background: var(--es-brand-soft);
    border-color: var(--es-brand);
    color: var(--es-brand-strong);
}

.btn-outline-secondary {
    color: var(--es-body);
    border-color: var(--es-line-strong);
    background: var(--es-surface);
}

.btn-outline-secondary:hover {
    background: #f1f3f9;
    border-color: var(--es-line-strong);
    color: var(--es-ink);
}

.btn-outline-danger {
    color: var(--es-bad);
    border-color: var(--es-bad-border);
    background: var(--es-surface);
}

.btn-outline-danger:hover {
    background: var(--es-bad-soft);
    border-color: var(--es-bad);
    color: var(--es-bad);
}

.btn-outline-warning {
    color: var(--es-warn);
    border-color: var(--es-warn-border);
    background: var(--es-surface);
}

.btn-outline-warning:hover {
    background: var(--es-warn-soft);
    border-color: var(--es-warn);
    color: var(--es-warn);
}

.btn-outline-success {
    color: var(--es-ok);
    border-color: var(--es-ok-border);
    background: var(--es-surface);
}

.btn-outline-success:hover {
    background: var(--es-ok-soft);
    border-color: var(--es-ok);
    color: var(--es-ok);
}

.btn-success {
    background: var(--es-ok);
    border-color: var(--es-ok);
    color: #fff;
}

.btn-success:hover {
    background: #065f46;
    border-color: #065f46;
    color: #fff;
}

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--es-ink);
}

.btn-light:hover {
    background: #eef2ff;
    border-color: #eef2ff;
    color: var(--es-brand-strong);
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
    color: #fff;
}

.btn-link {
    color: var(--es-muted);
    text-decoration: none;
    font-weight: 550;
}

.btn-link:hover {
    color: var(--es-brand-strong);
    text-decoration: underline;
}

.btn:disabled, .btn.disabled {
    opacity: .5;
    box-shadow: none;
}

/* -------------------------------------------------------------------- forms */

.form-label {
    font-weight: 570;
    font-size: .885rem;
    color: var(--es-ink);
    margin-bottom: .3rem;
}

.form-control, .form-select {
    border: 1px solid var(--es-line-strong);
    border-radius: var(--es-r-sm);
    padding: .5rem .75rem;
    font-size: .935rem;
    color: var(--es-ink);
    background-color: var(--es-surface);
    transition: border-color .12s ease, box-shadow .12s ease;
}

.form-control::placeholder {
    color: var(--es-faint);
}

.form-control:focus, .form-select:focus {
    border-color: var(--es-brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .16);
}

.form-control:disabled, .form-select:disabled {
    background-color: #f6f7fb;
    color: var(--es-muted);
}

.form-control-sm {
    padding: .3rem .55rem;
    font-size: .85rem;
}

.form-text {
    color: var(--es-muted);
    font-size: .82rem;
    margin-top: .3rem;
}

.form-check-input {
    border-color: var(--es-line-strong);
    width: 1.05em;
    height: 1.05em;
    margin-top: .2em;
}

.form-check-input:checked {
    background-color: var(--es-brand);
    border-color: var(--es-brand);
}

.form-check-input:focus {
    border-color: var(--es-brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .16);
}

.form-check-label {
    font-size: .925rem;
}

.input-group-text {
    background: var(--es-raised);
    border-color: var(--es-line-strong);
    color: var(--es-muted);
    font-size: .875rem;
    border-radius: var(--es-r-sm);
}

/* A validation message under a field. Red text on its own disappears into a busy form, so the
   invalid field is outlined too. */
.text-danger {
    color: var(--es-bad) !important;
}

.field-validation-error {
    display: inline-block;
    margin-top: .3rem;
    font-size: .83rem;
    font-weight: 550;
}

.input-validation-error {
    border-color: var(--es-bad) !important;
}

.input-validation-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .15) !important;
}

.validation-summary-errors {
    background: var(--es-bad-soft);
    border: 1px solid var(--es-bad-border);
    color: var(--es-bad);
    border-radius: var(--es-r);
    padding: .8rem 1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.validation-summary-valid {
    display: none;
}

/* Every form ends with one action row, so "save" is always in the same place. */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding-top: .25rem;
}

/*
    A moment, entered as two fields.

    One datetime-local control makes the browser render a cramped composite widget whose date and
    time halves are hard to tell apart and harder to tab between. A date input beside a time input
    is the same value in two controls a person can aim at — and it lets the date carry the event's
    own min/max while the time gets the picker below.
*/
.datetime-field {
    display: flex;
    gap: .5rem;
    align-items: stretch;
}

.datetime-field > .form-control[type="date"] {
    flex: 1 1 58%;
    min-width: 0;
}

.time-field {
    position: relative;
    flex: 1 1 42%;
    min-width: 0;
    display: flex;
}

.time-field .form-control {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Chrome puts its own clock inside a time input. Ours is right beside it, and two clock icons
   in a row read as two different controls. */
.time-field .form-control::-webkit-calendar-picker-indicator {
    display: none;
}

.time-field__toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    border: 1px solid var(--es-line-strong);
    border-left: 0;
    border-radius: 0 var(--es-r-sm) var(--es-r-sm) 0;
    background: var(--es-raised);
    color: var(--es-muted);
    transition: color .12s ease, background-color .12s ease;
}

.time-field__toggle:hover:not(:disabled) {
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
}

.time-field__toggle:disabled {
    background: #f6f7fb;
    color: var(--es-faint);
}

.time-field__toggle svg {
    width: 17px;
    height: 17px;
}

/* The whole day in quarter-hour steps; the field scrolls it to the current value on open. */
.time-field__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + .3rem);
    right: 0;
    width: 100%;
    min-width: 7.5rem;
    max-height: 15rem;
    overflow-y: auto;
    padding: .25rem;
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-sm);
    box-shadow: var(--es-shadow-3);
}

.time-field__option {
    display: block;
    width: 100%;
    padding: .32rem .6rem;
    border: 0;
    border-radius: var(--es-r-sm);
    background: transparent;
    color: var(--es-body);
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    text-align: left;
}

.time-field__option:hover {
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
}

.time-field__option.is-selected {
    background: var(--es-brand);
    color: #fff;
    font-weight: 560;
}

/* Round durations off the start time, so the end is one click rather than four fields. */
.quick-set {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-top: .5rem;
}

.quick-set__label {
    color: var(--es-muted);
    font-size: .82rem;
    margin-right: .1rem;
}

.quick-set__option {
    padding: .22rem .6rem;
    border: 1px solid var(--es-line-strong);
    border-radius: var(--es-r-pill);
    background: var(--es-surface);
    color: var(--es-body);
    font-size: .8rem;
    transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}

.quick-set__option:hover {
    border-color: var(--es-brand-border);
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
}

.quick-set__option.is-active {
    border-color: var(--es-brand);
    background: var(--es-brand);
    color: #fff;
}

@media (max-width: 420px) {
    .datetime-field {
        flex-wrap: wrap;
    }

    .datetime-field > .form-control[type="date"],
    .time-field {
        flex: 1 1 100%;
    }
}

/* ------------------------------------------------------------------- alerts */

.alert {
    border-radius: var(--es-r);
    border-width: 1px;
    padding: .85rem 1.1rem;
    font-size: .915rem;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: .12rem;
}

.alert-info, .alert-primary {
    background: var(--es-info-soft);
    border-color: var(--es-info-border);
    color: var(--es-info);
}

.alert-success {
    background: var(--es-ok-soft);
    border-color: var(--es-ok-border);
    color: var(--es-ok);
}

.alert-warning {
    background: var(--es-warn-soft);
    border-color: var(--es-warn-border);
    color: var(--es-warn);
}

.alert-danger {
    background: var(--es-bad-soft);
    border-color: var(--es-bad-border);
    color: var(--es-bad);
}

.alert-secondary {
    background: #f1f3f9;
    border-color: var(--es-line);
    color: var(--es-body);
}

/* ------------------------------------------------------------------- tables */

/*
    A table lives inside a card: .table-card draws the border and the corner, the table itself
    only draws rows. The horizontal scroll on a narrow screen belongs to the wrapper, so the
    page body never scrolls sideways.
*/
.table-card {
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-lg);
    box-shadow: var(--es-shadow-1);
    overflow: hidden;
}

.table-card__scroll {
    overflow-x: auto;
}

.table-card .table {
    margin: 0;
}

.table {
    --bs-table-bg: transparent;
    color: var(--es-body);
    font-size: .915rem;
    vertical-align: middle;
    border-color: var(--es-line);
}

.table > thead th {
    background: var(--es-raised);
    color: var(--es-faint);
    font-size: .745rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--es-line);
    white-space: nowrap;
}

.table > tbody td {
    padding: .78rem 1rem;
    border-bottom: 1px solid var(--es-line);
}

.table > tbody tr:last-child td {
    border-bottom: 0;
}

.table-hover > tbody > tr:hover > * {
    background-color: #f8f9fd;
}

.table td .text-muted.small,
.table td div.small {
    line-height: 1.35;
}

.table-sm > thead th,
.table-sm > tbody td {
    padding: .5rem .8rem;
}

.cell-num {
    font-variant-numeric: tabular-nums;
}

/* The paging strip that closes a table card. */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    border-top: 1px solid var(--es-line);
    background: var(--es-raised);
    font-size: .85rem;
    color: var(--es-muted);
}

.pager__buttons {
    display: flex;
    gap: .5rem;
}

/* -------------------------------------------------------------- empty state */

/*
    An empty list that does not say what to do next is indistinguishable from a broken one.
    The shape: an icon, one sentence, and the next step if there is one.
*/
.empty {
    background: var(--es-surface);
    border: 1px dashed var(--es-line-strong);
    border-radius: var(--es-r-lg);
    padding: 2.25rem 1.5rem;
    text-align: center;
    color: var(--es-muted);
}

.empty__icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--es-brand-soft);
    color: var(--es-brand);
    margin-bottom: .75rem;
}

.empty__icon svg {
    width: 21px;
    height: 21px;
}

.empty__title {
    color: var(--es-ink);
    font-weight: 620;
    font-size: 1rem;
    margin-bottom: .25rem;
}

.empty p {
    margin: 0 auto;
    max-width: 52ch;
    font-size: .915rem;
}

.empty .btn {
    margin-top: 1rem;
}

/* --------------------------------------------------------------------- tabs */

.tabs {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
    background: #eef0f6;
    border-radius: var(--es-r-pill);
    padding: .25rem;
    margin-bottom: 1.25rem;
    width: fit-content;
    max-width: 100%;
}

.tabs a {
    padding: .38rem .9rem;
    border-radius: var(--es-r-pill);
    font-size: .875rem;
    font-weight: 550;
    color: var(--es-muted);
    text-decoration: none;
    white-space: nowrap;
}

.tabs a:hover {
    color: var(--es-ink);
}

.tabs a.is-active {
    background: var(--es-surface);
    color: var(--es-ink);
    box-shadow: var(--es-shadow-1);
}

/* --------------------------------------------------------------- filter bar */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r);
    padding: .7rem .8rem;
    margin-bottom: 1.1rem;
}

.filter-bar .form-control,
.filter-bar .form-select {
    min-width: 12rem;
}

.filter-bar .form-check {
    margin: 0;
}

/* ------------------------------------------------------------ detail lists */

.detail-list {
    display: grid;
    grid-template-columns: minmax(9rem, 13rem) 1fr;
    gap: .1rem 1.5rem;
    margin: 0;
}

.detail-list dt {
    padding: .6rem 0;
    color: var(--es-muted);
    font-weight: 550;
    font-size: .875rem;
    border-top: 1px solid var(--es-line);
}

.detail-list dd {
    padding: .6rem 0;
    margin: 0;
    color: var(--es-ink);
    border-top: 1px solid var(--es-line);
}

.detail-list dt:first-of-type,
.detail-list dt:first-of-type + dd {
    border-top: 0;
}

@media (max-width: 575.98px) {
    .detail-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .detail-list dd {
        border-top: 0;
        padding-top: 0;
        padding-bottom: .7rem;
    }
}

/* ------------------------------------------------------------ landing page */

.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--es-r-lg);
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 45%, #7c3aed 100%);
    color: #fff;
    padding: 3rem 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--es-shadow-3);
}

/* A soft halo behind the copy: depth instead of a flat purple block, faint enough that it
   never fights the text for contrast. */
.hero::after {
    content: "";
    position: absolute;
    right: -8rem;
    top: -8rem;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.hero__lead {
    font-size: 1.075rem;
    color: rgba(255, 255, 255, .88);
    max-width: 52ch;
    margin-bottom: 1.75rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    border-radius: var(--es-r-pill);
    padding: .28rem .8rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1.15rem;
}

.hero__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .8rem;
}

.hero__steps li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--es-r);
    padding: .75rem .9rem;
}

.hero__steps b {
    display: block;
    color: #fff;
    font-weight: 620;
}

.hero__steps span {
    color: rgba(255, 255, 255, .8);
    font-size: .875rem;
}

.hero__steps svg {
    width: 20px;
    height: 20px;
    color: #fff;
    flex: 0 0 auto;
    margin-top: .15rem;
}

@media (max-width: 767.98px) {
    .hero {
        padding: 2rem 1.25rem;
    }
}

/* The event card, identical on the landing page and in the organization directory. */
.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-lg);
    box-shadow: var(--es-shadow-1);
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--es-shadow-2);
    border-color: var(--es-brand-border);
}

.event-card__date {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
    border-bottom: 1px solid var(--es-brand-border);
    padding: .5rem 1.1rem;
    font-size: .845rem;
    font-weight: 620;
}

.event-card__body {
    padding: 1.1rem;
    flex: 1 1 auto;
}

.event-card__org {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--es-faint);
}

.event-card__name {
    font-size: 1.05rem;
    margin: .25rem 0 .5rem;
}

.event-card__name a {
    color: var(--es-ink);
    text-decoration: none;
}

.event-card__name a:hover {
    color: var(--es-brand-strong);
}

.event-card__meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--es-muted);
    font-size: .875rem;
    margin-bottom: .25rem;
}

.event-card__meta svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--es-faint);
}

.event-card__foot {
    padding: .65rem 1.1rem;
    border-top: 1px solid var(--es-line);
    background: var(--es-raised);
    font-size: .82rem;
    color: var(--es-muted);
    display: flex;
    gap: .75rem;
    align-items: center;
}

/* The organization card in the directory. */
.org-card__logo {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    object-fit: cover;
    border: 1px solid var(--es-line);
    background: var(--es-surface);
    flex: 0 0 auto;
}

.org-card__fallback {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
    font-weight: 700;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

/* The public programme listing. */
.agenda {
    display: grid;
    gap: .6rem;
}

.agenda__item {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r);
    padding: .9rem 1.1rem;
}

.agenda__when {
    color: var(--es-brand-strong);
    font-weight: 620;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

.agenda__name {
    color: var(--es-ink);
    font-weight: 600;
}

.agenda__who {
    color: var(--es-muted);
    font-size: .875rem;
}

@media (max-width: 575.98px) {
    .agenda__item {
        grid-template-columns: 1fr;
        gap: .3rem;
    }
}

.cover {
    width: 100%;
    max-height: 17rem;
    object-fit: cover;
    border-radius: var(--es-r-lg);
    border: 1px solid var(--es-line);
}

/* ------------------------------------------------------------- sign-in pages */

/*
    Sign in, register, forgotten password: one card in the middle of the page. No sidebar and
    no second column, because there is exactly one thing to do on these screens.
*/
.auth {
    max-width: 27rem;
    margin: 2rem auto;
}

.auth__card {
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-lg);
    box-shadow: var(--es-shadow-2);
    padding: 1.9rem;
}

.auth__title {
    font-size: 1.45rem;
    margin-bottom: .35rem;
}

.auth__lead {
    color: var(--es-muted);
    font-size: .92rem;
    margin-bottom: 1.4rem;
}

.auth__foot {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .9rem;
    color: var(--es-muted);
}

/* -------------------------------------------------------------------- print */

@media print {
    .app-sidebar, .app-topbar, .site-header, .site-footer, .page-head__actions, .pager {
        display: none !important;
    }

    .app-body {
        margin-left: 0;
    }

    .card, .table-card {
        box-shadow: none;
        border-color: #ccc;
    }
}

/* ------------------------------------------------------------------ avatars
   The small round picture beside a name on the profile lists (AD-18): a team member's or a
   speaker's portrait, or — square, since logos are rarely faces — a sponsor's mark. The empty
   variant keeps the row aligned when there is no picture yet. */
.avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--es-raised);
}

.avatar--logo {
    border-radius: var(--es-r-sm);
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--es-line);
}

.avatar--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--es-muted);
}

.avatar--empty svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* A tick list that stays a list: the speaker pool grows, and a form should not. */
.check-list {
    max-height: 14rem;
    overflow-y: auto;
    padding: .5rem .75rem;
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-sm);
    background: var(--es-surface);
}

/* ------------------------------------------------------------ developer page
   Long-form reading (AD-18): a sticky in-page nav on wide screens, section rhythm, and
   parameter lists that fit inside a table cell. */
.docs-nav {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.docs-nav a {
    padding: .35rem .6rem;
    border-radius: var(--es-r-sm);
    color: var(--es-body);
    text-decoration: none;
}

.docs-nav a:hover {
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
}

.docs section + section {
    margin-top: 2.5rem;
}

.docs h2 {
    font-size: 1.35rem;
    margin-bottom: .75rem;
}

.docs h3 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

.docs pre {
    padding: .9rem 1rem;
    border-radius: var(--es-r-sm);
    background: var(--es-shell);
    color: var(--es-shell-bright);
    overflow-x: auto;
}

.docs pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.docs-table td {
    vertical-align: top;
}

.docs-params {
    margin: 0;
}

.docs-params dt {
    font-weight: 500;
}

.docs-params dd {
    margin-bottom: .35rem;
    color: var(--es-muted);
    font-size: .9rem;
}

/* ------------------------------------------------------------ account flows
   The sign-up code and reset pages (AD-19): an icon tile above the title, a code field wide
   enough to read six digits at a glance, and the flash line the public layout shows after a
   redirect. */
.auth__badge {
    width: 3rem;
    height: 3rem;
    border-radius: var(--es-r);
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.auth__badge svg {
    width: 1.4rem;
    height: 1.4rem;
}

.otp-input {
    font-family: "Cascadia Mono", "Consolas", ui-monospace, monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .45em;
    text-align: center;
    padding: .6rem .75rem;
}

.flash {
    max-width: 44rem;
    margin: 1rem auto 0;
}

/* ------------------------------------------------------------------- team
   The merged team page (AD-19): one card per member with the portrait the website shows, and
   the owner's invitation column beside it. */
.avatar--lg {
    width: 3.5rem;
    height: 3.5rem;
}

.avatar--xl {
    width: 4.5rem;
    height: 4.5rem;
}

.avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
    font-weight: 700;
    letter-spacing: .02em;
}

.avatar--lg.avatar--empty svg,
.avatar--xl.avatar--empty svg {
    width: 1.6rem;
    height: 1.6rem;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1rem;
}

.member-card {
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-lg);
    box-shadow: var(--es-shadow-1);
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.member-card:hover {
    box-shadow: var(--es-shadow-2);
    border-color: var(--es-line-strong);
}

.member-card__top {
    display: flex;
    gap: .85rem;
    align-items: center;
    min-width: 0;
}

.member-card__who {
    min-width: 0;
}

.member-card__name {
    color: var(--es-ink);
    font-weight: 650;
    line-height: 1.3;
}

.member-card__title {
    color: var(--es-body);
    font-size: .88rem;
}

.member-card__mail {
    color: var(--es-muted);
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.member-card__since {
    color: var(--es-faint);
    font-size: .78rem;
    margin-left: auto;
}

.member-card__actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    border-top: 1px solid var(--es-line);
    padding-top: .75rem;
}

.invite-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.invite-list__item {
    padding: .85rem 1.1rem;
    border-top: 1px solid var(--es-line);
}

.invite-list__item:first-child {
    border-top: 0;
}

.invite-list__head {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: center;
}

.invite-list__mail {
    font-weight: 600;
    color: var(--es-ink);
    overflow: hidden;
    text-overflow: ellipsis;
}

.invite-list__meta {
    color: var(--es-muted);
    font-size: .8rem;
    margin: .2rem 0 .55rem;
}

.invite-list__actions {
    display: flex;
    gap: .4rem;
}

/* ------------------------------------------------------------ speaker picker
   Choosing a session's line-up from the pool (AD-19): a row per speaker with the portrait and,
   once invited, where the invitation stands. */
.speaker-pick {
    display: grid;
    gap: .5rem;
    max-height: 22rem;
    overflow-y: auto;
    padding: .25rem;
}

.speaker-pick__item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border: 1px solid var(--es-line);
    border-radius: var(--es-r);
    background: var(--es-surface);
    cursor: pointer;
    margin: 0;
}

.speaker-pick__item:has(input:checked) {
    border-color: var(--es-brand-border);
    background: var(--es-brand-soft);
}

.speaker-pick__item .form-check-input {
    margin: 0;
    flex: 0 0 auto;
}

.speaker-pick__who {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.3;
}

.speaker-pick__name {
    font-weight: 600;
    color: var(--es-ink);
}

.speaker-pick__meta {
    color: var(--es-muted);
    font-size: .8rem;
}

/* ------------------------------------------------------------- invitation
   The page an invitation link opens (AD-19). */
.invite {
    max-width: 36rem;
    margin: 2rem auto;
}

.invite__card {
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-lg);
    box-shadow: var(--es-shadow-3);
    overflow: hidden;
}

.invite__hero {
    background: linear-gradient(135deg, #312e81 0%, var(--es-brand) 55%, #7c3aed 100%);
    color: #fff;
    padding: 1.75rem 1.9rem;
    position: relative;
}

.invite__hero--cover {
    background-size: cover;
    background-position: center;
}

.invite__hero--cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(49, 46, 129, .92), rgba(79, 70, 229, .78));
}

.invite__hero > * {
    position: relative;
}

.invite__org {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.invite__logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--es-r);
    background: #fff;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--es-brand);
    font-weight: 800;
    font-size: 1.2rem;
}

.invite__org-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.invite__kicker {
    color: #c7d2fe;
    font-size: .82rem;
}

.invite__title {
    color: #fff;
    font-size: 1.6rem;
    margin: 1.4rem 0 0;
}

.invite__body {
    padding: 1.6rem 1.9rem 1.9rem;
}

.invite__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.4rem;
}

.invite__actions form {
    display: contents;
}

/* A session's line-up on the session list: a small portrait, the name, where the invitation stands. */
.speaker-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .35rem;
}

.speaker-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .5rem .15rem .2rem;
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-pill);
    background: var(--es-raised);
    font-size: .8rem;
    color: var(--es-body);
}

.speaker-chip__photo {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    object-fit: cover;
}

.speaker-chip__status {
    font-size: .68rem;
    padding: .05rem .4rem;
}

/* ---- portal events (cards, event overview) */

/*
    The portal's event list is a grid of cards rather than a table: an organizer recognises an
    event by its cover and its date long before its slug. The overview page below it is a hero
    plus one panel per thing the event is made of, each a preview that links to where it is
    managed. Class names carry an ev-/ov- prefix so they never collide with the public site's
    .event-card.
*/

/* min(100%, …) is what keeps a phone from scrolling sideways when one column is all there is. */
.ev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 1rem;
}

.ev-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-lg);
    box-shadow: var(--es-shadow-1);
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.ev-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--es-shadow-2);
    border-color: var(--es-brand-border);
}

.ev-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 7;
    background: var(--es-raised);
    overflow: hidden;
}

.ev-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ev-card__cover--empty {
    background:
        radial-gradient(circle at 85% 20%, var(--es-brand-border) 0, transparent 55%),
        linear-gradient(135deg, var(--es-brand-soft), var(--es-info-soft));
}

.ev-card__placeholder {
    position: absolute;
    right: 1rem;
    bottom: .75rem;
    color: var(--es-brand-border);
}

.ev-card__placeholder svg {
    width: 3.25rem;
    height: 3.25rem;
}

.ev-card__date {
    position: absolute;
    left: .85rem;
    top: .85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.1rem;
    padding: .3rem .45rem .35rem;
    background: var(--es-surface);
    border-radius: var(--es-r);
    box-shadow: var(--es-shadow-2);
    line-height: 1;
}

.ev-card__day {
    font-size: 1.35rem;
    font-weight: 750;
    color: var(--es-ink);
    font-variant-numeric: tabular-nums;
}

.ev-card__month {
    margin-top: .15rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--es-brand-strong);
}

.ev-card__body {
    flex: 1 1 auto;
    padding: .95rem 1.1rem 1rem;
    min-width: 0;
}

.ev-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.ev-card__name {
    font-size: 1.08rem;
    line-height: 1.3;
    margin: .55rem 0 .6rem;
    overflow-wrap: anywhere;
}

.ev-card__name a {
    color: var(--es-ink);
    text-decoration: none;
}

.ev-card__name a:hover {
    color: var(--es-brand-strong);
}

.ev-card__meta {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    color: var(--es-muted);
    font-size: .86rem;
    margin-bottom: .3rem;
    overflow-wrap: anywhere;
}

.ev-card__meta svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    margin-top: .15rem;
    color: var(--es-faint);
}

.ev-card__zone {
    color: var(--es-faint);
    font-size: .78rem;
}

.ev-card__foot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .6rem 1.1rem;
    border-top: 1px solid var(--es-line);
    background: var(--es-raised);
    font-size: .82rem;
    color: var(--es-muted);
}

.ev-card__count {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-variant-numeric: tabular-nums;
}

.ev-card__count svg {
    width: 14px;
    height: 14px;
    color: var(--es-faint);
}

.ev-card__go {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: var(--es-r-pill);
    color: var(--es-brand-strong);
    background: var(--es-brand-soft);
}

.ev-card__go:hover {
    background: var(--es-brand);
    color: var(--es-shell-bright);
}

.ev-card__go svg {
    width: 15px;
    height: 15px;
}

/* The overview's hero: the cover behind a dark wash, so white text reads over any photograph. */
.ev-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--es-r-lg);
    margin-bottom: 1.25rem;
    color: var(--es-shell-bright);
    background: linear-gradient(135deg, var(--es-shell) 0%, var(--es-shell-2) 45%, var(--es-brand-strong) 100%);
    box-shadow: var(--es-shadow-2);
}

.ev-hero__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ev-hero:not(.ev-hero--plain)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        color-mix(in srgb, var(--es-shell) 94%, transparent) 0%,
        color-mix(in srgb, var(--es-shell) 70%, transparent) 55%,
        color-mix(in srgb, var(--es-shell) 35%, transparent) 100%);
}

.ev-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 13rem;
    padding: 2rem 1.75rem 1.6rem;
}

.ev-hero__main {
    min-width: 0;
    flex: 1 1 22rem;
}

.ev-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.ev-hero__title {
    color: var(--es-shell-bright);
    font-size: clamp(1.45rem, 3.2vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: .7rem 0 .75rem;
    overflow-wrap: anywhere;
}

.ev-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.25rem;
    font-size: .92rem;
    color: color-mix(in srgb, var(--es-shell-bright) 86%, transparent);
}

.ev-hero__meta > * {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ev-hero__meta a {
    color: var(--es-shell-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ev-hero__meta svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    opacity: .8;
}

.ev-hero__faint {
    color: color-mix(in srgb, var(--es-shell-bright) 62%, transparent);
}

.ev-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ev-hero__actions form {
    display: contents;
}

/* A stat tile that is a link keeps the tile's look and gains the lift of a clickable card. */
.ov-stat {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.ov-stat:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: var(--es-shadow-2);
    border-color: var(--es-brand-border);
}

.ov-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.ov-column {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.ov-panel {
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-lg);
    box-shadow: var(--es-shadow-1);
    overflow: hidden;
    min-width: 0;
}

.ov-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1.15rem;
    border-bottom: 1px solid var(--es-line);
}

.ov-panel__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .98rem;
    font-weight: 650;
    color: var(--es-ink);
}

.ov-panel__title svg {
    width: 17px;
    height: 17px;
    color: var(--es-brand);
}

.ov-panel__link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex: 0 0 auto;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ov-panel__link svg {
    width: 14px;
    height: 14px;
}

.ov-panel__body {
    padding: 1rem 1.15rem;
}

.ov-panel__foot {
    padding: .6rem 1.15rem;
    border-top: 1px solid var(--es-line);
    background: var(--es-raised);
    font-size: .84rem;
    color: var(--es-muted);
}

.ov-empty {
    padding: 1.25rem 1.15rem;
    color: var(--es-muted);
    font-size: .9rem;
}

.ov-empty p {
    margin: 0;
}

.ov-empty .btn {
    margin-top: .75rem;
}

.ov-agenda {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ov-agenda__item {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: .85rem 1.15rem;
    border-bottom: 1px solid var(--es-line);
}

.ov-agenda__item:last-child {
    border-bottom: 0;
}

.ov-agenda__when {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.ov-agenda__time {
    color: var(--es-brand-strong);
    font-weight: 650;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

.ov-agenda__day {
    color: var(--es-faint);
    font-size: .78rem;
}

.ov-agenda__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    color: var(--es-ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ov-agenda__room {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: .15rem;
    color: var(--es-muted);
    font-size: .82rem;
}

.ov-agenda__room svg {
    width: 13px;
    height: 13px;
    color: var(--es-faint);
}

.ov-people {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ov-person {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.15rem;
    border-bottom: 1px solid var(--es-line);
}

.ov-person:last-child {
    border-bottom: 0;
}

.ov-person__text {
    flex: 1 1 auto;
    min-width: 0;
}

.ov-person__name {
    color: var(--es-ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ov-person__role {
    color: var(--es-muted);
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.ov-person__status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .2rem;
    flex: 0 0 auto;
}

.ov-person__sessions {
    color: var(--es-faint);
    font-size: .75rem;
}

.ov-facts dd {
    overflow-wrap: anywhere;
}

.ov-facts__path {
    word-break: break-all;
}

.ov-facts__description {
    white-space: pre-line;
}

.ov-logos {
    list-style: none;
    margin: 0;
    padding: 1rem 1.15rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5rem), 1fr));
    gap: .75rem;
}

.ov-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .7rem .5rem;
    border: 1px solid var(--es-line);
    border-radius: var(--es-r);
    background: var(--es-raised);
    text-align: center;
    min-width: 0;
}

.ov-logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    color: var(--es-faint);
}

.ov-logo__mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ov-logo__mark svg {
    width: 1.6rem;
    height: 1.6rem;
}

.ov-logo__name {
    color: var(--es-ink);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ov-logo__tier {
    color: var(--es-brand-strong);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ov-kiosks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ov-kiosk {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.15rem;
    border-bottom: 1px solid var(--es-line);
}

.ov-kiosk:last-child {
    border-bottom: 0;
}

.ov-kiosk__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border-radius: var(--es-r-sm);
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
}

.ov-kiosk__icon svg {
    width: 18px;
    height: 18px;
}

.ov-kiosk__text {
    flex: 1 1 auto;
    min-width: 0;
}

.ov-kiosk__name {
    color: var(--es-ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ov-kiosk__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .85rem;
    color: var(--es-muted);
    font-size: .8rem;
}

.ov-kiosk__meta span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.ov-kiosk__meta svg {
    width: 13px;
    height: 13px;
    color: var(--es-faint);
}

/* The sponsor picker on the event form: a tile per pool sponsor, the whole tile toggles the box. */
.ev-pick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: .6rem;
}

.ev-pick__tile {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .8rem;
    border: 1px solid var(--es-line);
    border-radius: var(--es-r);
    background: var(--es-surface);
    cursor: pointer;
    min-width: 0;
    transition: border-color .12s ease, background-color .12s ease;
}

.ev-pick__tile:hover {
    border-color: var(--es-brand-border);
}

.ev-pick__tile:has(.ev-pick__check:checked) {
    border-color: var(--es-brand);
    background: var(--es-brand-soft);
}

.ev-pick__tile:has(.ev-pick__check:disabled) {
    cursor: default;
}

.ev-pick__check {
    flex: 0 0 auto;
    margin: 0;
}

.ev-pick__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    padding: .2rem;
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-sm);
    background: var(--es-surface);
    color: var(--es-faint);
}

.ev-pick__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ev-pick__logo svg {
    width: 1.1rem;
    height: 1.1rem;
}

.ev-pick__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    min-width: 0;
}

.ev-pick__name {
    color: var(--es-ink);
    font-weight: 600;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.ev-pick-empty {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1rem;
    border: 1px dashed var(--es-line-strong);
    border-radius: var(--es-r);
    color: var(--es-muted);
    font-size: .9rem;
}

.ev-pick-empty svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    color: var(--es-faint);
}

@media (max-width: 1199.98px) {
    .ov-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .ev-hero__inner {
        min-height: 0;
        padding: 1.4rem 1.1rem 1.2rem;
    }

    .ev-hero__actions {
        width: 100%;
    }

    .ov-agenda__item {
        grid-template-columns: minmax(0, 1fr);
        gap: .3rem;
    }

    .ov-agenda__when {
        flex-direction: row;
        align-items: baseline;
        gap: .5rem;
    }

    .ov-person {
        flex-wrap: wrap;
    }

    .ov-person__status {
        flex-direction: row;
        align-items: center;
        margin-left: 3rem;
    }
}

/* --------------------------------------------------------- organization chooser
   Where a signed-in person lands (AD-19): one card per organization, logo first, straight into
   that organization's portal. */
.org-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: 1rem;
}

.org-picker__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-r-lg);
    box-shadow: var(--es-shadow-1);
    color: var(--es-body);
    text-decoration: none;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.org-picker__card:hover {
    color: var(--es-body);
    border-color: var(--es-brand-border);
    box-shadow: var(--es-shadow-3);
    transform: translateY(-2px);
}

.org-picker__logo {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 auto;
    border-radius: var(--es-r);
    object-fit: cover;
    background: var(--es-raised);
    border: 1px solid var(--es-line);
}

.org-picker__logo--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--es-brand-soft);
    color: var(--es-brand-strong);
    border-color: var(--es-brand-border);
    font-size: 1.35rem;
    font-weight: 800;
}

.org-picker__body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
    flex: 1 1 auto;
}

.org-picker__name {
    color: var(--es-ink);
    font-weight: 650;
    font-size: 1.05rem;
    line-height: 1.3;
}

.org-picker__meta {
    color: var(--es-muted);
    font-size: .84rem;
}

.org-picker__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .15rem;
}

.org-picker__go {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--es-brand-strong);
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .org-picker__go {
        display: none;
    }
}

/* An address the form shows but does not accept: a registration opened from an invitation (AD-19). */
.auth__fixed-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem .85rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--es-brand-border);
    border-radius: var(--es-r-sm);
    background: var(--es-brand-soft);
}

.auth__fixed-label {
    color: var(--es-muted);
    font-size: .8rem;
}

.auth__fixed-value {
    color: var(--es-ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}
