html {
    font-family: 'Fira Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
}

main {
    display: grid;
    height: 100svh;
    grid-template-rows: 1fr min-content;
    position: relative;
}

#simcision-app {
    height: 100%;
}

/* ── Sync overlay ─────────────────────────────────────────── */
#sync-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #fff;
    font-size: 1rem;
    z-index: 10;
    transition: opacity 0.3s ease;
    @starting-style {
        opacity: 0;
    }
}
#sync-overlay.hidden {
    display: none;
}
.sync-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

footer {
    padding: 0.5rem;
    background-color: #000;
    color: #eee;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ── Presence avatars ─────────────────────────────────────── */
#presence-avatars {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.presence-group {
    display: flex;
    align-items: center;
}

.presence-group .presence-avatar + .presence-avatar {
    margin-left: -8px;
}

.presence-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--avatar-color, #6b7280);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    border: 2px solid #000;
    cursor: default;
}

.presence-avatar--self {
    box-shadow: 0 0 0 2px #fff;
}


.role {
    font-weight: bold;
}
.instructions {
    color: #ddd;
}

#company-name {
    font-weight: 900;
    color: #007bff;
}
#role-name {
    font-weight: bold;
}

#intro-dialog::backdrop {
    background-color: rgba(250, 250, 250, 0.98);
}
#intro-dialog {
    border: none;
    border-radius: 8px;
    padding: 3rem;
    width: 80%;
    max-width: 42em;
    max-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 1.25rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transition: opacity 0.3s ease, transform 0.3s ease;
    @starting-style {
        opacity: 0;
        transform: translateY(2rem);
    }
}
#intro-dialog h1 {
    margin-top: 0;
}
#intro-dialog button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
