.astrolabe-slot-header {
    max-width: 950px;
    margin-bottom: 1rem;
}

.astrolabe-slot-header h2 {
    margin: 0;
}

.astrolabe-slot-header .astrolabe-button {
    min-height: 2.25rem;
    padding: .45rem .8rem;
}

.astrolabe-slot-list {
    display: grid;
    max-width: 950px;
    border-top: 1px solid #ded6ca;
}

.astrolabe-slot-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem .2rem;
    border-bottom: 1px solid #ded6ca;
}

.astrolabe-slot-row__identity {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.astrolabe-slot-row__identity h3 {
    margin: 0 0 .1rem;
    color: #35291f;
    font-size: 1rem;
}

.astrolabe-slot-row__identity span {
    color: #574b3f;
}

.astrolabe-slot-row__identity small {
    color: #766c61;
    font-size: .8rem;
}

.astrolabe-slot-row__control {
    display: grid;
    justify-items: end;
    gap: .55rem;
}

.astrolabe-slot-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
}

.astrolabe-slot-actions form {
    margin: 0;
}

.astrolabe-slot-actions .astrolabe-button {
    min-height: 2.15rem;
    padding: .4rem .7rem;
}

.astrolabe-slot-action--danger {
    border-color: #c99b9b;
    color: #8a3030;
}

.astrolabe-slot-action--danger:hover {
    border-color: #a75d5d;
    color: #702525;
}

.astrolabe-slot-empty,
.astrolabe-slot-confirm {
    max-width: 850px;
    padding: 1.1rem;
    border: 1px solid #d8d1c5;
    border-radius: 6px;
    background: #fff;
}

.astrolabe-slot-form {
    max-width: 960px;
}

.astrolabe-slot-form__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.astrolabe-slot-form__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.astrolabe-slot-form__field--name {
    grid-column: span 3;
}

.astrolabe-slot-form__field label {
    margin-bottom: .45rem;
    font-weight: 600;
    line-height: 1.35;
}

.astrolabe-slot-form__field input,
.astrolabe-slot-form__field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.65rem;
}

.astrolabe-slot-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-top: 1.75rem;
}

.astrolabe-slot-form :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media(max-width:760px) {
    .astrolabe-slot-row {
        grid-template-columns: 1fr;
        gap: .7rem;
    }

    .astrolabe-slot-row__control {
        justify-items: start;
    }

    .astrolabe-slot-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media(max-width:700px) {
    .astrolabe-slot-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .astrolabe-slot-form__field,
    .astrolabe-slot-form__field--name {
        grid-column: 1;
    }

    .astrolabe-slot-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .astrolabe-slot-form__actions .astrolabe-button,
    .astrolabe-slot-form__actions a {
        box-sizing: border-box;
        width: 100%;
        text-align: center;
    }
}
