/* Etta Walk Up · Lista check-in — stesso linguaggio visivo di ettawalkup.it */
:root {
  --cream: #f7f2ec;
  --sand: #ece2d8;
  --card: #ffffff;
  --line: #e2d6cc;
  --copper: #b45f3f;
  --copper-dark: #9a4e32;
  --copper-soft: #f6e9e1;
  --night: #2e1f19;
  --ink: #33231c;
  --taupe: #7a6457;
  --green: #2f6b45;
  --green-mid: #3f8a5a;
  --green-soft: #e3f0e7;
  --amber: #8a5a0c;
  --amber-soft: #fbf0dc;
  --red: #a2382a;
  --red-soft: #f8e5e1;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(46, 31, 25, .08);
  --top-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.45 var(--body);
  overscroll-behavior-y: contain;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--copper-dark); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--copper);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .98;
  color: var(--night);
  letter-spacing: .005em;
}

/* ---------- Barra in alto ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--top-h);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px;
  background: rgba(247, 242, 236, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night); min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.brand small { white-space: nowrap; color: var(--copper); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topbar .spacer { flex: 1; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--night);
  font-size: 1.2rem;
}
.net-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--green-soft);
  color: var(--green);
}
.net-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.net-pill.weak { background: var(--amber-soft); color: var(--amber); }
.net-pill.off { background: var(--sand); color: var(--taupe); }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px calc(110px + var(--safe-b)); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:active { background: var(--copper-dark); }
.btn-light { background: #fff; color: var(--night); border: 1px solid var(--line); }
.btn-soft { background: var(--copper-soft); color: var(--copper-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--copper-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Accesso ---------- */
.login { display: grid; gap: 22px; padding-top: 10px; }
.login-hero { text-align: left; }
.login-hero img { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line); background: #fff; margin-bottom: 16px; }
.login-hero .display { font-size: clamp(2.6rem, 11vw, 3.6rem); }
.login-hero p.lead { margin: 12px 0 0; color: var(--ink); max-width: 460px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.checks span { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.form { display: grid; gap: 14px; }
.form h2 { margin: 0; font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; color: var(--night); }
.field { display: grid; gap: 6px; font-weight: 700; color: var(--night); font-size: .9rem; }
.field input, .select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
}
.field input:focus, .select:focus, .search input:focus { outline: 0; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(180, 95, 63, .15); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: .9rem; font-weight: 600; }
.form-note { margin: 0; color: var(--taupe); font-size: .88rem; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--taupe); font-size: .8rem; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Elenco escursioni ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-head .display { font-size: clamp(2.2rem, 9vw, 3rem); }
.status-line { margin: 6px 0 16px; color: var(--taupe); font-size: .86rem; }
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: .9rem;
  font-weight: 600;
}
.notice .btn { min-height: 38px; padding: 0 14px; font-size: .86rem; margin-left: auto; }
.search {
  position: relative;
  display: block;
}
.search input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
}
.search::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -9px;
  border: 2px solid var(--taupe);
  border-radius: 50%;
}
.search::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 50%;
  width: 7px;
  height: 2px;
  margin-top: 5px;
  background: var(--taupe);
  transform: rotate(45deg);
  border-radius: 2px;
}
.event-list { display: grid; gap: 14px; margin-top: 14px; }
.event-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
}
.event-card.today { border-color: var(--copper); box-shadow: 0 0 0 2px rgba(180, 95, 63, .18), var(--shadow); }
.date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70px;
  border-radius: 16px;
  background: var(--copper);
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1;
}
.date-tile b { font-size: 2rem; font-weight: 800; }
.date-tile small { font-size: .9rem; font-weight: 700; letter-spacing: .06em; }
.event-body { min-width: 0; }
.event-title { margin: 2px 0 6px; font-family: var(--display); font-size: 1.35rem; font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--night); }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--taupe); font-size: .84rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--sand); color: var(--taupe); }
.badge.copper { background: var(--copper); color: #fff; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.list-links { display: grid; gap: 8px; margin-top: 12px; }
.list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 700;
  color: var(--night);
}
.list-link b { color: var(--copper-dark); }
.empty { padding: 28px 18px; border: 1px dashed #d8c9bb; border-radius: 20px; text-align: center; color: var(--taupe); background: rgba(255, 255, 255, .6); }
.settings { margin-top: 26px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; }
.settings h3 { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; color: var(--night); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; }
.settings-row span { color: var(--taupe); }

/* ---------- Lista partecipanti ---------- */
.list-head { margin-bottom: 4px; }
.list-head .eyebrow { margin-bottom: 4px; }
.list-head .display { font-size: clamp(1.45rem, 6.2vw, 2rem); line-height: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.progress-row .fresh { margin: 0; white-space: nowrap; }
.progress-row strong { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--night); white-space: nowrap; line-height: 1; }
.progress-row strong small { font-family: var(--body); font-size: .8rem; font-weight: 600; color: var(--taupe); }
.bar { flex: 1; height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green-mid); transition: width .25s ease; }
.fresh { margin: 8px 0 0; color: var(--taupe); font-size: .82rem; }
.fresh b { color: var(--night); }

.alerts {
  margin: 10px 0 0;
  border-radius: 18px;
  background: var(--red-soft);
  border: 1px solid #efc9c1;
  overflow: hidden;
}
.alerts summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: .92rem;
  list-style: none;
  font-weight: 700;
  color: var(--red);
}
.alerts summary::-webkit-details-marker { display: none; }
.alerts summary::after { content: "▾"; margin-left: auto; transition: transform .2s; }
.alerts[open] summary::after { transform: rotate(180deg); }
.alerts ul { margin: 0; padding: 0 14px 12px; list-style: none; display: grid; gap: 8px; }
.alerts li button { width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff; }
.alerts li b { display: block; color: var(--night); }
.alerts li span { font-size: .86rem; color: var(--red); }

.toolbar {
  position: sticky;
  top: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  z-index: 20;
  margin: 6px -16px 0;
  padding: 8px 16px 8px;
  background: rgba(247, 242, 236, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.toolbar.stuck { border-bottom-color: var(--line); }
.toolbar-row { display: flex; gap: 8px; }
.toolbar-row .search { flex: 1; }
.scan-btn { min-height: 50px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--night); color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.scan-btn svg { width: 20px; height: 20px; }
.chips { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: .9rem;
  color: var(--night);
}
.chip b { margin-left: 4px; color: var(--copper-dark); }
.chip.active { background: var(--night); border-color: var(--night); color: #fff; }
.chip.active b { color: #f3c3a8; }
.ticket-chips { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.ticket-chips::-webkit-scrollbar { display: none; }
.ticket-chip { flex: 0 0 auto; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 600; color: var(--ink); }
.ticket-chip b { margin-left: 3px; color: var(--copper-dark); }
.ticket-chip.active { background: var(--copper); border-color: var(--copper); color: #fff; }
.ticket-chip.active b { color: #fff; }
.ticket-select { display: block; width: 100%; min-height: 40px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .88rem; color: var(--night); }
.top-list { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.top-list b { font-family: var(--display); font-weight: 800; font-size: 1.08rem; line-height: 1.02; text-transform: uppercase; color: var(--night); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-list small { color: var(--green); font-size: .78rem; font-weight: 700; }
.topbar.compact .brand { display: none; }
.topbar.compact .spacer { display: none; }
.hint { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--copper-soft); color: var(--copper-dark); font-size: .88rem; font-weight: 600; }
.hint b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--copper); font-size: .75rem; }
.hint button { margin-left: auto; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--copper-dark); font-size: 1.2rem; }

.people { display: grid; gap: 10px; margin-top: 10px; }
.group-label { margin: 8px 4px 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: background .15s, border-color .15s;
}
.person.checked { background: var(--green-soft); border-color: #bcd9c5; }
.person.cancelled { opacity: .55; }
.person-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: none; text-align: left; }
.avatar {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--copper-soft);
  color: var(--copper-dark);
  font-weight: 700;
  font-size: .95rem;
}
.person.checked .avatar { background: #fff; color: var(--green); }
.person-text { min-width: 0; display: grid; gap: 3px; }
.person-text b { font-size: 1.04rem; color: var(--night); line-height: 1.2; overflow-wrap: anywhere; }
.person-text small { color: var(--taupe); font-size: .82rem; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: var(--sand); color: var(--taupe); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.green { background: #fff; color: var(--green); }
.tag.copper { background: var(--copper-soft); color: var(--copper-dark); }
.check {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--taupe);
  font-size: 1.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.check:active { transform: scale(.95); }
.person:not(.checked) .check { border-color: #d39a83; color: #c98a72; background: #fffaf7; }
.person.checked .check { background: var(--green); border-color: var(--green); color: #fff; }
.check .pending-dot { position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; }

/* ---------- Barra sincronizzazione ---------- */
.sync-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-b));
  z-index: 40;
  max-width: 736px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 18px;
  background: var(--night);
  color: #fff;
  box-shadow: 0 14px 34px rgba(46, 31, 25, .3);
  font-size: .9rem;
}
.sync-bar b { display: block; }
.sync-bar small { color: rgba(255, 255, 255, .75); }
.sync-bar .btn { white-space: nowrap; margin-left: auto; min-height: 42px; padding: 0 16px; font-size: .88rem; }
.sync-bar.update { background: var(--copper); }
.sync-bar.update .btn { background: #fff; color: var(--copper-dark); }

/* ---------- Finestre ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(46, 31, 25, .45);
}
.sheet {
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow: auto;
  padding: 10px 18px calc(22px + var(--safe-b));
  border-radius: 26px 26px 0 0;
  background: var(--cream);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
  animation: up .2s ease;
}
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: #d8c9bb; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sheet-head .display { font-size: 2rem; }
.sheet-head .icon-btn { margin-left: auto; }
.sheet-state { display: inline-flex; margin-top: 6px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.sheet-actions .btn { min-height: 50px; padding: 0 12px; }
.sheet-actions .full { grid-column: 1 / -1; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info { padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.info span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--taupe); }
.info strong { font-size: .95rem; color: var(--night); word-break: break-word; }
.answers { display: grid; gap: 8px; margin-top: 12px; }
.answer { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.answer b { display: block; font-size: .84rem; color: var(--taupe); margin-bottom: 2px; }
.answer p { margin: 0; color: var(--night); white-space: pre-wrap; }
.answer.alert { background: var(--red-soft); border-color: #efc9c1; }
.answer.alert p { color: var(--red); font-weight: 700; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; background: rgba(46, 31, 25, .5); }
.dialog { width: 100%; max-width: 420px; padding: 22px; border-radius: 24px; background: var(--cream); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.dialog .display { font-size: 1.7rem; }
.dialog p { margin: 10px 0 0; }
.dialog ol { margin: 10px 0 0; padding-left: 20px; }
.dialog-actions { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- Scanner ---------- */
.scanner { position: fixed; inset: 0; z-index: 80; background: #000; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 14px; color: #fff; background: linear-gradient(rgba(0, 0, 0, .6), transparent); }
.scanner-top b { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.scanner-top button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.6rem; }
.scanner-frame { position: absolute; left: 50%; top: 46%; width: min(68vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255, 255, 255, .85); border-radius: 28px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); transition: border-color .15s; }
.scanner.ok .scanner-frame { border-color: #6fd18f; }
.scanner.err .scanner-frame { border-color: #ff8a73; }
.scanner-result { position: absolute; left: 16px; right: 16px; bottom: calc(26px + var(--safe-b)); padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .96); text-align: center; }
.scanner-result b { display: block; font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; color: var(--night); }
.scanner-result span { color: var(--taupe); font-size: .9rem; }
.scanner.ok .scanner-result b { color: var(--green); }
.scanner.err .scanner-result b { color: var(--red); }
.scanner-tools { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.scanner-tools button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .86rem; }

/* ---------- Messaggi ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-b));
  z-index: 90;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  transform: translateX(-50%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  text-align: center;
}
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }

@media (min-width: 720px) {
  .shell { padding-top: 26px; }
  .login { grid-template-columns: 1fr 1fr; align-items: center; min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 379px) {
  .scan-btn { padding: 0 14px; }
  .scan-btn .scan-label { display: none; }
  .brand small { letter-spacing: .08em; }
}

/* intestazione lista: una riga sola */
.list-date { flex: 0 0 auto; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--copper); white-space: nowrap; }
.alerts-title { margin: 0; padding: 10px 14px 4px; font-weight: 700; color: var(--red); font-size: .9rem; }
.alerts ul { padding-top: 6px; }
.ticket-chip.alert { background: var(--red-soft); border-color: #efc9c1; color: var(--red); font-weight: 700; }
.ticket-chip.alert.active { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 379px) {
  .net-pill > span { display: none; }
  .net-pill { padding: 9px; }
}

/* servizi (pranzo, navetta…) e filtri */
.tag.service { background: #e8f0f7; color: #1f4f78; }
.badge.copper-soft { background: #e8f0f7; color: #1f4f78; }
.ticket-chip.service { background: #e8f0f7; border-color: #c9dcec; color: #1f4f78; font-weight: 700; }
.ticket-chip.service.active { background: #1f4f78; border-color: #1f4f78; color: #fff; }
.ticket-chip.service b { color: #1f4f78; }
.ticket-chip.service.active b { color: #fff; }
.ticket-chip.amber { background: var(--amber-soft); border-color: #efd9ad; color: var(--amber); }
.ticket-chip.amber.active { background: var(--amber); border-color: var(--amber); color: #fff; }
.ticket-chip.alert b { color: var(--red); }
.ticket-chip.alert.active b, .ticket-chip.amber.active b { color: #fff; }
.ticket-chip.reset { background: var(--night); border-color: var(--night); color: #fff; font-weight: 700; }
.answer.service { background: #e8f0f7; border-color: #c9dcec; }
.answer.service p { color: #1f4f78; font-weight: 700; }
