/* Story Pointer: refined minimal. Neutral surfaces, hairline borders, one blue accent. */
:root {
  --bg: #f7f8fb;
  --surface: #fff;
  --text: #0b1220;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e7eaf0;
  --line-strong: #d5dae3;
  --accent: #2b5cff;
  --accent-600: #1f47d6;
  --accent-100: #dbe5ff;
  --accent-50: #eef3ff;
  --ok: #12b76a;
  --warn: #b54708;
  --warn-bg: #fffaeb;
  --warn-line: #fedf89;
  --danger: #d92d20;
  --ink: #0d1733;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -12px rgba(16, 24, 40, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; letter-spacing: -.003em; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
.ico { display: inline-flex; flex: none; }
.muted { color: var(--muted); }
.center-text { text-align: center; }
.spacer { flex: 1; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--text); font-weight: 550; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, box-shadow .15s, transform .08s; }
.btn:hover:not(:disabled) { background: #f9fafb; border-color: #c6ccd8; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #3f74ff, var(--accent)); border-color: #2450e0; color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #4a7cff, #2556f0); border-color: #2450e0; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: #344054; }
.btn.ghost:hover:not(:disabled) { background: #eef0f5; border-color: transparent; }
.btn.small { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; gap: 6px; }
.btn.icon { width: 34px; padding: 0; }
.btn.danger { color: var(--danger); }
.btn.danger:hover:not(:disabled) { background: #fef3f2; border-color: #fecdca; }
.btn.block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-600); }

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; font-weight: 550; color: #344054; margin-bottom: 6px; }
input[type=text], input[type=password], select { width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--faint); }
input[type=text]:focus, input[type=password]:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43, 92, 255, .14); }
.field { margin-bottom: 16px; }
.error { color: var(--danger); font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.roles input { position: absolute; opacity: 0; pointer-events: none; }
.roles label { margin: 0; text-align: center; padding: 11px 6px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 550; color: var(--text); background: #fff; transition: all .15s; }
.roles label:hover { border-color: #b8c0d0; }
.roles input:checked + label { background: var(--accent-50); border-color: var(--accent); color: var(--accent-600); box-shadow: 0 0 0 3px rgba(43, 92, 255, .12); }
.roles input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Auth / home ---------- */
.center { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.hero-bg { background: radial-gradient(1000px 460px at 50% -8%, #e4ecff 0%, rgba(228, 236, 255, 0) 70%), radial-gradient(700px 360px at 90% 100%, #eef2ff 0%, rgba(238, 242, 255, 0) 70%), var(--bg); }
.auth { width: 100%; max-width: 420px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-size: 30px; font-weight: 650; letter-spacing: -.03em; margin: 16px 0 6px; }
.sub { color: var(--muted); white-space: pre-line; }
.logo { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(150deg, #5584ff, #2447d9); box-shadow: 0 8px 20px -8px rgba(43, 92, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.logo svg { width: 78%; height: 78%; display: block; }
.auth .card { margin-bottom: 14px; }
.card-h1 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 4px; }
.join-row { display: flex; gap: 8px; }
.textlink { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 14px; text-decoration: none; margin-top: 18px; }
.textlink:hover { color: var(--accent-600); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line-strong); flex: 1; }
.viewer-btn { height: auto; padding: 14px 18px; justify-content: flex-start; text-align: left; gap: 14px; background: rgba(255, 255, 255, .7); }
.viewer-btn strong { display: block; font-weight: 600; }
.viewer-btn small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 20px; }
.card.elevated { box-shadow: var(--shadow-md); }
.card.flat { box-shadow: none; background: rgba(255, 255, 255, .6); }
.card-title { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-head .card-title { margin-bottom: 14px; }
.count { font-size: 12px; font-weight: 600; color: var(--muted); background: #f0f2f6; border-radius: 999px; padding: 1px 9px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--accent-50); color: var(--accent-600); }
.badge.solid { background: var(--ink); color: #fff; padding: 4px 11px; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.badge.warn .dot { background: #f79009; width: 6px; height: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px 28px; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.top .logo { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(43, 92, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .3); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.02em; }
.crumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.sname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #067647; background: #ecfdf3; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.live.off { color: #b54708; background: var(--warn-bg); }
.live.off .dot { background: #f79009; }
.top-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-sm); transition: border-color .15s; }
.chip-btn:hover { border-color: var(--line-strong); }
.chip-btn:not(:has(.mini-avatar)) { padding-left: 12px; }
.mini-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-50); color: var(--accent-600); font-size: 10px; font-weight: 700; }

/* ---------- Session layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding: 28px; max-width: 1360px; margin: 0 auto; align-items: start; }
.side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding: 2px; margin: -2px; scrollbar-width: thin; }
.footer { text-align: center; font-size: 12px; color: var(--faint); padding: 8px 16px 32px; }

.hero { padding: 32px; }
.hero-grid { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-main { flex: 1; min-width: 260px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.jira { display: inline-block; margin: 10px 0 8px; font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 13px; font-weight: 600; color: var(--accent-600); background: var(--accent-50); border-radius: 8px; padding: 3px 10px; }
.card h2.ticket-title { font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; text-transform: none; color: var(--text); margin: 0; overflow-wrap: anywhere; }
.ticket-note { color: var(--muted); font-size: 16px; margin-top: 10px; }
.timer-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ring { position: relative; width: 140px; height: 140px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: #edf0f5; }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke .3s; }
.ring-fg.low { stroke: var(--danger); }
.timer { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.timer.low { color: var(--danger); }
.timer-ctl { display: flex; gap: 6px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 36px 12px; color: var(--muted); }
.empty strong { color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.empty.slim { padding: 8px 12px 20px; }
.empty-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent-50); color: var(--accent); margin-bottom: 8px; }

/* ---------- Voting ---------- */
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.tally-item { background: #f9fafb; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tally-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tally-role { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tally-n { font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bar { height: 5px; border-radius: 99px; background: #e8ebf1; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .35s var(--ease); }
.tally-item.done .bar i { background: var(--ok); }
.tally-item.done .tally-n { color: #067647; }
.cards { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin: 20px 0 8px; padding-top: 6px; }
.vote { aspect-ratio: 5 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(180deg, #fff, #f6f8fc); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 16px -10px rgba(16, 24, 40, .18); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s, background .2s; }
.vote small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.vote.word { font-size: clamp(20px, 2.2vw, 28px); }
.vote:hover:not(:disabled) { transform: translateY(-5px); border-color: #aac0ff; box-shadow: 0 18px 30px -14px rgba(43, 92, 255, .4); }
.vote[aria-checked="true"] { background: linear-gradient(160deg, #5584ff, #2447d9); border-color: transparent; color: #fff; transform: translateY(-7px); box-shadow: 0 22px 34px -14px rgba(43, 92, 255, .6), 0 0 0 4px rgba(43, 92, 255, .14); }
.vote[aria-checked="true"] small { color: #d6e2ff; }
.viewer-note { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 28px 12px; border: 1px dashed var(--line-strong); border-radius: 16px; margin: 16px 0 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* ---------- Results ---------- */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.group { background: #fbfcfe; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.group.discuss { background: var(--warn-bg); border-color: var(--warn-line); }
.group header { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.group h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.assigned { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 14px; }
.assigned .big { font-size: 68px; font-weight: 650; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.group.discuss .assigned .big { color: var(--warn); }
.assigned .cap { color: var(--muted); font-size: 14px; }
.scale { display: flex; justify-content: space-between; margin-bottom: 16px; position: relative; }
.scale::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; background: var(--line); transform: translateY(-50%); }
.node { position: relative; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--faint); }
.node.in { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-600); }
.node.end { background: var(--accent); border-color: var(--accent); color: #fff; }
.group.discuss .node.in { background: #fef0c7; border-color: var(--warn-line); color: var(--warn); }
.group.discuss .node.end { background: #f79009; border-color: #f79009; }
.votes { list-style: none; margin: 0; padding: 0; }
.votes li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(16, 24, 40, .06); }
.votes .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.chip { min-width: 40px; text-align: center; padding: 2px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 650; }
.chip.top { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.flag { background: #fff; border-color: #f79009; color: var(--warn); }
.final { margin-top: 16px; border-radius: 20px; padding: 22px 26px; color: #fff; background: radial-gradient(500px 200px at 0% 0%, #1d3a8f 0%, rgba(29, 58, 143, 0) 70%), linear-gradient(135deg, #12204a, var(--ink)); }
.final-title { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9db2ee; margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { text-align: center; padding: 4px 8px; }
.tile + .tile { border-left: 1px solid rgba(255, 255, 255, .12); }
.tile .lbl { font-size: 13px; color: #9db2ee; font-weight: 550; }
.tile .val { font-size: 54px; font-weight: 650; letter-spacing: -.05em; line-height: 1.1; }
.tile select { max-width: 120px; height: 32px; margin-top: 8px; font-size: 13px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; border-radius: 10px; }
.tile select option { color: var(--text); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* ---------- Sidebar ---------- */
.avatar { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef1f7; color: #475467; font-size: 12px; font-weight: 650; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.avatar .status { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #c4cad6; border: 2px solid #fff; }
.avatar.on .status { background: var(--ok); }
.people-group { margin-bottom: 14px; }
.people-group h3 { font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.person { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.person .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.person .nm.off { color: var(--faint); }
.check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ecfdf3; color: #067647; }
.watching { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
.tickets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trow { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.trow:hover { border-color: var(--line-strong); }
.trow.active { border-color: var(--accent-100); background: linear-gradient(180deg, #f6f9ff, #fff); box-shadow: inset 3px 0 0 var(--accent); }
.tj { display: flex; align-items: center; gap: 8px; font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 12px; font-weight: 600; color: var(--accent-600); }
.tt { font-weight: 550; overflow-wrap: anywhere; margin-top: 2px; }
.tn { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pts { margin-top: 8px; font-size: 12px; font-weight: 600; color: #344054; background: #f2f4f7; border-radius: 8px; padding: 3px 9px; display: inline-block; letter-spacing: .01em; white-space: pre; }
.acts { display: flex; gap: 2px; margin-top: 10px; align-items: center; }
.acts .primary { margin-right: 4px; }
.trow.editing input { margin-bottom: 8px; height: 38px; }
.add-form input { margin-bottom: 8px; }

/* ---------- Dialog & toast ---------- */
dialog { border: 0; border-radius: 22px; box-shadow: 0 24px 60px -12px rgba(16, 24, 40, .35); padding: 26px; width: min(380px, 92vw); }
dialog::backdrop { background: rgba(11, 18, 32, .4); backdrop-filter: blur(3px); }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: 90vw; z-index: 50; box-shadow: 0 12px 30px -10px rgba(16, 24, 40, .5); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Past sessions (admin) ---------- */
.page { max-width: 880px; margin: 0 auto; padding: 36px 20px 64px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 30px; font-weight: 650; letter-spacing: -.03em; margin-bottom: 4px; }
.sess { padding: 0; overflow: hidden; margin-bottom: 14px; }
.sess-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 20px 24px; background: none; border: 0; text-align: left; transition: background .15s; }
.sess-head:hover { background: #fafbfd; }
.sess-head > .ico { color: var(--faint); transition: transform .2s var(--ease); }
.sess.open .sess-head > .ico { transform: rotate(90deg); }
.sess-main { flex: 1; min-width: 0; }
.sess-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 13px; margin-top: 2px; }
.detail { padding: 4px 24px 24px; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin: 12px 0 4px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { white-space: nowrap; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.pt { text-align: center; width: 70px; font-weight: 650; font-size: 17px; color: var(--accent-600); }
.jira-cell { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; font-weight: 600; color: var(--accent-600); white-space: nowrap; }

/* ---------- Presenter view ---------- */
body.presenter .admin-only { display: none !important; }
body.presenter .layout { grid-template-columns: 1fr; max-width: 1560px; padding-top: 36px; }
body.presenter .side { display: none; }
body.presenter .card.hero { padding: 44px; }
body.presenter .card h2.ticket-title { font-size: 60px; }
body.presenter .jira { font-size: 20px; }
body.presenter .ticket-note { font-size: 22px; }
body.presenter .ring { width: 240px; height: 240px; }
body.presenter .timer { font-size: 64px; }
body.presenter .tally-n { font-size: 30px; }
body.presenter .tally-role { font-size: 14px; }
body.presenter .vote { font-size: 56px; }
body.presenter .assigned .big { font-size: 112px; }
body.presenter .group h3 { font-size: 15px; }
body.presenter .votes li { font-size: 20px; padding: 12px 0; }
body.presenter .chip { font-size: 20px; }
body.presenter .node { width: 38px; height: 38px; font-size: 15px; }
body.presenter .tile .val { font-size: 96px; }
body.presenter .tile .lbl, body.presenter .final-title { font-size: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding: 16px 14px 32px; }
  .side { position: static; max-height: none; overflow: visible; }
  .top { padding: 10px 14px; flex-wrap: wrap; gap: 10px 12px; }
  .crumb { flex: 1; border-left: 0; padding-left: 0; }
  .top-actions { order: 3; flex-basis: 100%; justify-content: flex-start; }
  body.presenter .side { display: block; }
}
@media (max-width: 640px) {
  .brand-name { display: none; }
  .card { padding: 18px; border-radius: 18px; }
  .hero { padding: 22px 20px; }
  .hero-grid { gap: 20px; }
  .card h2.ticket-title { font-size: 26px; }
  .timer-box { flex-direction: row; width: 100%; justify-content: space-between; }
  .ring { width: 104px; height: 104px; }
  .timer { font-size: 26px; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .vote { aspect-ratio: 4 / 5; font-size: 30px; border-radius: 16px; }
  .vote.word { font-size: 18px; }
  .tally { gap: 8px; }
  .tally-item { padding: 10px; }
  .assigned .big { font-size: 56px; }
  .tile .val { font-size: 38px; }
  .tiles { gap: 0; }
  .final { padding: 18px 12px; }
  .top-actions .btn:not(.icon) { padding: 0 10px; }
  body.presenter .card h2.ticket-title { font-size: 34px; }
  body.presenter .ring { width: 120px; height: 120px; }
  body.presenter .timer { font-size: 30px; }
  body.presenter .assigned .big { font-size: 64px; }
  body.presenter .tile .val { font-size: 44px; }
  .sess-head { padding: 16px; }
  .detail { padding: 4px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
table.data th.pt { text-align: center; }

/* ---------- Loading ---------- */
.loader { display: flex; flex-direction: column; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; animation: fade .4s .15s both; }
.loader-mark { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.loader-mark .logo { width: 56px; height: 56px; border-radius: 17px; animation: breathe 2.2s ease-in-out infinite; }
.loader .orbit { position: absolute; inset: -12px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); border-right-color: rgba(43, 92, 255, .25); animation: spin 1.1s cubic-bezier(.55, .15, .45, .85) infinite; }
.loader p { animation: pulse 1.8s ease-in-out infinite; letter-spacing: .01em; }
.loader.boot { position: fixed; inset: 0; justify-content: center; }
.skel-list { display: grid; gap: 14px; }
.skel { display: grid; gap: 10px; padding: 22px 24px; margin: 0; }
.skel i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eef0f4 25%, #f8f9fb 50%, #eef0f4 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel .l1 { width: 46%; height: 18px; }
.skel .l2 { width: 72%; }
.auth, .layout, .page { animation: rise .5s var(--ease) both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Casting a vote ---------- */
.vote { position: relative; }
.vote[aria-checked="true"]::before { content: "✓"; position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.vote.cast { animation: cast .6s var(--ease) var(--el, 0s); }
.vote.cast::before { animation: pop .45s var(--ease) both; animation-delay: calc(.12s + var(--el, 0s)); }
.vote.cast::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--accent); pointer-events: none; animation: ripple .8s ease-out var(--el, 0s) forwards; }
@keyframes cast { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-14px) scale(1.08); } 70% { transform: translateY(-5px) scale(.99); } 100% { transform: translateY(-7px) scale(1); } }
@keyframes ripple { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.4); } }
.tally-item { transition: border-color .3s, background .3s, transform .3s var(--ease); }
.tally-item.pulse { animation: tallyPulse .7s var(--ease); }
@keyframes tallyPulse { 0% { transform: scale(1); } 40% { transform: scale(1.04); box-shadow: 0 0 0 5px rgba(18, 183, 106, .18); } 100% { transform: scale(1); } }
.check.new { animation: pop .5s var(--ease) both; }

/* ---------- Ticket changes & the reveal ---------- */
.swap { animation: rise .45s var(--ease) both; }
.fresh .group { animation: rise .55s var(--ease) both; }
.fresh .group:nth-child(2) { animation-delay: .09s; }
.fresh .group:nth-child(3) { animation-delay: .18s; }
.fresh .chip { animation: pop .4s var(--ease) both; animation-delay: .35s; }
.final { position: relative; }
.final-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.final-head .final-title { margin: 0; }
.saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #8ee6b8; background: rgba(18, 183, 106, .16); border-radius: 999px; padding: 3px 11px 3px 9px; }
.fresh .saved { animation: pop .5s .9s var(--ease) both; }
.fresh .saved svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s 1.05s ease-out forwards; }
.fresh .final { animation: rise .6s .25s var(--ease) both; }
.fresh .final::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%); background-size: 260% 100%; background-position: 130% 0; animation: sheen 1.3s .7s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sheen { to { background-position: -30% 0; } }
.burst { position: absolute; left: 50%; top: 30%; width: 0; height: 0; pointer-events: none; z-index: 6; }
.burst i { position: absolute; left: 0; top: 0; border-radius: 2px; }

/* ---------- Closing a ticket & completed results ---------- */
#r-ticket, #r-vote { transition: opacity .4s ease, transform .45s var(--ease), filter .4s ease; }
#r-ticket.away, #r-vote.away { opacity: 0; transform: translateY(-12px) scale(.985); filter: blur(2px); }
.closing { position: relative; }
.closing::before { content: ""; position: absolute; inset: -6px; border-radius: 22px; background: rgba(255, 255, 255, .74); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fade .35s ease both; z-index: 4; }
.seal { position: absolute; left: 50%; top: 50%; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translate(-50%, -50%); animation: sealIn .55s var(--ease) both; }
.seal svg { width: 104px; height: 104px; filter: drop-shadow(0 12px 18px rgba(18, 183, 106, .28)); }
.seal circle { fill: #ecfdf3; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .6s .1s ease-out forwards; }
.seal path { fill: none; stroke: #067647; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .55s ease-out forwards; }
.seal span { font-size: 18px; font-weight: 650; letter-spacing: -.01em; color: #067647; animation: rise .4s .6s both; }
@keyframes sealIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.8); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: rgba(18, 183, 106, .16); } 100% { background: rgba(18, 183, 106, 0); } }
.empty-ico.ok { background: #ecfdf3; color: #067647; }

.dlist { list-style: none; margin: 0; padding: 0; }
.drow { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--line); border-radius: 10px; }
.drow:first-child { border-top: 0; }
.drow.new { animation: rowIn .6s var(--ease) both, flash 2.2s .25s ease-out; }
.ok-dot { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ecfdf3; color: #067647; }
.jira.sm { margin: 0; font-size: 12px; flex: none; }
.dtitle { flex: 1 1 120px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.dpts { display: flex; gap: 6px; flex: none; }
.mp { display: inline-flex; align-items: baseline; gap: 6px; background: #f2f4f7; border-radius: 9px; padding: 3px 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mp b { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dacts { display: flex; gap: 2px; flex: none; }
.dtotal { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.dtotal > span:first-child { margin-right: auto; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drow.editing { display: block; background: #fafbfd; border: 1px solid var(--line); padding: 14px; margin: 6px 0; }
.edit-grid { display: grid; gap: 8px; margin-bottom: 10px; }
.edit-grid input { height: 40px; }
.pts-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pts-edit label { font-size: 12px; margin-bottom: 4px; }
.pts-edit select { height: 40px; }
.trow.done { background: #fbfcfd; }
.trow.done .tt { color: #475467; }
.trow.just { animation: flash 2.4s ease-out; }
.badge.ok { background: #ecfdf3; color: #067647; }
.tj .badge.ok { padding: 1px 8px 1px 6px; }

@media (max-width: 640px) {
  .drow { flex-wrap: wrap; row-gap: 8px; }
  .dtitle { flex-basis: calc(100% - 140px); white-space: normal; }
  .dpts { order: 5; margin-left: 36px; }
  .dacts { order: 6; margin-left: auto; }
  .seal svg { width: 80px; height: 80px; }
}
