/* Control Panel, baut auf nextzen.css auf. */
.wrap.wide { max-width: 1400px; padding-top: 24px; }
.topbar { flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.brand span { font-size: 1.1rem; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  font: inherit; color: var(--nz-muted); background: transparent; border: 1px solid transparent;
  padding: 0.45em 1em; border-radius: 999px; cursor: pointer;
}
.tabs button:hover { color: var(--nz-text); border-color: var(--nz-line); }
.tabs button[aria-selected="true"] { color: var(--nz-plum-900); background: var(--nz-rose-100); }

.pill { font-size: 0.8rem; padding: 0.2em 0.8em; border-radius: 999px; border: 1px solid var(--nz-line); }
.pill.ok, dd.ok { color: #9be3b0; }
.pill.bad, dd.bad { color: #ff9a9a; }

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.teams-layout { grid-template-columns: minmax(240px, 320px) 1fr; align-items: start; }
@media (max-width: 800px) { .teams-layout { grid-template-columns: 1fr; } .grid.two { grid-template-columns: 1fr; } }

.card {
  padding: 20px 22px; border-radius: var(--nz-radius); border: 1px solid var(--nz-line);
  background: linear-gradient(150deg, var(--nz-plum-700), var(--nz-plum-900) 70%);
  box-shadow: var(--nz-shadow); min-width: 0;
}
.card h2 { margin: 0 0 14px; font-size: 1.2rem; }
.card h3 { margin: 22px 0 8px; font-size: 1rem; color: var(--nz-rose-300); }

label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--nz-muted); margin-bottom: 10px; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--nz-text); }
input, select, textarea {
  font: inherit; font-size: 0.95rem; color: var(--nz-text); background: rgba(26, 8, 22, 0.65);
  border: 1px solid var(--nz-line); border-radius: 10px; padding: 0.45em 0.7em; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--nz-rose-300); outline-offset: 1px; }
input[type="color"] { padding: 2px; width: 64px; height: 36px; }
textarea { width: 100%; resize: vertical; }
#t-filter { width: 100%; margin-bottom: 10px; }

.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row.between { justify-content: space-between; align-items: center; }
.grow { flex: 1 1 200px; }
.small { font-size: 0.85rem; }
.muted { color: var(--nz-muted); }

.button { font: inherit; cursor: pointer; }
.button:disabled { opacity: 0.5; cursor: wait; }
.button.danger, .button.ghost.small-btn.danger { border-color: #ff9a9a; color: #ff9a9a; }
.button.active, .button.ghost.active { background: var(--nz-rose-100); color: var(--nz-plum-900); }
.small-btn { padding: 0.3em 0.8em; font-size: 0.85rem; display: inline-block; margin: 2px 4px 2px 0; }
.button.ghost.small-btn { color: var(--nz-rose-100); }
.mini {
  font: inherit; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--nz-line);
  background: rgba(239, 192, 192, 0.08); color: var(--nz-text); display: inline-grid; place-items: center; text-decoration: none;
  padding: 0; font-size: 1rem; line-height: 1;
}
.score .mini { width: 36px; height: 36px; font-size: 1.4rem; font-weight: 600; }
.mini:hover { border-color: var(--nz-rose-300); }

.sides { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.side { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--nz-line); }
.side.blue { box-shadow: inset 4px 0 0 #4a8fe7; }
.side.red { box-shadow: inset -4px 0 0 #e84a5f; }
.side select { width: 100%; }
.score { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 1.8rem; font-weight: 700; }

.status { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; }
.status dt { color: var(--nz-muted); }
.status dd { margin: 0; }

.team-list { list-style: none; margin: 0; padding: 0; max-height: 65vh; overflow: auto; }
.team-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.team-list li:hover { background: rgba(239, 192, 192, 0.08); }
.team-list li.active { background: rgba(239, 192, 192, 0.16); }
.team-list img, .team-list .dot { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: rgba(0, 0, 0, 0.25); flex: none; }

.logo-box { width: 140px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.logo-box img { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; background: rgba(0, 0, 0, 0.25); }

table.players { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.players th { text-align: left; font-size: 0.8rem; font-weight: 500; color: var(--nz-muted); padding: 4px; }
.players td { padding: 4px; }
.players input, .players select { width: 100%; }

.pl-preview, .pl-info { border: 1px dashed var(--nz-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.pl-info ul { margin: 4px 0 8px; padding-left: 18px; }

.msg { min-height: 1.4em; margin: 10px 0 0; }
.msg.ok { color: #9be3b0; }
.msg.warn { color: #ffd38a; }
.msg.bad { color: #ff9a9a; }

.scene-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.links { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.links li { display: grid; grid-template-columns: 140px 1fr auto auto; gap: 8px; align-items: center; }
.links .label { font-size: 0.9rem; }
.steps li { margin-bottom: 8px; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.game-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 70vh; overflow: auto; }
.game-list li { padding: 10px 12px; border: 1px solid var(--nz-line); border-radius: 12px; display: grid; gap: 6px; }
.game-list li.active { border-color: var(--nz-rose-300); background: rgba(239, 192, 192, 0.06); }
.game-list .row { align-items: center; }
.demo-banner { background: rgba(233, 196, 106, 0.12); border-bottom: 1px solid rgba(233, 196, 106, 0.4); padding: 10px 24px; font-size: 14px; line-height: 1.5; }
.demo-banner a { color: inherit; font-weight: 600; }
.legal { max-width: 1100px; margin: 40px auto 24px; padding: 0 24px; font-size: 12px; line-height: 1.5; opacity: 0.55; text-align: center; }
