/* ============================================================
   ChatBase — 🎨 Pixel Wall (pixelwall.js)
   ============================================================ */
#pwRoot { max-width: 1060px; }
.pw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.pw-stage-wrap {
    padding: 14px;
    border-radius: 22px;
    border: 1px solid var(--neo-line, rgba(255,255,255,.08));
    background: var(--neo-surface, rgba(22,22,28,.55));
    -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
    min-width: 0;
}
.pw-stage { position: relative; overflow: auto; max-height: 70vh; border-radius: 12px; --pw-zoom: 1; }
.pw-stage canvas {
    display: block;
    width: 100%; max-width: 640px; height: auto; aspect-ratio: 1;
    margin: 0 auto;
    image-rendering: pixelated; image-rendering: crisp-edges;
    border-radius: 10px;
    cursor: crosshair;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.pw-stage.zoomed canvas { width: calc(640px * var(--pw-zoom)); max-width: none; }
.pw-hover {
    position: absolute; pointer-events: none; z-index: 2;
    padding: 5px 9px; border-radius: 8px;
    background: rgba(10,10,16,.92); color: #fff; font-size: 12px; white-space: nowrap;
    border: 1px solid rgba(255,255,255,.12);
}
.pw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.pw-palette { display: flex; flex-wrap: wrap; gap: 5px; }
.pw-palette button {
    width: 28px; height: 28px; padding: 0;
    border-radius: 8px; border: 2px solid rgba(255,255,255,.15);
    cursor: pointer; transition: transform .15s;
}
.pw-palette button:hover { transform: scale(1.12); }
.pw-palette button.on { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 0 2px var(--neo-accent, #8ab4ff); }
.pw-status { font-size: 13px; font-weight: 650; color: #5ef0c0; font-variant-numeric: tabular-nums; }
.pw-status.wait { color: #ffc46b; }

.pw-side { display: flex; flex-direction: column; gap: 12px; }
.pw-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--neo-line, rgba(255,255,255,.08));
    background: var(--neo-surface, rgba(22,22,28,.55));
    -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
}
.pw-card h3 { margin: 0 0 8px; font-size: 14px; }
.pw-card p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--neo-dim, rgba(235,235,245,.65)); }
.pw-zoom { display: flex; gap: 6px; }
.pw-btn {
    padding: 7px 12px; border-radius: 999px;
    border: 1px solid var(--neo-line-hi, rgba(255,255,255,.16));
    background: rgba(255,255,255,.07); color: #fff;
    font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer;
}
.pw-btn:hover { background: rgba(255,255,255,.14); }
.pw-btn.danger { border-color: rgba(255,90,122,.45); color: #ff8aa0; }
.pw-owner { display: flex; flex-direction: column; gap: 8px; }
.pw-owner[hidden] { display: none; }
.pw-owner h3 { margin-bottom: 0; }
.pw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pw-stats div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.pw-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pw-stats span { font-size: 11.5px; color: var(--neo-dim, rgba(235,235,245,.6)); }
.pw-top { display: flex; flex-direction: column; gap: 3px; }
.pw-top-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; font-size: 13px; }
.pw-top-row.me { background: rgba(138,180,255,.12); }
.pw-top-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pw-top-row small { color: var(--neo-dim, rgba(235,235,245,.6)); font-variant-numeric: tabular-nums; }
.pw-muted { font-size: 12.5px; color: var(--neo-dim, rgba(235,235,245,.6)); margin: 0; }

@media (max-width: 900px) {
    .pw-layout { grid-template-columns: 1fr; }
    .pw-stage-wrap { padding: 10px; }
}
