/* Flavour colours config — List and Board views over one filtered set. The
   tray swatch (flavour colour filling from the top over a stainless base)
   previews the Display Cabinet metaphor; the later cabinet slice matches it. */

/* --- Tray swatch ---------------------------------------------------------- */
.tray-swatch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 5px;
  border: 0.5px solid var(--border-strong);
  overflow: hidden;
  /* Brushed-steel base — a soft vertical metallic sheen. */
  background: linear-gradient(150deg, #e9eaec 0%, #c9ccd0 45%, #d6d8db 55%, #bfc2c6 100%);
  vertical-align: middle;
}
.tray-swatch.sm {
  width: 30px;
  height: 24px;
}
.tray-swatch.lg {
  width: 100%;
  height: 56px;
  border-radius: 7px;
}
/* The gelato: the flavour colour filling from the top. Leaves a thin strip of
   steel at the bottom so the tray reads as a tray, not a flat chip. */
.tray-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 82%;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.12);
}
/* Empty tray — no colour set. Just the steel base with a faint dashed inset. */
.tray-swatch.empty {
  box-shadow: inset 0 0 0 1.5px rgba(27, 36, 32, 0.12);
}

/* --- List view ------------------------------------------------------------ */
.fc-table {
  width: 100%;
  border-collapse: collapse;
}
.fc-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-bottom: 0.5px solid var(--border);
}
.fc-table td {
  padding: 8px 10px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: middle;
}
.fc-table .swatch-col {
  width: 40px;
}
.fc-name {
  font-weight: 500;
  font-size: 14px;
}
.fc-type {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.hex-col {
  width: 190px;
}

.hex-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.colour-hex {
  width: 92px !important;
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}
.colour-hex.invalid {
  border-color: var(--danger-text);
}
.hex-picker-btn {
  cursor: pointer;
  padding: 0;
}
.colour-picker {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* --- Group cell ----------------------------------------------------------- */
.group-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.group-swatch {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 0.5px solid var(--border-strong);
  flex-shrink: 0;
}
.group-swatch.unset {
  border: 1px dashed var(--border-strong);
  background: repeating-linear-gradient(45deg, var(--surface-1), var(--surface-1) 3px, var(--surface-2) 3px, var(--surface-2) 6px);
}
.group-cell .group-name {
  font-size: 13px;
  color: var(--text-secondary);
}
.group-none {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
  padding: 3px 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
}
/* Quiet badge: editing this flavour also moves that group's shelf-sheet colour. */
.follows-badge {
  font-size: 11px;
  color: var(--accent-text);
  background: var(--accent-bg);
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* --- Header count + toolbar ----------------------------------------------- */
.fc-headline {
  margin: 10px 0 4px;
}
.fc-count {
  font-size: 13px;
  font-weight: 500;
}
.fc-count.pending {
  color: var(--warning-text);
}
.fc-count.done {
  color: var(--success-fill);
}
.fc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.view-toggle {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.pill.view-btn,
.pill.filter-toggle {
  cursor: pointer;
}

/* --- Board view ----------------------------------------------------------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.board-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.board-name {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.board-type {
  font-size: 11px;
  color: var(--text-muted);
}
/* Neutral, informational only — never an alarm. */
.similar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
