:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f6f7fb;
  --card: #fff;
  --surface: #fafbfe;
  --glass: rgb(255 255 255 / 76%);
  --ink: #181728;
  --muted: #555971;
  --border: #e1e3ed;
  --field-border: #cdd2e2;
  --accent: #4d35cf;
  --accent-hover: #3824ac;
  --tint: #eeecfb;
  --tint-hover: #e6e0fa;
  --dark: #201837;
  --focus: #6244ea;
  --accent-glow: rgb(74 52 214 / 26%);
  --radius: 25px;
  --shadow: 0 23px 58px rgb(28 28 64 / 7%), 0 2px 8px rgb(28 28 64 / 4%);
}
*, *::before, *::after { box-sizing:border-box; }
html { min-width:320px; scroll-behavior:smooth; }
body {
  margin:0; color:var(--ink); font-size:16px; line-height:1.55; min-height:100vh;
  background:radial-gradient(ellipse at 80% 0%,#edefed00 10%,#f1effb 52%,transparent 75%) 0 0/100% 36rem no-repeat,
             radial-gradient(ellipse at 15% 5%,#e8f1ff 0%,transparent 52%) 0 0/100% 40rem no-repeat,var(--paper);
}
::selection { color:#291654; background:#dbd0fe; }
a { color:var(--accent); text-decoration:none; }
button, input, textarea, select { font:inherit; color:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.48; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
[hidden] { display:none !important; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { line-height:1.1; letter-spacing:-.04em; }
h1 { font-size:clamp(2.3rem,4.8vw,4.4rem); font-weight:750; }
h2 { font-size:clamp(1.28rem,2.7vw,2rem); font-weight:730; }
h3 { font-size:1.04rem; }
p { overflow-wrap:anywhere; }
small,.small { color:var(--muted); font-size:.9rem; }
ul,ol { margin:0; padding:0; list-style:none; }
.shell { width:min(1160px,calc(100% - 64px)); margin-inline:auto; }
.skip { position:fixed; top:.6rem; left:.6rem; z-index:30; padding:.6rem 1rem; background:white; border-radius:12px; transform:translateY(-180%); }
.skip:focus { transform:none; }
#header {
  position:sticky; top:0; background:#f8f9fd; border-bottom:1px solid rgb(109 111 157 / 17%); z-index:10;
}
@supports ((backdrop-filter:blur(10px)) or (-webkit-backdrop-filter:blur(10px))) {
  #header { background:var(--glass); -webkit-backdrop-filter:blur(22px) saturate(1.3); backdrop-filter:blur(22px) saturate(1.3); }
}
.top,.head-actions,.top nav,.brand,.language,.actions,.home-actions { display:flex; align-items:center; }
.top { min-height:68px; gap:2rem; display:grid; grid-template-columns:1fr auto 1fr; }
.brand { gap:.62rem; color:var(--ink); font-size:1.22rem; font-weight:790; letter-spacing:-.058em; white-space:nowrap; }
.brandmark { width:34px; height:34px; border-radius:11px; display:grid; place-items:center; overflow:hidden; background:linear-gradient(155deg,#8466ff,#4525d0 78%); box-shadow:inset 0 1px 2px #ffffff80; }
.brandmark i { width:14px; height:14px; border-radius:5px; border:2px solid white; transform:rotate(-17deg); position:relative; }
.brandmark i::after { content:""; background:white; width:4px; height:4px; border-radius:1px; position:absolute; top:3px; left:3px; }
.top nav { gap:.25rem; font-weight:670; font-size:.94rem; background:#e8e9f480; padding:3px; border-radius:14px; }
.top nav a { color:var(--muted); white-space:nowrap; padding:.43rem .75rem; border-radius:11px; }
.top nav a:hover { color:var(--accent); background:#fff9; }
.top nav a[aria-current=page] { color:var(--ink); background:var(--card); box-shadow:0 1px 5px #22254a13; }
.head-actions { margin-left:auto; gap:.8rem; }
.language { background:#eaeaf2; padding:3px; border-radius:13px; }
.language button { border:0; border-radius:10px; background:transparent; min-width:36px; color:#4e4e66; padding:.24rem .42rem; font-weight:710; font-size:.84rem; }
.language button[aria-pressed=true] { color:var(--ink); background:white; box-shadow:0 1px 4px #29244119; }
.account { position:relative; }
summary { cursor:pointer; }
.account summary { list-style:none; font-weight:690; white-space:nowrap; font-size:.94rem; padding:.45rem .8rem; border:1px solid var(--border); border-radius:12px; background:white; max-width:15ch; overflow:hidden; text-overflow:ellipsis; }
.account .menu { position:absolute; inset:calc(100% + 8px) 0 auto auto; display:grid; min-width:235px; z-index:12; padding:7px; border:1px solid var(--border); background:white; border-radius:17px; box-shadow:var(--shadow); }
.menu a,.menu button,.account-roles { padding:.6rem .65rem; text-align:left; border:0; border-radius:9px; background:none; color:var(--ink); font-size:.92rem; }
.menu a:hover,.menu button:hover { background:var(--tint); color:var(--accent); }
.account-roles { color:var(--muted); }
.button { display:inline-flex; gap:.38rem; align-items:center; justify-content:center; text-align:center; flex-shrink:0; border:1px solid transparent; border-radius:12px; padding:.62rem 1.02rem; font-weight:700; font-size:.93rem; line-height:1.32; min-height:44px; transition:background .18s,border-color .18s,box-shadow .18s,transform .18s; }
.button.primary {
  background:linear-gradient(155deg,#654de6,var(--accent) 60%,#4231be);
  color:#fff; box-shadow:0 10px 20px var(--accent-glow),inset 0 1px 1px #c1b7fa75;
}
.button.primary:not(:disabled):hover { background:var(--accent-hover); }
.button:not(:disabled):active { transform:translateY(1px); }
.button.dark { background:var(--dark); color:white; }
.button.dark:hover { background:#342957; }
.button.light { background:var(--tint); color:var(--accent-hover); }
.button.light:hover { background:var(--tint-hover); }
.button.quiet, .button.text { color:var(--accent); background:transparent; }
.button.quiet:hover,.button.text:hover { background:#efedff; }
.button.wide { width:100%; }
.card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
.welcome {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.32fr) minmax(300px,.85fr);
  align-items:center;
  gap:clamp(1.5rem,4vw,4.5rem);
  margin-top:clamp(1rem,3vw,2.3rem);
  padding:clamp(1.6rem,5.6vw,4.9rem);
  border-radius:clamp(24px,4vw,42px);
  border:1px solid #e7e7f3;
  background:
    radial-gradient(ellipse at 94% -12%,#d4f0ff 0%,transparent 56%),
    radial-gradient(ellipse at 89% 104%,#d5c7ff 4%,transparent 60%),
    linear-gradient(125deg,#fff 13%,#f7f5ff 71%,#e7e9ff 100%);
  box-shadow:0 24px 60px #2720670c;
}
.welcome::before,.welcome::after {
  content:"";
  z-index:-1;
  pointer-events:none;
  position:absolute;
  border-radius:50%;
}
.welcome::before {
  width:38rem;
  height:25rem;
  right:-6rem;
  bottom:-13rem;
  transform:rotate(-23deg);
  background:linear-gradient(154deg,#bda3ff 16%,#729efe 45%,#beedff 86%);
  opacity:.52;
  filter:blur(44px);
}
.welcome::after {
  width:38rem;
  height:24rem;
  right:-10rem;
  top:-12rem;
  border:1px solid #fff9;
  box-shadow:0 0 0 2rem #fff3,0 0 0 4.7rem #fff3,0 0 0 7.6rem #fff2;
  transform:rotate(-21deg);
}
.welcome h1 {
  font-size:clamp(3rem,5.75vw,6.25rem);
  letter-spacing:-.077em;
  line-height:.97;
}
.welcome h1 span {
  display:block;
  color:#4c35c0;
}
@supports (background-clip:text) {
  .welcome h1 span {
    background:linear-gradient(108deg,#4b30bc 1%,#6246da 47%,#4261bc 96%);
    background-clip:text;
    color:transparent;
  }
}
.welcome-copy > p {
  color:var(--muted);
  font-size:clamp(1rem,1.67vw,1.2rem);
  line-height:1.58;
  max-width:43ch;
  margin-top:1.35rem;
}
.home-actions { flex-wrap:wrap; gap:.5rem; margin-top:1.45rem; }
.join-card {
  border:1px solid #fffe;
  background:rgb(255 255 255 / 84%);
  padding:clamp(1.1rem,2.7vw,2rem);
  display:grid;
  gap:.6rem;
  box-shadow:0 16px 38px #44389018,0 2px 8px #40327a09;
}
@supports ((backdrop-filter:blur(10px)) or (-webkit-backdrop-filter:blur(10px))) {
  .join-card {
    background:rgb(255 255 255 / 71%);
    -webkit-backdrop-filter:blur(20px) saturate(1.22);
    backdrop-filter:blur(20px) saturate(1.22);
  }
}
.join-heading { display:flex; align-items:flex-start; gap:.75rem; margin-bottom:.5rem; }
.join-heading h2 { margin:.09rem 0 .35rem; font-size:clamp(1.35rem,2.2vw,1.85rem); }
.join-heading p { color:var(--muted); font-size:.94rem; line-height:1.45; }
.join-heading .join-symbol { flex:none; margin:0; }
.join-symbol { width:46px; height:46px; border-radius:15px; background:#eee9fe; display:grid; grid-template-columns:repeat(2,7px); grid-template-rows:repeat(2,7px); place-content:center; gap:4px; margin-bottom:.28rem; }
.join-symbol span { width:7px; height:7px; background:#5230d4; border-radius:2.5px; }
.join-symbol span:last-child { background:#9b84ff; }
label { display:grid; gap:.34rem; font-weight:650; font-size:.94rem; }
label > span,.email-field summary { color:var(--muted); font-weight:510; font-size:.88rem; }
.join-card label { display:block; margin-top:.12rem; }
.email-field > label { margin-top:.61rem; }
input:not([type=checkbox]), textarea, select { display:block; width:100%; min-width:0; border:1px solid var(--field-border); border-radius:12px; background:var(--surface); padding:.6rem .76rem; min-height:44px; outline-offset:1px; }
textarea { resize:vertical; }
input[type=checkbox] { accent-color:var(--accent); width:17px; height:17px; margin:0; }
input.pin-input { font-size:1.64rem; font-weight:740; letter-spacing:.29em; font-variant-numeric:tabular-nums; }
input.pin-input::placeholder { color:#626883; opacity:1; }
.email-field { margin:.15rem 0; }
.email-field summary { padding:.35rem 0; }
.email-field input + label { margin-top:.62rem; }
.email-field input { margin-top:.45rem; }
.email-field small { display:block; margin-top:.3rem; }
.join-card .button { margin-top:.4rem; }
.form-error { color:#a72446 !important; margin:0 !important; }
.home-preview { padding:clamp(1rem,3vw,2rem) 0 55px; }
.preview-backdrop { position:relative; overflow:hidden; min-height:289px; border-radius:31px; padding:clamp(24px,5vw,54px); display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); align-items:center; gap:10%; color:white; background:
 radial-gradient(ellipse at 89% -11%,#755ed3 0%,transparent 54%),
 radial-gradient(ellipse at 72% 126%,#534ab8 0%,transparent 68%),
 linear-gradient(136deg,#211636 5%,#362667 73%,#3b50a0 100%); }
.preview-backdrop::after { content:""; position:absolute; width:460px; height:460px; border-radius:50%; bottom:-360px; left:-65px; border:42px solid #efe6ff0e; pointer-events:none; }
.preview-tag { display:inline-flex; align-items:center; gap:.5rem; border-radius:8px; padding:.13rem .5rem; background:#ffffff26; font-size:.84rem; font-weight:700; color:#f5efff; }
.preview-tag .live-dot { background:#b9a5ff; box-shadow:0 0 0 3px #ba9dff46; }
.preview-caption > p { color:#dcd3fa; margin:.55rem 0 .35rem; font-size:.9rem; }
.preview-caption h2 { font-size:clamp(1.6rem,3.5vw,2.85rem); }
.preview-options { display:grid; gap:.4rem; margin-top:.8rem; }
.preview-options > div { display:flex; align-items:center; gap:.55rem; background:#ffffff17; border:1px solid #ffffff16; border-radius:10px; padding:.34rem .55rem; }
.preview-options b { display:grid; place-items:center; background:#fff2; border-radius:6px; width:24px; height:24px; font-size:.82rem; }
.preview-plan {
  background:rgb(255 255 255 / 94%); border:1px solid #ffffffbf;
  color:var(--ink); border-radius:22px; padding:1.05rem; box-shadow:0 20px 54px #110b3955;
}
.preview-plan .muted-label { margin:.18rem .45rem .5rem; }
.preview-row { display:flex; align-items:center; gap:.55rem; padding:.45rem .5rem; font-size:.88rem; border-radius:9px; }
.preview-row .step-icon { width:30px; height:30px; border-radius:9px; font-size:.98rem; }
.preview-row.current { background:#eeebff; color:#492bc2; }
.preview-row i { width:7px; height:7px; border-radius:50%; background:#6b41e8; margin-left:auto; }
.page { padding:42px 0 65px; }
.page-header { display:flex; align-items:end; justify-content:space-between; gap:1.2rem; margin-bottom:1.6rem; }
.page-header p { margin-top:.5rem; color:var(--muted); font-size:1.04rem; }
.page-header h1 { overflow-wrap:anywhere; }
.actions { flex-wrap:wrap; gap:.6rem; }
.empty { padding:clamp(1.4rem,5vw,4rem); text-align:center; display:grid; place-items:center; gap:.8rem; }
.empty p { max-width:52ch; color:var(--muted); }
.big-mark { display:grid; place-items:center; border-radius:17px; width:50px; height:50px; background:var(--tint); color:var(--accent); font-size:1.65rem; font-weight:740; }
.loader { padding:3rem; text-align:center; color:var(--muted); }
.access { padding:1.6rem; display:grid; gap:1rem; }
.access-actions { display:flex; flex-wrap:wrap; gap:.6rem; }
.role-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:1rem; margin-top:1rem; }
.role-row,.role-strip { background:#eeedf7; border:1px solid #e5e3ef; border-radius:16px; padding:.85rem 1rem; }
.role-row p { color:var(--muted); font-size:.92rem; margin-top:.4rem; }
.role-strip { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem 1rem; margin-top:1.4rem; }
.role-strip a { margin-left:auto; }
.state { display:inline-flex; align-items:center; border-radius:99px; padding:.14rem .55rem; color:#53566a; background:#ededf4; font-size:.82rem; font-weight:730; white-space:nowrap; }
.state-live { color:#075d47; background:#daf6eb; }
.state-scheduled { color:#4b31c2; background:#ece7ff; }
.state-ended { color:#514865; background:#eee9f2; }
.room-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(246px,1fr)); gap:1rem; }
.room-card { padding:1.25rem; display:grid; justify-items:start; gap:.6rem; }
.room-card p { color:var(--muted); }
.table-card { overflow:auto; margin:.8rem 0 1.4rem; }
table { width:100%; border-collapse:collapse; text-align:left; min-width:475px; }
th,td { padding:.75rem 1rem; border-bottom:1px solid var(--border); }
.quiet-link { display:inline-flex; color:var(--muted); font-weight:680; margin-bottom:.75rem; }
.quiet-link:hover { color:var(--accent); }
.plan-title { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; }
.tabs { display:inline-flex; padding:4px; background:#eae9f3; border-radius:13px; gap:3px; margin-bottom:1rem; }
.tabs button { border:0; border-radius:10px; padding:.45rem .72rem; color:var(--muted); font-weight:690; background:transparent; }
.tabs button[aria-pressed=true] { background:white; color:var(--ink); box-shadow:0 2px 4px #12063115; }
.editor-layout { display:grid; grid-template-columns:minmax(255px,1fr) minmax(0,2fr); gap:1rem; align-items:start; }
.timeline { padding:1rem; position:sticky; top:90px; }
.side-head { display:flex; align-items:center; justify-content:space-between; gap:.63rem; margin-bottom:.75rem; }
.side-head h2 { font-size:1.24rem; }
.side-head > span:not(.state) { color:#5a4d87; font-size:.88rem; font-weight:700; background:var(--tint); padding:.15rem .46rem; border-radius:7px; }
.timeline ol { display:grid; gap:.35rem; margin-bottom:.8rem; }
.timeline li button { background:transparent; border:1px solid transparent; border-radius:13px; width:100%; min-height:57px; text-align:left; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.55rem; padding:.44rem; }
.timeline button[aria-current=true] { background:#efebff; border-color:#e6ddff; color:#38219a; }
.timeline button:hover { background:#f0eef7; }
.timeline li strong { overflow-wrap:anywhere; display:block; line-height:1.21; font-size:.91rem; }
.timeline li small { display:block; font-size:.8rem; }
.timeline li em { font-style:normal; color:#6d6480; font-size:.8rem; }
.step-icon { width:36px; height:36px; color:#4e2dbf; border-radius:11px; flex:none; display:inline-grid; place-items:center; background:#eeebff; font-size:1.1rem; font-weight:770; }
.kind-poll,.kind-qa { color:#08654a; background:#dff7eb; }
.kind-files { color:#034c99; background:#e0edff; }
.kind-moodle { color:#8b430f; background:#ffecdc; }
.kind-link,.kind-quizroom { color:#7b205a; background:#fbe5f2; }
.section { padding:1.25rem; margin-bottom:1rem; }
.section > label,.section > .inspector,.moodle-picker { margin-top:.7rem; }
.form-duo { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin:.65rem 0; }
.clock-setting { align-items:end; }
.clock-setting p { padding-bottom:.28rem; }
.tick { display:flex; align-items:center; gap:.55rem; }
.editor-head { flex-wrap:wrap; }
.step-heading { display:flex; align-items:center; gap:.6rem; }
.step-heading h2 { overflow-wrap:anywhere; }
.muted-label { color:var(--muted); font-size:.86rem; font-weight:650; }
.mini-actions { display:flex; align-items:center; gap:.23rem; }
.mini-actions button { display:grid; place-items:center; width:35px; height:35px; border:1px solid var(--border); border-radius:8px; background:#f7f6fc; font-size:1.14rem; font-weight:710; }
.inspector { padding:.62rem .72rem; border:1px solid var(--border); border-radius:13px; background:#fafafe; margin-bottom:.4rem; }
.inspector summary { font-weight:690; }
.inspector[open] summary { margin-bottom:.55rem; }
.inspector label + label { margin-top:.45rem; }
.note { padding:.55rem .75rem; background:#f3efff; border-radius:10px; margin-top:.45rem; }
.audience-layout { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(246px,1fr); gap:1rem; align-items:start; }
.audience-layout.solo { grid-template-columns:minmax(0,1fr); max-width:890px; }
.people { background:#e9e7f4; border-radius:12px; color:#5a4d87; font-size:.89rem; font-weight:700; padding:.32rem .7rem; white-space:nowrap; }
.stage { min-width:0; }
.card.stage {
  background:radial-gradient(ellipse at 100% 0%,#f6f3ff,transparent 66%),var(--card);
}
.preview-option,.option span,.actions,.jump-list li strong { overflow-wrap:anywhere; }
.stage-body,.waiting { padding:clamp(1.25rem,4vw,2.6rem); }
.stage-meta { display:flex; align-items:center; justify-content:space-between; gap:.8rem; margin-bottom:.8rem; }
.stage-chip { display:flex; align-items:center; gap:.5rem; color:#55516e; font-weight:670; font-size:.92rem; }
.stage-body h2 { font-size:clamp(1.85rem,4vw,3.55rem); overflow-wrap:anywhere; }
.step-description,.readable { margin:.8rem 0; color:#575972; font-size:1.03rem; }
.readable { border-left:3px solid #957cff; padding-left:.85rem; max-height:310px; overflow:auto; }
.timer { position:relative; display:grid; gap:.2rem; text-align:right; min-width:62px; font-variant-numeric:tabular-nums; font-weight:740; color:var(--accent); }
progress { width:100%; height:5px; accent-color:#7c54f0; border:0; background:#e5e0f8; border-radius:9px; overflow:hidden; }
progress::-webkit-progress-bar { background:#e5e0f8; }
progress::-webkit-progress-value { background:#7c54f0; }
.options { display:grid; gap:.55rem; margin-top:1.2rem; }
.option { position:relative; width:100%; text-align:left; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.65rem; background:#f8f7fd; color:var(--ink); border:1px solid #e6e0f4; border-radius:13px; padding:.55rem .6rem; min-height:48px; }
button.option:hover,.option.picked { background:#ede8ff; border-color:#bba7fd; }
.option.correct { background:#e4f8ee; border-color:#addbcd; }
.letter { display:grid; place-items:center; width:32px; height:32px; border-radius:8px; background:#e8e2fb; color:#4f32be; font-size:.93rem; font-weight:770; }
.option progress { grid-column:1/-1; }
.vote-total { font-weight:720; }
.notice { color:#096c4e; font-weight:660; padding-top:.45rem; }
.waiting { display:grid; place-items:start; gap:.55rem; }
.waiting p,.waiting time { color:var(--muted); }
.resources { margin-top:1rem; }
.question-list { display:grid; gap:.6rem; margin:.6rem 0; max-height:460px; overflow:auto; }
.question-list li,.compact-list li,.jump-list li { display:flex; align-items:center; justify-content:space-between; gap:.55rem; border-bottom:1px solid var(--border); padding:.35rem 0 .55rem; }
.question-list li > div,.compact-list li > div { min-width:0; overflow-wrap:anywhere; }
.question-list strong { color:#50437c; font-size:.91rem; }
.question-list p { line-height:1.34; }
.hidden-question { opacity:.54; }
.count { border:1px solid #e1d9f7; background:#f3efff; color:#5c32c8; border-radius:8px; padding:.28rem .5rem; flex:none; }
#question-form { display:grid; gap:.4rem; margin-top:.65rem; }
#question-form button { justify-self:end; }
#file-form { display:grid; gap:.5rem; margin-top:1rem; }
#file-form button { justify-self:start; }
.control-top { display:grid; grid-template-columns:minmax(16rem,1.8fr) repeat(3,minmax(0,1fr)); gap:.8rem; padding:1.1rem; margin-bottom:1rem; align-items:center; }
.room-share { display:flex; align-items:center; gap:.8rem; min-width:0; }
.join-qr {
  display:block; flex:none; width:clamp(88px,10vw,120px); height:auto; aspect-ratio:1;
  border-radius:11px; background:#fff; image-rendering:pixelated;
}
.pin-number { font-size:clamp(1.45rem,3.3vw,2.65rem); letter-spacing:.075em; font-weight:780; line-height:1.16; white-space:nowrap; font-variant-numeric:tabular-nums; }
.share-actions { display:flex; flex-wrap:wrap; gap:.2rem .35rem; margin-top:.4rem; }
.share-actions .button { font-size:.88rem; padding-inline:.58rem; }
.metric { display:grid; gap:.28rem; border-left:1px solid var(--border); padding-left:1rem; }
.metric span,.compact-list small { display:block; font-size:.86rem; color:var(--muted); }
.metric strong { font-size:clamp(1.25rem,3vw,2.05rem); line-height:1; }
.control-actions { border-bottom:1px solid var(--border); padding-bottom:.7rem; }
.inline-stage .stage-body,.inline-stage .waiting { padding:1rem 0 .35rem; }
.inline-stage h2 { font-size:clamp(1.55rem,2.7vw,2.6rem); }
.schedule-form { display:flex; align-items:end; gap:.7rem; flex-wrap:wrap; margin-top:.7rem; }
.jump-list li strong { flex:1; min-width:0; overflow-wrap:anywhere; }
.projection { min-height:calc(100vh - 74px); display:grid; grid-template-rows:auto 1fr auto; color:#faf8ff; padding:clamp(.8rem,3vw,2.5rem); background:radial-gradient(ellipse at 84% 12%,#55438e,transparent 62%),radial-gradient(ellipse at 87% 106%,#374778,transparent 60%),#1c162f; }
.projection-top,.projection-footer { display:flex; align-items:center; justify-content:space-between; gap:.7rem; }
.projection-top .quiet-link { color:#e7e1f9; margin:0; }
.projection .join-qr { width:clamp(108px,10.7vw,156px); }
.projection .pin-box .muted-label { color:#eae5ff; }
.projection-center { width:min(1100px,100%); margin:auto; }
.projection .stage-body h2 { font-size:clamp(2.35rem,7vw,6.2rem); }
.projection .stage-chip,.projection p,.projection .timer,.projection .readable { color:#eae5ff; }
.projection .option { color:#faf8ff; background:#ffffff15; border-color:#ffffff38; font-size:clamp(1rem,2vw,1.8rem); }
.projection .option.correct { background:#38b68a26; border-color:#7cf0cc; }
.projection .option small { color:#e6dcff; }
.projection-footer > div { display:flex; flex-wrap:wrap; gap:.25rem; }
.projection-footer i { width:12px; height:4px; background:#ffffff38; border-radius:4px; }
.projection-footer i.on { background:#c5afff; }
#main:fullscreen .projection { min-height:100vh; }
.toast { position:fixed; transition:opacity .18s ease; right:1rem; bottom:1rem; z-index:25; max-width:min(420px,calc(100% - 2rem)); border-radius:14px; padding:.65rem .9rem; background:#231a3e; color:white; box-shadow:0 8px 30px #19152f37; visibility:hidden; opacity:0; }
.toast.shown { visibility:visible; opacity:1; }
.toast.error { background:#8d1b40; }
.assessment-head { margin:.2rem 0 1rem; }
.assessment-head p,.report-note { color:var(--muted); margin-top:.4rem; }
.score-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.score-card {
  display:grid;
  align-content:start;
  gap:.7rem;
  padding:clamp(1rem,3vw,1.8rem);
  min-height:10rem;
  background:linear-gradient(150deg,#fff 40%,#f4f1ff 100%);
}
.score-card + .score-card { background:linear-gradient(150deg,#fff 40%,#eaf8ff 100%); }
.score-card h3 { font-size:1.12rem; }
.score-value {
  font-size:clamp(2.5rem,5.5vw,4.75rem);
  line-height:.96;
  letter-spacing:-.065em;
  font-variant-numeric:tabular-nums;
  font-weight:780;
  color:var(--accent);
}
.score-value > small { font-size:.46em; color:inherit; }
.score-card meter { width:100%; height:.58rem; accent-color:var(--accent); }
.score-card meter::-webkit-meter-bar { border:0; border-radius:6px; background:var(--tint); height:.58rem; }
.score-card meter::-webkit-meter-optimum-value { border-radius:6px; background:linear-gradient(90deg,#513bd2,#7b66ea); }
.score-card meter::-moz-meter-bar { border-radius:6px; background:#5d44d5; }
.score-delta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  margin-top:1rem;
  padding:clamp(1rem,3vw,1.6rem);
  color:#f6f3ff;
  background:linear-gradient(115deg,#251747,#362367 68%,#39407a);
  border-color:#2f245c;
}
.score-delta p { color:#e5dff8; margin-top:.3rem; }
.score-delta strong { font-size:clamp(1.7rem,4vw,2.9rem); font-variant-numeric:tabular-nums; }
.stage-enter { animation:stage-in 340ms cubic-bezier(.2,.74,.28,1) both; }
@keyframes stage-in {
  from { opacity:.25; transform:translateY(7px) scale(.992); }
  to { opacity:1; transform:none; }
}
@media (max-width:960px) {
  .shell { width:calc(100% - 42px); }
  .top { gap:1.1rem; }
  .welcome { padding:clamp(1.35rem,4vw,2.7rem); }
  .welcome h1 { font-size:clamp(3rem,7vw,5.5rem); }
  .page-header { align-items:flex-start; flex-wrap:wrap; }
  .audience-layout { grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr); }
}
@media (max-width:700px) {
  .shell { width:calc(100% - 28px); }
  .top {
    display:flex;
    min-height:58px;
    gap:.35rem .54rem;
    flex-wrap:wrap;
    padding-block:.43rem;
  }
  .top nav { order:3; width:100%; gap:.22rem; }
  .top nav a { flex:1; text-align:center; }
  .head-actions { gap:.35rem; }
  .brandmark { width:30px; height:30px; }
  .welcome {
    grid-template-columns:minmax(0,1fr);
    gap:1.45rem;
    padding:1.35rem;
    margin-top:1rem;
  }
  .welcome h1 { font-size:clamp(2.85rem,10.5vw,5.25rem); }
  .welcome-copy p { margin-top:.8rem; }
  .home-actions { margin-top:1.05rem; }
  .preview-backdrop { grid-template-columns:minmax(0,1fr); gap:.9rem; }
  .page { padding-top:25px; }
  .editor-layout,.audience-layout { grid-template-columns:minmax(0,1fr); }
  .timeline { position:static; }
  .timeline ol { max-height:245px; overflow:auto; }
  .control-top { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .control-top .room-share { grid-column:1 / -1; }
  .metric { padding-left:.5rem; }
  .people { margin-top:-.2rem; }
  .projection-top,.projection-footer { flex-wrap:wrap; }
  .projection-top .room-share { order:3; flex-basis:100%; }
  .projection .stage-body { padding-inline:.55rem; }
}
@media (max-width:450px) {
  .form-duo,.score-grid { grid-template-columns:minmax(0,1fr); }
  .account summary { max-width:11ch; }
  .welcome { padding:1.12rem; }
  .home-actions .button { padding-inline:.7rem; }
  .tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
  .tabs button { padding-inline:.18rem; }
  .section { padding:1rem; }
  .question-list li,.compact-list li,.jump-list li { flex-wrap:wrap; }
  .jump-list li .button { margin-left:auto; }
  .pin-input { letter-spacing:.27em; }
}
@media (pointer:coarse) {
  .button, .count, .mini-actions button, .language button, .tabs button, .account summary { min-height:44px; }
  .count, .mini-actions button, .language button { min-width:44px; }
}
@media (max-width:365px) {
  .brand { font-size:1.06rem; gap:.4rem; }
  .language button { padding-inline:.26rem; }
  .account summary { padding-inline:.48rem; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
@media (prefers-reduced-transparency:reduce) {
  #header,.join-card { background:#fff; -webkit-backdrop-filter:none; backdrop-filter:none; }
}
