:root {
    --bg: #edf3fb;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --text: #19315f;
    --text-soft: #5f6f8f;
    --line: rgba(12, 77, 162, 0.14);
    --primary: #2d4190;
    --primary-deep: #0c4da2;
    --accent: #efc64b;
    --danger: #cf4f56;
    --warn: #d6a229;
    --ok: #2f8f5b;
    --shadow: 0 18px 40px rgba(17, 42, 84, 0.12);
    --radius: 24px;
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(239, 198, 75, 0.22), transparent 25%),
        radial-gradient(circle at right 18%, rgba(12, 77, 162, 0.14), transparent 24%),
        linear-gradient(180deg, #f8faff 0%, #eef3fb 42%, #e7eef8 100%);
}

a {
    color: inherit;
}

.site-header__inner,
.hero,
.section,
.site-footer {
    width: min(calc(100% - 32px), var(--content));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1300;
    backdrop-filter: blur(16px);
    background: rgba(247, 249, 254, 0.82);
    border-bottom: 1px solid rgba(12, 77, 162, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
}

.site-header__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-header__tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand__logo {
    width: 132px;
    max-width: 28vw;
    height: auto;
    display: block;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand__eyebrow,
.kicker,
.section-heading__eyebrow,
.hero-card__label,
.role-card__eyebrow,
.session-card__day {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
}

.brand__eyebrow,
.section-heading__eyebrow,
.hero-card__label {
    color: #b58a1d;
}

.brand__eyebrow {
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    opacity: 0.82;
}

.brand__title,
h1,
h2,
h3 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    letter-spacing: 0.01em;
}

.brand__title {
    font-size: 1.32rem;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav__label-compact {
    display: none;
}

.site-nav a,
.site-nav__logout button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 38px;
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 700;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid transparent;
    line-height: 1;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    font-size: 0.95rem;
}

.site-nav__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav__logout button:hover {
    background: rgba(12, 77, 162, 0.06);
    border-color: rgba(25, 49, 95, 0.12);
    color: var(--text);
}

.site-nav__action:hover {
    background: rgba(12, 77, 162, 0.06);
    border-color: rgba(25, 49, 95, 0.12);
    color: var(--text);
}

.site-nav a.is-active,
.site-nav__logout button.is-active {
    color: #fff;
    background: var(--primary);
    border-color: rgba(12, 77, 162, 0.2);
}

.site-nav__action.is-active {
    color: #fff;
    background: var(--primary);
    border-color: rgba(12, 77, 162, 0.2);
}

.site-nav a.is-active::before,
.site-nav__logout button.is-active::before,
.site-nav__action.is-active::before {
    content: "";
    position: absolute;
    top: -11px;
    left: -1px;
    right: -1px;
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: var(--accent);
}

.site-nav__logout {
    display: flex;
}

.locale-switcher {
    position: relative;
}

.help-menu {
    position: relative;
}

.header-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(25, 49, 95, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-soft);
    cursor: pointer;
    list-style: none;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.header-icon-button::-webkit-details-marker {
    display: none;
}

.header-icon-button svg {
    width: 16px;
    height: 16px;
    display: block;
}

.header-icon-button:hover {
    background: rgba(12, 77, 162, 0.06);
    border-color: rgba(25, 49, 95, 0.2);
    color: var(--text);
}

.header-icon-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(239, 198, 75, 0.22);
    outline: none;
}

.help-menu[open] .help-menu__summary {
    background: rgba(12, 77, 162, 0.08);
    border-color: rgba(25, 49, 95, 0.2);
    box-shadow: 0 0 0 3px rgba(239, 198, 75, 0.22);
    color: var(--text);
}

.help-menu__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(390px, calc(100vw - 24px));
    max-height: min(72vh, 660px);
    overflow-y: auto;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(25, 49, 95, 0.14);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 46px rgba(17, 42, 84, 0.18);
    backdrop-filter: blur(18px);
    z-index: 38;
}

.help-menu__head {
    display: grid;
    gap: 3px;
    padding: 2px 4px 10px;
    border-bottom: 1px solid var(--line);
}

.help-menu__head strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.25rem;
}

.help-menu__head span {
    color: var(--text-soft);
    font-size: 0.76rem;
    line-height: 1.4;
}

.help-menu__group {
    padding-top: 11px;
}

.help-menu__group + .help-menu__group {
    margin-top: 3px;
    border-top: 1px solid var(--line);
}

.help-menu__group h3 {
    margin: 0 4px 7px;
    color: #9a7413;
    font-family: "Manrope", sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.help-menu__links {
    display: grid;
    gap: 4px;
}

.help-menu__link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 7px 8px;
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.help-menu__link--button {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.help-menu__support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--primary-deep);
    font-size: 1rem;
    font-weight: 900;
}

.help-menu__link:hover,
.help-menu__link:focus-visible {
    background: rgba(12, 77, 162, 0.07);
    outline: none;
}

.help-menu__pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 8px 8px 8px 3px;
    background: var(--primary);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.help-menu__link-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.help-menu__link-copy strong {
    font-size: 0.78rem;
    line-height: 1.25;
}

.help-menu__link-copy small {
    color: var(--text-soft);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.locale-switcher__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(25, 49, 95, 0.12);
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    list-style: none;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.locale-switcher__summary::-webkit-details-marker {
    display: none;
}

.locale-switcher__summary:hover {
    background: rgba(12, 77, 162, 0.06);
    border-color: rgba(25, 49, 95, 0.2);
}

.locale-switcher[open] .locale-switcher__summary,
.locale-switcher__summary:focus-visible {
    box-shadow: 0 0 0 3px rgba(239, 198, 75, 0.22);
    outline: none;
}

.locale-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 4px;
    min-width: 92px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(25, 49, 95, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(17, 42, 84, 0.14);
    backdrop-filter: blur(18px);
    z-index: 35;
}

.locale-switcher--field {
    display: inline-flex;
    align-self: flex-start;
}

.locale-switcher--field .locale-switcher__menu {
    left: 0;
    right: auto;
}

.locale-switcher__option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    width: 100%;
    padding: 0 10px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.locale-switcher__option:hover {
    background: rgba(12, 77, 162, 0.06);
    color: var(--text);
}

.locale-switcher__option.is-active {
    background: rgba(12, 77, 162, 0.08);
    color: var(--text);
}

.locale-switcher__flag {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(25, 49, 95, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    flex: 0 0 auto;
}

.locale-switcher__flag--senyera {
    background:
        linear-gradient(180deg,
            #f0c548 0 12.5%,
            #c5403c 12.5% 25%,
            #f0c548 25% 37.5%,
            #c5403c 37.5% 50%,
            #f0c548 50% 62.5%,
            #c5403c 62.5% 75%,
            #f0c548 75% 87.5%,
            #c5403c 87.5% 100%);
}

.locale-switcher__flag--esp {
    background:
        linear-gradient(180deg,
            #c63b35 0 25%,
            #efc64b 25% 75%,
            #c63b35 75% 100%);
}

.locale-switcher__flag--eng {
    background:
        linear-gradient(26deg, transparent 43%, #ffffff 43% 47%, #c73c42 47% 53%, #ffffff 53% 57%, transparent 57%),
        linear-gradient(-26deg, transparent 43%, #ffffff 43% 47%, #c73c42 47% 53%, #ffffff 53% 57%, transparent 57%),
        linear-gradient(90deg, transparent 0 34%, #ffffff 34% 42%, #c73c42 42% 58%, #ffffff 58% 66%, transparent 66% 100%),
        linear-gradient(180deg, transparent 0 34%, #ffffff 34% 42%, #c73c42 42% 58%, #ffffff 58% 66%, transparent 66% 100%),
        #1f4d92;
}

.locale-switcher__flag--fra {
    background:
        linear-gradient(90deg, #1b4aa5 0 33.333%, #ffffff 33.333% 66.666%, #d43b3b 66.666% 100%);
}

.locale-switcher__flag--deu {
    background:
        linear-gradient(180deg, #111111 0 33.333%, #cb3940 33.333% 66.666%, #efc64b 66.666% 100%);
}

.site-nav__logout button {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    font: inherit;
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.calendar-feed-dialog__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-dialog--calendar-feed .field input[readonly] {
    background: rgba(12, 77, 162, 0.04);
    color: var(--text);
    font-size: 0.84rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 28px;
    padding: 56px 0 28px;
    align-items: stretch;
}

.hero__content,
.hero-card,
.session-card,
.role-card,
.workflow-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero__content {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 36px;
}

.hero__content::after {
    content: "";
    position: absolute;
    inset: auto -8% -28% auto;
    width: 320px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 77, 162, 0.18), rgba(12, 77, 162, 0));
    pointer-events: none;
}

.kicker {
    color: var(--accent);
    margin: 0 0 14px;
}

.role-card__eyebrow,
.session-card__day {
    color: #b58a1d;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.92;
    text-transform: uppercase;
    max-width: 12ch;
}

.hero__lead,
.hero-card p,
.section-copy,
.session-card p,
.role-card p,
.workflow-card p,
.site-footer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.hero__lead {
    max-width: 58ch;
    margin-top: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.button--primary {
    background: var(--primary);
    border-color: rgba(239, 198, 75, 0.28);
    box-shadow: 0 8px 18px rgba(25, 49, 95, 0.1);
    color: #fff;
}

.button--ghost {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(25, 49, 95, 0.18);
    color: var(--text);
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary:hover {
    background: #24367a;
    border-color: rgba(239, 198, 75, 0.44);
}

.button--ghost:hover {
    border-color: rgba(25, 49, 95, 0.3);
    background: #ffffff;
}

.button:focus-visible {
    outline: 3px solid rgba(239, 198, 75, 0.44);
    outline-offset: 2px;
}

.button--small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
}

.button--block {
    width: 100%;
    margin-top: 8px;
}

.button--danger {
    border-color: rgba(207, 79, 86, 0.32);
    color: var(--danger);
}

.button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.button--save-ready {
    background: var(--primary);
    border-color: rgba(239, 198, 75, 0.28);
    box-shadow: 0 8px 18px rgba(25, 49, 95, 0.1);
    color: #fff;
}

.hero-card {
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(233, 239, 251, 0.92)),
        var(--surface);
}

.profile-panel {
    border-radius: 28px;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(233, 239, 251, 0.92)),
        var(--surface);
    border: 1px solid rgba(25, 49, 95, 0.08);
    box-shadow: var(--shadow);
}

.profile-panel h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1;
}

.profile-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(12, 77, 162, 0.1);
    color: var(--primary-deep);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-meta__item {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(25, 49, 95, 0.08);
    display: grid;
    gap: 4px;
}

.profile-meta__item span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.profile-meta__item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.profile-form {
    max-width: 100%;
    margin-bottom: auto;
}

.profile-panel__actions {
    display: flex;
    justify-content: flex-end;
}

.profile-panel__logout {
    display: flex;
    justify-content: flex-end;
}

.profile-support,
.profile-data-rights {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(25, 49, 95, 0.1);
}

.profile-support__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-support__head > div {
    display: grid;
    gap: 4px;
}

.profile-support-history {
    display: grid;
    gap: 10px;
}

.profile-data-rights-history {
    display: grid;
    gap: 10px;
}

.profile-support-item,
.profile-data-rights-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(25, 49, 95, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.profile-support-item__head,
.profile-data-rights-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-support-item__head > div,
.profile-data-rights-item__head > div {
    display: grid;
    gap: 2px;
}

.profile-support-item__head span:not(.profile-badge),
.profile-data-rights-item__head span:not(.profile-badge) {
    color: var(--text-soft);
    font-size: 0.75rem;
}

.profile-support-item p {
    margin: 0;
    line-height: 1.45;
}

.profile-data-rights-warning {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    border-radius: 4px 10px 10px 4px;
    background: rgba(239, 198, 75, 0.14);
    font-size: 0.82rem;
    line-height: 1.4;
}

.profile-data-rights-warning .button-link {
    justify-self: start;
    margin-top: 2px;
    font-weight: 800;
}

.profile-badge--status {
    min-height: 28px;
    padding-inline: 9px;
    font-size: 0.65rem;
}

.profile-data-rights-download {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.profile-data-rights-download .field {
    margin: 0;
}

.mini-note--danger {
    color: var(--danger);
}

.privacy-policy-page {
    padding-top: 32px;
}

.privacy-policy-page h1 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.privacy-policy-content {
    display: grid;
    gap: 12px;
}

.privacy-policy-content p {
    margin: 0;
    line-height: 1.62;
}

.hero-card h2 {
    font-size: 2rem;
}

.hero-card__list,
.role-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.hero-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-card__stats div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.hero-card__stats strong {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.6rem;
}

.hero-card__stats span {
    font-size: 0.8rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section--tight {
    padding-top: 0;
    padding-bottom: 8px;
}

.flash-banner {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 1200;
    min-width: min(420px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(12, 77, 162, 0.15);
    color: var(--primary-deep);
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(25, 49, 95, 0.16);
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 500ms ease, transform 500ms ease;
    backdrop-filter: blur(10px);
}

.flash-banner.is-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

.inline-feedback {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 40;
    width: min(320px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(12, 77, 162, 0.18);
    color: #19315f;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.28;
    text-align: center;
    transform: translateX(-50%) translateY(-6px);
    box-shadow: 0 14px 30px rgba(25, 49, 95, 0.18);
    backdrop-filter: blur(8px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 280ms ease, transform 280ms ease;
}

.inline-feedback.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.inline-feedback.is-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
}

.session-card.has-inline-feedback {
    padding-top: 64px;
}

[data-admin-panel].has-inline-feedback,
[data-tab-panel].has-inline-feedback {
    padding-top: 54px;
}

.session-card,
[data-admin-panel],
[data-tab-panel] {
    transition: padding-top 280ms ease;
}

.status-legend {
    display: grid;
    gap: 10px;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    width: fit-content;
}

.legend-pill span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.legend-pill--red {
    background: rgba(207, 79, 86, 0.1);
    color: #a83a40;
}

.legend-pill--red span {
    background: var(--danger);
}

.legend-pill--yellow {
    background: rgba(239, 198, 75, 0.16);
    color: #8c6810;
}

.legend-pill--yellow span {
    background: var(--warn);
}

.legend-pill--green {
    background: rgba(47, 143, 91, 0.11);
    color: #216743;
}

.legend-pill--green span {
    background: var(--ok);
}

.section {
    padding: 28px 0 40px;
}

.section--band {
    padding-bottom: 64px;
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    padding-left: 14px;
}

.section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), rgba(239, 198, 75, 0.45));
}

.section-copy {
    max-width: 70ch;
}

.section-subcopy {
    max-width: 66ch;
    margin: -2px 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-soft);
}

.inline-form,
.inline-actions,
.session-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form--add-user {
    margin-top: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
}

.inline-form--add-user select {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    min-height: 36px;
    font-size: 1rem;
    line-height: 1.2;
}

.inline-form--add-user .button {
    min-height: 36px;
    min-width: 36px;
    padding: 0 10px;
}

.team-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.team-card__eyebrow {
    margin: 0 0 4px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.team-card__patron {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(12, 77, 162, 0.08);
    color: var(--primary-deep);
    font-size: 0.82rem;
    font-weight: 800;
}

.team-card__form {
    margin-bottom: 14px;
}

.user-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.series-card__actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.series-card__actions .inline-actions {
    flex-wrap: nowrap;
}

.roles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules-grid--privacy {
    margin-top: 18px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.rule-card--accent {
    background: linear-gradient(180deg, rgba(12, 77, 162, 0.08), rgba(255, 255, 255, 0.94));
}

.rule-card h3 {
    font-size: 1.85rem;
    margin-bottom: 10px;
}

.rule-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.role-card {
    background: rgba(255, 255, 255, 0.86);
}

.role-card--featured {
    background: linear-gradient(180deg, rgba(12, 77, 162, 0.08), rgba(255, 255, 255, 0.95));
}

.role-card__eyebrow {
    color: var(--accent);
    margin: 0 0 12px;
}

.role-card h3,
.workflow-card h3 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-card {
    position: relative;
    padding-top: 56px;
}

.workflow-card__step {
    position: absolute;
    top: 18px;
    left: 20px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #f0d198);
    color: #1b2650;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
}

.site-footer {
    padding: 0 0 32px;
}

.site-footer p {
    text-align: center;
    padding: 18px 20px;
    border-top: 1px solid rgba(12, 77, 162, 0.1);
    color: var(--text-soft);
    font-size: 0.74rem;
    line-height: 1.4;
}

.site-footer img {
    vertical-align: middle;
}
