/* Temenos Day 2026 check-in. Palette taken from temenos.com (27 Nov 2026):
   navy #05003e, indigo #293276, blue #3860be, teal #5cb8b2, ice #c9d9f2. Body font Work Sans. */
:root {
  --navy: #05003e;
  --navy-2: #0d0a55;
  --indigo: #293276;
  --blue: #3860be;
  --teal: #5cb8b2;
  --teal-2: #7fd3cd;
  --ice: #c9d9f2;
  --mist: #f3f6fc;
  --ink: #0b0a2e;
  --muted: #5d6385;
  --line: #dfe5f2;
  --card: #ffffff;
  --amber: #f2a93b;
  --amber-bg: #fff4e0;
  --amber-ink: #8a5300;
  --green: #22b573;
  --green-bg: #e3f7ee;
  --green-ink: #0f6b42;
  --grey: #a3a9c2;
  --grey-bg: #eef1f8;
  --red: #d64545;
  --red-bg: #fdecec;
  --display: "Outfit", "Work Sans", system-ui, sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* City theme (overridden by applyCityTheme). Defaults = Temenos palette. */
  --c-bg1: #05003e;
  --c-bg2: #08045a;
  --c-accent: #5cb8b2;
  --c-accent2: #3860be;
  --c-ink: #7fd3cd;
  --c-hero-tall: none;
  --c-hero-wide: none;
  --r: 18px;
  --shadow: 0 1px 2px rgba(5, 0, 62, .06), 0 8px 24px rgba(5, 0, 62, .08);
  --shadow-lg: 0 24px 60px rgba(5, 0, 62, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--mist); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 .35em; line-height: 1.1; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }

/* ---------- shared controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  padding: .6em 1.1em; border-radius: 12px; font-weight: 600; min-height: 44px; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { border-color: var(--indigo); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-glow {
  background: linear-gradient(120deg, var(--c-accent) 0%, var(--c-accent2) 100%); color: #fff; border: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28); text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.btn-glow:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, .36); filter: brightness(1.05); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 10px 24px rgba(34, 181, 115, .3); }
.btn-green:hover { background: #1ca466; border-color: #1ca466; }
.btn-danger { color: var(--red); border-color: #f3c2c2; background: #fff; }
.btn-big { width: 100%; padding: 1em 1.2em; font-size: 1.08rem; border-radius: 14px; font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
.btn-sm { min-height: 32px; padding: .3em .75em; font-size: .85rem; border-radius: 9px; }

.field { display: block; margin: 0 0 16px; }
.field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--indigo); letter-spacing: .02em; }
.input {
  width: 100%; padding: .8em .95em; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fbfcff; min-height: 52px; font-size: 1.05rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(92, 184, 178, .22); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.err { background: var(--red-bg); color: var(--red); border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.note { background: var(--grey-bg); border-radius: 12px; padding: 11px 14px; font-size: .9rem; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: .35em; padding: .2em .7em; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; letter-spacing: .02em; }
.pill-not_arrived { background: var(--grey-bg); color: var(--muted); }
.pill-self { background: var(--amber-bg); color: var(--amber-ink); }
.pill-verified { background: var(--green-bg); color: var(--green-ink); }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.dot-not_arrived { background: var(--grey); }
.dot-self { background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 169, 59, .18); }
.dot-verified { background: var(--green); }
.avatar {
  width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.av-0 { background: linear-gradient(135deg, var(--indigo), var(--blue)); }
.av-1 { background: linear-gradient(135deg, #3d9e98, var(--teal)); }
.av-2 { background: linear-gradient(135deg, var(--navy), var(--indigo)); }
.av-3 { background: linear-gradient(135deg, var(--blue), #6f8fdc); }
.demo-bar {
  background: repeating-linear-gradient(-45deg, #ffe8a3 0 14px, #ffdf85 14px 28px);
  color: #5c4400; text-align: center; font-size: .8rem; padding: 6px 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 40px) scale(1.12); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 184, 178, .7); } 100% { box-shadow: 0 0 0 12px rgba(92, 184, 178, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rise { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }

/* =========================================================
   EMPLOYEE CHECK-IN (phone)
   ========================================================= */
body.ci {
  min-height: 100vh; color: #fff; overflow-x: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(201, 217, 242, .09) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--c-accent2) 45%, transparent) 0%, transparent 55%),
    linear-gradient(170deg, var(--c-bg1) 0%, var(--c-bg2) 55%, var(--c-bg1) 100%);
}
.glow { position: fixed; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0; animation: drift 18s ease-in-out infinite; }
.glow.g1 { width: 340px; height: 340px; background: var(--c-accent); top: -120px; right: -120px; }
.glow.g2 { width: 300px; height: 300px; background: var(--c-accent2); bottom: -140px; left: -110px; animation-delay: -9s; }
[data-city] .glow { opacity: .32; }
.ci-wrap { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; padding: 18px 16px 40px; }
.ci-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; background: conic-gradient(from 210deg, var(--teal), var(--blue), var(--indigo), var(--teal)); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.city-pill { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); white-space: nowrap; }
.hero { margin: 6px 0 22px; }
.hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 700; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--c-ink), var(--c-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 1.02rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 0 0 16px; }
.steps li { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.steps li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); margin-bottom: 7px; }
.steps li.on { color: #fff; }
.steps li.on::before { background: linear-gradient(90deg, var(--c-accent), var(--c-accent2)); }
.steps li.done { color: rgba(255,255,255,.75); }
.steps li.done::before { background: var(--c-accent); }
body.ci .card { color: var(--ink); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 24px 22px; }
.ci-hello { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.ci-sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--mist); margin-bottom: 8px; transition: opacity .25s, background .25s; }
.member-body { flex: 1; min-width: 0; }
.member-name { font-weight: 600; line-height: 1.25; }
.member-sub { font-size: .8rem; color: var(--muted); }
.member.off { background: #fff; border: 1.5px dashed var(--line); }
.member.off .avatar { filter: grayscale(1); opacity: .45; }
.member.off .member-name { color: var(--grey); text-decoration: line-through; }
.toggle { border: 0; border-radius: 999px; font-weight: 700; font-size: .85rem; padding: .5em .95em; min-height: 38px; min-width: 104px; background: var(--green-bg); color: var(--green-ink); transition: background .2s, color .2s; }
.toggle.off { background: var(--grey-bg); color: var(--muted); }
.remove-btn, .undo-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  padding: .5em .95em; min-height: 40px; transition: background .2s, color .2s, border-color .2s;
}
.remove-btn { background: #fff; color: var(--red); border: 1.5px solid #f1b9b9; }
.remove-btn:hover, .remove-btn:active { background: var(--red-bg); border-color: var(--red); }
.remove-btn svg { width: 15px; height: 15px; }
.undo-btn { background: var(--grey-bg); color: var(--indigo); border: 1.5px solid var(--line); }
.member.off .member-sub { color: var(--red); font-weight: 600; }

/* Volunteer counter sign-in */
.login-wrap.vol { max-width: 520px; position: relative; z-index: 1; }
.vol-head { display: flex; justify-content: center; margin-bottom: 18px; }
.vol-head .city-logo { height: 52px; }
.vol-title { color: var(--navy); font-size: 1.7rem; margin-bottom: 2px; }
.vol-sub { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }
.vol-step { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); margin: 18px 0 10px; }
.vol-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; color: #fff; background: linear-gradient(120deg, var(--c-accent), var(--c-accent2)); flex: none; }
.vol-today { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); background: var(--green-bg); padding: .25em .6em; border-radius: 999px; }
.vol-cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vol-city {
  position: relative; overflow: hidden; border: 3px solid transparent; border-radius: 14px; padding: 12px 6px 8px; min-height: 84px;
  background-size: cover; background-position: center; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.vol-city::before { content: ""; position: absolute; inset: 0; background: rgba(6, 4, 24, .6); transition: background .15s; }
.vol-city > * { position: relative; }
.vol-city img { height: 26px; width: auto; max-width: 100%; }
.vol-city small { font-weight: 700; font-size: .75rem; }
.vol-city.on { border-color: var(--c-accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.vol-city.on::before { background: rgba(6, 4, 24, .35); }
.vol-pin { font-family: var(--display); font-size: 1.8rem; letter-spacing: .5em; text-align: center; min-height: 62px; }
.vol-pin::placeholder { letter-spacing: .05em; font-size: 1.1rem; font-family: var(--body); }
.vol-hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.vol-counters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 20px; }
.vol-cn { min-height: 54px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.vol-cn:hover { border-color: var(--c-accent2); }
.vol-cn.on { background: linear-gradient(120deg, var(--c-accent), var(--c-accent2)); color: #fff; border-color: transparent; }
@media (max-width: 420px) { .vol-city img { height: 20px; } .vol-pin { letter-spacing: .3em; } }

/* Roll call: one card per person, two big answers per guest */
.guest-card {
  border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px;
  transition: border-color .2s, background .2s;
}
.guest-card.in { border-color: #9fdcbc; background: #f3fbf7; }
.guest-card.out { border-color: #e7e9f2; background: #f7f8fb; }
.guest-card.out .avatar { filter: grayscale(1); opacity: .5; }
.guest-card.out .member-name { color: var(--muted); }
.guest-card.you { border-color: transparent; background: var(--mist); }
.guest-top { display: flex; align-items: center; gap: 12px; }
.guest-card .member-sub { font-size: .84rem; }
.guest-card.in .member-sub { color: var(--green-ink); font-weight: 600; }
.guest-card.out .member-sub { color: var(--muted); font-weight: 600; }
.guest-card .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.guest-card .tick svg { width: 17px; height: 17px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.choice button {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: .98rem;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.choice button svg { width: 18px; height: 18px; }
.choice button:active { transform: scale(.98); }
.choice button[data-v="in"] svg { color: var(--green); }
.choice button[data-v="out"] svg { color: var(--muted); }
.choice button.on-in { background: var(--green); border-color: var(--green); color: #fff; }
.choice button.on-in svg { color: #fff; }
.choice button.on-out { background: #4b5068; border-color: #4b5068; color: #fff; }
.choice button.on-out svg { color: #fff; }
.bands-sum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 14px;
  padding: 12px 16px; border-radius: 14px; background: var(--mist); border: 1.5px dashed var(--ice);
}
.bands-sum .bs-label { font-weight: 800; color: var(--navy); }
.bands-sum .bs-sub { font-size: .82rem; color: var(--muted); }
.bands-sum b { font-family: var(--display); font-size: 2.3rem; line-height: 1; color: var(--c-accent2); min-width: 1.2em; text-align: right; }
.btn-glow:disabled { opacity: .55; filter: grayscale(.35); box-shadow: none; cursor: not-allowed; }
.add-hint { text-align: center; font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
.pass-names { grid-column: 1 / -1; font-weight: 600; color: var(--ink); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pass-names .pass-label { margin: 0; }
.you-tag { font-size: .75rem; font-weight: 800; color: var(--indigo); background: var(--ice); padding: .35em .75em; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.ci-foot { text-align: center; color: rgba(255,255,255,.55); font-size: .85rem; margin-top: 22px; }

/* The entry pass shown after check-in */
.pass { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.pass-top {
  position: relative; padding: 22px 22px 26px; color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(92,184,178,.55) 0%, transparent 60%),
    linear-gradient(135deg, var(--indigo) 0%, var(--navy) 100%);
}
.pass-top .eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-2); font-weight: 700; }
.pass-top .pname { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.pass-top .pmeta { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 4px; }
.pass-cut { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 18px; }
.pass-cut::before, .pass-cut::after { content: ""; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--c-bg1); }
.pass-cut::before { left: -32px; }
.pass-cut::after { right: -32px; }
.pass-bottom { background: #fff; color: var(--ink); padding: 20px 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.pass-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pass-id { font-family: var(--display); font-size: 2.1rem; font-weight: 800; letter-spacing: .04em; color: var(--navy); line-height: 1.05; }
.pass-bands { text-align: right; }
.pass-bands b { font-family: var(--display); font-size: 3.4rem; line-height: .9; color: var(--indigo); display: block; }
.pass-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: .95rem; }
.pass-status.amber { background: var(--amber-bg); color: var(--amber-ink); }
.pass-status.green { background: var(--green-bg); color: var(--green-ink); }
.check-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; animation: pop .5s .2s both; }
.check-badge svg { width: 18px; height: 18px; }
.check-badge path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .55s ease forwards; }
.pass-status.amber .check-badge { background: var(--amber); }
.pass-status.green .check-badge { background: var(--green); }
.msg-card { text-align: center; }
.msg-icon { width: 64px; height: 64px; border-radius: 20px; margin: 2px auto 14px; display: grid; place-items: center; font-family: var(--display); font-size: 30px; font-weight: 800; background: var(--ice); color: var(--indigo); }
.city-pick { display: grid; gap: 10px; }
.city-btn { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--mist); color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; border: 1.5px solid transparent; transition: border-color .2s, transform .15s; }
.city-btn:hover { border-color: var(--teal); transform: translateX(3px); }
.city-btn span { font-family: var(--body); font-weight: 600; font-size: .85rem; color: var(--muted); }

/* =========================================================
   STAFF SCREENS (counter + admin, laptop)
   ========================================================= */
body.staff { background: var(--mist); }
.topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #fff; padding: 12px 22px;
  background:
    radial-gradient(60% 160% at 100% 0%, rgba(92,184,178,.35) 0%, transparent 60%),
    linear-gradient(110deg, var(--navy) 0%, var(--indigo) 100%);
  border-bottom: 3px solid var(--teal);
}
.topbar .brand-mark { width: 34px; height: 34px; }
.topbar .brand { font-size: 1.15rem; }
.topbar .sub { opacity: .75; font-size: .85rem; font-weight: 500; font-family: var(--body); }
.topbar .spacer { flex: 1; }
.topbar .btn { min-height: 38px; padding: .3em .9em; background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.topbar .btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.conn { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; padding: .35em .85em; border-radius: 999px; background: rgba(92,184,178,.18); color: #d9fffb; letter-spacing: .03em; }
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s infinite; }
.conn.offline { background: #ffe1b5; color: #7a3d00; }
.conn.offline::before { background: #e07b00; animation: none; }
.sim { display: flex; gap: 6px; align-items: center; font-size: .8rem; opacity: .85; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 22px 0; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 16px 14px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k, var(--indigo)); }
.stat b { display: block; font-family: var(--display); font-size: 1.75rem; line-height: 1.15; color: var(--navy); }
.stat span { font-size: .75rem; color: var(--muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.counter-main { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.15fr); gap: 18px; padding: 16px 22px 30px; }
@media (max-width: 880px) { .counter-main { grid-template-columns: 1fr; } }
.search-wrap { position: relative; }
.search { font-size: 1.25rem; min-height: 58px; padding-left: 52px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); border-color: transparent; font-family: var(--display); font-weight: 500; }
.search-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.kbd { font-size: .72rem; color: var(--muted); margin: 6px 4px 0; }
.kbd b { background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 .4em; font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .9em; font-size: .85rem; font-weight: 600; color: var(--muted); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.list { display: flex; flex-direction: column; gap: 7px; max-height: calc(100vh - 330px); min-height: 200px; overflow: auto; padding: 2px 4px 2px 2px; }
.row {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: #fff; border: 1.5px solid transparent; border-left: 5px solid var(--grey); border-radius: 12px; padding: 11px 14px;
  box-shadow: 0 1px 2px rgba(5,0,62,.05); transition: border-color .15s, transform .12s;
}
.row.st-self { border-left-color: var(--amber); }
.row.st-verified { border-left-color: var(--green); }
.row:hover { border-color: var(--ice); transform: translateX(2px); }
.row.sel { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(92,184,178,.2); }
.row .rid { font-family: var(--display); font-weight: 700; min-width: 78px; color: var(--navy); }
.row .rname { flex: 1; font-weight: 600; }
.row .rmeta { font-size: .78rem; color: var(--muted); text-align: right; line-height: 1.3; }
.empty { text-align: center; color: var(--muted); padding: 34px 12px; }
.empty-art { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; background: var(--ice); display: grid; place-items: center; color: var(--indigo); }
.empty-art svg { width: 30px; height: 30px; }
.detail { position: sticky; top: 16px; align-self: start; padding: 0; overflow: hidden; }
.detail-top { padding: 20px 22px; background: linear-gradient(135deg, var(--navy) 0%, var(--indigo) 100%); color: #fff; display: flex; gap: 14px; align-items: center; }
.detail-top.st-verified { background: linear-gradient(135deg, #0f6b42 0%, var(--green) 100%); }
.detail-top.st-self { box-shadow: inset 0 -5px 0 var(--amber); }
.detail-top.st-self .pill { background: var(--amber); color: #3d2600; }
.detail-top .avatar { width: 54px; height: 54px; border-radius: 16px; font-size: 1.15rem; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.detail-id { font-family: var(--display); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.detail-name { font-family: var(--display); font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.detail-meta { font-size: .82rem; opacity: .8; margin-top: 2px; }
.detail-body { padding: 16px 22px 22px; }
.detail-top .pill { background: rgba(255,255,255,.16); color: #fff; }
.glist { margin: 4px 0 12px; }
.g { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.g input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--green); }
.g .gname { flex: 1; font-weight: 600; }
.g .gnote { font-size: .75rem; font-weight: 700; color: var(--amber-ink); background: var(--amber-bg); padding: .2em .6em; border-radius: 8px; }
.g.removed .gname { text-decoration: line-through; color: var(--grey); }
.addrow { display: flex; gap: 8px; margin-top: 12px; }
.addrow .input { min-height: 46px; font-size: 1rem; }
.bands-box {
  display: flex; align-items: center; justify-content: space-between; border-radius: 16px; padding: 14px 18px; margin: 16px 0;
  background: repeating-linear-gradient(90deg, rgba(92,184,178,.08) 0 18px, rgba(92,184,178,.14) 18px 36px), var(--mist);
  border: 1.5px solid var(--ice);
}
.bands-box b { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--indigo); }
.verified-box { background: var(--green-bg); color: var(--green-ink); border-radius: 14px; padding: 14px 16px; margin: 4px 0 12px; font-weight: 600; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-wrap { width: 100%; max-width: 420px; }
.login-wrap .brand { color: #fff; justify-content: center; margin-bottom: 18px; font-size: 1.25rem; }

/* admin */
.tabs { display: flex; gap: 6px; padding: 12px 22px; flex-wrap: wrap; background: #fff; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: .55em 1.05em; font-weight: 700; color: var(--muted); border-radius: 999px; font-size: .92rem; }
.tab:hover { background: var(--mist); color: var(--navy); }
.tab.on { background: var(--navy); color: #fff; }
.page { padding: 20px 22px 40px; max-width: 1240px; margin: 0 auto; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s infinite; }
.hero-band {
  border-radius: 22px; color: #fff; padding: 24px 26px; margin-bottom: 18px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(201,217,242,.08) 1px, transparent 0) 0 0 / 20px 20px,
    radial-gradient(70% 140% at 100% 0%, rgba(92,184,178,.45) 0%, transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--indigo) 100%);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 700px) { .hero-band { grid-template-columns: 1fr; } }
.hero-band h2 { font-size: 1.9rem; margin: 6px 0 4px; }
.hero-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.hero-nums div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 14px; }
.hero-nums b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.hero-nums span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-txt { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--display); }
.ring .ring-txt b { font-size: 2rem; line-height: 1; display: block; }
.ring .ring-txt span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; font-family: var(--body); font-weight: 700; }
.ring circle { transition: stroke-dasharray .8s cubic-bezier(.2,.8,.2,1); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.city-card { position: relative; overflow: hidden; }
.city-card .city-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.city-card .ring { width: 92px; height: 92px; color: var(--navy); }
.city-card .ring .ring-txt b { font-size: 1.25rem; }
.city-card h3 { font-size: 1.45rem; margin: 0; color: var(--navy); }
.city-card .when { font-size: .82rem; color: var(--muted); font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: .93rem; }
.kv span { display: flex; align-items: center; gap: 8px; }
.kv b { text-align: right; font-family: var(--display); font-size: 1.05rem; }
.kv .sep { grid-column: 1 / -1; height: 1px; background: var(--line); margin: 2px 0; }
.big-num { font-family: var(--display); font-size: 2.2rem; font-weight: 800; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); font-size: .9rem; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { background: var(--navy); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #fafbff; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { max-width: 280px; min-height: 44px; font-size: .95rem; }
.toolbar h2 { color: var(--navy); }
.poster-card { text-align: center; }
.poster-card h3 { color: var(--navy); }
.poster-card .qr-wrap { background: #fff; border: 1.5px solid var(--ice); border-radius: 18px; padding: 10px; display: inline-block; margin: 6px 0 10px; }
.poster-card svg { width: 180px; height: 180px; display: block; }
.err-list { max-height: 260px; overflow: auto; }
.dropzone { border: 2px dashed var(--ice); border-radius: 16px; padding: 22px; text-align: center; background: var(--mist); }

#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; transition: opacity .4s, transform .4s; max-width: 360px; animation: rise .3s both; }
.toast-ok { background: var(--green); }
.toast-warn { background: #b35c00; }
.toast-err { background: var(--red); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* =========================================================
   CITY THEMES (Hyderabad: AI experience, Bangalore: incredible INDIA, Chennai: one temenos)
   ========================================================= */
.city-hero { display: none; }
[data-city] .city-hero {
  display: block; position: absolute; left: 0; right: 0; top: 0; height: 64vh; max-height: 600px; z-index: 0;
  background: var(--c-hero-tall) center 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
[data-city] .city-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 24, .50) 0%, rgba(8, 6, 24, .35) 50%, rgba(8, 6, 24, .2) 100%);
}
[data-city="chennai"] .city-hero::after { background: linear-gradient(180deg, rgba(20, 12, 50, .62) 0%, rgba(20, 12, 50, .5) 50%, rgba(20, 12, 50, .3) 100%); }
@media (min-width: 700px) {
  [data-city] .city-hero { background-image: var(--c-hero-wide); background-position: center 40%; }
}
.city-logo { display: block; height: 42px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.theme-art { display: block; width: min(92%, 360px); height: auto; margin: 4px 0 12px; filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .45)); }
.theme-line { color: rgba(255, 255, 255, .85); font-size: .98rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
[data-city] .city-pill { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
[data-city] .hero { margin-top: 18px; }
[data-city] .pass-top {
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--c-bg1) 88%, transparent) 0%, color-mix(in srgb, var(--c-bg1) 45%, transparent) 100%),
    var(--c-hero-wide) center 40% / cover;
}
[data-city] .pass-top .eyebrow { color: var(--c-ink); }
.pass-top .city-logo { height: 30px; margin-bottom: 10px; }

/* staff screens */
[data-city] .topbar {
  background:
    linear-gradient(100deg, var(--c-bg1) 0%, color-mix(in srgb, var(--c-bg1) 70%, transparent) 45%, rgba(0, 0, 0, .15) 100%),
    var(--c-hero-wide) center 45% / cover;
  border-bottom-color: var(--c-accent);
}
.topbar .city-logo { height: 34px; }
[data-city] .row.sel { border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 25%, transparent); }
[data-city] .detail-top:not(.st-verified) { background: linear-gradient(135deg, var(--c-bg1) 0%, var(--c-bg2) 100%); }
.city-banner {
  height: 96px; border-radius: 14px; margin: -8px -8px 14px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between;
  background-size: cover; background-position: center 40%; position: relative; overflow: hidden;
}
.city-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 4, 24, .78) 0%, rgba(6, 4, 24, .25) 100%); }
.city-banner > * { position: relative; }
.city-banner img { height: 38px; }
.city-banner .when { color: #fff; font-weight: 700; font-size: .8rem; background: rgba(0, 0, 0, .35); padding: .3em .7em; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Add attendee (on-spot registration) */
.search-row { display: flex; gap: 10px; align-items: stretch; }
.search-row .search-wrap { flex: 1; min-width: 0; }
.add-att { min-height: 58px; border-radius: 16px; padding: 0 18px; white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
#wgadd { white-space: nowrap; }
.btn-green:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.btn-link { display: block; width: 100%; margin-top: 8px; border: 0; background: none; color: var(--muted); font-weight: 600; box-shadow: none; }
.btn-link:hover { color: var(--navy); border: 0; }
.walkin-top { background: linear-gradient(135deg, var(--indigo) 0%, var(--blue, #3860be) 100%) !important; }
.walkin-av { display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; }
.walkin-av svg { width: 26px; height: 26px; }
.walkin-dup { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--amber-bg); color: var(--amber-ink); border-radius: 12px; padding: 10px 14px; margin: -6px 0 14px; font-size: .92rem; }
.walkin-hint { min-height: 1.2em; color: var(--amber-ink); font-weight: 600; font-size: .9rem; text-align: center; margin-bottom: 8px; }
.tag-new { display: inline-block; background: var(--ice); color: var(--indigo); border-radius: 6px; padding: 0 .45em; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 560px) { .search-row { flex-direction: column; } .add-att { min-height: 50px; } }
