/* 状態の表示：中性の文字の前に、状態色の小さな丸（2026-11-30、unslop 審査 G1）。色は丸だけで、文字と地は全部同じ中性色。
 * 状態色は 4 つだけ：いま開いている（募集中・投票中）はティール、待ち・終わったものは muted、対応が要るものはアンバー、削除は赤。承認と受賞は success。
 * 作品・応募の審査（.state-badge[data-state]）、コンテストの段階（.contest-phase[data-phase]）、通知の種類（.notify-type[data-type]）で共通。
 * --fc-icon-* は以前のアイコン付き表示の名残で、ほかのページが使う場合のために残している。 */
:root {
  --fc-icon-mega: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4h3l6 4V6l-6 4H4ZM16.5 9a4 4 0 0 1 0 6'/%3E%3C/svg%3E");
  --fc-icon-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19.5s-7-4.3-7-9.6A4 4 0 0 1 12 7.3a4 4 0 0 1 7 2.6c0 5.3-7 9.6-7 9.6Z'/%3E%3C/svg%3E");
  --fc-icon-hour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h10M7 20.5h10M8.5 3.5v3l3.5 5 3.5-5v-3M8.5 20.5v-3l3.5-5.5 3.5 5.5v3'/%3E%3C/svg%3E");
  --fc-icon-trophy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8v5a4 4 0 0 1-8 0V4ZM8 6H5.5a2.5 2.5 0 0 0 2.5 3.5M16 6h2.5A2.5 2.5 0 0 1 16 9.5M12 13v3.5M8.5 20h7M10 16.5h4V20h-4z'/%3E%3C/svg%3E");
  --fc-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --fc-icon-ban: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM6 6l12 12'/%3E%3C/svg%3E");
  --fc-icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3 19.5h18L12 4ZM12 10v4.5M12 17v.5'/%3E%3C/svg%3E");
  --fc-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7.5V12l3 2'/%3E%3C/svg%3E");
  --fc-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 11h11v8.5h-11ZM8.5 11V8a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E");
  --fc-icon-bubble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h14v10h-9l-4 3.5V15H5V5Z'/%3E%3C/svg%3E");
  --fc-icon-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.5V11a6 6 0 0 1 12 0v5.5l1.5 2h-15l1.5-2ZM10 20.5h4'/%3E%3C/svg%3E");
  --fc-icon-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20.5V4m0 0h11l-2.5 3.5L17 11H6'/%3E%3C/svg%3E");
}
.state-badge,
.badge.contest-phase,
.notify-item .notify-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 0;
  border-radius: var(--fc-radius-sm);
  background: var(--fc-color-surface-sunken);
  color: var(--fc-color-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.state-badge::before,
.badge.contest-phase::before,
.notify-item .notify-type::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st, var(--fc-color-text-muted));
}
/* 審査中は砂時計の代わりに回るスピナー（結果待ち）。 */
.state-badge:has(.review-spinner)::before {
  content: none;
}
.state-badge .review-spinner {
  margin: 0;
}
.state-badge[data-state='draft'] {
  --st: var(--fc-color-text-muted);
  --st-icon: var(--fc-icon-lock);
}
.state-badge[data-state='review'],
.badge.contest-phase[data-phase='review'],
.badge.contest-phase[data-phase='judging'],
.state-badge[data-state='judging'] {
  --st: var(--fc-color-status-review);
  --st-icon: var(--fc-icon-hour);
}
.state-badge[data-state='revise'] {
  --st: var(--fc-color-status-needs-fix);
  --st-icon: var(--fc-icon-alert);
}
.state-badge[data-state='approved'],
.state-badge[data-state='locked'],
.notify-item .notify-type[data-type='review'] {
  --st: var(--fc-color-success);
  --st-icon: var(--fc-icon-check);
}
.state-badge[data-state='removed'] {
  --st: var(--fc-color-status-rejected);
  --st-icon: var(--fc-icon-ban);
}
.state-badge[data-state='withdrawn'] {
  --st: var(--fc-color-text-muted);
  --st-icon: var(--fc-icon-ban);
}
.state-badge[data-state='voting'],
.badge.contest-phase[data-phase='voting'],
.notify-item .notify-type[data-type='voting'] {
  --st: var(--fc-color-status-voting);
  --st-icon: var(--fc-icon-heart);
}
.state-badge[data-state='winner'],
.notify-item .notify-type[data-type='award'] {
  --st: var(--fc-color-success);
  --st-icon: var(--fc-icon-trophy);
}
.badge.contest-phase[data-phase='ended'],
.notify-item .notify-type[data-type='result'] {
  --st: var(--fc-color-status-result);
  --st-icon: var(--fc-icon-trophy);
}
.state-badge[data-state='ended'] {
  --st: var(--fc-color-text-muted);
  --st-icon: var(--fc-icon-trophy);
}
.badge.contest-phase[data-phase='open'] {
  --st: var(--fc-color-status-recruit);
  --st-icon: var(--fc-icon-mega);
}
.badge.contest-phase[data-phase='upcoming'] {
  --st: var(--fc-color-text-muted);
  --st-icon: var(--fc-icon-clock);
}
.notify-item .notify-type[data-type='deadline'] {
  --st: var(--fc-color-status-needs-fix);
  --st-icon: var(--fc-icon-clock);
}
.state-badge[data-state='shared'],
.notify-item .notify-type[data-type='reply'],
.notify-item .notify-type[data-type='quote'],
.notify-item .notify-type[data-type='mention'] {
  --st: var(--fc-color-accent);
  --st-icon: var(--fc-icon-bubble);
}
.notify-item .notify-type[data-type='report'] {
  --st: var(--fc-color-text-muted);
  --st-icon: var(--fc-icon-flag);
}
