/* 出题端布局 */
.host-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
  padding: 11px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.host-top > div:first-child { min-width: 0; }
.host-top .brand-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(16px, 1.5vw, 21px); }
.host-top .spacer { flex: 1; }
@media (max-width: 1180px) { .host-top { flex-wrap: wrap; } .host-top .brand-title { white-space: normal; } }
.mode-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--line2); }
.mode-tab { padding: 7px 15px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); border: 0; background: transparent; transition: color .15s, background .15s, box-shadow .15s; }
.mode-tab:hover { color: var(--ink); }
.mode-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.stat-strip { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.stat-strip b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }

.host-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px; gap: 14px; padding: 16px 20px 36px; align-items: start; }
.col-mid { display: flex; flex-direction: column; gap: 14px; }
.col-left, .col-right { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 70px; max-height: calc(100vh - 86px); overflow-y: auto; }
@media (max-width: 1320px) {
  .host-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .col-right { grid-column: 1 / -1; position: static; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
}
@media (max-width: 900px) {
  .host-top { padding: 10px 14px; }
  .host-grid { grid-template-columns: 1fr; padding: 14px; }
  .col-left { position: static; max-height: none; }
  .col-right { grid-template-columns: 1fr; }
}

.roster-list { display: flex; flex-direction: column; gap: 1px; max-height: 52vh; overflow-y: auto; margin: 0 -6px; }
.roster-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 40px; gap: 9px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.roster-row:hover { background: var(--surface2); }
.roster-row.off { opacity: .55; }
.roster-row.excluded { background: #fdeeee; box-shadow: inset 2px 0 0 var(--danger); }
.roster-row.drawer { background: #eef4ff; box-shadow: inset 2px 0 0 var(--primary); }
.roster-list.pmode .roster-row { grid-template-columns: 10px minmax(0, 1fr) auto auto 40px; }
.roster-list.pmode .roster-row .sw { justify-self: end; }
.roster-name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-sub { font-size: 11.5px; color: var(--muted); }
.roster-score { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.tag-drawer { font-size: 10.5px; font-weight: 600; color: var(--primary); background: #e0ebff; border: 1px solid #c3d8fb; padding: 1px 5px; border-radius: 5px; }

.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.phase-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.big-timer { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.q-hero { display: grid; gap: 14px; }
.q-hero.has-img { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .q-hero.has-img { grid-template-columns: 1fr; } }
.q-img { border-radius: 12px; overflow: hidden; background: var(--surface2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; min-height: 200px; }
.q-img img { width: 100%; height: 100%; max-height: 50vh; object-fit: contain; display: block; }

.drop { border: 1px dashed #cfd8e3; border-radius: 12px; padding: 14px; text-align: center; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface2); }
.drop:hover, .drop.over { border-color: var(--primary); color: var(--primary); background: #f2f6ff; }
.drop img { max-height: 110px; border-radius: 8px; margin-top: 8px; }

.ctrl-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drawer-pick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow-y: auto; }
.drawer-pick .btn { flex: none; }
.drawer-pick .btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.join-box { display: grid; gap: 10px; justify-items: center; text-align: center; }
.join-url { font-weight: 600; font-size: 15px; color: var(--primary); word-break: break-all; }
#qr { background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 12px; display: inline-block; }
#qr svg, #qr canvas { display: block; }

.dev-list { width: 100%; display: grid; gap: 8px; margin-top: 4px; }
.dev-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface2);
  text-align: left;
}
.dev-ico { font-size: 18px; text-align: center; }
.dev-name { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.dev-url { font-size: 13px; font-weight: 600; color: var(--primary); word-break: break-all; font-variant-numeric: tabular-nums; }
.stat-strip .chip { white-space: nowrap; }
