.guest-manager {
    color:#203f34;
    min-width:0
}
.guest-manager * {
    box-sizing:border-box
}
.guest-manager .guest-summary {
    display:flex;
    justify-content:space-between;
    gap:6px 14px;
    flex-wrap:wrap;
    padding:10px 12px;
    margin:0 0 14px;
    border-radius:9px;
    background:#eaf2ed;
    font-size:14px
}
.guest-summary span {
    color:#465f52
}
.guest-manager .guest-entry {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    padding:0;
    margin:0
}
.guest-manager .guest-field {
    min-width:0
}
.guest-manager label {
    display:block;
    margin:0 0 4px;
    font-size:14px;
    font-weight:600;
    line-height:1.3
}
.guest-manager input {
    display:block;
    width:100%;
    max-width:100%;
    height:46px;
    margin:0;
    padding:10px;
    border:1px solid #b8ccc0;
    border-radius:8px;
    background:#fff;
    color:#182b23;
    font-size:16px;
    line-height:1.4
}
.guest-manager input[aria-invalid=true] {
    border:2px solid #b92d31
}
.guest-manager .guest-error {
    color:#a02128;
    margin-top:4px;
    font-size:13px
}
.guest-manager button {
    width:auto;
    min-width:44px;
    min-height:44px;
    padding:9px 13px;
    margin:0;
    border:1px solid transparent;
    border-radius:8px;
    background:#235842;
    color:#fff;
    font-size:14px;
    font-weight:600;
    line-height:1.3;
    letter-spacing:0;
    text-transform:none;
    cursor:pointer;
    box-shadow:none
}
.guest-manager button:disabled {
    opacity:.55;
    cursor:default
}
.guest-manager .guest-secondary {
    color:#235842;
    background:#f1f6f2;
    border-color:#c6d8cc
}
.guest-manager .guest-entry-actions {
    display:flex;
    flex-wrap:wrap;
    gap:8px
}
.guest-manager .guest-entry-actions>button:first-child {
    flex:1
}
.guest-manager [hidden] {
    display:none!important
}
.guest-manager .guest-notice {
    margin:8px 0;
    font-size:14px;
    white-space:pre-line
}
.guest-manager .guest-notice:empty {
    display:none
}
.guest-manager .guest-list {
    margin-top:16px
}
.guest-manager .guest-row {
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 0;
    margin:0;
    border:0;
    border-bottom:1px solid #dce5df;
    border-radius:0;
    background:transparent;
    overflow-wrap:anywhere
}
.guest-row-info {
    flex:1;
    min-width:0
}
.guest-row-info strong {
    display:block;
    font-size:15px;
    line-height:1.35
}
.guest-row-info span {
    display:block;
    margin-top:3px;
    font-size:13px;
    color:#486153
}
.guest-row-actions {
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:4px;
    max-width:145px
}
.guest-manager .guest-row-actions button {
    padding:8px;
    font-size:13px
}
.guest-empty {
    margin:8px 0;
    color:#586e61;
    font-size:14px
}
.guest-shell {
    max-width:900px;
    margin:24px auto;
    padding:24px;
    background:white;
    border-radius:18px;
    box-shadow:0 8px 32px #00000010
}
.guest-manager :focus-visible {
    outline:3px solid #c59428;
    outline-offset:2px
}
@media(min-width:400px) {
    .guest-manager .guest-entry {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .guest-field-full_name,.guest-entry-actions {
        grid-column:1/-1
    }
}
@media(min-width:760px) {
    .guest-manager .guest-entry {
        grid-template-columns:minmax(180px,2fr) minmax(130px,1.2fr) minmax(110px,1fr) auto;
        align-items:start
    }
    .guest-field-full_name,.guest-entry-actions {
        grid-column:auto
    }
    .guest-manager .guest-entry-actions {
        padding-top:22px;
        max-width:160px
    }
    .guest-manager .guest-entry-actions>button:first-child {
        flex:auto
    }
}
@media(max-width:600px) {
    .guest-shell {
        margin:12px 0;
        padding:16px
    }
    .guest-shell h1 {
        font-size:25px
    }
    .guest-shell>p {
        font-size:14px
    }
    .guest-row-actions {
        max-width:130px
    }
}
/* The delivery dialog is narrower than the viewport: keep its form in two columns at most. */
#guest-dialog {
    width:calc(100% - 24px);
    max-width:740px;
    max-height:calc(100dvh - 24px);
    margin:auto;
    padding:16px;
    overflow:auto;
    box-sizing:border-box
}
#guest-dialog>button {
    margin:0 0 16px
}
#guest-recipient {
    overflow-wrap:anywhere
}
#guest-dialog .guest-entry {
    grid-template-columns:minmax(0,1fr)
}
#guest-dialog .guest-entry-actions {
    grid-column:1/-1;
    max-width:none;
    padding-top:0
}
#guest-dialog .guest-entry-actions>button:first-child {
    flex:1
}
#guest-dialog .guest-field-full_name {
    grid-column:1/-1
}
@media(min-width:400px) {
    #guest-dialog .guest-entry {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}
@media(min-width:760px) {
    #guest-dialog {
        padding:24px
    }
}
.guest-manager .guest-name-search {
    margin-top:8px
}
.guest-inline-matches {
    margin-top:8px;
    padding:12px;
    border:1px solid #c6d8cc;
    border-radius:10px;
    background:#f5f8f4
}
.guest-inline-matches p {
    margin:0 0 8px;
    font-size:13px;
    line-height:1.5
}
.guest-inline-results {
    display:grid;
    gap:6px
}
.guest-manager .guest-inline-results button {
    text-align:left;
    width:100%;
    overflow-wrap:anywhere
}
.guest-inline-pages {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-top:10px
}
.guest-inline-pages span {
    font-size:13px
}
.guest-manager .guest-name-loading {
    display:inline-flex;
    align-items:center;
    gap:8px;
    opacity:1
}
.guest-name-loading:before {
    content:'';
    display:inline-block;
    width:16px;
    height:16px;
    border:2px solid #b8cbbb;
    border-top-color:#234739;
    border-radius:50%;
    animation:guest-name-spin .8s linear infinite
}
@keyframes guest-name-spin {
    to {
        transform:rotate(360deg)
    }
}
@media(prefers-reduced-motion:reduce) {
    .guest-name-loading:before {
        animation:none
    }
}
@media(min-width:760px) {
    .guest-manager .guest-entry {
        grid-template-columns:repeat(3,minmax(0,1fr))
    }
    .guest-manager .guest-entry-actions {
        padding-top:22px;
        max-width:none
    }
    .guest-manager .guest-field-full_name {
        grid-column:auto
    }
}
.guest-manager .guest-location {
    margin:0 0 20px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none
}
.guest-location h2 {
    font-size:20px;
    margin:0 0 8px
}
.guest-location>p {
    font-size:14px;
    margin:0 0 16px;
    color:#486153
}
.guest-location-form {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    align-items:start
}
.guest-location-form>div {
    min-width:0
}
.guest-location-form .guest-error {
    display:block;
    line-height:1.4;
    overflow-wrap:anywhere
}
.guest-location-form select[aria-invalid=true] {
    border:2px solid #b92d31
}
.guest-location-form label {
    margin:0
}
.guest-location-form input,.guest-location-form select {
    margin-top:6px
}
.guest-location-form select {
    display:block;
    width:100%;
    height:46px;
    padding:10px;
    border:1px solid #b8ccc0;
    border-radius:8px;
    background:white;
    color:#182b23;
    font-size:16px
}
.guest-location-form button {
    justify-self:start
}
.guest-location-form .guest-notice {
    grid-column:1/-1
}
@media(max-width:480px) {
    .guest-location-form {
        grid-template-columns:1fr
    }
    .guest-location-form button {
        width:100%
    }
}
.guest-location-form .guest-notice:empty {
    display:none
}
.guest-manager .guest-field-actions {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px
}
.guest-manager .guest-field-actions .guest-name-search {
    margin-top:0
}
.guest-manager .guest-condomino {
    grid-column:1/-1;
    display:flex;
    align-items:center;
    gap:10px;
    justify-self:start;
    min-height:44px;
    margin:0;
    padding:8px 4px;
    cursor:pointer;
    font-size:16px;
    line-height:1.4
}
.guest-manager .guest-condomino input {
    appearance:auto;
    flex:0 0 22px;
    width:22px;
    height:22px;
    margin:0;
    padding:0;
    accent-color:#235842;
    cursor:pointer
}
.guest-manager .guest-condomino span {
    overflow-wrap:anywhere
}
.guest-manager .guest-row-condomino,
.guest-manager .guest-row-minor {
    margin-top:4px;
    font-size:14px;
    font-weight:400
}
.guest-manager .guest-row-condomino span,
.guest-manager .guest-row-minor span {
    margin:0;
    font-size:inherit
}

.guest-manager .guest-list-search {
    margin:24px 0 12px;
}
.guest-manager .guest-search-count {
    margin:8px 0 0;
    color:#465f52;
    font-size:14px;
}

.guest-manager .guest-clearable {
    position:relative;
    min-width:0;
}
.guest-manager .guest-clearable input {
    padding-right:46px;
}
.guest-manager .guest-clearable input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance:none;
}
.guest-manager .guest-clearable input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance:none;
}
.guest-manager .guest-input-clear {
    position:absolute;
    right:1px;
    top:1px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    margin:0;
    border:0;
    border-radius:8px;
    background:transparent;
    box-shadow:none;
    color:#465f52;
    font-size:26px;
    font-weight:400;
    line-height:1;
}
.guest-manager .guest-input-clear:hover {
    background:#eaf2ed;
    color:#203f34;
}
.guest-manager .guest-clearable:has(input:placeholder-shown) .guest-input-clear,
.guest-manager .guest-clearable:has(input:disabled) .guest-input-clear,
.guest-manager .guest-clearable:has(input[readonly]) .guest-input-clear {
    display:none;
}

.guest-manager .guest-summary {
    display:block;
}
.guest-summary-heading,
.guest-summary-counts {
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:4px 12px;
}
.guest-summary-heading {
    justify-content:space-between;
}
.guest-summary-counts {
    margin-top:4px;
    font-size:13px;
}
.guest-summary-counts span + span::before {
    content:'·';
    margin-right:12px;
}
.guest-summary-help {
    margin-top:6px;
    font-size:12px;
}
.guest-summary-help summary {
    cursor:pointer;
    padding:5px 0;
    color:#235842;
}
.guest-summary-help p {
    margin:6px 0 0;
    line-height:1.5;
}
@media(min-width:400px) {
    .guest-manager .guest-field > label {
        min-height:2.6em;
        display:flex;
        align-items:flex-end;
    }
}

.guest-bulk{margin:20px 0;padding:18px;border:1px solid #c5d8cb;border-radius:16px;background:#f4f8f5}.guest-bulk>summary{font-weight:700;cursor:pointer}.guest-bulk>label{display:block;margin:16px 0 10px}.guest-bulk textarea{display:block;width:100%;padding:12px;border:1px solid #b9c9bf;border-radius:10px;font:inherit;resize:vertical;margin-bottom:12px}.guest-bulk-row{min-width:0;margin:16px 0;padding:16px;border:1px solid #c5d8cb;border-radius:12px;background:white}.guest-bulk-row legend{font-weight:700}.guest-bulk-actions{display:flex;flex-wrap:wrap;gap:12px}.guest-bulk-row .guest-error:empty{display:none}.guest-bulk-row .guest-inline-matches{overflow-wrap:anywhere}
.guest-bulk>summary{margin-bottom:16px}
.guest-bulk-modes [aria-pressed=true]{background:#dbeae1;border-color:#597d69}
.guest-import>label{display:block;margin-top:14px}
.guest-import+p{margin-top:16px}

.guest-bulk-modes{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.guest-invitation-owner{background:#fff;border:1px solid #dfe7df;border-radius:14px;padding:18px;margin:20px 0;color:#26372e}
.guest-invitation-owner h2{color:#125d46;margin:0 0 6px}
.guest-invitation-create{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(150px,.8fr) auto;align-items:end;gap:12px;margin:14px 0}
.guest-invitation-create label{min-width:0;margin:0;font-size:13px;font-weight:700;display:grid;gap:5px}
.guest-invitation-create input{box-sizing:border-box;width:100%;min-width:0;height:44px;margin:0;border:1px solid #d5dfd5;border-radius:8px;padding:0 10px;font-size:16px;line-height:1.3}
.guest-invitation-create button,.guest-invitation-row button,.guest-invitation-link button{box-sizing:border-box;min-height:44px;margin:0;border:0;border-radius:8px;padding:0 16px;background:#125d46;color:#fff;font-family:inherit;font-size:16px;line-height:1.25;font-weight:700;white-space:nowrap;cursor:pointer}
.guest-invitation-create button:disabled{opacity:.72;cursor:wait}
.guest-invitation-row{padding:12px 0;border-top:1px solid #e9ede7;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.guest-invitation-row small{display:block;color:#68786e}
.guest-invitation-row .guest-invitation-revoke{background:#fff;border:1px solid #e2c5c2;color:#a43c36}
.guest-invitation-link{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
.guest-invitation-link code{max-width:100%;overflow-wrap:anywhere;color:#355648}
.guest-invitation-notice{box-sizing:border-box;padding:12px 14px;border-radius:8px;background:#f1f7f0;margin:10px 0;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.guest-invitation-notice p{margin:0 0 8px}
.guest-invitation-notice:empty{display:none}
.guest-invitation-notice.is-error{background:#fff3ef;color:#963e2d}
.guest-invitation-notice.is-success{background:#f1f7f0;color:#26372e}
.guest-invitation-link a{min-width:0;flex:1 1 260px;overflow-wrap:anywhere;color:#235842}
@media(max-width:640px){.guest-invitation-create{grid-template-columns:minmax(0,1fr) minmax(110px,.55fr)}.guest-invitation-create button{grid-column:1/-1;justify-self:start}}
