/* The lost & found tile. One class, three portals — a wall that looks like a
   grid in the office and like a list on a phone is two different features. */
.lf-photo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  /* The same neutral the thumb is letterboxed onto, so the padding around a
     tall coat is one continuous colour instead of a frame inside a frame. */
  background: #e9edf2;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  user-select: none;
}
.lf-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* What a tile looks like before the bytes land, and what it stays as if they
   never do. A neutral box with the bucket's own emoji rather than a grey
   rectangle: grey reads as "still loading" forever, and an item with no photo
   cannot exist — the photo IS the item — so this only ever means "not here
   yet" or "this one failed". */
.lf-photo-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  opacity: 0.45;
}
.lf-photo[data-lf-done="yes"] .lf-photo-ph { display: none; }
/* Only a tile with a picture behind it is a control. One that is still a
   placeholder opens nothing, and a control that does nothing is how people
   learn the tile is not a control — including on the tiles where it is. */
.lf-photo[data-lf-done="yes"] { cursor: zoom-in; }
.lf-photo[data-lf-done="yes"]:hover { box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.3); }
.lf-photo:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

/* The viewer. Above the admin's modals (4100), the counselor's sheets (400)
   and the toasts (9000): one that lands behind whatever opened it reads as a
   tap that did nothing. */
.lf-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 12px;
}
.lf-viewer-in {
  max-width: min(94vw, 900px);
  max-height: 78vh;
  display: flex;
}
.lf-viewer-in img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: #e9edf2;
}
.lf-viewer-cap {
  color: #f1f5f9;
  font-size: 0.95rem;
  text-align: center;
  max-width: min(94vw, 900px);
}
.lf-viewer-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  font-size: 1.1rem;
  background: rgba(248, 250, 252, 0.92);
  color: #0f172a;
}

/* The wall itself. auto-fill so the office's laptop gets a grid and a phone
   gets two across, without either being told a column count. */
.lf-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.lf-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lf-card.lf-closed { opacity: 0.68; }
.lf-meta { font-size: 0.8rem; color: #64748b; line-height: 1.35; }
.lf-desc { font-weight: 600; font-size: 0.92rem; color: #0f172a; }
/* Amber, not red: an item nobody has come for is a job, not a failure. */
.lf-stale { color: #b45309; font-weight: 600; }
.lf-claimed { color: #0e7490; font-weight: 600; }
