:root {
  --fo-bg: #0a0f0d;
  --fo-panel: #101713;
  --fo-panel-2: #141d18;
  --fo-line: #223028;
  --fo-ink: #f2f5f3;
  --fo-muted: #8a978f;
  --fo-muted-2: #5f6b64;
  --fo-accent: #22d3a3;
  --fo-accent-dim: rgba(34, 211, 163, 0.12);
  --fo-danger: #f2495c;
  --fo-danger-dim: rgba(242, 73, 92, 0.12);
  --fo-warn: #e2b93b;
  --fo-warn-dim: rgba(226, 185, 59, 0.14);
  --fo-good: #22d3a3;
  --fo-good-dim: rgba(34, 211, 163, 0.12);
}

.fo-body {
  margin: 0;
  background: var(--fo-bg);
  color: var(--fo-ink);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.fo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: #000000;
  border-bottom: 1px solid var(--fo-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.fo-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fo-ink);
}

.fo-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--fo-accent), #0e8f6f);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 5px 5px 4px;
}

.fo-brand-mark span {
  display: block;
  width: 3px;
  background: #06231b;
  border-radius: 1px;
}
.fo-brand-mark span:nth-child(1) { height: 6px; }
.fo-brand-mark span:nth-child(2) { height: 11px; }
.fo-brand-mark span:nth-child(3) { height: 16px; }

.fo-brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.fo-topnav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.fo-topnav a {
  color: var(--fo-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
}

.fo-topnav a.active {
  color: var(--fo-accent);
  border-bottom-color: var(--fo-accent);
}

.fo-topnav a.disabled {
  color: var(--fo-muted-2);
  cursor: default;
  pointer-events: none;
}

/* Tools dropdown - same link styling as a plain top-nav item, plus a small caret and an
   absolutely-positioned menu panel toggled by JS (click, not hover - more reliable on
   touch, and avoids an accidental-close-while-moving-the-mouse annoyance). */
.fo-nav-dropdown {
  position: relative;
}

.fo-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--fo-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0 0 0.35rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.fo-nav-dropdown-trigger:hover,
.fo-nav-dropdown.open .fo-nav-dropdown-trigger {
  color: var(--fo-ink);
}

.fo-nav-dropdown.active .fo-nav-dropdown-trigger {
  color: var(--fo-accent);
  border-bottom-color: var(--fo-accent);
}

.fo-nav-dropdown-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.12s ease;
}

.fo-nav-dropdown.open .fo-nav-dropdown-caret {
  transform: rotate(225deg) translateY(-1px);
}

.fo-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: var(--fo-panel);
  border: 1px solid var(--fo-line);
  border-radius: 10px;
  padding: 0.4rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  z-index: 25;
}

.fo-nav-dropdown.open .fo-nav-dropdown-menu {
  display: flex;
}

.fo-nav-dropdown-menu a {
  color: var(--fo-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  white-space: nowrap;
}

.fo-nav-dropdown-menu a:hover {
  color: var(--fo-ink);
  background: var(--fo-panel-2);
}

.fo-nav-dropdown-menu a.active {
  color: var(--fo-accent);
  background: var(--fo-accent-dim);
}

.fo-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fo-panel-2);
  border: 1px solid var(--fo-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fo-muted);
}

.fo-refresh-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--fo-line);
  background: transparent;
  color: var(--fo-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fo-main {
  padding: 1.75rem 2rem 3rem;
  min-width: 0;
}

/* Compact page-level meta strip - replaces the old sidebar's League Profile/Scoring/
   Roster summary + Data Updated/refresh, now that the sidebar is gone and the page runs
   full width. */
.fo-page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  background: var(--fo-panel);
  border: 1px solid var(--fo-line);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}

.fo-page-meta .fo-info-label {
  color: var(--fo-muted-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.fo-page-meta .fo-info-value {
  color: var(--fo-ink);
  font-weight: 600;
  font-size: 0.88rem;
}

.fo-page-meta-spacer {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fo-page-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.fo-page-sub {
  color: var(--fo-muted);
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
}

.fo-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  background: var(--fo-panel);
  border: 1px solid var(--fo-line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.fo-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fo-field label {
  color: var(--fo-muted);
  font-size: 0.75rem;
}

.fo-field select,
.fo-field input {
  background: var(--fo-panel-2);
  border: 1px solid var(--fo-line);
  color: var(--fo-ink);
  border-radius: 7px;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  min-width: 170px;
}

.fo-search {
  flex: 1;
  min-width: 220px;
}

.fo-live-indicator {
  margin-left: auto;
  color: var(--fo-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding-bottom: 0.5rem;
}

.fo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fo-accent);
  box-shadow: 0 0 6px var(--fo-accent);
}

.fo-board-card {
  background: var(--fo-panel);
  border: 1px solid var(--fo-line);
  border-radius: 10px;
  overflow: hidden;
}

.fo-board-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--fo-line);
}

.fo-board-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--fo-accent);
}

.fo-board-head .fo-muted-inline {
  color: var(--fo-muted);
  font-size: 0.85rem;
}

.fo-week-picker {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fo-week-picker select {
  background: var(--fo-panel-2);
  border: 1px solid var(--fo-line);
  color: var(--fo-ink);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.fo-board-head .fo-updated {
  margin-left: auto;
  color: var(--fo-muted-2);
  font-size: 0.78rem;
}

.fo-table-scroll {
  overflow-x: auto;
}

.fo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.fo-table thead th {
  text-align: left;
  color: var(--fo-muted-2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--fo-line);
  white-space: nowrap;
}

.fo-table tbody td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(34, 48, 40, 0.5);
  white-space: nowrap;
  font-size: 0.86rem;
}

.fo-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fo-tier-row td {
  padding: 0.5rem 1rem;
  color: var(--fo-accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: rgba(34, 211, 163, 0.05);
  border-bottom: 1px solid rgba(34, 211, 163, 0.15);
}

.fo-player-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fo-team-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.fo-player-name {
  color: var(--fo-ink);
  font-weight: 600;
}

.fo-player-team {
  color: var(--fo-muted-2);
  font-size: 0.78rem;
  margin-left: 0.35rem;
}

.fo-status-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.fo-status-q { background: var(--fo-warn-dim); color: var(--fo-warn); }
.fo-status-d { background: var(--fo-danger-dim); color: var(--fo-danger); }
.fo-status-o { background: var(--fo-danger-dim); color: var(--fo-danger); }

.fo-diff-pos { color: var(--fo-good); }
.fo-diff-neg { color: var(--fo-danger); }
.fo-diff-flat { color: var(--fo-muted-2); }

.fo-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.fo-pill-good { background: var(--fo-good-dim); color: var(--fo-good); }
.fo-pill-neutral { background: rgba(138, 151, 143, 0.14); color: var(--fo-muted); }
.fo-pill-warn { background: var(--fo-warn-dim); color: var(--fo-warn); }
.fo-pill-danger { background: var(--fo-danger-dim); color: var(--fo-danger); }

.fo-notes-btn {
  background: none;
  border: none;
  color: var(--fo-muted-2);
  cursor: pointer;
  font-size: 1rem;
}

.fo-notes-btn:hover {
  color: var(--fo-accent);
}

.fo-coming-soon {
  background: var(--fo-panel);
  border: 1px solid var(--fo-line);
  border-radius: 10px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--fo-muted);
}

.fo-coming-soon h2 {
  color: var(--fo-ink);
  margin-top: 0;
}

.fo-info-icon {
  color: var(--fo-muted-2);
  font-size: 0.7rem;
  cursor: help;
  margin-left: 0.15rem;
}

/* ---- Depth charts ---- */

.fo-depth-team {
  background: var(--fo-panel);
  border: 1px solid var(--fo-line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem 1.4rem;
  margin-bottom: 1.1rem;
}

.fo-depth-team-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fo-team-badge-lg {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.fo-depth-team-header h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--fo-accent);
}

.fo-depth-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 1rem;
  overflow-x: auto;
}

.fo-depth-col-header {
  color: var(--fo-muted-2);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--fo-line);
  white-space: nowrap;
}

.fo-depth-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fo-depth-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.fo-depth-rank {
  color: var(--fo-muted-2);
  font-weight: 700;
  min-width: 2.8em;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.85em;
}

.fo-depth-name {
  color: var(--fo-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .fo-depth-grid {
    grid-template-columns: repeat(5, 160px);
  }
}

/* ---- Injury report ---- */

.fo-injury-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.fo-injury-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(34, 48, 40, 0.5);
  font-size: 0.86rem;
}

.fo-injury-row:last-child {
  border-bottom: none;
}

.fo-injury-pos {
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--fo-muted-2);
  background: var(--fo-panel-2);
  border: 1px solid var(--fo-line);
  border-radius: 4px;
  padding: 0.15rem 0;
}

.fo-injury-name {
  color: var(--fo-ink);
  font-weight: 600;
  flex-shrink: 0;
}

.fo-injury-detail {
  color: var(--fo-muted);
  font-size: 0.8rem;
  margin-left: auto;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- My Teams ---- */

.fo-page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.fo-back-link {
  display: inline-block;
  color: var(--fo-muted);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.fo-back-link:hover {
  color: var(--fo-accent);
}

.fo-team-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.fo-team-card {
  background: var(--fo-panel);
  border: 1px solid var(--fo-line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fo-team-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fo-team-card h2 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  color: var(--fo-ink);
}

.fo-team-card-league {
  margin: 0;
  color: var(--fo-muted);
  font-size: 0.82rem;
}

.fo-team-card-count {
  margin: 0 0 0.4rem;
  color: var(--fo-muted-2);
  font-size: 0.78rem;
}

.fo-team-card .fo-btn {
  align-self: flex-start;
}

.fo-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--fo-line);
  background: transparent;
  color: var(--fo-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.fo-icon-btn:hover {
  color: var(--fo-danger);
  border-color: var(--fo-danger);
}

.fo-player-search-results {
  margin-top: 0.75rem;
  border: 1px solid var(--fo-line);
  border-radius: 8px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
}

.fo-player-search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(34, 48, 40, 0.5);
}

.fo-player-search-row:last-child {
  border-bottom: none;
}

.fo-player-search-row .fo-player-name {
  flex: 1;
}

.fo-player-search-row .fo-btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
}

.fo-position-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fo-position-filter-btn.active {
  background: var(--fo-accent-dim);
  border-color: var(--fo-accent);
  color: var(--fo-accent);
}

.fo-roster-row-empty td {
  color: var(--fo-muted-2);
  font-style: italic;
}

.fo-roster-table {
  min-width: 1280px;
}

.fo-roster-table .fo-stack-header {
  white-space: normal;
  line-height: 1.2;
  text-align: right;
  max-width: 44px;
}

.fo-roster-table .fo-stat-cell,
.fo-roster-table thead th:nth-child(n+8) {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  text-align: right;
}

.fo-roster-table .fo-stat-cell {
  color: var(--fo-muted);
  font-variant-numeric: tabular-nums;
}

.fo-roster-table .fo-actual-cell {
  color: var(--fo-accent);
  font-weight: 700;
}

.fo-weather-cell {
  text-align: center;
}

.fo-matchup-cell {
  white-space: nowrap;
}

.fo-matchup-time {
  color: var(--fo-muted);
  font-size: 0.78rem;
  margin-right: 0.3rem;
}

.fo-weather-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  opacity: 0.85;
  transition: opacity 0.1s ease;
}

.fo-weather-icon:hover {
  opacity: 1;
}

.fo-table-group-row th {
  color: var(--fo-muted-2);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.3rem 0.5rem 0;
  border-bottom: none;
}

#fo-bench-zone {
  min-height: 2.5rem;
}

.fo-roster-row {
  cursor: grab;
}

.fo-roster-row.fo-dragging {
  opacity: 0.4;
}

.fo-roster-row-empty {
  cursor: default;
}

.fo-roster-row-empty td {
  border-bottom: 1px dashed rgba(34, 48, 40, 0.5);
}

.fo-roster-slot-badge {
  display: inline-block;
  width: 40px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--fo-accent);
  background: var(--fo-accent-dim);
  border-radius: 4px;
  padding: 0.15rem 0;
}

.fo-roster-drag-cell {
  width: 1.5rem;
}

.fo-drag-handle {
  color: var(--fo-muted-2);
  font-size: 0.8rem;
  cursor: grab;
}

/* ---- Player notes modal ---- */

.fo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 6, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.fo-modal-backdrop:not([hidden]) {
  display: flex;
}

.fo-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--fo-panel);
  border: 1px solid var(--fo-line);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fo-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--fo-line);
  background: var(--fo-panel-2);
  color: var(--fo-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.fo-modal-close:hover {
  color: var(--fo-ink);
  border-color: var(--fo-accent);
}

.fo-modal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding-right: 1.5rem;
}

.fo-modal-header .fo-team-badge {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.fo-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fo-ink);
}

.fo-modal-meta {
  color: var(--fo-muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.fo-modal-summary {
  color: var(--fo-ink);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.fo-modal-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fo-modal-bullets li {
  background: var(--fo-panel-2);
  border: 1px solid var(--fo-line);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--fo-muted);
  line-height: 1.4;
}

/* ---- Admin page ---- */

.fo-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.fo-admin-grid.fo-admin-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1.25rem;
}

@media (max-width: 1100px) {
  .fo-admin-grid {
    grid-template-columns: 1fr;
  }
}

.fo-card {
  background: var(--fo-panel);
  border: 1px solid var(--fo-line);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}

.fo-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--fo-accent);
}

.fo-card h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--fo-ink);
}

.fo-card p {
  color: var(--fo-muted);
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}

.fo-card ul,
.fo-card ol {
  margin: 0 0 0.6rem;
  padding-left: 1.25rem;
  color: var(--fo-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fo-card ul code,
.fo-card ol code {
  color: var(--fo-ink);
  background: var(--fo-panel-2);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-size: 0.8rem;
}

.fo-card hr {
  border: none;
  border-top: 1px solid var(--fo-line);
  margin: 1.1rem 0;
}

.fo-checkline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fo-muted);
  font-size: 0.85rem;
  margin-right: 1.25rem;
}

.fo-checkline input {
  accent-color: var(--fo-accent);
}

.fo-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.9rem 0;
}

.fo-btn {
  border-radius: 7px;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--fo-line);
  background: var(--fo-panel-2);
  color: var(--fo-ink);
}

.fo-btn:hover {
  border-color: var(--fo-accent);
}

.fo-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.fo-btn-primary {
  background: var(--fo-accent-dim);
  border-color: var(--fo-accent);
  color: var(--fo-accent);
}

.fo-btn-ghost {
  background: transparent;
}

.fo-status-line {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--fo-muted);
}

.fo-pre {
  background: var(--fo-panel-2);
  border: 1px solid var(--fo-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
  color: var(--fo-ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow-y: auto;
  margin: 0;
}

.fo-release-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* Admin page usability pass (2026-09-09): plain-language run results + a clear
   step-by-step order, replacing raw JSON dumps everywhere they used to appear. */
.fo-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--fo-accent-dim);
  color: var(--fo-accent);
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.fo-card-lead {
  color: var(--fo-muted);
  font-size: 0.82rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.fo-oncold {
  border-color: var(--fo-warn);
}

.fo-oncold summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--fo-accent);
  font-weight: 600;
}

.fo-oncold summary::-webkit-details-marker { display: none; }

.fo-oncold summary::before {
  content: "\25B8";
  color: var(--fo-muted);
  transition: transform 0.12s ease;
}

.fo-oncold[open] summary::before {
  transform: rotate(90deg);
}

.fo-hold-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--fo-warn-dim);
  color: var(--fo-warn);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.6rem;
}

.fo-next-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: var(--fo-accent-dim);
  border: 1px solid var(--fo-accent);
  color: var(--fo-ink);
  font-size: 0.85rem;
}

.fo-next-step.fo-next-step-error {
  background: var(--fo-danger-dim);
  border-color: var(--fo-danger);
}

.fo-next-step.fo-next-step-warn {
  background: var(--fo-warn-dim);
  border-color: var(--fo-warn);
}

.fo-next-step.fo-next-step-done {
  background: var(--fo-good-dim);
  border-color: var(--fo-good);
}

.fo-next-step-icon {
  flex-shrink: 0;
  font-weight: 700;
}

.fo-run-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fo-run-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--fo-line);
  font-size: 0.82rem;
}

.fo-run-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fo-run-list .fo-run-main {
  color: var(--fo-ink);
  font-weight: 600;
}

.fo-run-list .fo-run-meta {
  color: var(--fo-muted-2);
  font-size: 0.75rem;
  white-space: nowrap;
}

.fo-status-pill-run {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.5rem;
}

.fo-status-pill-run.ok { background: var(--fo-good-dim); color: var(--fo-good); }
.fo-status-pill-run.bad { background: var(--fo-danger-dim); color: var(--fo-danger); }
.fo-status-pill-run.pending { background: var(--fo-warn-dim); color: var(--fo-warn); }
