.astrolabe-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.astrolabe-venue-header {
    max-width: 980px;
    margin-bottom: 1rem;
}

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

.astrolabe-venue-header .astrolabe-button,
.astrolabe-venue-card .astrolabe-button {
    min-height: 2rem;
    padding: .3rem .7rem;
    font-size: .84rem;
    line-height: 1.15;
}

.astrolabe-venue-list {
    display: grid;
    gap: .75rem;
    max-width: 980px;
}

.astrolabe-venue-card {
    border: 1px solid #e2ddd4;
    border-radius: .4rem;
    background: #fffdf9;
    box-shadow: 0 1px 3px rgba(47, 39, 31, .025);
}

.astrolabe-venue-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem .8rem;
    border-bottom: 1px solid #eee9e1;
    background: #fcfaf6;
}

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

.astrolabe-venue-card__actions,
.astrolabe-table-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
}

.astrolabe-venue-card__actions form,
.astrolabe-table-row__actions form {
    margin: 0;
}

.astrolabe-venue-action--danger {
    border-color: #d8b9b4;
    background: transparent;
    color: #8a3f37;
}

.astrolabe-venue-action--danger:hover {
    border-color: #b98279;
    background: #fff8f6;
    color: #743129;
}

.astrolabe-venue-tables {
    padding: .65rem .8rem .75rem;
}

.astrolabe-venue-tables > .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.astrolabe-table-batch-area {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .55rem;
    color: #574b3f;
    font-size: .82rem;
}

.astrolabe-table-batch-area > strong {
    white-space: nowrap;
}

.astrolabe-table-batch {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
}

.astrolabe-table-batch label {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #6b6055;
    font-size: .75rem;
    font-weight: 650;
}

.astrolabe-table-batch input {
    box-sizing: border-box;
    width: 4.5rem;
    min-height: 2rem;
}

.astrolabe-table-list {
    border-top: 1px solid #e9e4dc;
}

.astrolabe-table-list__header,
.astrolabe-table-row {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) 6rem 5rem 7rem;
    align-items: center;
    gap: .65rem;
}

.astrolabe-table-list__header {
    padding: .42rem .25rem;
    color: #756b61;
    font-size: .72rem;
    font-weight: 700;
}

.astrolabe-table-list__header > :last-child {
    text-align: right;
}

.astrolabe-table-row {
    min-height: 2.65rem;
    padding: .35rem .25rem;
    border-top: 1px solid #f0ece6;
}

.astrolabe-table-row strong {
    color: #45382d;
    font-size: .88rem;
}

.astrolabe-table-row__capacity input {
    box-sizing: border-box;
    width: 4.75rem;
    min-height: 1.9rem;
    padding: .2rem .35rem;
}

.astrolabe-table-row__capacity > span,
.astrolabe-table-row__status > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.astrolabe-table-row__status {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
}

.astrolabe-table-row__status input {
    margin: 0;
}

.astrolabe-venue-tables__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: .55rem;
}

.astrolabe-venue-tables__actions .astrolabe-button {
    min-height: 2rem;
    padding: .3rem .7rem;
}

.astrolabe-venue-tables__empty {
    margin: .55rem 0 0;
    color: #766c61;
}

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

.astrolabe-room-card,
.astrolabe-confirm {
    padding: 1rem;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
}

.astrolabe-room-card__title,
.astrolabe-room-actions {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    justify-content: space-between;
}

.astrolabe-room-card h3 {
    margin: 0;
}

.astrolabe-room-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem .75rem;
}

.astrolabe-room-card dd {
    margin: 0;
}

.astrolabe-badge {
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
}

.astrolabe-badge--active {
    background: #d7f0df;
    color: #126b35;
}

.astrolabe-badge--pending {
    background: #fff1c7;
    color: #704d00;
}

.astrolabe-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: #2271b1;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.astrolabe-link-button--danger {
    color: #b32d2e;
}

.astrolabe-notice {
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border-left: 4px solid;
}

.astrolabe-notice--success {
    border-color: #00a32a;
    background: #edfaef;
}

.astrolabe-notice--warning {
    border-color: #dba617;
    background: #fff8e5;
}

.astrolabe-notice--error {
    border-color: #d63638;
    background: #fcf0f1;
}

.astrolabe-confirm--reinforced {
    border-left: 5px solid #d63638;
}

.astrolabe-confirm table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.astrolabe-confirm th,
.astrolabe-confirm td {
    padding: .5rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

@media(max-width:700px) {
    .astrolabe-venue-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .astrolabe-table-list__header,
    .astrolabe-table-row {
        grid-template-columns: minmax(7rem, 1fr) 5.5rem 4rem 6.5rem;
        gap: .4rem;
    }

    .astrolabe-table-row__capacity input {
        width: 4.5rem;
    }
}

@media(max-width:520px) {
    .astrolabe-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .astrolabe-table-list__header {
        display: none;
    }

    .astrolabe-table-row {
        grid-template-columns: 1fr;
        gap: .4rem;
        padding: .6rem .15rem;
    }

    .astrolabe-table-row__capacity,
    .astrolabe-table-row__status {
        display: flex;
        align-items: center;
        gap: .45rem;
    }

    .astrolabe-table-row__capacity > span,
    .astrolabe-table-row__status > span {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .astrolabe-venue-card__actions,
    .astrolabe-table-row__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .astrolabe-venue-tables__actions {
        justify-content: flex-start;
    }

    .astrolabe-table-batch-area {
        align-items: flex-start;
        flex-direction: column;
        gap: .35rem;
    }

    .astrolabe-table-batch {
        flex-wrap: wrap;
    }
}
