/* CEE'26 app. The glass material is the one from the "Glass Tab Bar" design (iPhone profile):
   blur 20, saturate 180, a fillet-style edge made of inset shadows, purple bar at .72, pink top bar at .88. */
:root {
  --pink-1: #e57eb5; --pink-2: #e971cb; --pink-deep: #B02A84; --navy: #191648;
  --purple: 74 61 130; --purple-2: 104 85 159;
  --ink: #1E1A33; --muted: #6B6580; --line: #EEEAF3; --soft: #FBFAFD;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bot: env(safe-area-inset-bottom, 0px);
  --bar-h: 62px; --top-h: 52px; --gutter: 20px;
  --edge:
    inset 0 0 0 .75px rgb(255 255 255 / .34),
    inset 0 0 6px .72px rgb(255 255 255 / .284),
    inset 1.44px 1.92px 3.84px -.96px rgb(255 190 232 / .51),
    inset -1.2px -1.44px 3.84px -.96px rgb(170 222 255 / .317);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--pink-deep); }
body { margin: 0; font: 400 15px/1.5 var(--font); color: var(--ink); background: #fff; max-width: 480px; margin-inline: auto; min-height: 100dvh; position: relative; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

/* ---- background photo, drifts slower than the page ---- */
.page-bg { position: fixed; inset: 0; max-width: 480px; margin-inline: auto; z-index: 0;
  background: linear-gradient(rgb(15 10 30 / .15), rgb(15 10 30 / .32)), url("../assets/hero.webp") center top / cover no-repeat, var(--pink-deep);
  opacity: 0; transition: opacity .3s; }
body.on-hero .page-bg { opacity: 1; }

/* ---- glass ---- */
.glass { position: relative; isolation: isolate; box-shadow: 0 12px 30px -10px rgb(25 22 72 / .45), 0 2px 6px rgb(25 22 72 / .12); }
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, var(--fill) 1%, var(--fill2, var(--fill)) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.105); backdrop-filter: blur(20px) saturate(180%) brightness(1.105); }
.glass::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; box-shadow: var(--edge); }
.glass-white { --fill: rgb(255 255 255 / .58); color: var(--ink); }
.glass-purple { --fill: rgb(var(--purple) / .72); --fill2: rgb(var(--purple-2) / .72); color: #fff; }
.glass-pink { --fill: rgb(229 126 181 / .88); --fill2: rgb(233 113 203 / .88); color: #fff; }

/* ---- top bar ---- */
.topbar { position: fixed; z-index: 30; top: calc(var(--safe-top) + 8px); left: 12px; right: 12px; max-width: 456px; margin-inline: auto;
  height: var(--top-h); border-radius: 26px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; --fill: rgb(229 126 181 / .88); --fill2: rgb(233 113 203 / .88); color: #fff; }
.logo-mark { width: 30px; height: 24px; flex: none; background: currentColor; -webkit-mask: url("../assets/logo-mask.webp") center / contain no-repeat; mask: url("../assets/logo-mask.webp") center / contain no-repeat; }
.tb-title { flex: 1; font: 600 15px/1 var(--font); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pts { border: 0; cursor: pointer; background: rgb(255 255 255 / .24); border-radius: 999px; padding: 8px 14px; font: 500 13px/1 var(--font); }
.pts b { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- tab bar ---- */
.tabbar { position: fixed; z-index: 30; left: 50%; bottom: calc(var(--safe-bot) + 12px); translate: -50% 0; width: min(344px, calc(100% - 24px)); height: var(--bar-h); border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px; --fill: rgb(var(--purple) / .72); --fill2: rgb(var(--purple-2) / .72); color: rgb(255 255 255 / .9); }
.tabbar a { position: relative; z-index: 2; width: 60px; height: 50px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font: 600 10px/1 var(--font); transition: color .2s, scale .15s; }
.tabbar a:active { scale: .94; }
.tabbar a[aria-current="page"] { color: #fff; }
.tabbar svg, .scan-fab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-ind { position: absolute; z-index: 1; top: 6px; left: 0; width: 60px; height: 50px; border-radius: 999px; pointer-events: none; background: rgb(255 255 255 / .22);
  -webkit-backdrop-filter: brightness(1.2) saturate(1.25); backdrop-filter: brightness(1.2) saturate(1.25); transition: left .3s ease, transform .5s cubic-bezier(.3, 1.3, .5, 1), opacity .2s; }
.tab-ind.lift { transform: scale(1.07); }
.scan-fab { position: fixed; z-index: 31; right: max(18px, calc(50% - 222px)); bottom: calc(var(--safe-bot) + var(--bar-h) + 24px); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; --fill: rgb(var(--purple) / .8); --fill2: rgb(var(--purple-2) / .8); transition: scale .45s cubic-bezier(.34, 1.56, .64, 1); }
.scan-fab:active { scale: .92; }
.scan-fab svg { width: 26px; height: 26px; }
.has-bar #view { padding-bottom: calc(var(--bar-h) + var(--safe-bot) + 90px); }

/* ---- view ---- */
#view { position: relative; z-index: 1; min-height: 100dvh; outline: none; }
.screen { animation: in .32s ease both; }
@keyframes in { from { opacity: 0; translate: 0 10px; } }
.pad { padding: calc(var(--safe-top) + var(--top-h) + 28px) var(--gutter) 24px; }
.on-white { background: #fff; min-height: 100dvh; }
h1.t { font: 700 26px/1.2 var(--font); color: var(--navy); }
.sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.chip { display: inline-block; font: 600 12px/1 var(--font); padding: 7px 12px; border-radius: 999px; background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); color: #fff; }
.chip.ghost { background: #F3EFF8; color: var(--navy); }
.eyebrow { font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-deep); }

/* ---- hero (home, login) ---- */
.hero { padding: calc(var(--safe-top) + var(--top-h) + 40px) var(--gutter) 28px; color: #fff; text-align: center; }
.hero.full { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--safe-top) + 30px); }
.h-cee { font: 600 34px/1.1 var(--font); letter-spacing: .04em; margin: 22px 0 12px; }
.h-sub { font: 500 13px/1.5 var(--font); letter-spacing: .38em; text-transform: uppercase; padding-left: .38em; }
.h-date { font: 600 22px/1.2 var(--font); margin: 22px 0 6px; }
.h-loc { font-size: 14px; opacity: .92; margin-bottom: 26px; }
.hero .logo-big { width: 92px; height: 72px; margin: 0 auto; background: #fff; -webkit-mask: url("../assets/logo-mask.webp") center / contain no-repeat; mask: url("../assets/logo-mask.webp") center / contain no-repeat; }
.cards { display: grid; gap: 14px; text-align: left; }
.card { border-radius: 22px; padding: 18px 20px; }
.card.glass-white { --fill: rgb(255 255 255 / .62); }
.card h3 { font: 600 16px/1.3 var(--font); }
.card .meta { font-size: 12.5px; color: var(--muted); }
.big-num { font: 700 44px/1 var(--font); font-variant-numeric: tabular-nums; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat b { display: block; font: 700 22px/1.1 var(--font); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; border-radius: 999px; cursor: pointer; padding: 0 22px; font: 600 15px/1 var(--font); color: #fff; background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); text-decoration: none; transition: scale .15s; }
.btn:active { scale: .98; }
.btn.alt { background: rgb(var(--purple)); }
.btn.light { background: rgb(255 255 255 / .9); color: var(--navy); }
.btn.link { background: none; color: var(--pink-deep); min-height: 40px; width: auto; }
.btn[disabled] { opacity: .5; }
.field { display: block; text-align: left; margin: 14px 0; }
.field span { display: block; font: 600 12px/1 var(--font); margin-bottom: 7px; opacity: .9; }
.field input, .field select { width: 100%; height: 52px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .55); background: rgb(255 255 255 / .85); padding: 0 16px; font: 500 16px/1 var(--font); color: var(--ink); outline: none; }
.field input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / .35); }
.code-in { letter-spacing: .5em; text-align: center; font-size: 26px !important; font-variant-numeric: tabular-nums; }
.msg { font-size: 13px; margin-top: 10px; min-height: 1.4em; }
.msg.err { color: #ffd6e6; font-weight: 600; }
.fine { font-size: 11.5px; line-height: 1.45; opacity: .85; margin-top: 18px; }
.on-white .msg.err { color: #c21d5a; }

/* ---- agenda ---- */
.day-chip { margin: 18px 0 6px; }
.sess { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); transition: opacity .3s, filter .3s; cursor: pointer; }
.sess time { font: 600 13px/1.3 var(--font); color: var(--pink-deep); font-variant-numeric: tabular-nums; }
.sess time span { display: block; font-weight: 500; color: #9A93AB; }
.sess h3 { font: 600 15px/1.35 var(--font); margin-bottom: 3px; }
.sess p { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sess .tag { display: inline-block; font: 600 10px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; background: #F3EFF8; color: var(--navy); }
.sess.panel h3::before { content: ""; }
.sess.done { opacity: .42; filter: grayscale(1); }
.sess.break h3 { font-weight: 500; color: var(--muted); }
.sess.live { margin: 8px -12px; padding: 16px 12px; border-radius: 20px; border: 0; background: linear-gradient(135deg, #FCEFF7, #EFEDFA); box-shadow: 0 0 0 1.5px rgb(229 126 181 / .55); }
.sess.live .tag.now { background: #E5243B; color: #fff; }
.progress { height: 4px; border-radius: 4px; background: rgb(25 22 72 / .1); margin-top: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); transition: width 1s linear; }
.nowline { position: relative; height: 0; margin: 0; }
.nowline::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, #E5243B, var(--pink-2)); border-radius: 2px; }
.nowline::after { content: attr(data-t); position: absolute; left: 0; top: -10px; font: 700 10px/1 var(--font); color: #fff; background: #E5243B; padding: 4px 7px; border-radius: 999px; }
.check { color: #1d9b57; font-weight: 600; font-size: 12px; }
.jump { position: fixed; z-index: 25; left: 50%; translate: -50% 0; top: calc(var(--safe-top) + var(--top-h) + 20px); border: 0; padding: 9px 16px; border-radius: 999px; font: 600 12px/1 var(--font); --fill: rgb(var(--purple) / .8); color: #fff; }

/* ---- speakers ---- */
.search { width: 100%; height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); padding: 0 16px; font: 500 15px/1 var(--font); margin: 16px 0 6px; outline: none; }
.search:focus { border-color: var(--pink-1); }
.spk { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--pink-1), #7a63c4); color: #fff; display: grid; place-items: center; font: 600 17px/1 var(--font); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.big { width: 96px; height: 96px; font-size: 28px; }
.spk h3 { font: 600 15px/1.3 var(--font); }
.spk p { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ---- bingo ---- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.sq { aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); padding: 7px; font: 500 10.5px/1.25 var(--font); color: var(--ink); text-align: left; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; overflow: hidden; }
.sq.on { border: 0; color: #fff; background: linear-gradient(135deg, var(--pink-1), var(--pink-2)); }
.sq.on b { font: 600 11px/1.2 var(--font); }
.sq.line { background: linear-gradient(135deg, rgb(var(--purple)), rgb(var(--purple-2))); }
.sq .ck { font-size: 14px; }
.bar { height: 8px; border-radius: 8px; background: #F0ECF6; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); border-radius: inherit; transition: width .5s; }

/* ---- board ---- */
.lb { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.lb .rk { width: 30px; font: 700 16px/1 var(--font); color: var(--pink-deep); text-align: center; font-variant-numeric: tabular-nums; }
.lb .nm { flex: 1; min-width: 0; } .lb .nm b { display: block; font: 600 14.5px/1.3 var(--font); } .lb .nm span { font-size: 12px; color: var(--muted); }
.lb .sc { font: 700 15px/1 var(--font); font-variant-numeric: tabular-nums; }
.lb.me { background: #FCEFF7; border-radius: 14px; padding: 12px; margin-top: 8px; border: 0; }

/* ---- scanner ---- */
.scan-view { position: fixed; inset: 0; z-index: 60; background: #000; max-width: 480px; margin-inline: auto; display: flex; flex-direction: column; }
.scan-view video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.scan-top { position: absolute; top: calc(var(--safe-top) + 12px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 2; color: #fff; }
.scan-top button { border: 0; border-radius: 999px; padding: 11px 16px; font: 600 13px/1 var(--font); --fill: rgb(25 22 72 / .55); color: #fff; }
.frame { position: absolute; left: 50%; top: 42%; width: 66%; aspect-ratio: 1; translate: -50% -50%; border-radius: 28px; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .45); border: 2px solid rgb(255 255 255 / .85); pointer-events: none; }
.scan-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px calc(var(--safe-bot) + 20px); color: #fff; text-align: center; z-index: 2; background: linear-gradient(transparent, rgb(0 0 0 / .7)); }
.scan-bottom p { font-size: 13px; opacity: .9; margin-bottom: 12px; }
.manual { display: flex; gap: 8px; }
.manual input { flex: 1; height: 48px; border-radius: 16px; border: 0; padding: 0 14px; font: 600 16px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.manual button { width: 84px; border: 0; border-radius: 16px; font: 600 14px/1 var(--font); color: #fff; background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); }

/* ---- sheet / toast ---- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgb(15 10 30 / .45); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 86dvh; overflow: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 22px var(--gutter) calc(var(--safe-bot) + 24px); animation: up .3s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes up { from { translate: 0 100%; } }
.sheet h2 { font: 700 20px/1.25 var(--font); color: var(--navy); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: #DDD6E8; margin: -10px auto 14px; }
.pick { display: flex; width: 100%; text-align: left; gap: 12px; align-items: center; border: 0; border-top: 1px solid var(--line); background: none; padding: 12px 0; cursor: pointer; }
.pick b { display: block; font: 600 14.5px/1.3 var(--font); } .pick span { font-size: 12px; color: var(--muted); }
.big-ok { text-align: center; padding: 6px 0 4px; } .big-ok .plus { font: 700 56px/1 var(--font); background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes pop { from { scale: .3; opacity: 0; } }
.toast { position: fixed; z-index: 90; left: 50%; translate: -50% 20px; bottom: calc(var(--safe-bot) + var(--bar-h) + 30px); max-width: min(420px, 90%); padding: 12px 18px; border-radius: 999px; background: rgb(25 22 72 / .92); color: #fff; font: 500 13.5px/1.3 var(--font); opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; text-align: center; }
.toast.show { opacity: 1; translate: -50% 0; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tagbtn { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 9px 13px; font: 500 13px/1 var(--font); cursor: pointer; }
.tagbtn.on { border-color: transparent; background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); color: #fff; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.switch-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; border-radius: 999px; background: #DDD6E8; position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: translate .2s; }
.switch:checked { background: var(--pink-deep); } .switch:checked::after { translate: 20px 0; }
.offline { position: fixed; z-index: 29; top: calc(var(--safe-top) + var(--top-h) + 14px); left: 50%; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: #3a2f60; color: #fff; font: 500 11.5px/1 var(--font); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* stars */
.star { border: 0; background: none; font-size: 24px; line-height: 1; color: #B9B1CC; padding: 6px; margin: -6px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s, color .15s; flex: none; }
.star.on { color: #E5A400; } .star:active { transform: scale(1.25); }
.sess { grid-template-columns: 58px minmax(0, 1fr) !important; }
.sess > .star { position: absolute; right: 2px; top: 14px; z-index: 1; }
.sess:has(> .star) h3 { padding-right: 30px; }
.sess.live > .star { right: 14px; }
.sess.starred:not(.live):not(.done) { background: linear-gradient(90deg, rgb(229 164 0 / .07), transparent 60%); }
.seg { display: flex; gap: 8px; margin: 14px 0 4px; }
.seg button { border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: 600 13px var(--font); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.how { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.55; } .how li { margin: 6px 0; } .how b { font-weight: 600; }
