:root {
    --team6th-blue: #0a3d62;
    --team6th-yellow: #ffe627;
    --team6th-ice: #f4f6fb;
    --team6th-green: #19a974;
    --team6th-red: #d64545;
    --team6th-radius: 16px;
}

.team6th-checkin-app {
    font-family: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    border-radius: var(--team6th-radius);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(6, 44, 82, 0.08);
    margin: 2rem auto;
    max-width: 1200px;
}

.team6th-checkin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.team6th-checkin-brand h2 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--team6th-blue);
}

.team6th-checkin-brand p {
    margin: .25rem 0 0;
    color: rgba(10, 61, 98, 0.8);
}

.team6th-checkin-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.team6th-pill {
    flex: 1 1 150px;
    background: #f1f5fb;
    border-radius: 28px;
    padding: 1rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 18px rgba(6, 44, 82, 0.08);
}

.team6th-pill span {
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(10, 61, 98, 0.7);
    margin-bottom: 0.25rem;
}

.team6th-pill strong {
    font-size: 1.7rem;
    color: var(--team6th-blue);
    line-height: 1.1;
}

.team6th-pill.is-highlight {
    background: var(--team6th-blue);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 24px rgba(6, 44, 82, 0.25);
}

.team6th-pill.is-highlight span,
.team6th-pill.is-highlight strong {
    color: #ffffff;
}

.team6th-progress {
    margin: 1.5rem 0;
}

.team6th-progress__bar {
    background: rgba(10, 61, 98, 0.1);
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
}

.team6th-progress__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #19a974, #2ecc71);
    border-radius: inherit;
    transition: width 0.3s ease;
}

.team6th-progress__label {
    display: inline-block;
    margin-top: .35rem;
    font-weight: 600;
    color: var(--team6th-blue);
}

.team6th-search {
    display: block;
    margin-bottom: 1rem;
}

.team6th-search input {
    width: 100%;
    border: 2px solid rgba(10, 61, 98, 0.15);
    border-radius: var(--team6th-radius);
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s ease;
}

.team6th-search input:focus {
    border-color: var(--team6th-blue);
}

.team6th-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.team6th-card {
    border: none;
    border-radius: var(--team6th-radius);
    padding: 1rem;
    text-align: left;
    background: var(--team6th-ice);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.team6th-card span {
    display: block;
}

.team6th-card__status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
    color: rgba(10, 61, 98, 0.7);
}

.team6th-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--team6th-blue);
}

.team6th-card__meta {
    margin-top: .3rem;
    color: rgba(10, 61, 98, 0.65);
}

.team6th-card.is-pending:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(6, 44, 82, 0.18);
    background: #ffffff;
}

.team6th-card.is-checked {
    background: rgba(25, 169, 116, 0.12);
}

.team6th-card.is-checked .team6th-card__status {
    color: var(--team6th-green);
}

.team6th-empty {
    margin: 1.5rem 0;
    text-align: center;
    color: rgba(10, 61, 98, 0.7);
}

.team6th-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 61, 98, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
}

.team6th-modal[hidden] {
    display: none;
}

.team6th-modal__dialog {
    background: #ffffff;
    border-radius: var(--team6th-radius);
    max-width: 420px;
    width: 100%;
    padding: 1.75rem;
    position: relative;
    box-shadow: 0 40px 80px rgba(6, 44, 82, 0.3);
}

.team6th-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
}

.team6th-modal__kicker {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--team6th-blue);
    letter-spacing: 0.15em;
    margin: 0;
}

.team6th-modal__title {
    margin: 0.4rem 0 0.2rem;
    font-size: 1.6rem;
    color: var(--team6th-blue);
}

.team6th-modal__meta {
    margin: 0;
    color: rgba(10, 61, 98, 0.7);
}

.team6th-modal__attendees {
    margin: 1rem 0;
}

.team6th-attendees {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team6th-attendee {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(10, 61, 98, 0.15);
    border-radius: var(--team6th-radius);
}

.team6th-attendee__present {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(10, 61, 98, 0.8);
}

.team6th-attendee__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.team6th-attendee-name {
    width: 100%;
    border: 1px solid rgba(10, 61, 98, 0.2);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
}

.team6th-attendee-portion {
    font-size: 0.8rem;
    color: rgba(10, 61, 98, 0.7);
}

.team6th-attendee-remove {
    border: none;
    background: none;
    color: rgba(10, 61, 98, 0.55);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.team6th-attendee-remove:hover {
    background: rgba(10, 61, 98, 0.08);
    color: var(--team6th-blue);
}

.team6th-attendee.is-removed {
    opacity: 0.55;
}

.team6th-attendee.is-removed .team6th-attendee-name {
    text-decoration: line-through;
}

.team6th-attendee.is-removed .team6th-attendee-remove {
    font-size: 0.95rem;
    font-weight: 700;
}

.team6th-confirm {
    margin-bottom: 0.75rem;
}

.team6th-confirm label {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--team6th-blue);
}

.team6th-button {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    background: var(--team6th-blue);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.team6th-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.team6th-button:not(:disabled):hover {
    background: #06294a;
}

.team6th-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .team6th-checkin-app {
        padding: 1rem;
    }
    .team6th-checkin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .team6th-checkin-stats {
        width: 100%;
    }
    .team6th-card {
        padding: 0.9rem;
    }
    .team6th-attendee {
        flex-direction: column;
        align-items: flex-start;
    }
    .team6th-attendee__present {
        width: 100%;
    }
}
