* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f6f9;
    color: #172033;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.topbar {
    min-height: 72px;
    background: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
}

.brand {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    color: #94a3b8;
}

.title {
    font-size: 22px;
    font-weight: 700;
}

.logout {
    border: 1px solid #475569;
    background: transparent;
    color: white;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.container {
    width: min(1080px, calc(100% - 30px));
    margin: 28px auto 60px;
}

.card,
.status-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .04);
    margin-bottom: 18px;
}

.card {
    padding: 24px;
}

.status-card {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-dot.good {
    background: #16a34a;
    box-shadow: 0 0 0 4px #dcfce7;
}

.status-dot.bad {
    background: #dc2626;
    box-shadow: 0 0 0 4px #fee2e2;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

h2 {
    margin: 4px 0 0;
    font-size: 21px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 800;
    color: #64748b;
}

.muted {
    color: #64748b;
}

.small {
    font-size: 13px;
}

.current-pair,
.selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.current-pair {
    margin-bottom: 22px;
}

.person-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.person-card strong {
    font-size: 19px;
}

.slot {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

select,
input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 12px 13px;
    background: white;
    font: inherit;
    font-weight: 500;
    color: #172033;
}

select:focus,
input:focus {
    outline: 3px solid rgba(37, 99, 235, .12);
    border-color: #2563eb;
}

.save-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.primary {
    background: #2563eb;
    color: white;
    border: 0;
    border-radius: 9px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
}

.primary:hover {
    background: #1d4ed8;
}

.primary:disabled {
    opacity: .6;
    cursor: wait;
}

.full {
    width: 100%;
}

.refresh {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.call-list,
.audit-list {
    border-top: 1px solid #e5e7eb;
}

.call-row {
    display: grid;
    grid-template-columns: 120px 1fr 130px 150px;
    align-items: center;
    gap: 15px;
    padding: 15px 4px;
    border-bottom: 1px solid #e5e7eb;
}

.call-time,
.call-person {
    display: flex;
    flex-direction: column;
}

.call-time span {
    color: #64748b;
    font-size: 13px;
}

.pill {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.answered {
    background: #dcfce7;
    color: #166534;
}

.missed {
    background: #fee2e2;
    color: #991b1b;
}

.duration {
    text-align: right;
    color: #475569;
    font-size: 13px;
}

.audit-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 3px;
    border-bottom: 1px solid #e5e7eb;
}

.audit-change {
    text-align: right;
    font-size: 13px;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.info {
    background: #dbeafe;
    color: #1e40af;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #111827;
}

.login-card {
    width: min(410px, 100%);
    background: white;
    padding: 34px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.login-card h1 {
    margin: 7px 0 3px;
}

.brand-mark {
    display: inline-block;
    padding: 6px 9px;
    background: #111827;
    color: white;
    border-radius: 7px;
    font-weight: 800;
    letter-spacing: .1em;
}

.login-form {
    margin-top: 25px;
    display: grid;
    gap: 17px;
}

@media (max-width: 760px) {

    .current-pair,
    .selector-grid {
        grid-template-columns: 1fr;
    }

    .call-row {
        grid-template-columns: 95px 1fr;
    }

    .call-row > :nth-child(3),
    .call-row > :nth-child(4) {
        grid-column: 2;
    }

    .duration {
        text-align: left;
    }

    .status-card,
    .save-row,
    .audit-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .audit-change {
        text-align: left;
    }

    .topbar {
        padding: 13px 16px;
    }
}

.dismissible-alert {
    position: relative;
    overflow: hidden;
    transition:
        opacity .35s ease,
        transform .35s ease,
        margin .35s ease,
        padding .35s ease;
}

.alert-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.alert-timer {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: .75;
}

.alert-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    opacity: .25;
    transform-origin: left center;
}

.dismissible-alert.hiding {
    opacity: 0;
    transform: translateY(-8px);
}

@media (max-width: 760px) {
    .alert-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}
