:root {
    color-scheme: light dark;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

main {
    margin: clamp(1.5rem, 6vw, 5rem) auto;
    max-width: 30rem;
    padding: 0 1.25rem;
}

.site-name {
    font-size: 0.875rem;
    font-weight: 700;
}

form {
    display: grid;
    gap: 0.5rem;
}

input, button, select {
    font: inherit;
    padding: 0.5rem 0.75rem;
}

input + label, button {
    margin-top: 0.5rem;
}

button {
    justify-self: start;
}

.error {
    border-inline-start: 0.25rem solid currentColor;
    padding-inline-start: 0.75rem;
}

.management {
    max-width: 68rem;
    margin-block-start: 1rem;
}

.admin-header,
.page-heading,
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.admin-header,
.page-heading {
    justify-content: space-between;
}

.admin-header {
    border-bottom: 1px solid GrayText;
    padding-block-end: 1rem;
}

.admin-header nav {
    display: flex;
    gap: 1rem;
}

.admin-header [aria-current] {
    font-weight: 700;
}

.sign-out {
    display: flex;
    align-items: center;
}

.sign-out button,
.actions button {
    margin: 0;
}

.button-link {
    border: 1px solid currentColor;
    border-radius: 0.25rem;
    padding: 0.4rem 0.75rem;
}

.search {
    margin-block-end: 1rem;
}

.table-scroll {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border-bottom: 1px solid GrayText;
    padding: 0.6rem;
    text-align: start;
    vertical-align: top;
}

.title-cell {
    min-width: 8rem;
    overflow-wrap: anywhere;
}

.editor {
    max-width: 42rem;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.25rem;
}

textarea {
    font: inherit;
    padding: 0.5rem 0.75rem;
    resize: vertical;
}

.help,
.field-error {
    margin-block: 0;
}

.help, .state {
    font-size: 0.9rem;
}

.field-error {
    font-weight: 700;
}

.notice {
    border-inline-start: 0.25rem solid currentColor;
    padding-inline-start: 0.75rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.registration-qr {
    display: block;
    max-width: 100%;
    height: auto;
}

.details {
    display: grid;
    grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr);
    gap: 0.35rem 1rem;
}

.details dt {
    font-weight: 600;
}

.details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.message-text {
    white-space: pre-wrap;
}

.recipient, .delivery-device {
    border-block-start: 1px solid GrayText;
    padding-block: 0.5rem;
}
