/* Fan vote desk (/account/admin/). Builds on account.css; scoped to .desk-*. */
.desk-shell { width: min(100% - 40px, 1080px); margin: 0 auto; padding: 48px 0 80px; min-height: 75vh; }
.desk-heading { max-width: 640px; }
.desk-gate { max-width: 620px; padding: 22px; }
.desk-gate-text { margin: 0 0 14px; font-size: .9rem; line-height: 1.6; }
.desk-gate-text:last-child { margin: 0; }
.desk-setup p { margin: 14px 0 8px; font-size: .8rem; color: var(--muted); }
.desk-setup pre { margin: 0; padding: 14px 16px; overflow-x: auto; border-radius: 10px; background: #111; color: #f3f2ee; font-size: .78rem; line-height: 1.6; }

.desk-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.desk-correction-form { display: grid; gap: 12px; }
.desk-correction-form .desk-round { flex-basis: auto; }
.desk-correction-form .desk-names-filter { max-width: none; }
.desk-correction-form button { justify-self: start; }
.desk-corrections { padding-left: 20px; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.desk-corrections li + li { margin-top: 8px; }
.desk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.desk-round { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; min-width: 0; }
.desk-round span { font-size: .75rem; font-weight: 700; color: var(--muted); }
.desk-round select { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--dk-bg-ffffff, #fff); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; }
.desk-updated { margin: 0; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The selected round as a black capsule, like the header's race timer: a
   status light, the race, and thin orange digits counting down. */
.desk-island { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 14px 12px 22px; border-radius: 999px; background: #000; color: #f3f2ee; box-shadow: 0 12px 34px rgba(12, 12, 12, .18); }
.desk-island-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #8a8a86; }
.desk-island[data-state="open"] .desk-island-dot { background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 107, 0, .6); animation: desk-pulse 2200ms ease-in-out infinite; }
.desk-island[data-state="awaiting"] .desk-island-dot { background: #e2b33c; }
.desk-island[data-state="confirmed"] .desk-island-dot { background: #3fb36f; }
@keyframes desk-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, .55); } 50% { box-shadow: 0 0 0 7px rgba(255, 107, 0, 0); } }
.desk-island-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.desk-island-copy strong { font-size: 1rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-island-copy span { color: rgba(243, 242, 238, .64); font-size: .78rem; line-height: 1.4; }
.desk-island-clock { display: flex; align-items: baseline; gap: 10px; padding: 8px 20px; border-radius: 999px; background: rgba(255, 107, 0, .14); box-shadow: inset 0 0 0 1px rgba(255, 107, 0, .45); color: var(--orange); white-space: nowrap; }
.desk-island-clock[hidden] { display: none; }
.desk-island-clock > span { font-size: .75rem; font-weight: 600; }
.desk-count { font-size: 1.9rem; font-weight: 300; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.desk-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--dk-bg-ffffff, #fff); overflow: hidden; }
.desk-metrics div { padding: 16px 18px; min-width: 0; }
.desk-metrics div + div { border-left: 1px solid var(--line); }
.desk-metrics dt { font-size: .72rem; font-weight: 700; color: var(--muted); }
.desk-metrics dd { margin: 6px 0 0; font-size: 1.75rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.desk-metrics dd[data-desk-metric="last"] { font-size: 1rem; letter-spacing: -.01em; padding-top: .5rem; }

.desk-tallies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.desk-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--dk-bg-ffffff, #fff); }
.desk-panel h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; }
.desk-panel-note { margin: 4px 0 14px; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.desk-empty { margin: 0; padding: 18px 0; color: var(--muted); font-size: .85rem; list-style: none; }

.desk-bars { list-style: none; margin: 0; padding: 0; }
.desk-bars li:not(.desk-empty) { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 34px; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0 9px 12px; box-shadow: inset 3px 0 0 var(--desk-team); border-bottom: 1px solid var(--dk-ln-ececea, #ececea); font-variant-numeric: tabular-nums; }
.desk-pos { font-weight: 700; color: var(--muted); font-size: .85rem; }
.desk-who { display: flex; flex-direction: column; min-width: 0; }
.desk-who strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-who small { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-votes { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.desk-votes b { color: var(--ink); font-size: .95rem; }
.desk-points { font-size: .78rem; font-weight: 700; color: var(--orange-dark, var(--dk-fg-a33d00, #a33d00)); text-align: right; }
.desk-bar { position: absolute; left: 12px; bottom: 3px; height: 3px; width: calc(100% - 12px); border-radius: 3px; background: linear-gradient(90deg, var(--desk-team) var(--desk-bar), var(--dk-bg-efefec, #efefec) var(--desk-bar)); }

.desk-flow-plot { position: relative; height: 180px; margin: 6px 0 30px; border-bottom: 1px solid var(--line); }
.desk-flow-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.desk-flow-bars rect { fill: var(--orange); opacity: .85; }
.desk-flow-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.desk-flow-day { position: absolute; bottom: -24px; transform: translateX(-50%); font-size: .7rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.desk-flow-day::before { content: ""; position: absolute; bottom: 22px; left: 50%; height: 180px; border-left: 1px dashed var(--dk-ln-dededa, #dededa); }
.desk-flow-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .75rem; color: var(--muted); }
.desk-flow-key i { display: inline-block; width: 14px; margin-right: 6px; vertical-align: middle; }
.desk-flow-key i.is-bar { height: 10px; background: var(--orange); opacity: .85; }
.desk-flow-key i.is-line { height: 2px; background: var(--ink); }

.desk-table-wrap { overflow-x: auto; margin: 10px -4px 0; }
.desk-table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.desk-table th, .desk-table td { padding: 10px 8px; border-bottom: 1px solid var(--dk-ln-ececea, #ececea); text-align: left; white-space: nowrap; }
.desk-table thead th { font-size: .72rem; font-weight: 700; color: var(--muted); }
.desk-table tbody th { font-weight: 600; }
.desk-table button { padding: 4px 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.desk-table button span { font-weight: 500; color: var(--muted); }
.desk-table button:hover span { color: var(--ink); text-decoration: underline; }
.desk-table tr[aria-current="true"] { background: var(--dk-bg-f5f5f2, #f5f5f2); }
.desk-table tr[aria-current="true"] th { box-shadow: inset 3px 0 0 var(--orange); }
.desk-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--dk-bg-efefec, #efefec); font-size: .72rem; font-weight: 700; color: var(--muted); }
.desk-table tr[data-state="open"] .desk-chip { background: rgba(255, 107, 0, .14); color: var(--orange-dark, var(--dk-fg-a33d00, #a33d00)); }
.desk-table tr[data-state="awaiting"] .desk-chip { background: var(--dk-bg-fbf0d3, #fbf0d3); color: var(--dk-fg-7a5a00, #7a5a00); }
.desk-table tr[data-state="confirmed"] .desk-chip { background: var(--dk-bg-e3f4e9, #e3f4e9); color: var(--dk-fg-1e6b3f, #1e6b3f); }
.desk-sync { margin: 0 4px; font-size: .78rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 860px) {
  .desk-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk-metrics div + div { border-left: 0; }
  .desk-metrics div { border-top: 1px solid var(--line); }
  .desk-metrics div:nth-child(-n+2) { border-top: 0; }
  .desk-metrics div:nth-child(even) { border-left: 1px solid var(--line); }
  .desk-metrics div:last-child { grid-column: 1 / -1; border-left: 0; }
  .desk-tallies { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .desk-island { flex-wrap: wrap; border-radius: 28px; padding: 16px 18px; gap: 12px 14px; }
  .desk-island-clock { flex: 1 1 100%; justify-content: space-between; }
  .desk-count { font-size: 1.6rem; }
  .desk-panel { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .desk-island[data-state="open"] .desk-island-dot { animation: none; }
}

/* Prediction game names */
.desk-names-filter { display: grid; gap: 6px; max-width: 320px; margin: 0 0 6px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.desk-names-filter input { min-height: 40px; padding: 0 12px; border: 1px solid var(--dk-ln-c9c9c4, #c9c9c4); border-radius: 10px; background: var(--dk-bg-ffffff, #fff); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 400; }
.desk-names td small { color: var(--muted); font-size: .72rem; white-space: normal; }
.desk-names tr[data-state="reported"] > th { box-shadow: inset 3px 0 0 #c2410c; padding-left: 12px; }
.desk-names .desk-name-actions { display: flex; gap: 8px; justify-content: flex-end; }
.desk-table .desk-name-actions .account-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-size: .78rem; font-weight: 650; }
.desk-names-status { min-height: 1.2em; margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.desk-names-status.is-error { color: var(--dk-fg-a22e20, #a22e20); }

/* The overview extends the existing staff desk and shares its surface tokens. */
.admin-overview { display: grid; gap: 18px; }
.admin-overview-heading, .admin-section-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.admin-overview-heading h2 { margin:0; font-size:clamp(1.4rem,3vw,2rem); letter-spacing:-.03em; }
.admin-overview h3 { font-size:.88rem; margin:22px 0 8px; }
.admin-jumps { display:flex; flex-wrap:wrap; gap:10px 18px; padding-bottom:8px; font-size:.82rem; }
.admin-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:18px 0; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.admin-metrics div { padding:16px; background:var(--dk-bg-ffffff,#fff); min-width:0; }
.admin-metrics dt { font-size:.72rem; color:var(--muted); font-weight:600; }
.admin-metrics dd { margin:8px 0 0; font-size:clamp(1rem,2.3vw,1.9rem); font-weight:750; letter-spacing:-.025em; overflow-wrap:anywhere; }
.admin-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.admin-list { margin:0; padding:0; list-style:none; }
.admin-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; padding:13px 0; border-bottom:1px solid var(--line); font-size:.82rem; }
.admin-list li:last-child { border-bottom:0; }
.admin-list strong { font-size:.86rem; overflow-wrap:anywhere; }
.admin-list span { grid-column:1/-1; color:var(--muted); line-height:1.6; overflow-wrap:anywhere; }
.admin-list a { justify-self:start; }
.admin-badge { align-self:start; border:1px solid var(--line); border-radius:20px; padding:3px 9px; font-size:.68rem; font-weight:600; }
.admin-badge:empty { display:none; }
.admin-badge[data-warning] { color:var(--orange-dark,var(--dk-fg-a33d00,#a33d00)); border-color:currentColor; }
.admin-overview section, #vote-desk { scroll-margin-top:100px; }
@media(max-width:600px) { .admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .admin-columns { grid-template-columns:minmax(0,1fr); gap:8px; } .admin-list li { grid-template-columns:minmax(0,1fr); } .admin-badge { justify-self:start; } }
