/* The walkie-talkie (walkie.js): the Projects section at the top of the Work panel, in the dashboard's design system (dashboard.css's
   tokens: glass, IBM Plex, the amber accent). One row per project: a colour bar, the director's portrait with a status lamp, the
   project, the director and their state, the last word, any notes waiting (text, Play, Reply), and the walkie and pen buttons. */
.as-walkie { margin-bottom: 6px; }
.as-walkie .as-col-h .num { color: var(--faint); font-size: 0.74em; }
.as-walkie-row { display: grid; grid-template-columns: 4px 2.6em 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.as-walkie-row .bar { width: 4px; height: 100%; min-height: 2.6em; border-radius: 2px; }
.as-walkie-row .face { position: relative; width: 2.6em; height: 2.6em; }
.as-walkie-row .face .mono-tile { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font: 600 0.85em/1 "Plex Sans", sans-serif; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.as-walkie-row .lamp { position: absolute; right: -2px; bottom: -2px; width: 0.8em; height: 0.8em; border-radius: 50%; border: 2px solid #121317; background: var(--faint); }
.as-walkie-row .lamp.working { background: var(--green); box-shadow: 0 0 8px rgba(61, 214, 140, 0.7); }
.as-walkie-row .lamp.away, .as-walkie-row .lamp.stale { background: var(--amber); }
.as-walkie-row .lamp.blocked { background: var(--red); }
.as-walkie-row .p { font-weight: 600; }
.as-walkie-row .m { color: var(--dim); font-size: 0.84em; margin-top: 1px; }
.as-walkie-row .last { color: var(--faint); font-size: 0.82em; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.as-walkie-row .flash { color: var(--amber-2); font-size: 0.8em; margin-top: 4px; }
.as-walkie-row .side { display: flex; gap: 6px; align-items: center; }
.as-walkie-row .side .count { min-width: 1.4em; height: 1.4em; padding: 0 5px; border-radius: 1em; background: var(--amber); color: #1a1206; font: 600 0.72em/1.4em "Plex Mono", monospace; text-align: center; }
.as-walkie-row .side .as-btn { width: 2.4em; height: 2.4em; padding: 0; display: grid; place-items: center; border-radius: 10px; }
.as-walkie-row .side .as-btn svg { width: 1.2em; height: 1.2em; }
.as-walkie-row .side .as-btn.walkie { color: var(--amber-2); border-color: rgba(255, 176, 0, 0.4); }
.as-walkie-row .side .as-btn.walkie.on { background: var(--red); border-color: var(--red); color: #fff; }

/* a note from the director, waiting to be played or answered */
.as-walkie-row .note { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 176, 0, 0.07); border: 1px solid rgba(255, 176, 0, 0.3); }
.as-walkie-row .note .t { font-size: 0.9em; }
.as-walkie-row .note .acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.as-walkie-row .note .as-btn { font-size: 0.82em; }
.as-walkie-row .note .as-btn.play { color: var(--amber-2); border-color: rgba(255, 176, 0, 0.45); }
.as-walkie-row .note .as-btn.ghost { border-color: transparent; color: var(--faint); }
.as-walkie-row .note .as-btn:disabled { opacity: 0.45; cursor: default; }

/* recording, and the typed note */
.as-walkie-row .recording { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 90, 78, 0.1); border: 1px solid rgba(255, 90, 78, 0.4); }
.as-walkie-row .recording .dot { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--red); animation: as-rec 1s ease-in-out infinite; }
.as-walkie-row .recording .rec-t { font: 500 0.82em "Plex Mono", monospace; color: #ffb3ad; }
.as-walkie-row .recording .hint { color: var(--dim); font-size: 0.78em; flex: 1; }
@keyframes as-rec { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .as-walkie-row .recording .dot { animation: none; } }
.as-walkie-row form.type { display: flex; gap: 6px; margin-top: 8px; }
.as-walkie-row form.type input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); border-radius: 8px; padding: 0.35em 0.6em; }
.as-walkie-row form.type input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }

/* a phone held up: finger-sized buttons */
@media (max-aspect-ratio: 999/1000) {
  .as-walkie-row .side .as-btn { width: 44px; height: 44px; }
  .as-walkie-row .note .as-btn, .as-walkie-row .recording .as-btn, .as-walkie-row form.type .as-btn { min-height: 40px; }
}

/* a note card's link (a knock's 'Open example.com'), as a button; and a knock's title in the row */
.as-ui .as-btn.link { display: inline-flex; align-items: center; text-decoration: none; color: var(--amber-2); }
.as-ui .as-btn.link:hover { text-decoration: none; }
.as-walkie-row .note.card .h { font-weight: 600; font-size: 0.9em; margin-bottom: 2px; }
