/* Picture decoder: a panel on the page tokens, so it follows the light and dark themes. */
.pic { margin: 28px 0 0; padding: 20px; border-radius: var(--r-panel); background: var(--panel); box-shadow: var(--shadow); }
.article .pic .pic-privacy, .article .pic .pic-hint { margin: 0; }
.pic-polarity, .article .pic .pic-status, .pic-answer, .pic-figure { margin-top: 16px; }
.article .pic .pic-privacy, .article .pic .pic-hint, .article .pic-legend { color: var(--sec); font-size: 15px; }
.pic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pic-drop { display: grid; gap: 14px; justify-items: start; margin-top: 16px; padding: 18px; border: 2px dashed var(--line); border-radius: 20px; }
.pic-drop.is-over { border-style: solid; border-color: var(--ink); background: var(--fill); }
.pic-polarity { min-width: 0; padding: 0; border: 0; }
.pic-polarity legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.pic-choice {
  min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--tile); color: var(--ink); font-size: 16px; cursor: pointer;
}
.pic-choice:hover { background: var(--fill); }
.pic-choice[aria-pressed="true"] { border: 2px solid var(--ink); padding: 7px 13px; font-weight: 650; }
.pic .btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.article .pic .pic-status { font-size: 16px; overflow-wrap: anywhere; }
.article .pic h3 { margin: 0 0 8px; font-size: 18px; }
.article .pic .pic-text { font-size: 28px; font-weight: 650; line-height: 1.25; white-space: pre-line; overflow-wrap: anywhere; }
.pic-answer .words { margin: 14px 0 0; }
.pic-answer > .pic-actions { margin-top: 16px; }
.pic-figure { min-width: 0; margin-inline: 0; margin-bottom: 0; }
.pic-figure .pic-actions { margin-bottom: 12px; }
.pic-canvas { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.pic-canvas canvas { display: block; width: 100%; height: auto; }
.pic.is-zoomed .pic-canvas canvas { width: auto; max-width: none; }
.pic-figure figcaption { margin-top: 12px; color: var(--sec); font-size: 15px; }
.article .pic-legend { display: grid; gap: 4px 16px; margin: 0 0 10px; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.article .pic-legend li { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.pic-legend svg { flex: none; }
.pic .btn.small { min-height: 44px; }
.pic-figure > .pic-actions[data-picture-step] { margin: 12px 0 0; }
.article .pic .pic-letter { min-height: 1.55em; margin: 8px 0 0; font-weight: 600; }
/* 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) { .pic .pic-hint { display: none; } }
