.session-card__manage-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.session-card__manage-row form {
    display: flex;
}

.session-card__manage-row .button {
    min-width: 154px;
    justify-content: center;
}

.session-card__manage-row > form .button {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.session-card__manage-row--status {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.session-card__manage-row--status > form {
    min-width: 0;
}

.session-card__manage-row--status > form .button {
    width: 100%;
    white-space: normal;
    line-height: 1.05;
}

.session-card__manage-row .inline-form {
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
}

.session-card__manage-row .inline-form select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.session-card__manage-row .inline-form .button {
    flex: 0 0 auto;
}

.session-card__admin {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.session-card__admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    color: var(--primary-deep);
    font-weight: 800;
    font-size: 0.84rem;
    margin-left: auto;
    align-self: flex-end;
}

.session-card__admin[open] .session-card__admin-toggle {
    background: rgba(255, 250, 235, 0.92);
    border-color: rgba(239, 198, 75, 0.34);
    color: #9c7610;
}

.session-card__admin-toggle::-webkit-details-marker {
    display: none;
}

.session-card__admin-toggle::after {
    content: "+";
    font-size: 1rem;
    line-height: 1;
}

.session-card__admin[open] .session-card__admin-toggle::after {
    content: "-";
}

.session-card__admin-body {
    margin-top: 10px;
    width: 100%;
    min-width: 0;
}

.session-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 16px;
    height: 100%;
}

.session-card.is-calendar-highlight {
    animation: calendar-card-highlight 1.45s ease;
}

@keyframes calendar-card-highlight {
    0% {
        transform: translateY(0);
        box-shadow: var(--shadow);
    }
    18% {
        transform: translateY(-3px);
        box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.34), 0 18px 40px rgba(25, 49, 95, 0.2);
    }
    100% {
        transform: translateY(0);
        box-shadow: var(--shadow);
    }
}

.session-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: currentColor;
    opacity: 0.8;
}

.session-card.is-low {
    color: var(--danger);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 238, 239, 0.96));
}

.session-card.is-mid {
    color: #9c7610;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 228, 0.96));
}

.session-card.is-full {
    color: var(--ok);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 249, 241, 0.96));
}

.session-card.is-cancelled {
    color: #6f7180;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 242, 246, 0.98));
}

.session-card__top,
.session-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.session-card__day {
    margin: 0 0 4px;
}

.session-card h3 {
    font-size: 2rem;
    line-height: 0.92;
}

.session-card__team {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
    max-width: 13ch;
}

.session-card__team-text {
    min-width: 0;
}

.session-card__series-title {
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: right;
    max-width: 15ch;
}

.session-card__team-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.session-card__team-badge {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 24px;
    min-width: 24px;
    padding-top: 1px;
}

.session-card__favorite-form {
    margin: 0;
}

.session-card__team-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(25, 49, 95, 0.52);
}

.session-card__team-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.session-card__team-icon--home {
    color: #0c4da2;
}

.session-card__team-icon--star {
    cursor: pointer;
    color: rgba(25, 49, 95, 0.62);
    transition: transform 0.18s ease, color 0.18s ease;
}

.session-card__star-shape {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.session-card__team-icon--star:hover,
.session-card__team-icon--star:focus-visible {
    transform: scale(1.06);
    color: #19315f;
}

.session-card__team-icon--star.is-active {
    color: #f2c94c;
}

.session-card__team-icon--star.is-active .session-card__star-shape {
    fill: currentColor;
}

.roster-table__row--pending-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.roster-table__pending-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    flex: 0 0 auto;
}

.roster-table__dot-form {
    display: inline-flex;
    margin: 0;
}

.roster-table__dot-button {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    min-width: 13px;
    min-height: 13px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88), 0 0 0 1px rgba(25, 49, 95, 0.18);
    cursor: pointer;
    flex: 0 0 auto;
}

.roster-table__dot-button--yes {
    background: #34a853;
}

.roster-table__dot-button--no {
    background: #d9534f;
}

.roster-table__dot-button:hover,
.roster-table__dot-button:focus-visible {
    filter: brightness(0.95);
    outline: none;
}

.session-card__team-icon--placeholder {
    opacity: 0;
    pointer-events: none;
}

.session-card__status {
    color: currentColor;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    white-space: normal;
}

.session-card.is-cancelled .session-card__team,
.session-card.is-cancelled .session-card__footer,
.session-card.is-cancelled .roster-chip,
.session-card.is-cancelled .member-pill,
.session-card.is-cancelled .manage-pill {
    color: var(--text);
}

.session-card.is-cancelled .llagut-diagram,
.session-card.is-cancelled .session-card__count {
    opacity: 0.8;
}

.session-card__body {
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: start;
    gap: 12px;
    margin-bottom: 8px;
}

.session-card__diagram-col {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.llagut-diagram {
    width: auto;
    min-width: 0;
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 6px 2px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(25, 49, 95, 0.08);
}

.llagut-svg {
    display: block;
    width: min(100%, 220px);
    height: 64px;
    margin: 0 auto;
}

.llagut-svg--fleet {
    width: min(100%, 168px);
    height: auto !important;
}

.session-card__micro-embed {
    display: block;
    width: min(100%, 170px);
    height: 53px;
    margin: 0 auto;
    border: 0;
    border-radius: 10px;
    overflow: visible;
    background: transparent;
    flex: 0 0 auto;
}

.session-card__micro-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 53px;
    position: relative;
}

.session-card__micro-launch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.session-card__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 58px;
    min-height: 46px;
    padding: 4px 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 238, 0.86));
    border: 1px solid rgba(239, 198, 75, 0.24);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.session-card__roster {
    grid-column: 2;
    min-width: 0;
}

.session-card--club-wide .session-card__body {
    grid-template-columns: 52% 48%;
    gap: 10px;
}

.session-card--club-wide .llagut-diagram {
    padding: 4px 4px 2px;
}

.session-card--club-wide .session-card__micro-embed {
    width: min(100%, 156px);
}

.session-card__occupancy {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.session-card__subhead--compact {
    margin-top: 0;
    margin-bottom: 4px;
}

.roster-table {
    display: grid;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(239, 198, 75, 0.18);
}

.roster-section {
    display: grid;
    gap: 4px;
}

.roster-fleet {
    display: grid;
    gap: 5px;
}

.roster-fleet__boat {
    display: grid;
    gap: 2px;
}

.roster-fleet__title {
    margin: 0 0 1px;
    color: var(--text-soft);
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.roster-section + .roster-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(25, 49, 95, 0.08);
}

.session-card__roster .roster-section__title {
    display: block;
    margin: 0 0 1px !important;
    color: var(--primary-deep);
    font-size: 0.54rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1 !important;
}

.roster-table--plain .roster-table__row {
    grid-template-columns: 1fr;
}

.roster-table--plain .roster-table__row--pending-actions {
    grid-template-columns: minmax(0, 1fr) auto;
}

.roster-table__row {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    font-size: 0.62rem;
    line-height: 1.15;
    color: var(--text);
}

.roster-table__index {
    color: var(--text-soft);
    font-weight: 700;
}

.roster-table__name {
    min-width: 0;
    word-break: break-word;
}

.mini-note.mini-note--compact {
    font-size: 0.64rem;
    line-height: 1.12;
}

.llagut-hull {
    fill: rgba(24, 44, 83, 0.92);
}

.llagut-inner {
    fill: rgba(245, 248, 255, 0.92);
    stroke: rgba(25, 49, 95, 0.12);
    stroke-width: 1.5;
}

.llagut-keel,
.llagut-bench {
    fill: none;
    stroke: rgba(25, 49, 95, 0.32);
    stroke-width: 2;
    stroke-linecap: round;
}

.llagut-bench {
    stroke-width: 3;
}

.llagut-place {
    stroke: rgba(255, 255, 255, 0.82);
    stroke-width: 2;
}

.llagut-place.is-occupied {
    fill: currentColor;
}

.llagut-place.is-empty {
    fill: rgba(25, 49, 95, 0.12);
}

.llagut-timoner {
    stroke: rgba(255, 255, 255, 0.82);
    stroke-width: 2;
}

.llagut-timoner.is-occupied {
    fill: rgba(215, 166, 84, 0.95);
}

.llagut-timoner.is-empty {
    fill: rgba(215, 166, 84, 0.18);
}

.llagut-rudder {
    fill: none;
    stroke: rgba(25, 49, 95, 0.4);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.capacity-meter {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(25, 49, 95, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.capacity-meter span {
    display: block;
    height: 100%;
    background: currentColor;
}

.session-card__footer {
    align-items: center;
    padding-top: 0;
    border-top: 1px solid rgba(25, 49, 95, 0.08);
    color: var(--text);
    font-size: 0.8rem;
    line-height: 1.2;
    padding-top: 10px;
}

.session-card__footer strong {
    font-size: 0.92rem;
}

.roster-chips,
.member-list,
.manage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.roster-chips {
    margin-bottom: 10px;
}

.roster-chip,
.member-pill,
.manage-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(25, 49, 95, 0.14);
    color: var(--text);
    font-size: 0.76rem;
    line-height: 1.05;
}

.manage-pill {
    flex-wrap: wrap;
}

.manage-pill--policy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
}

.manage-pill--policy small {
    color: var(--text-soft);
    font-size: 0.68rem;
    white-space: nowrap;
}

.manage-pill__policy-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.manage-pill__policy-outcome {
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.manage-pill__policy-outcome--selected {
    color: #236642;
    background: rgba(53, 155, 98, 0.13);
}

.manage-pill__policy-outcome--waitlisted {
    color: #8a6810;
    background: rgba(242, 201, 76, 0.2);
}

.manage-pill__role-form,
.manage-pill__remove-form {
    margin: 0;
}

.admin-table__member-list .member-pill {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
}

.member-pill span {
    min-width: 0;
}

.member-pill small {
    color: var(--text-soft);
}

.admin-table__member-list .member-pill form {
    justify-self: end;
}

.manage-pill button:not(.roster-table__dot-button),
.member-pill button:not(.roster-table__dot-button) {
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(210, 55, 78, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--danger);
    cursor: pointer;
    font-weight: 800;
    font-size: 0.7rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.manage-pill button svg,
.member-pill button svg {
    width: 12px;
    height: 12px;
    display: block;
}

.manage-pill .manage-pill__role-select,
.session-card__cta--role .manage-pill__role-select,
.session-card__cta--role select {
    min-height: 28px;
    padding: 0 26px 0 8px;
    border: 1px solid rgba(25, 49, 95, 0.16);
    border-radius: 8px;
    background: rgba(12, 77, 162, 0.08);
    color: var(--text);
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1;
}

.manage-pill .manage-pill__role-submit,
.member-pill__submit-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.manage-pill .manage-pill__remove {
    color: var(--danger);
}

form.is-loading {
    opacity: 0.58;
    pointer-events: none;
}

.session-card__actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 4px;
}

.session-card__subhead {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.session-card__history {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(25, 49, 95, 0.1);
}

.session-card__history > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    color: var(--primary-deep);
    font-size: 0.74rem;
    font-weight: 800;
}

.session-card__history > summary::-webkit-details-marker {
    display: none;
}

.session-card__history > summary small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(242, 201, 76, 0.2);
    color: #8a6810;
    font-size: 0.66rem;
}

.session-card__history-list {
    display: grid;
    gap: 0;
    max-height: 260px;
    margin-top: 8px;
    overflow-y: auto;
    border: 1px solid rgba(25, 49, 95, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.session-card__history-entry {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 8px;
    border-bottom: 1px solid rgba(25, 49, 95, 0.08);
    font-size: 0.7rem;
    line-height: 1.25;
}

.session-card__history-entry:last-child {
    border-bottom: 0;
}

.session-card__history-entry time {
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
}

.session-card__history-entry div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.session-card__history-entry strong,
.session-card__history-entry span {
    overflow-wrap: anywhere;
}

.session-card__cta {
    display: flex;
    justify-content: center;
    width: calc(33.333% - 3px);
    min-width: 0;
    flex: 1 1 calc(33.333% - 3px);
    align-self: stretch;
}

.session-card__cta .button {
    min-height: 32px;
    width: 100%;
    height: 100%;
    padding: 5px 8px;
    font-size: 0.74rem;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.session-card__cta--role {
    gap: 8px;
    align-items: center;
}

.session-card__cta--role .manage-pill__role-select,
.session-card__cta--role select {
    flex: 0 1 auto;
    min-width: 0;
}

.mini-note {
    font-size: 0.84rem;
    color: var(--text-soft);
}
