/* The Pi dashboard's own stylesheet, taken verbatim and scoped under
   `.dash` so the LIVE tab looks exactly like the dashboard on the floor
   while the site's shell (header, tabs, badge, PLAY tab) keeps its own
   styling. :root / * / body rules were dropped -- the site sets those,
   and the dashboard's body{padding:18px} would fight the layout. */

.dash header { display:flex; align-items:baseline; gap:14px; margin-bottom:14px; flex-wrap:wrap; }
.dash h1 { font-size:20px; margin:0; }
.dash #conn { font-size:15px; font-weight:700; padding:4px 10px; border-radius:8px; }
.dash #conn.live { background:rgba(53,208,127,.16); color:var(--ok); }
.dash #conn.stale { background:rgba(255,176,32,.16); color:var(--warn); }
.dash #conn.dead { background:rgba(255,92,92,.16); color:var(--bad); }
.dash .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(330px,1fr)); gap:14px; }
.dash .card { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.dash .card h2 { font-size:13px; letter-spacing:1.5px; text-transform:uppercase;
             color:var(--dim); margin:0 0 10px; font-weight:700; }
.dash .r { display:flex; justify-content:space-between; gap:12px; padding:5px 0;
       border-bottom:1px solid rgba(255,255,255,.04); font-size:15px; }
.dash .r:last-child { border-bottom:0; }
.dash .k { color:var(--dim); }
.dash .v { font-weight:700; text-align:right; }
.dash .v.ok {color:var(--ok)} .v.bad{color:var(--bad)} .v.warn{color:var(--warn)} .v.dim{color:var(--dim)}
.dash .big { font-size:34px; font-weight:800; line-height:1.1; }
  /* level meter with floor/ceiling markers */
.dash .meter { position:relative; height:26px; background:#0a0d11; border:1px solid var(--line);
           border-radius:7px; margin:10px 0 4px; overflow:hidden; }
.dash .meter .fill { position:absolute; inset:0 auto 0 0; background:linear-gradient(90deg,#2f7d4f,#8fd14f,#ffb020,#ff5c5c); }
.dash .meter .mark { position:absolute; top:0; bottom:0; width:2px; background:#fff; opacity:.85; }
.dash .meter .mark.ceil { background:var(--bad); }
.dash .meter .peak { position:absolute; top:0; bottom:0; width:3px; background:#fff; opacity:.9; }
.dash .scale { display:flex; justify-content:space-between; font-size:12px; color:var(--dim); }
.dash .bar { height:14px; background:#0a0d11; border:1px solid var(--line); border-radius:7px;
         overflow:hidden; margin-top:6px; }
.dash .bar span { display:block; height:100%; background:linear-gradient(90deg,#35d07f,#ffb020,#ff5c5c); width:0; }
.dash footer { margin-top:14px; color:var(--dim); font-size:13px; }
.dash .lamp { display:inline-block; width:18px; height:18px; border-radius:50%; margin-left:6px;
          opacity:.15; vertical-align:middle; }
.dash .lamp.g {background:#35d07f} .lamp.y{background:#ffb020} .lamp.r{background:#ff5c5c}
  /* Controls. These live here, not on the headset: the phone is being held at
     arm's length in an AR session and its screen is for the game. */
.dash .ctl { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:8px 0 2px; }
.dash .ctl button { font:inherit; font-size:13px; font-weight:700; color:var(--fg);
                background:#1d242d; border:1px solid var(--line); border-radius:8px;
                padding:9px 12px; cursor:pointer; }
.dash .ctl button:hover { background:#28313c; }
.dash .ctl button:active { transform:translateY(1px); }
.dash .ctl button.on { background:#1f6feb; border-color:#1f6feb; }
.dash .ctl button.cal { background:#2f7d4f; border-color:#2f7d4f; }
.dash .ctl button.warn { background:#6b3a12; border-color:#8a4c18; }
.dash .ctl .lbl { color:var(--dim); font-size:12px; letter-spacing:1px; margin-right:2px; }
.dash #cmdmsg { font-size:12px; color:var(--dim); min-height:15px; margin-top:6px; }
  /* The model traffic, as a conversation. The game on the right, whichever
     model it is talking to on the left, oldest at the top -- so it reads the
     way a thread reads and you can see a prompt and its answer together. */
.dash .wide { grid-column:1/-1; }
.dash #thread { max-height:56vh; overflow-y:auto; padding:4px 2px 2px; scroll-behavior:smooth; }
.dash .day { text-align:center; color:var(--dim); font-size:11px; letter-spacing:1px;
         text-transform:uppercase; margin:14px 0 8px; }
.dash .msg { display:flex; gap:9px; margin:0 0 10px; align-items:flex-end; }
.dash .msg.out { flex-direction:row-reverse; }
.dash .who { width:30px; height:30px; border-radius:50%; flex:0 0 30px; font-size:10px;
         font-weight:800; display:flex; align-items:center; justify-content:center;
         color:#0b0d10; letter-spacing:.5px; }
.dash .who.game { background:#4aa3ff; }
.dash .who.gemini { background:#8ab4f8; }
.dash .who.nemotron { background:#c792ea; }
.dash .who.err { background:var(--bad); color:#fff; }
.dash .col { max-width:80%; min-width:0; }
.dash .msg.out .col { margin-left:auto; }
.dash .name { font-size:11px; color:var(--dim); margin:0 0 3px 2px; }
.dash .msg.out .name { text-align:right; margin:0 2px 3px 0; }
.dash .bub { padding:9px 12px; border-radius:14px; font-size:13px; line-height:1.5;
         white-space:pre-wrap; word-break:break-word; position:relative; }
.dash .msg.out .bub { background:#1b3a5c; border:1px solid #27527f; border-bottom-right-radius:4px; color:#dcecff; }
.dash .msg.in  .bub { background:#171d25; border:1px solid var(--line); border-bottom-left-radius:4px; color:#d7e2d9; }
.dash .msg.in.bad .bub { border-color:#6b2f2f; color:#ffd9d9; }
.dash .bub.clip { max-height:120px; overflow:hidden; }
.dash .bub.clip::after { content:''; position:absolute; left:0; right:0; bottom:0; height:44px;
                     background:linear-gradient(transparent, #171d25); }
.dash .msg.out .bub.clip::after { background:linear-gradient(transparent, #1b3a5c); }
.dash .more { display:inline-block; margin-top:5px; font-size:11px; color:var(--accent);
          cursor:pointer; user-select:none; }
.dash .stamp { font-size:10px; color:#6b7684; margin:3px 2px 0; }
.dash .msg.out .stamp { text-align:right; }
  /* The photo the world was built from, shown the way an attachment is. */
.dash .shot { margin-top:8px; }
.dash .shot img { display:block; max-width:min(240px,60%); width:auto; max-height:260px;
              border-radius:10px; border:1px solid rgba(255,255,255,.14); cursor:zoom-in; }
.dash .shot.big img { max-width:100%; max-height:none; cursor:zoom-out; }
.dash .shot .cap { font-size:11px; color:#a9bccb; margin-top:4px; }
.dash .shot .cap.missing { color:var(--warn); }
.dash .trace-head { display:flex; gap:10px; align-items:baseline; margin-bottom:6px; flex-wrap:wrap; }
.dash .trace-head button { font:inherit; font-size:12px; color:var(--fg); background:#1d242d;
                       border:1px solid var(--line); border-radius:7px; padding:5px 10px; cursor:pointer; }
