/* Image annotation board (screens/annotation-board.jsx, claude/annotation-input 2026-10-02).
   Functional first pass: sizes and states the behaviour needs (28px marker, 44px tap area, highlight,
   temporary "+" marker, placing mode). Final look belongs to the design agent. Tokens only. */

.annotation-board { display: flex; flex-direction: column; gap: 12px; }
.annotation-board__stage { background: var(--bg-subtle); border-radius: var(--r-md); padding: 20px; }
.annotation-board__stage.is-placing .pattern-image-stage { outline: 2px dashed var(--brand-500); outline-offset: 2px; }

/* Marker: 44px hit area, 28px visible dot. */
.annotation-board__marker {
  position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%);
  display: grid; place-items: center; padding: 0; margin: 0; border: 0; background: transparent;
  cursor: pointer; z-index: 1;
}
.annotation-board__dot {
  width: 28px; height: 28px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--brand-500); color: var(--text-on-brand); font-size: var(--t-small); font-weight: 700;
  border: 3px solid var(--bg-card); box-shadow: var(--shadow-md); box-sizing: border-box; line-height: 1;
}
.annotation-board__marker.is-active { z-index: 2; }
.annotation-board__marker.is-active .annotation-board__dot { outline: 3px solid var(--brand-700); outline-offset: 1px; transform: scale(1.15); }
.annotation-board__marker:focus-visible .annotation-board__dot { outline: 3px solid var(--brand-700); outline-offset: 1px; }
.annotation-board__marker--draft { cursor: default; pointer-events: none; }
.annotation-board__marker--draft .annotation-board__dot { background: var(--bg-card); color: var(--brand-600); border: 2px dashed var(--brand-500); }

.annotation-board__toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.annotation-board__limit,
.annotation-board__notice {
  padding: 9px 12px; border-radius: var(--r-md); font-size: var(--t-small);
  background: var(--brand-50); color: var(--brand-700);
}
.annotation-board__limit { background: var(--warning-bg); color: var(--warning-text); }

.annotation-board__composer {
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  border: 1px solid var(--brand-500); border-radius: var(--r-md); background: var(--bg-card);
}
.annotation-board__composer-head { display: flex; align-items: center; gap: 8px; font-size: var(--t-small); }
.annotation-board__composer-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.annotation-board__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.annotation-board__empty { padding: 8px 0; }
.annotation-board__row {
  display: flex; align-items: flex-start; gap: 8px; padding: 6px; border-radius: var(--r-md);
  border: 1px solid transparent; scroll-margin: 80px;
}
.annotation-board__row.is-active { border-color: var(--brand-500); background: var(--brand-50); }
.annotation-board__row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.annotation-board__row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.annotation-board__badge {
  flex-shrink: 0; min-width: 28px; height: 28px; padding: 0 6px; margin-top: 6px; border-radius: var(--r-full);
  display: grid; place-items: center; box-sizing: border-box;
  background: var(--brand-500); color: var(--text-on-brand); font-size: var(--t-micro); font-weight: 700;
}
.annotation-board__badge--general { background: var(--bg-subtle); color: var(--text-strong); border: 1px solid var(--border-strong); }
.annotation-board__badge--unplaced { background: var(--bg-card); color: var(--text-muted); border: 2px dashed var(--border-strong); }
.annotation-board__badge--draft { background: var(--bg-card); color: var(--brand-600); border: 2px dashed var(--brand-500); margin-top: 0; }
.annotation-board__list--read .annotation-board__badge { margin-top: 0; }
.annotation-board__list--read .annotation-board__row { padding: 2px 0; align-items: center; }

@media (max-width: 640px) {
  .annotation-board__stage { padding: 8px; }
  .annotation-board__row { flex-wrap: wrap; }
  .annotation-board__row > .btn { margin-left: 36px; }
}
