/* flags.css — Bundle 9 follow-on J: the flag chip on session-view
 * photo cells and the flagged-photos bar under the session view.
 * The chip mirrors styles.css's .dl-chip (same 30px circle, same
 * reveal-on-hover), seated top-left where .dl-chip sits top-right.
 * Wave 10: the on state is the portal's warning amber, not gold —
 * gold is reserved for the screen's one primary action and its one
 * key number, and a flag is a status. Flagged still reads at a
 * glance: an amber chip with a navy glyph, always visible. The on
 * chip renders the set's flagfill glyph (piece G) — its cloth path
 * is closed, and the rule below fills it with currentColor. */

.flag-chip {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(11, 34, 53, .85); color: #fff; font-size: 14px;
  cursor: pointer; opacity: 0; transition: opacity .12s ease;
  display: flex; align-items: center; justify-content: center;
}
.ph:hover .flag-chip, .flag-chip:focus-visible { opacity: 1; }
@media (hover: none) { .flag-chip { opacity: .92; } }
.flag-chip.on { opacity: 1; background: #f3dfae; color: #0b2235; box-shadow: 0 0 0 1.5px #fff; }
.flag-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
/* Field use (no hover, or narrow): a 40px target, always shown. */
@media (hover: none), (max-width: 760px) { .flag-chip { width: 40px; height: 40px; top: 4px; left: 4px; opacity: .92; } .flag-chip.on { opacity: 1; } }
.flag-chip.on svg path:nth-child(2) { fill: currentColor; }
.flag-chip:disabled { cursor: wait; }

#walkthrough-flags { margin-top: 10px; }
#walkthrough-flags .flag-status { align-self: center; }
