/* Action keys (assets/actions.js) in a grid: plain keys take one cell, keys with an input (or "wide") a whole row of two. */
.actions h3 { margin: 16px 0 8px; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.actions h3:first-child { margin-top: 0; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px 8px; padding-bottom: 4px; }
.keys + .keys { margin-top: 14px; }
.act { display: flex; gap: 6px; min-width: 0; }
.act.wide { grid-column: span 2; }
.act .test { flex: 1; min-width: 0; }
/* Raised keys: a solid base below the face, which sinks onto it when pressed. */
.act .test { --face: #ad7cff, #8c4dff; --base: #5526a8; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; color: #fff; font-size: 14.5px; background: linear-gradient(var(--face)); box-shadow: 0 4px 0 var(--base), inset 0 1px 0 rgba(255,255,255,.3); text-shadow: 0 1px 0 rgba(0,0,0,.3); overflow: hidden; text-overflow: ellipsis; transition: transform .06s, box-shadow .06s, filter .15s; }
.act .test.secondary { --face: #3a3350, #2c263d; --base: #17131f; color: var(--text); box-shadow: 0 4px 0 var(--base), inset 0 1px 0 rgba(255,255,255,.12); }
.act .test.danger { --face: #ff6b81, #e8364f; --base: #8f1528; }
.act .test.armed { --face: #ffd36b, #f0a91c; --base: #8a5a00; color: #1a1200; text-shadow: none; }
.act .test:hover { background: linear-gradient(var(--face)); filter: brightness(1.08); }
.act .test:active { transform: translateY(4px); box-shadow: 0 0 0 var(--base), inset 0 2px 5px rgba(0,0,0,.4); }
.act .test:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.act input[type=text] { flex: none; width: 64px; height: 42px; padding: 0 8px; border-radius: 12px; font: 600 15px var(--body); text-align: center; }
.act input.txt { flex: 1; width: auto; min-width: 0; text-align: left; font-weight: 400; }
.act select { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 600 14px var(--body); outline: none; cursor: pointer; }
.act input[type=text]:focus, .act select:focus { border-color: var(--violet); }
.stepper { flex: none; display: flex; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.stepper:focus-within { border-color: var(--violet); }
.stepper button { width: 26px; padding: 0; border: 0; background: none; color: var(--muted); font: 500 17px var(--body); cursor: pointer; }
.stepper button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.act .stepper input[type=text] { width: 44px; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; }
/* On stream (/c/:id and /control): primary keys go live red; secondary and danger keep their look. */
.live-keys { --live: #ff4d5e; }
.live-keys .act .test:not(.secondary):not(.danger):not(.armed) { --face: #ff7a6b, #ff4d5e; --base: #9e1f33; }
.live-keys .act .test:focus-visible { outline-color: var(--live); }
.live-keys .act input[type=text]:focus, .live-keys .act select:focus, .live-keys .stepper:focus-within { border-color: var(--live); }
.live-keys .keys { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.live-keys.off { opacity: .55; }
/* How the running overlay reaches its platforms (assets/live.js), under its live status. */
.live-sources { margin-top: 3px; }
.live-sources[hidden] { display: none; }
.src-status { font: 500 11.5px/1.5 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-status i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #5d566e; vertical-align: 1px; }
.src-status.up i { background: var(--lime); }
.src-status.partial i, .src-status.down i { background: #ffb547; }
.src-status.down { color: #ffb547; }
/* Live status dot: grey until the overlay runs on stream, then a pulsing red. */
.live-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #5d566e; }
.on > .live-dot, .live-dot.on { background: #ff4d5e; box-shadow: 0 0 0 4px rgba(255,77,94,.22); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 7px rgba(255,77,94,.08); } }
