/* Navegando En Vivo V2 · estilos */
:root {
  --navy: #16283a; --navy-2: #22394f; --orange: #e89a2c; --orange-2: #f4b14f;
  --bg: #f3f5f8; --card: #ffffff; --text: #1a2633; --muted: #5f6d7b; --line: #dfe4ea;
  --green: #2e9d5b; --yellow: #e8b52c; --red: #d1453b;
  --r: 14px; --shadow: 0 1px 2px rgba(22,40,58,.06), 0 6px 20px rgba(22,40,58,.07);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
code { background: #eef1f5; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); } .small { font-size: .87rem; } .center { text-align: center; } .pad { padding: 12px; }
[hidden] { display: none !important; }

/* Barra de marca (en todas las pantallas) */
.brandbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px; background: #fff; border-bottom: 3px solid var(--orange); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(22,40,58,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { height: 62px; width: auto; }
.brand-text { font-size: 1.05rem; letter-spacing: .02em; color: var(--orange); font-weight: 600; }
.brand-text b { color: var(--navy); font-weight: 700; }
.brand-right { display: flex; gap: 8px; align-items: center; }
.foot { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; color: var(--muted); font-size: .85rem; }
.foot img { height: 34px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px; }
.wrap.narrow { max-width: 640px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; border: 1px solid #edf0f4; }
.row { display: flex; align-items: center; } .gap { gap: 8px; } .between { justify-content: space-between; } .wrapr { flex-wrap: wrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 9px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s, border-color .15s; min-height: 40px; }
.btn:hover { border-color: var(--navy-2); background: #f7f9fb; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.danger { color: var(--red); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; min-height: 34px; font-size: .9rem; }
.btn.xs { padding: 2px 8px; min-height: 26px; font-size: .78rem; }
.btn.big { padding: 13px 22px; font-size: 1.05rem; width: 100%; }
.row .btn.big { width: auto; flex: 1; }
.chip { display: inline-block; background: #fff4e3; color: #8a5410; border: 1px solid #f3d6a8; padding: 1px 9px; border-radius: 999px; font-weight: 700; letter-spacing: .06em; font-size: .85rem; }
.chip.big { font-size: 1.05rem; padding: 2px 12px; }
.st { font-weight: 600; font-size: .85rem; } .st.open { color: var(--green); } .st.closed { color: var(--muted); } .st.draft { color: #8a5410; }
.proj-tag { font-style: normal; background: var(--orange); color: #fff; padding: 0 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; }

/* Formularios */
.form label { display: block; font-weight: 600; margin-bottom: 14px; color: var(--navy); }
.form label small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
input, textarea, select { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #cfd6de; border-radius: 10px; background: #fff; color: var(--text); margin-top: 5px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange-2); outline-offset: 1px; border-color: var(--orange); }
.form label.check, label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input, .inline-check input { width: auto; margin-top: 4px; }
.inline-check { display: inline-flex; gap: 6px; align-items: center; }
.grid2f { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.alert { padding: 11px 14px; border-radius: 10px; margin: 10px 0; }
.alert.ok { background: #e7f6ec; color: #17603a; } .alert.err { background: #fdecea; color: #8e2a22; } .alert.warn { background: #fff5e0; color: #7a4b07; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.checks li span { font-weight: 700; } .checks li.yes span { color: var(--green); } .checks li.no span { color: var(--red); }
.checks small { display: block; color: var(--muted); }

/* Inicio */
.hero { text-align: center; padding: 28px 22px; }
.hero-logo { width: 190px; margin: 0 auto 8px; display: block; }
.joinform { display: flex; gap: 10px; margin-top: 10px; }
.joinform input { text-transform: uppercase; text-align: center; font-size: 1.5rem; letter-spacing: .25em; font-weight: 700; margin: 0; }
.joinform .btn.big { width: auto; }

/* Participante */
.code-chip { font-size: 1rem; }
.act { padding: 22px; }
.act-kind { display: inline-flex; align-items: center; gap: 6px; color: #8a5410; background: #fff4e3; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; margin-bottom: 10px; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.act-title { font-size: 1.4rem; }
.act-prompt { color: var(--muted); }
.act-body { margin-top: 14px; }
.opts { display: grid; gap: 10px; margin-bottom: 14px; }
.opt { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer; font-weight: 600; background: #fff; transition: border-color .15s, background .15s; }
.opt input { width: 22px; height: 22px; margin: 0; accent-color: var(--navy); flex: none; }
.opt:has(input:checked) { border-color: var(--navy); background: #f1f5f9; }
.hint { color: var(--muted); font-size: .9rem; }
.ok-line { color: var(--green); font-weight: 600; margin-top: 10px; }
.msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.msg.err { background: #fdecea; color: #8e2a22; } .msg.ok { background: #e7f6ec; color: #17603a; }
.traffic-btns { display: grid; gap: 12px; }
.tl { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-align: left; color: var(--navy); }
.tl .dot { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.tl.green .dot { background: var(--green); } .tl.yellow .dot { background: var(--yellow); } .tl.red .dot { background: var(--red); }
.tl.on.green { border-color: var(--green); background: #eaf7ef; } .tl.on.yellow { border-color: var(--yellow); background: #fdf6e1; } .tl.on.red { border-color: var(--red); background: #fcebea; }
.scale-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-btns.n6, .scale-btns.n7 { grid-template-columns: repeat(7, 1fr); }
.scale-btns.n8, .scale-btns.n9, .scale-btns.n10, .scale-btns.n11 { grid-template-columns: repeat(6, 1fr); }
.scale-btns.n3, .scale-btns.n4 { grid-template-columns: repeat(4, 1fr); }
.sc { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 1.3rem; font-weight: 800; color: var(--navy); cursor: pointer; }
.sc input { display: none; }
.sc.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.scale-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; margin-top: 8px; }
.words { display: grid; gap: 8px; margin-bottom: 14px; }
.words input { margin: 0; font-size: 1.1rem; }
#txt { margin: 0 0 10px; font-size: 1.05rem; }
label.inline { display: block; font-weight: 600; margin-bottom: 12px; font-size: .9rem; }
.survey fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; padding: 12px 14px; }
.survey legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.survey .opt { margin-bottom: 8px; }
.thanks { text-align: center; padding: 18px 0; }
.check-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.thanks.win .check-ico { background: var(--orange); }
.waiting { padding: 30px 20px; }
.wait-logo { width: 150px; display: block; margin: 0 auto 10px; }
.pulse { width: 16px; height: 16px; border-radius: 50%; background: var(--orange); margin: 14px auto; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,154,44,.6); } 70% { box-shadow: 0 0 0 18px rgba(232,154,44,0); } 100% { box-shadow: 0 0 0 0 rgba(232,154,44,0); } }
.spinner { width: 36px; height: 36px; border: 4px solid #e3e8ee; border-top-color: var(--orange); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.live { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.live h3 { font-size: .95rem; color: var(--muted); }

/* Quiz participante */
.quiz-top { display: flex; justify-content: space-between; font-weight: 700; color: var(--muted); }
.timer { background: var(--navy); color: #fff; border-radius: 999px; padding: 1px 12px; font-variant-numeric: tabular-nums; }
.qbar { height: 6px; background: #e7ebf0; border-radius: 99px; margin: 10px 0 14px; overflow: hidden; }
.qbar div { height: 100%; width: 100%; background: var(--orange); transition: width .25s linear; }
.qtext { font-size: 1.3rem; margin: 10px 0 16px; }
.quiz-opts { display: grid; gap: 10px; }
.qo { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 12px; padding: 16px; font: inherit; font-weight: 700; color: #fff; cursor: pointer; font-size: 1.05rem; }
.qo-l { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; flex: none; }
.q0 { background: #16283a; } .q1 { background: #c97a12; } .q2 { background: #2f6f8f; } .q3 { background: #3e8e7e; } .q4 { background: #7a4f9a; } .q5 { background: #b3413b; }
.quiz-score { text-align: center; margin: 6px 0 14px; }
.quiz-score b { display: block; font-size: 2.6rem; color: var(--navy); }
.review { padding-left: 18px; } .review li { margin-bottom: 10px; } .review p { margin: 0; font-weight: 600; }
.review li.ok small { color: var(--green); } .review li.bad small { color: var(--red); }

/* Juegos */
.ws-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.ws-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; user-select: none; -webkit-user-select: none; touch-action: none; background: #e3e8ee; padding: 3px; border-radius: 10px; }
.ws-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #fff; font-weight: 800; color: var(--navy); font-size: clamp(.7rem, 3.6vw, 1.15rem); border-radius: 4px; cursor: pointer; }
.ws-cell.found { background: #ffe6bf; color: #7a4b07; }
.ws-cell.sel { background: var(--navy); color: #fff; }
.ws-words { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.ws-words li { background: #eef1f5; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.ws-words li.found { background: var(--green); color: #fff; text-decoration: line-through; }
.mm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mm-grid.dense { grid-template-columns: repeat(5, 1fr); }
.mm-card { aspect-ratio: 3/4; border: 0; border-radius: 10px; padding: 0; position: relative; cursor: pointer; background: transparent; font: inherit; perspective: 600px; }
.mm-card span { position: absolute; inset: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; transition: transform .35s; padding: 4px; text-align: center; font-weight: 700; font-size: clamp(.7rem, 3vw, .95rem); word-break: break-word; }
.mm-back { background: var(--navy); border: 3px solid var(--orange); }
.mm-back img { width: 70%; border-radius: 6px; opacity: .95; }
.mm-face { background: #fff; color: var(--navy); border: 2px solid var(--line); transform: rotateY(180deg); }
.mm-card.up .mm-back, .mm-card.ok .mm-back { transform: rotateY(180deg); }
.mm-card.up .mm-face, .mm-card.ok .mm-face { transform: rotateY(360deg); }
.mm-card.ok .mm-face { background: #e7f6ec; border-color: var(--green); }

/* Resultados (compartido) */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 92px; gap: 14px; align-items: center; }
.bar-label { font-weight: 700; color: var(--navy); }
.bar-track { height: 34px; background: #eef1f5; border-radius: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 8px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.bar-val { display: flex; flex-direction: column; line-height: 1.1; }
.bar-val b { font-size: 1.25rem; color: var(--navy); } .bar-val small { color: var(--muted); }
.bar-row.top .bar-label { color: #8a5410; }
.bars.mini .bar-track { height: 18px; } .bars.mini .bar-val b { font-size: 1rem; } .bars.mini { gap: 8px; }
.scale-res .avg { text-align: center; margin-bottom: 10px; }
.scale-res .avg b { font-size: 3rem; color: var(--navy); display: block; line-height: 1; }
.scale-res .avg span { color: var(--muted); }
.cols { display: flex; gap: 10px; align-items: flex-end; height: 240px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.col-track { flex: 1; width: 100%; display: flex; align-items: flex-end; background: #f1f4f7; border-radius: 8px; overflow: hidden; }
.col-fill { width: 100%; background: linear-gradient(180deg, var(--orange-2), var(--orange)); border-radius: 8px 8px 0 0; transition: height .7s; height: 0; }
.col b { color: var(--navy); } .col small { color: var(--muted); font-weight: 700; }
.cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .15em .55em; padding: 10px; line-height: 1.15; }
.cw { font-weight: 800; display: inline-block; animation: pop .5s; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.wall { columns: 3 260px; column-gap: 14px; }
.note { break-inside: avoid; background: #fff; border-left: 6px solid var(--c); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow); animation: pop .4s; }
.note p { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.note small { color: var(--muted); }
.note .btn { margin-top: 6px; }
.note.is-hidden { opacity: .45; border-left-style: dashed; }
.wall.commit .note { background: #fffaf1; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.board li { display: grid; grid-template-columns: 40px 1fr auto 60px; gap: 10px; align-items: center; background: #f6f8fa; border-radius: 10px; padding: 10px 14px; }
.board .pos { width: 32px; height: 32px; border-radius: 50%; background: #dfe4ea; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy); }
.board .p1 .pos { background: #f3c14b; } .board .p2 .pos { background: #c9d1da; } .board .p3 .pos { background: #e0a676; }
.board .who { font-weight: 700; color: var(--navy); } .board .det { color: var(--muted); font-size: .9rem; } .board .pts { font-weight: 800; text-align: right; color: var(--navy); }
.done { font-style: normal; background: var(--green); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 99px; vertical-align: middle; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.qstat { display: grid; grid-template-columns: 34px 1fr 50px; gap: 8px; align-items: center; margin-bottom: 8px; font-weight: 700; color: var(--navy); }
.qstat .bar-track { height: 20px; }
.progress-line { margin-bottom: 14px; font-size: 1.05rem; color: var(--navy); }
.survey-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sq { background: #f8fafb; border-radius: 12px; padding: 14px; } .sq h4 { margin-bottom: 10px; }
.big-avg { font-size: 2.2rem; font-weight: 800; color: var(--navy); } .big-avg small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.mini-wall { padding-left: 18px; margin: 0; } .mini-wall li { margin-bottom: 4px; }
.wheel-wrap { position: relative; width: min(100%, 520px); margin: 0 auto; }
.wheel { width: 100%; height: auto; display: block; border-radius: 50%; box-shadow: 0 8px 30px rgba(22,40,58,.18); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--navy); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.wheel-winner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--navy); border: 4px solid var(--orange); border-radius: 16px; padding: 12px 22px; font-size: 1.8rem; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: pop .5s; max-width: 90%; text-align: center; }
.wheel-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.wheel-list span { background: #eef1f5; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: .85rem; }
.hidden-res { text-align: center; padding: 40px 10px; color: var(--muted); }
.big-num { font-size: 5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.qr svg { display: block; width: 100%; height: auto; }

/* Proyección (Zoom) */
.page-projector { background: #f6f7f9; }
.proj { min-height: 100vh; display: flex; flex-direction: column; }
.proj-head { display: flex; align-items: center; gap: 22px; padding: 12px 28px; background: #fff; border-bottom: 4px solid var(--orange); }
.proj-logo { height: 88px; width: auto; }
.proj-title { flex: 1; min-width: 0; }
.proj-session { font-weight: 800; font-size: 1.35rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-kind { color: var(--orange); font-weight: 700; }
.proj-join { display: flex; align-items: center; gap: 14px; }
.proj-joininfo { display: grid; text-align: right; line-height: 1.2; color: var(--muted); font-size: .9rem; }
.proj-joininfo b { color: var(--navy); font-size: 1rem; }
.proj-code { font-size: 1.7rem !important; letter-spacing: .12em; color: #8a5410 !important; }
.proj-join .qr { width: 104px; }
.is-welcome .proj-join { visibility: hidden; }
.proj-main { flex: 1; padding: 26px 40px 10px; max-width: 1500px; width: 100%; margin: 0 auto; }
.proj-main .act-head { margin-bottom: 18px; }
.proj-main .act-head .kind { display: inline-flex; align-items: center; gap: 6px; color: #8a5410; background: #fff4e3; padding: 3px 14px; border-radius: 999px; font-weight: 700; }
.proj-main h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-top: 10px; }
.proj-main .act-head p { font-size: 1.2rem; color: var(--muted); }
.act-status { font-weight: 700; margin-bottom: 14px; color: var(--muted); }
.act-status.open::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-right: 8px; animation: pulse 1.6s infinite; }
.proj-main .bar-row { grid-template-columns: minmax(180px, 30%) 1fr 110px; }
.proj-main .bar-label { font-size: 1.3rem; } .proj-main .bar-track { height: 52px; } .proj-main .bar-val b { font-size: 1.7rem; }
.proj-main .cloud { font-size: clamp(1.1rem, 2vw, 1.7rem); min-height: 360px; }
.proj-main .note p { font-size: 1.25rem; }
.proj-main .cols { height: 34vh; min-height: 180px; }
.proj-main .scale-res .avg b { font-size: 2.6rem; }
.proj-main .bars.mini .bar-row { grid-template-columns: minmax(80px, 38%) 1fr 58px; gap: 8px; }
.proj-main .bars.mini .bar-label { font-size: 1rem; } .proj-main .bars.mini .bar-track { height: 22px; } .proj-main .bars.mini .bar-val b { font-size: 1rem; }
.proj-main .board li { padding: 14px 18px; font-size: 1.15rem; }
.wheel-layout { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.proj-main .wheel-wrap { width: min(100%, 52vh); margin: 0; }
.proj-main .wheel-list { max-width: 420px; justify-content: flex-start; }
.proj-main .wheel-list span { font-size: 1rem; padding: 4px 12px; }
.proj-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 28px; color: var(--muted); font-weight: 600; }
.proj-brand { font-size: .9rem; }
.welcome { display: flex; justify-content: center; align-items: center; min-height: 70vh; text-align: center; }
.welcome img { width: 200px; }
.welcome h1 { font-size: 2.4rem; }
.welcome p { font-size: 1.25rem; }
.welcome-code { font-size: 4rem; font-weight: 800; letter-spacing: .18em; color: #8a5410; margin: 4px 0 10px; }
.qr.big { width: 280px; margin: 0 auto 10px; background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--shadow); }

/* Panel del facilitador */
.page-admin .foot { display: none; }
.admin { display: grid; grid-template-columns: 290px 1fr; gap: 18px; padding: 18px; max-width: 1500px; width: 100%; margin: 0 auto; }
.side { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; align-self: start; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.side-head h2 { margin: 0; }
.session-list { display: grid; gap: 6px; }
.sess { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; cursor: pointer; font: inherit; display: grid; gap: 3px; }
.sess b { color: var(--navy); } .sess > span { font-size: .82rem; color: var(--muted); }
.sess.on { border-color: var(--navy); background: #f1f5f9; box-shadow: inset 4px 0 0 var(--orange); }
.mainpane { min-width: 0; }
.sess-head h1 { margin-bottom: 4px; }
.grid2 { display: grid; grid-template-columns: minmax(320px, 1fr) 1.4fr; gap: 16px; }
.grid2 > .card { margin-bottom: 16px; }
.share-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.share-row .qr { width: 130px; flex: none; }
.share-col { flex: 1; min-width: 0; display: grid; gap: 8px; }
.copyline { display: flex; gap: 6px; margin-bottom: 8px; }
.copyline input { margin: 0; font-size: .85rem; }
.live-head { margin-bottom: 8px; }
.live-head .kind { color: #8a5410; font-weight: 700; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; }
.live-head h4 { font-size: 1.15rem; margin: 4px 0; color: var(--navy); }
.live-res { margin-top: 14px; max-height: 520px; overflow: auto; }
.live-res .bar-row { grid-template-columns: minmax(90px, 30%) 1fr 70px; }
.live-res .wall { columns: 2 200px; }
.act-list { display: grid; gap: 8px; margin-top: 10px; }
.act-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.act-row.projecting { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }
.act-row.watching { background: #f7f9fb; }
.act-ico { width: 40px; height: 40px; border-radius: 10px; background: #fff4e3; color: #8a5410; display: flex; align-items: center; justify-content: center; flex: none; font-size: 1.3rem; }
.act-info { flex: 1; min-width: 0; display: grid; }
.act-info b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-info > span { font-size: .84rem; color: var(--muted); }
.act-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.more { position: relative; }
.more summary { list-style: none; } .more summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(22,40,58,.16); padding: 6px; z-index: 30; min-width: 230px; display: grid; }
.menu button, .menu a { text-align: left; background: none; border: 0; font: inherit; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--navy); text-decoration: none; font-size: .92rem; }
.menu button:hover, .menu a:hover { background: #f1f5f9; }
.menu button:disabled { opacity: .4; cursor: default; }
.menu .danger { color: var(--red); }
.modal { position: fixed; inset: 0; background: rgba(15,27,39,.55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 40px 14px; overflow: auto; }
.modal-box { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 560px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide .modal-box { max-width: 820px; }
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.type-card { display: grid; gap: 4px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px; cursor: pointer; font: inherit; color: var(--navy); transition: border-color .15s, transform .1s; }
.type-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.type-card .ico { width: 28px; height: 28px; color: var(--orange); }
.type-card small { color: var(--muted); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 12px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 600; max-width: 90vw; }
.toast.err { background: #8e2a22; } .toast.ok { background: #17603a; }

@media (max-width: 1000px) {
  .admin { grid-template-columns: 1fr; padding: 12px; }
  .side { position: static; max-height: none; }
  .grid2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand img { height: 54px; } .brand-text { font-size: .95rem; }
  .wrap { padding: 12px; }
  .card { padding: 16px; }
  .bar-row { grid-template-columns: 1fr 70px; } .bar-label { grid-column: 1 / -1; }
  .grid2f { grid-template-columns: 1fr; }
  .act-row { flex-wrap: wrap; } .act-btns { width: 100%; justify-content: flex-start; }
  .proj-head { flex-wrap: wrap; padding: 10px 14px; } .proj-logo { height: 60px; } .proj-main { padding: 16px; }
  .share-row { flex-direction: column; }
  .joinform { flex-direction: column; } .joinform .btn.big { width: 100%; }
}
