/* Decoder panels (audio now, camera later): one panel, big controls, the text first, then the marks that were heard. */
.decoder { display: grid; gap: 16px; margin: 28px 0 0; padding: 24px; border-radius: var(--r-panel); background: var(--panel); box-shadow: var(--shadow); }
.article .decoder h2 { margin: 0; font-size: 26px; }
.article .decoder h3 { margin: 0; font-size: 18px; }
.article .decoder p { margin: 0; }
.decoder-app { display: grid; gap: 16px; border-radius: var(--r-tile); }
.decoder-app[hidden] { display: none; }
.decoder-app.is-dragging { outline: 3px dashed var(--ink); outline-offset: 8px; }
.decoder-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.decoder-actions [hidden] { display: none; }
.decoder-actions .btn { min-height: 52px; }
.decoder .btn.small { min-height: 44px; }
.article .decoder .decoder-note, .article .decoder .decoder-drop-hint { color: var(--sec); font-size: 15px; }
.article .decoder .decoder-status { min-height: 1.5em; font-weight: 600; }
.decoder-output { display: grid; gap: 16px; justify-items: start; }
.decoder-output[hidden], .decoder-output [hidden] { display: none; }
.decoder-output > *, .decoder-output [data-decoder-marks-section] { min-width: 0; max-width: 100%; }
.article .decoder .decoder-text { width: 100%; padding: 16px 18px; border-radius: var(--r-tile); background: var(--tile); font-size: 22px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.decoder-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.decoder-stats dt { font-size: 14px; color: var(--sec); }
.decoder-stats dd { margin: 0; font-size: 18px; font-weight: 650; }
.article .decoder .decoder-notes { margin: 0; padding-left: 20px; color: var(--sec); font-size: 15px; }
.decoder [data-decoder-marks-section] { display: grid; gap: 12px; width: 100%; }
.decoder .words { margin: 0; }
.decoder .tile { min-width: 52px; min-height: 80px; padding: 10px 10px 14px; }
.decoder .tile .ch { font-size: 28px; }
.decoder .tile .code { --u: 5px; }
/* A phone without a mouse has no drag and drop or keyboard paste here: the buttons above are the way in. */
@media (hover: none) and (pointer: coarse) { .decoder .decoder-drop-hint { display: none; } }
