html { font-size: 16px; }
body { margin: 0; background: #f3f5f7; color: #17202a; font-family: system-ui, sans-serif; }
.checkin-shell { width: min(960px, calc(100% - 32px)); margin: 28px auto 48px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { color: #1261a0; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 7px 0 4px; font-size: clamp(28px, 5vw, 44px); }
.page-header p { margin: 0; color: #65717c; }
.search-bar, .guest-result { background: white; border: 1px solid #d8dfe5; border-radius: 8px; }
.search-bar { padding: 20px; }
.search-bar label { display: block; font-weight: 750; margin-bottom: 8px; }
.search-row { display: flex; gap: 10px; }
.suggestions { display: grid; gap: 4px; margin-top: 8px; }
.suggestion { width: 100%; padding: 11px 14px; text-align: left; background: #f7f9fa; color: #17202a; border: 1px solid #d8dfe5; }
input { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #aab6c1; border-radius: 5px; padding: 12px 14px; font: inherit; }
button, .secondary-action { border: 0; border-radius: 5px; padding: 12px 18px; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; white-space: nowrap; }
button { background: #1261a0; color: white; }
.secondary-action { background: white; border: 1px solid #aab6c1; color: #17202a; }
.results { display: grid; gap: 12px; margin-top: 20px; }
.guest-result { overflow: hidden; }
.guest-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.guest-summary h2 { margin: 0; font-size: 21px; }
.guest-summary span { color: #65717c; }
.guest-details { border-top: 1px solid #e4e8eb; }
.guest-details summary { padding: 12px 20px; color: #1261a0; cursor: pointer; font-weight: 700; }
.guest-card { padding: 4px 20px 20px; }
.guest-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 18px; }
.guest-meta div { display: grid; gap: 4px; }
small { color: #65717c; font-size: 12px; }
.bracelet {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    color: white;
    font-size: 23px;
    width: 230px;
    text-align: center;
}
.bracelet.verde { background: #168447; }
.bracelet.rosso { background: #b42318; }
.bracelet:not(.verde):not(.rosso) { color: #17202a; background: #e6eaee; }
.checkin-button { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; font-size: 18px; background: #168447; }
.checkin-icon { font-size: 32px; line-height: 1; font-weight: 900; }
.bracelet-button { font-size: 23px; width: 230px; text-align: center; }
.checked-state { padding: 12px; border-radius: 5px; background: #e9f7ef; color: #126b38; font-weight: 700; }
.notice, .empty-state { margin-top: 18px; padding: 14px 16px; border-radius: 6px; }
.notice.error { background: #fff0f0; border: 1px solid #e0a5a5; color: #8f1d1d; }
.notice.success { background: #e9f7ef; border: 1px solid #9bd5ae; color: #126b38; }
.empty-state { background: white; border: 1px dashed #aab6c1; color: #65717c; }
@media (max-width: 620px) { .page-header { align-items: start; flex-direction: column; } .search-row { flex-direction: column; } .guest-summary { align-items: start; flex-direction: column; gap: 5px; } .guest-meta { grid-template-columns: 1fr; } button:not(.bracelet-button), .secondary-action { width: 100%; text-align: center; } }
