:root {
  --blue: #1226AA; --blue2: #2F44C9; --navy: #0A1463; --navy2: #111C7A; --ink: #141B3D; --mute: #5B6275;
  --line: #D6DBEA; --tint: #EEF1FB; --ice: #C7D0FF; --yellow: #FFCC00; --white: #fff; --red: #B42318; --green: #1E8E5A;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.slash { display: inline-block; width: 10px; height: 18px; background: var(--yellow); transform: skewX(-24deg); }
.muted { color: var(--mute); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--blue); font-weight: 700; font-size: 13px; }

/* ---------- attendee (phone) ---------- */
.phone { max-width: 560px; margin: 0 auto; padding: 18px 16px 40px; }
.phone header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.phone h1 { font-size: 24px; margin: 6px 0 4px; }
.card { background: var(--tint); border-radius: 14px; padding: 18px; margin: 14px 0; }
.card h2 { font-size: 19px; margin: 0 0 14px; line-height: 1.3; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--white); border: 2px solid var(--line);
       border-radius: 12px; padding: 13px 14px; margin: 8px 0; font-size: 16px; color: var(--ink); }
.opt.on { border-color: var(--blue); background: #E2E7F8; font-weight: 600; }
.opt .box { width: 20px; height: 20px; border: 2px solid var(--blue); border-radius: 5px; flex: none; }
.opt.radio .box { border-radius: 50%; }
.opt.on .box { background: var(--blue); box-shadow: inset 0 0 0 3px #E2E7F8; }
.rating { display: flex; gap: 8px; }
.rating button { flex: 1; padding: 14px 0; border-radius: 12px; border: 2px solid var(--line); background: var(--white); font-size: 20px; font-weight: 700; color: var(--ink); }
.rating button.on { border-color: var(--blue); background: var(--blue); color: var(--white); }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin-top: 6px; }
input[type=email], input[type=text], textarea { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--white); color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); }
.primary { width: 100%; padding: 15px; border: 0; border-radius: 12px; background: var(--blue); color: var(--white); font-size: 17px; font-weight: 700; margin-top: 12px; }
.primary:disabled { background: #9AA4C7; }
.done { color: var(--green); font-weight: 700; margin-top: 10px; }
.err { color: var(--red); font-weight: 600; margin-top: 8px; min-height: 1em; }
.privacy { font-size: 13px; color: var(--mute); line-height: 1.45; }
.waiting { text-align: center; padding: 34px 10px; }
.waiting .big { font-size: 21px; font-weight: 700; margin: 10px 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: .3; transform: scale(.8);} 50% { opacity: 1; transform: scale(1);} }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--blue); }

/* ---------- results (shared) ---------- */
.bars .row { margin: 9px 0; }
.bars .lab { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; gap: 10px; }
.bars .track { height: 14px; background: var(--white); border-radius: 7px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--blue); border-radius: 7px; transition: width .6s ease; }
.cloud { position: relative; width: 100%; height: 300px; overflow: hidden; }
.cloud span { position: absolute; white-space: nowrap; font-weight: 700; line-height: 1; transition: all .5s ease; }

/* ---------- projector ---------- */
body.screen { background: var(--navy); color: var(--white); height: 100vh; overflow: hidden; }
.stage { display: grid; grid-template-columns: 1fr 300px; height: 100vh; }
.main { padding: 44px 56px; display: flex; flex-direction: column; min-width: 0; }
.main .eyebrow { color: var(--ice); font-weight: 700; letter-spacing: .12em; font-size: 15px; text-transform: uppercase; }
.main h1 { font-size: clamp(30px, 3.4vw, 54px); line-height: 1.15; margin: 14px 0 22px; }
.main .viz { flex: 1; min-height: 0; position: relative; }
.screen .cloud { height: 100%; }
.screen .bars .lab { font-size: clamp(16px, 1.5vw, 24px); color: var(--white); }
.screen .bars .track { height: clamp(18px, 2.2vh, 30px); background: var(--navy2); border-radius: 15px; }
.screen .bars .fill { background: var(--yellow); }
.side { background: var(--navy2); padding: 34px 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.side .qr { width: 230px; height: 230px; background: var(--white); border-radius: 16px; padding: 12px; }
.side .qr img { width: 100%; height: 100%; }
.side .url { font-size: 17px; font-weight: 700; word-break: break-all; color: var(--yellow); }
.stat { font-size: 48px; font-weight: 800; line-height: 1; }
.stat small { display: block; font-size: 14px; font-weight: 600; color: var(--ice); margin-top: 6px; letter-spacing: .04em; }
.idle { margin: auto; text-align: center; }
.idle h1 { font-size: 56px; }

/* ---------- admin ---------- */
.admin { max-width: 1180px; margin: 0 auto; padding: 22px; }
.admin h1 { font-size: 22px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.admin .b { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--blue); background: var(--white); color: var(--blue); font-weight: 600; font-size: 13px; margin: 2px; }
.admin .b.on { background: var(--blue); color: var(--white); }
.admin .b.warn { border-color: var(--red); color: var(--red); }
.admin .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 18px; }
.admin .raw { font-size: 13px; color: var(--mute); max-height: 140px; overflow: auto; }
.admin tr.current { background: #FFF8D6; }
