/* ---------------------------------------------------------------------------
   Problems I've run into: a section of Pip's panel
   ---------------------------------------------------------------------------
   A still, sad Pip, the title and how many need you as the figure; a red
   strip per channel that is off, its name and Reconnect; then two tiles a
   row, tinted amber where emails are affected and grey where work is held
   up, each its icon and faces or logos, the count large and a short label,
   as Today's tiles are drawn. The whole tile is the button.
   App: app/pulse-problems.js.
   --------------------------------------------------------------------------- */

.problem { display: flex; flex-direction: column; gap: 8px }
.problem__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px }
.problem__pip { flex: 0 0 32px }
.problem__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text) }
.problem__fig { display: flex; align-items: baseline; gap: 6px; white-space: nowrap }
.problem__fig b { font-size: 20px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text) }
.problem__fig span { font-size: 12.5px; font-weight: 500; color: var(--muted) }

.problem__strip {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--bad) 10%, var(--card)); color: #8E1B12;
  font-size: 15px; font-weight: 600;
}
.problem__strip > span { flex: 1; min-width: 0 }
.problem__fix, .problem__fix:hover { background: var(--bad); border-color: var(--bad); color: #fff }

.problem__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.problem__tile {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 104px;
  padding: 12px; border: 0; border-radius: 12px; cursor: pointer; text-align: left; font: inherit;
  transition: transform .14s var(--ease-out), filter .16s ease;
}
.problem__tile.is-warn { background: color-mix(in srgb, var(--amber) 16%, var(--card)); color: #6B4400 }
.problem__tile.is-hold { background: var(--page); color: #33403E }
.problem__tile:hover { filter: brightness(.97) }
.problem__tile:active { transform: scale(.98) }
.problem__tile:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px }
.problem__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px }
.problem__top > .ms { font-size: 22px; color: inherit }
.problem__marks { display: flex; align-items: center }
.problem__mark {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; margin-left: -6px; overflow: hidden;
  display: grid; place-items: center; font-size: 10px; font-weight: 600;
  background: var(--card); color: var(--text); box-shadow: 0 0 0 2px var(--card);
}
.problem__mark:first-child { margin-left: 0 }
.problem__mark img { width: 100%; height: 100%; object-fit: cover }
.problem__mark--co { border-radius: 7px }
.problem__file { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0 }
.problem__n { font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; margin-top: auto }
.problem__label { font-size: 13px; font-weight: 600; line-height: 1.25 }
.problem__menuface { width: 24px; height: 24px; flex: 0 0 24px; font-size: 10px }

@media (prefers-reduced-motion: reduce) { .problem__tile { transition: none } }
