:root {
  color-scheme: dark;
  --night: #070b22;
  --panel: #0d1236;
  --stage: #080c28;
  --ink: #f4f3ff;
  --muted: #a9acd6;
  --violet: #7c3aed;
  --gold: #f5c451;
  --line: rgba(255, 255, 255, 0.1);
  --hover: rgba(255, 255, 255, 0.07);
  --on: rgba(124, 58, 237, 0.38);
  --table: #0c102c;
  --table-head: #171c4a;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--night);
  color: var(--ink);
}

body {
  display: flex;
  min-height: 100%;
}

button { font: inherit; color: inherit; }

.side {
  width: 292px;
  flex: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 40% at 0% 0%, rgba(124, 58, 237, 0.28), transparent 55%),
    var(--panel);
  border-right: 1px solid var(--line);
  transition: width 0.2s ease;
}

.side.collapsed { width: 84px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 12px;
}

.logo { width: 40px; height: 40px; flex: none; }

.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 16px; font-weight: 800; }
.brand-name span { font-size: 13px; color: var(--gold); font-weight: 700; }

.nav {
  flex: 1;
  overflow: auto;
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }

.event, .row, .fold {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
}

.event {
  margin-bottom: 8px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.18), rgba(124, 58, 237, 0.2));
  border: 1px solid rgba(245, 196, 81, 0.35);
}

.event:hover { filter: brightness(1.12); }
.event.on { box-shadow: inset 0 0 0 1px var(--gold); }

.event-copy { display: flex; flex-direction: column; min-width: 0; }
.event-copy b { font-size: 13.5px; font-weight: 800; }
.event-copy small { color: var(--muted); font-size: 11.5px; }

.row {
  padding: 9px 10px;
  color: #e4e6ff;
  border-radius: 12px;
}

.row span, .fold span { white-space: nowrap; }

.row svg, .event svg, .fold svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row:hover, .fold:hover { background: var(--hover); }
.row.on {
  background: var(--on);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.45);
  color: #fff;
}

.head { color: #f7f7ff; font-weight: 700; }
.chev { margin-left: auto; width: 16px; height: 16px; transition: transform 0.18s ease; }
.group.open .chev { transform: rotate(90deg); }

.sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 6px;
  padding-left: 8px;
}

.group.open .sub { display: flex; }

.sub .row { font-size: 13.5px; font-weight: 600; color: #d5d8f7; }

.fold {
  margin: 8px 12px 16px;
  width: auto;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
}

.side.collapsed .brand { padding-inline: 22px; }
.side.collapsed .brand-name,
.side.collapsed .event-copy,
.side.collapsed .label,
.side.collapsed .chev { display: none; }
.side.collapsed .sub { padding-left: 0; }
.side.collapsed .event,
.side.collapsed .row,
.side.collapsed .fold { justify-content: center; padding-inline: 0; }
.side.collapsed .event,
.side.collapsed .fold {
  width: 44px;
  height: 44px;
  margin-inline: auto;
  padding: 0;
}
.side.collapsed .fold { margin-bottom: 16px; }
.side.collapsed .fold { margin-inline: 16px; }

.side.collapsed .event:hover,
.side.collapsed .row:hover,
.side.collapsed .fold:hover { position: relative; }

.tip {
  position: relative;
}

.side.collapsed .tip:hover::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #161b48;
  color: #fff;
  border: 1px solid rgba(245, 196, 81, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}

main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: auto;
  padding: 28px 48px 48px;
  background:
    radial-gradient(50% 40% at 100% 0%, rgba(168, 85, 247, 0.18), transparent 60%),
    var(--stage);
}

h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-bar[hidden] { display: none; }
#export {
  flex: none;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  color: #2a1a00;
  background: linear-gradient(180deg, #ffe39a, #f5c451);
}
#export:hover { filter: brightness(1.06); }
#export[hidden] { display: none; }

#home { display: flex; flex-direction: column; gap: 22px; max-width: 1180px; }
#home[hidden] { display: none; }

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(245, 196, 81, 0.28), transparent 50%),
    linear-gradient(120deg, #241252, #12163f 55%, #0c1a40);
  border: 1px solid rgba(245, 196, 81, 0.4);
}
.eyebrow { margin: 0 0 6px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h2 { margin: 0 0 8px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.hero p { margin: 0; color: #ddd8ff; max-width: 520px; }
.hero button {
  flex: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  color: #2a1a00;
  background: linear-gradient(180deg, #ffe39a, #f5c451);
}
.hero button:hover { filter: brightness(1.06); }

.block h2 { margin: 0; font-size: 20px; font-weight: 800; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.tabs button {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: rgba(124, 58, 237, 0.55); color: #fff; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.kpi {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
}
.k-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi strong { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.kpi em { font-style: normal; font-weight: 800; font-size: 14px; }
.kpi small { color: var(--muted); font-size: 12px; }
.up { color: #22d39a; }
.down { color: #ff4d8d; }

.goals { display: grid; grid-template-columns: 1fr 220px; gap: 14px; margin-top: 14px; }
.goal { margin-bottom: 12px; }
.goal-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.goal-top b { font-weight: 700; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #f5c451); }
.bonus {
  border-radius: 18px;
  padding: 18px;
  background: rgba(245, 196, 81, 0.1);
  border: 1px solid rgba(245, 196, 81, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.bonus span, .bonus small { color: var(--muted); }
.bonus strong { font-size: 32px; font-weight: 800; color: var(--gold); }

.tops, .lives { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.top, .live-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.top div, .live-row div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top b, .live-row b { font-size: 15px; }
.top span, .dot { color: var(--muted); font-size: 13px; }
.dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #ff4d8d; }
.live-row strong { font-size: 14px; }
.face {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex: none;
}
.f0 { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.f1 { background: linear-gradient(135deg, #f5c451, #c8922a); color: #2a1a00; }
.f2 { background: linear-gradient(135deg, #38e1ff, #3b82f6); }
.f3 { background: linear-gradient(135deg, #ff4d8d, #7c3aed); }
.f4 { background: linear-gradient(135deg, #22d39a, #0ea5e9); }
.f5 { background: linear-gradient(135deg, #a855f7, #38e1ff); }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .goals { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
}

.row:focus-visible, .event:focus-visible, .fold:focus-visible, #export:focus-visible, .filters select:focus-visible, .filters input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#roster[hidden] { display: none; }
#roster { display: flex; flex-direction: column; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filters select, .filters input, .note-edit {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  min-width: 180px;
}
.filters input { min-width: 220px; }
.info-line { margin: 0; color: var(--muted); font-size: 14px; }
.info-line button {
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.info-line button:hover { text-decoration: underline; }
.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  max-height: calc(100vh - 280px);
}
.roster-table { border-collapse: separate; border-spacing: 0; min-width: 2800px; }
.roster-table th, .roster-table td {
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: #0c102c;
  font-size: 13px;
  font-weight: 600;
}
.roster-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #171c4a;
  color: var(--muted);
  font-size: 12px;
}
.sticky-col { position: sticky; left: 0; z-index: 1; min-width: 230px; box-shadow: 10px 0 16px rgba(0, 0, 0, 0.28); }
.roster-table th.sticky-col { z-index: 4; }
.who { display: flex; align-items: center; gap: 10px; }
.who b { display: block; font-size: 14px; }
.who small { color: var(--muted); font-weight: 600; }
.note-btn {
  border: 0;
  background: transparent;
  color: #d9dcf8;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  max-width: 220px;
  white-space: normal;
}
.note-btn.empty { color: var(--muted); }
.note-btn:hover { color: var(--gold); }
.act {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 10px;
  padding: 7px 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.act:hover { background: rgba(124, 58, 237, 0.4); }
.menu {
  position: fixed;
  z-index: 30;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: #161b48;
  border: 1px solid rgba(245, 196, 81, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu button:hover,
.menu button[aria-selected="true"] { background: #7c3aed; color: #fff; }
.menu .groups { display: flex; flex-direction: column; gap: 4px; padding: 4px 8px 8px; }
.menu .groups[hidden] { display: none; }
.menu .groups button { background: rgba(255, 255, 255, 0.05); color: #f4f3ff; }
.menu .groups button:hover { background: #7c3aed; color: #fff; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 700; }
.pager div { display: flex; gap: 8px; }
.pager button, .modal button.ghost, .modal button.danger {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}
.pager button:disabled { opacity: 0.4; cursor: default; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 7, 26, 0.62);
  display: grid;
  place-items: center;
  padding: 24px;
}
.sheet {
  width: min(420px, 100%);
  border-radius: 22px;
  padding: 22px;
  background: #12163f;
  border: 1px solid rgba(245, 196, 81, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sheet h2 { margin: 0; font-size: 22px; }
.sheet p { margin: 0; color: #d9dcf8; }
.sheet .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.modal button.danger { background: #ff4d8d; border: 0; color: #fff; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(15, 20, 60, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
}

#invites[hidden] { display: none; }
#invites { display: flex; flex-direction: column; gap: 16px; max-width: 1180px; }
.page-tabs { display: flex; gap: 8px; }
.page-tabs button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.page-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--on);
  border-color: transparent;
}
.invite-card, .invite-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(12, 16, 48, 0.85);
  padding: 20px 22px;
}
.invite-card h2, .invite-panel h2 { margin: 0 0 8px; font-size: 20px; }
.invite-card p, .invite-panel p { margin: 0; color: #d9dcf8; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.gold, .ghost-btn {
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.gold { border: 0; color: #2a1a00; background: linear-gradient(180deg, #ffe39a, #f5c451); }
.violet { border: 0; border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 800; cursor: pointer; color: #fff; background: var(--violet); }
.ghost-btn { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: #fff; }
.gold:hover { filter: brightness(1.06); }
.ghost-btn:hover { background: rgba(255, 255, 255, 0.1); }
.quota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.quota {
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quota b { font-size: 16px; }
.quota span, .quota small { color: var(--muted); font-weight: 650; }
.quota strong { font-size: 28px; letter-spacing: -0.03em; }
.linkish {
  align-self: flex-start;
  border: 0;
  background: none;
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.linkish:hover { text-decoration: underline; }
.remain { margin: 12px 0 0; font-weight: 700; }
.invite-scroll { overflow-x: auto; }
.invite-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.invite-table th, .invite-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 13px;
}
.invite-table th { color: var(--muted); font-size: 12px; font-weight: 700; }
.invite-table td b { display: block; }
.invite-table td small { color: var(--muted); }
.invite-count { margin: 12px 0 0; color: var(--muted); font-weight: 700; }
.invite-form { display: flex; flex-direction: column; gap: 12px; }
.invite-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.invite-form input, .invite-form textarea, .sheet input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.invite-form textarea { min-height: 90px; resize: vertical; }
.choice { display: flex; gap: 14px; color: #fff; font-size: 14px; font-weight: 700; }
.choice label { flex-direction: row; align-items: center; color: #fff; }
.sent { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.sent-row b { display: block; }
.sent-row small { color: var(--muted); }
.pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}
.pill.wait { color: #2a1a00; background: var(--gold); }
.pill.ok { color: #04281c; background: #22d39a; }
.pill.no { color: #fff; background: #ff4d8d; }
@media (max-width: 800px) {
  .quota-grid { grid-template-columns: 1fr; }
  .invite-table { display: block; overflow-x: auto; }
  .date-grid { grid-template-columns: 1fr; }
}

#invite-flow[hidden], #invite-access[hidden], .flow-step[hidden], #preview-modal[hidden], .lang-list[hidden] { display: none; }
#invite-flow { display: flex; flex-direction: column; gap: 16px; }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; position: relative; z-index: 45; }
.steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.steps li.on { background: var(--on); color: #fff; }
.steps li.done { color: #d7ffe9; }
.step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}
.steps li.on .step-num { background: var(--gold); color: #2a1a00; }
.steps li.done .step-num { background: #22d39a; color: #04281c; }
.stack { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.stack textarea, .stack input, .stack select, .kind-select {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 650;
}
.stack textarea { min-height: 220px; resize: vertical; }
.flow-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.gold:disabled { opacity: 0.45; cursor: default; }
button.gold.invite-off:disabled { cursor: not-allowed; }

#seek[hidden], #messages[hidden], #history[hidden], #rules[hidden], #news[hidden], #courses[hidden], #insights[hidden], #contract[hidden], #payouts[hidden], #display-settings[hidden], #manager-access[hidden], #manager-list[hidden], #manager-detail[hidden], #seek-creators-panel[hidden], #seek-accounts-panel[hidden], #official-extra[hidden] { display: none; }
#manager-access, #manager-list, #manager-detail { display: flex; flex-direction: column; gap: 16px; }
.role-badge { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.role-owner { background: rgba(124, 58, 237, 0.28); color: #d7c4ff; }
.role-lead { background: rgba(59, 130, 246, 0.22); color: #bfdbfe; }
.role-member { background: rgba(255, 255, 255, 0.1); color: #c8cbe0; }
.switch.access-switch[aria-checked="true"] i { background: var(--violet); }
.access-actions { display: flex; justify-content: flex-end; gap: 8px; }
#display-settings { display: flex; flex-direction: column; gap: 16px; }
.display-filters { display: flex; flex-wrap: nowrap; gap: 12px; }
.display-filters label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; flex: none; }
.display-banner {
  margin: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(124, 58, 237, 0.22);
  color: #efe8ff;
  font-weight: 700;
}
.display-edit, .display-wait {
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}
.display-edit { background: var(--violet); color: #fff; cursor: pointer; }
.display-wait { background: rgba(255, 255, 255, 0.12); color: #a9acd6; cursor: default; }
.display-count { margin: 0; color: var(--muted); font-weight: 700; }
#payouts { display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 0; }
.pay-head h2 { margin: 0; font-size: 18px; }
.pay-filter { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pay-list { display: flex; flex-direction: column; gap: 12px; }
.pay-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 16, 48, 0.85);
  padding: 16px 18px 18px;
}
.pay-card h3 { margin: 0; font-size: 16px; }
.pay-meta { margin: 4px 0 0; color: var(--muted); font-weight: 700; }
.pay-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.pay-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.pay-steps li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.pay-steps li:first-child::before { left: 50%; }
.pay-steps li:last-child::before { right: 50%; }
.pay-steps li.done { color: #fff; }
.pay-steps li.done::before { background: var(--violet); }
.pay-dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a2f55;
  color: var(--muted);
  font-weight: 800;
}
.pay-steps li.done .pay-dot { background: var(--violet); color: #fff; }
.pay-steps small { font-weight: 700; }
.pay-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pay-amounts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}
.pay-amounts span { color: var(--muted); font-size: 12px; font-weight: 700; }
.pay-card[hidden] { display: none; }
#contract { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.contract-updated { margin: 0; color: var(--muted); font-weight: 700; }
.contract-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 16, 48, 0.85);
  padding: 6px 18px 8px;
}
.contract-block h2 { margin: 14px 0 4px; font-size: 18px; }
.contract-hint { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.contract-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.contract-row span { color: var(--muted); font-weight: 700; }
.contract-value { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; }
.doc-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.28);
  color: #d7c4ff;
  font-size: 12px;
  font-weight: 800;
  cursor: default;
}
#insights { display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.data-note { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.insight-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.insight-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.insight-kpis .kpi { min-height: 0; }
.flat { color: var(--muted); }
.insight-body { display: flex; flex-direction: column; gap: 16px; }
.insight-body h2 { margin: 0; font-size: 20px; }
.chart-box { border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 16, 48, 0.85); padding: 12px 8px 8px; }
.chart-box svg { width: 100%; height: 220px; display: block; }
.data-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 16, 48, 0.85); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.data-table th { color: var(--muted); font-size: 12px; font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.who { font-weight: 800; }
.creator-cell { display: flex; align-items: center; gap: 10px; }
.week-nav { display: flex; align-items: center; gap: 12px; }
.week-nav strong { font-size: 18px; }
.week-nav button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(124, 58, 237, 0.35);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.week-nav button:disabled { opacity: 0.35; cursor: default; }
#courses { display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.course-lead { margin: 0; color: #d9dcf8; font-weight: 650; }
.course-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.course-pills button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.course-pills button[aria-pressed="true"] { background: var(--violet); border-color: transparent; color: #fff; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.course-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 16, 48, 0.85);
  color: #fff;
  padding: 10px;
  font: inherit;
  cursor: pointer;
}
.course-card:hover { border-color: rgba(124, 58, 237, 0.7); }
.course-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #16124a, #3b1d7a);
}
.course-thumb svg { width: 42px; height: 42px; }
.course-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.course-copy { display: flex; flex-direction: column; gap: 6px; padding: 0 4px 6px; }
.course-copy b { font-size: 15px; line-height: 1.3; }
.course-copy small { color: var(--muted); font-weight: 700; }
.course-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.course-track span { display: block; height: 100%; background: var(--violet); border-radius: inherit; }
.course-status { color: var(--muted); font-size: 12px; font-weight: 800; font-style: normal; }
.course-note { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.sheet.course-sheet { width: min(720px, 100%); }
.course-player, .course-doc {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.course-play {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.course-play svg { width: 28px; height: 28px; margin-left: 3px; }
.course-player.is-playing::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 36%;
  background: var(--violet);
}
.course-doc { background: #070b22; }
.course-page {
  width: 46%;
  height: 78%;
  background: #f4f3ff;
  color: #1a1440;
  border-radius: 6px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.course-page i { display: block; height: 7px; border-radius: 4px; background: #c9c6e4; }
.course-page i.short { width: 62%; }
.course-page b { margin-top: auto; font-size: 12px; }
#rules, #news { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.side.collapsed .nav-count { display: none; }
.nav-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d8d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.news-cue {
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 77, 141, 0.18);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.news-cue[hidden] { display: none; }
.crumb { margin: 0; color: var(--muted); font-weight: 700; }
.crumb button {
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
}
.news-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.news-copy small { color: var(--muted); font-weight: 700; }
.news-cat, .news-new {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.news-new { background: #ff4d8d; color: #fff; }
.cat-bonus { background: rgba(245, 196, 81, 0.2); color: #f5c451; }
.cat-règles { background: rgba(124, 58, 237, 0.28); color: #d7c4ff; }
.cat-événement { background: rgba(255, 77, 141, 0.18); color: #ff9ec4; }
.rule-note, .rule-editor { margin: 0; color: var(--muted); font-weight: 700; }
.rule-version { margin: 0; font-weight: 800; }
.rule-list { display: flex; flex-direction: column; gap: 8px; }
.rule-part { border: 1px solid var(--line); border-radius: 16px; background: rgba(12, 16, 48, 0.85); overflow: hidden; }
.rule-head {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 14px 16px;
  cursor: pointer;
}
.rule-head[aria-expanded="true"] { color: var(--gold); }
.rule-body { margin: 0; padding: 0 16px 14px; color: #d9dcf8; }
.rule-body[hidden] { display: none; }
#history { display: flex; flex-direction: column; gap: 14px; }
.history-filters { flex-wrap: nowrap; }
.history-filters input { min-width: 180px; }
.search-pair { display: flex; gap: 8px; align-items: center; }
.search-pair .gold { height: 40px; white-space: nowrap; }
.history-table { border-collapse: separate; border-spacing: 0; min-width: 1480px; }
.history-table th, .history-table td {
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: #0c102c;
  font-size: 13px;
  font-weight: 600;
}
.history-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #171c4a;
  color: var(--muted);
  font-size: 12px;
}
.history-table th.sticky-col { z-index: 4; }
.history-acts { display: flex; gap: 6px; }
.history-acts .act:disabled { opacity: 0.45; cursor: not-allowed; }
#seek-accounts-panel, #official-extra { display: flex; flex-direction: column; gap: 14px; }
#seek, #messages { display: flex; flex-direction: column; gap: 16px; max-width: 1180px; }
.seek-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.seek-box {
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 48, 0.85);
  padding: 16px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}
.seek-box strong { display: block; margin-top: 8px; font-size: 32px; color: #fff; letter-spacing: -0.03em; }
.seek-box[aria-pressed="true"] { border-color: transparent; background: var(--on); color: #fff; }
.seek-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.seek-list .hint { grid-column: 1 / -1; }
@media (min-width: 1500px) {
  .seek-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.video-tile { min-width: 0; }
.clip {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  color: #fff;
}
.clip::before {
  content: "";
  position: absolute;
  inset: -30% 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28), transparent 65%);
  transform: translateY(70%);
}
.clip.is-playing::before { animation: clip-sheen 1.8s linear infinite; }
@keyframes clip-sheen { to { transform: translateY(-70%); } }
.clip-play {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border-radius: 50%;
  background: rgba(7, 11, 34, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.9);
}
.clip-play::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 13px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #fff;
}
.clip.is-playing .clip-play { opacity: 0; }
.clip-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 36px 10px 10px;
  background: linear-gradient(transparent, rgba(7, 11, 34, 0.9));
  text-align: left;
}
.clip-info .face { width: 32px; height: 32px; font-size: 11px; }
.clip-info b, .clip-info small { display: block; }
.clip-info b { font-size: 13px; }
.clip-info small { color: #e6e8ff; font-size: 11px; font-weight: 650; }
.video-tile .seek-actions { flex-direction: column; justify-content: stretch; margin-top: 8px; }
.video-tile .seek-actions button { width: 100%; white-space: normal; font-size: 13px; line-height: 1.2; }
.video-sheet { width: min(380px, 100%); }
.video-sheet .clip { width: min(100%, 280px); margin: 0 auto; cursor: default; }
.clip-caption { margin: 10px 0 0; text-align: center; font-weight: 800; }
.seek-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.seek-card .meta, .official-card div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.seek-card small, .official-card small { color: var(--muted); font-weight: 650; }
.seek-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.soon {
  display: inline-block;
  margin-top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.official-card { display: block; margin-top: 0; }
.profile-banner {
  height: 118px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 196, 81, 0.95), transparent 26%),
    radial-gradient(circle at 18% 80%, rgba(255, 77, 141, 0.55), transparent 34%),
    linear-gradient(115deg, #1a1460, #5b2adf 58%, #f5c451);
}
.official-card .profile-banner { display: block; }
.official-card .official-id {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: -40px;
  padding-left: 14px;
  position: relative;
}
.official-card .official-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 48px; }
.face.overlap { width: 72px; height: 72px; font-size: 22px; border: 3px solid #12163f; }
.sync-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.profile-preview.sheet { width: min(480px, 100%); }
.profile-preview .preview-face { margin-top: -46px; display: flex; justify-content: center; }
.profile-preview .face.lg { border: 4px solid #12163f; }
.member-sheet { width: min(480px, 100%); }
.member-current {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.member-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.member-panel[hidden] { display: none; }
.member-panel input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
  font-weight: 650;
}
.member-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}
.member-row b, .member-row small { display: block; }
.member-row small, .member-row em { color: var(--muted); font-style: normal; font-size: 12px; font-weight: 700; }
.member-row:hover:not(:disabled),
.member-row.is-on { background: #7c3aed; color: #fff; }
.member-row.is-on small, .member-row:hover:not(:disabled) small { color: #fff; }
.member-row.is-taken { opacity: 0.45; cursor: not-allowed; }
.text-link {
  align-self: flex-start;
  margin-top: 8px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.text-link:hover { text-decoration: underline; }
.recruit-part + .recruit-part { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.recruit-part h3 { margin: 0 0 8px; font-size: 16px; }
.recruit-part .gold, #apply-slot { margin-top: 12px; }
#apply-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#apply-slot code {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 750;
}
.agent-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.agent-bar input {
  flex: 1;
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 650;
}
.agents-wrap { max-height: none; }
.agents-table { border-collapse: separate; border-spacing: 0; min-width: 980px; width: 100%; }
.agents-table th, .agents-table td {
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: #0c102c;
  font-size: 13px;
  font-weight: 600;
}
.agents-table th { background: #171c4a; color: var(--muted); font-size: 12px; }
.agent-count { margin: 12px 0 0; color: var(--muted); font-weight: 700; }
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.switch i {
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  flex: none;
}
.switch i::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
}
.switch[aria-checked="true"] i { background: #22d39a; }
.switch[aria-checked="true"] i::after { left: 17px; }
.switch:disabled { cursor: default; }
.cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #ffe39a, #f5c451);
  color: #2a1a00;
  font-size: 12px;
  font-weight: 800;
}
.cert svg { width: 14px; height: 14px; flex: none; }
.face.lg { width: 84px; height: 84px; font-size: 26px; }
.profile-preview { align-items: center; text-align: center; }
.profile-preview .fans { font-weight: 800; }
.profile-preview .bio { color: #d9dcf8; }
@media (max-width: 900px) {
  .seek-boxes, .account-grid { grid-template-columns: 1fr 1fr; }
}
.date-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.invite-panel h3 { margin: 16px 0 8px; font-size: 15px; }
.to-line { font-weight: 800; }
.lang-field { position: relative; }
.lang-list {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: 64px;
  max-height: 240px;
  overflow: auto;
  background: #161b48;
  border: 1px solid rgba(245, 196, 81, 0.35);
  border-radius: 12px;
  padding: 6px;
}
.lang-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}
.lang-list button:hover,
.lang-list button[aria-selected="true"] { background: #7c3aed; color: #fff; }
.lang-list button:disabled { opacity: 0.35; cursor: default; }
.lang-list p { margin: 8px; color: var(--muted); }
select, select option {
  color-scheme: dark;
  background-color: #12163f;
  color: #f4f3ff;
}
select option:checked,
select option:hover {
  background-color: #7c3aed;
  color: #fff;
}
select.native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.drop { position: relative; display: block; min-width: 180px; }
.drop-button {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.05);
  background-image: linear-gradient(45deg, transparent 50%, #f4f3ff 50%), linear-gradient(135deg, #f4f3ff 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #f4f3ff;
  padding: 0 28px 0 12px;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.drop-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.drop-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 12px;
  background: #12163f;
  color: #f4f3ff;
  border: 1px solid rgba(245, 196, 81, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.drop-menu[hidden] { display: none; }
.drop-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f4f3ff;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.drop-option:hover,
.drop-option[aria-selected="true"] { background: #7c3aed; color: #fff; }
.drop-option:disabled { opacity: 0.45; cursor: not-allowed; }
.field-error { min-height: 1.2em; margin: 4px 0 0; color: #ff8ab0; font-size: 13px; font-weight: 700; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; color: #fff; font-size: 14px; font-weight: 650; }
.checks input { margin-top: 3px; }
#pick-body small, #pick-body span { display: block; }
#pick-body span { font-weight: 700; }
.preview-sheet { width: min(480px, 100%); }
.preview-brand { display: flex; align-items: center; gap: 10px; }
.preview-brand .logo { width: 36px; height: 36px; }
.preview-brand small { display: block; color: var(--muted); font-weight: 700; }
.preview-sheet ul { margin: 0 0 8px; padding-left: 18px; color: #d9dcf8; }
.fake-actions { display: flex; gap: 8px; }
.fake-actions button {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  background: #2c3158;
  color: #9aa0c4;
  font-weight: 800;
  cursor: default;
}


.shell {
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--stage);
}
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  z-index: 30;
}
.topbar-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.topbar-agency { font-size: 14px; font-weight: 800; }
.topbar-role { color: var(--muted); font-size: 13px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.top-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}
.top-btn svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.top-btn:hover { background: var(--hover); }
.top-badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.top-wrap { position: relative; }
.top-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(245, 196, 81, 0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  z-index: 50;
}
.top-menu h3 { margin: 4px 8px 10px; font-size: 14px; }
.top-note, .top-menu p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}
.top-note b { font-size: 13px; }
.top-note span, .top-menu p, .muted { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.top-note:hover { background: var(--hover); }
.profile-menu { width: 260px; cursor: default; }
.profile-menu p { cursor: default; }

#board { display: flex; flex-direction: column; gap: 16px; max-width: 1180px; }
#board[hidden], #messages[hidden] { display: none; }
#messages { display: flex; flex-direction: column; gap: 16px; max-width: 1180px; }

.toolbar, .home-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.toolbar { justify-content: flex-start; }
.empty-state {
  margin: 24px 0;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.home-head h1 { margin: 0 0 4px; }
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.home-main, .home-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.bonus-total { color: var(--gold); font-size: 28px; font-weight: 800; }
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.bonus-grid article, .mini-campaign, .perk, .campaign-card, .promo-step, .live-card, .priority-card, .contract-file {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
}
.bonus-grid article { display: flex; flex-direction: column; gap: 4px; }
.bonus-grid span, .mini-campaign span, .live-stats dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.bonus-grid b, .mini-campaign b, .live-stats dd { font-size: 18px; }
.bonus-grid-actions article { gap: 6px; }
.summary-list, .alert-list { margin: 0; padding-left: 18px; color: #d9dcf8; font-weight: 650; }
.summary-list li, .alert-list li { margin: 0 0 8px; }
.priority-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.priority-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  width: 100%;
}
.priority-card b { font-size: 16px; }
.priority-card span { color: var(--muted); font-weight: 650; }
.priority-card:hover, .campaign-card:hover, .live-card:hover { border-color: rgba(245,196,81,0.4); }
.priority-card.is-ok { box-shadow: inset 0 0 0 1px rgba(34,211,154,0.35); }
.mini-campaign { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.mini-campaign em, .countdown { color: var(--gold); font-style: normal; font-weight: 800; }

.inbox {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.inbox-list { border-right: 1px solid var(--line); overflow: auto; }
.inbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  padding: 12px;
  cursor: pointer;
  font: inherit;
}
.inbox-row.on, .inbox-row:hover { background: var(--hover); }
.inbox-row.unread b { color: var(--gold); }
.inbox-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inbox-copy span, .inbox-row small, .inbox-head small { color: var(--muted); font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-thread { display: flex; flex-direction: column; min-width: 0; }
.inbox-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 800; }
.inbox-feed { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 80%; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.07); }
.bubble.me { align-self: flex-end; background: rgba(124,58,237,0.4); }
.bubble p { margin: 0; font-weight: 650; }
.bubble small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.inbox-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.inbox-compose input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

.live-cards, .campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.live-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.live-card-top div { flex: 1; font-weight: 800; display: flex; flex-direction: column; }
.live-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; margin: 0; }
.live-stats dd { margin: 0; font-weight: 800; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-day {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-day b { font-size: 13px; }
.cal-day span { color: var(--muted); font-size: 11px; font-weight: 700; }
.cal-day.is-today { border-color: var(--gold); }

.promo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.promo-step .step-num {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--violet);
  font-style: normal;
  font-weight: 800;
  margin-bottom: 8px;
}
.perk-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.gauge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.gauge-tick {
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-weight: 800;
  color: var(--muted);
}
.gauge-tick.on { background: rgba(124,58,237,0.4); color: #fff; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.integrity-hero { display: flex; gap: 24px; align-items: center; padding: 16px 0; }
.score-ring {
  width: 140px; height: 140px; flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--panel) 58%, transparent 59%),
    conic-gradient(#22d39a 0 96%, rgba(255,255,255,0.12) 96% 100%);
  text-align: center;
}
.score-ring strong { font-size: 36px; font-weight: 800; }
.score-ring span { color: var(--muted); font-weight: 700; }

.quiz-sheet { width: min(560px, 100%); }
.quiz-q { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.quiz-q legend { font-weight: 800; padding: 0 6px; }
.quiz-q label { display: block; margin: 6px 0; font-weight: 650; }

.org-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.org-side { display: flex; flex-direction: column; gap: 8px; }
.contract-file { max-width: 640px; display: flex; flex-direction: column; gap: 6px; }
.filters label, .toolbar label, .home-tools label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; color: var(--muted); font-size: 12px; }
.filters input, .toolbar input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 650;
}
.sheet label { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-weight: 700; }
.sheet input, .sheet textarea, .sheet select {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.violet {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 800;
  color: #fff;
  background: #7c3aed;
}
.violet:hover { filter: brightness(1.08); }
.gold {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 800;
  color: #2a1a00;
  background: linear-gradient(180deg, #ffe39a, #f5c451);
}

:root[data-theme="light"] {
  color-scheme: light;
  --night: #f4f2fb;
  --panel: #ffffff;
  --stage: #f7f5ff;
  --ink: #1b1840;
  --muted: #5c5878;
  --line: rgba(20, 16, 60, 0.12);
  --hover: rgba(124, 58, 237, 0.08);
  --on: rgba(124, 58, 237, 0.16);
  --table: #ffffff;
  --table-head: #efeafc;
}
:root[data-theme="light"] body,
:root[data-theme="light"] .side {
  color: var(--ink);
}
:root[data-theme="light"] .side {
  background:
    radial-gradient(120% 40% at 0% 0%, rgba(124, 58, 237, 0.12), transparent 55%),
    var(--panel);
}
:root[data-theme="light"] .row { color: #2a2750; }
:root[data-theme="light"] .sub .row { color: #3a3660; }
:root[data-theme="light"] main {
  background:
    radial-gradient(50% 40% at 100% 0%, rgba(168, 85, 247, 0.10), transparent 60%),
    var(--stage);
}
:root[data-theme="light"] .roster-table th, :root[data-theme="light"] .agents-table th,
:root[data-theme="light"] .data-table th, :root[data-theme="light"] .history-table th,
:root[data-theme="light"] .invite-table th {
  background: var(--table-head);
  color: var(--muted);
}
:root[data-theme="light"] .roster-table td, :root[data-theme="light"] .agents-table td,
:root[data-theme="light"] .data-table td, :root[data-theme="light"] .history-table td,
:root[data-theme="light"] .invite-table td,
:root[data-theme="light"] .drop-menu, :root[data-theme="light"] .top-menu, :root[data-theme="light"] .sheet,
:root[data-theme="light"] .lang-list {
  background: var(--table);
  color: var(--ink);
}
:root[data-theme="light"] .hero p, :root[data-theme="light"] .summary-list,
:root[data-theme="light"] .alert-list, :root[data-theme="light"] .bubble { color: #2d2a4d; }
:root[data-theme="light"] .drop-button, :root[data-theme="light"] .top-btn,
:root[data-theme="light"] .inbox-compose input, :root[data-theme="light"] .filters input,
:root[data-theme="light"] .toolbar input, :root[data-theme="light"] .sheet input,
:root[data-theme="light"] .sheet textarea {
  color: var(--ink);
  background: #fff;
}

@media (max-width: 1100px) {
  .home-grid, .org-layout, .inbox, .split-grid { grid-template-columns: 1fr; }
  .bonus-grid, .promo-steps, .type-grid, .priority-grid, .live-cards, .campaign-grid { grid-template-columns: 1fr 1fr; }
  main { padding: 20px; }
}
@media (max-width: 720px) {
  .top-btn span { display: none; }
  .bonus-grid, .promo-steps, .type-grid, .priority-grid, .live-cards, .campaign-grid, .cal-grid { grid-template-columns: 1fr; }
  .integrity-hero { flex-direction: column; align-items: flex-start; }
}

:root[data-theme="light"] .hero h2,
:root[data-theme="light"] .hero p,
:root[data-theme="light"] .hero .eyebrow { color: #f4f3ff; }

/* Écran de connexion */
body.gated {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(124, 58, 237, 0.35), transparent 60%),
    var(--night);
}
body.gated .side,
body.gated .shell { display: none; }
body:not(.gated) #gate { display: none; }

.gate {
  width: min(440px, calc(100% - 32px));
  padding: 16px 0 32px;
}
.gate-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.gate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.gate-brand .logo { width: 44px; height: 44px; }
.gate-brand strong { display: block; font-size: 18px; font-weight: 800; }
.gate-brand span { color: var(--gold); font-weight: 700; font-size: 13px; }
.gate-card h1 { margin: 0 0 8px; font-size: 26px; }
.gate-lead, .gate-note { color: var(--muted); margin: 0 0 16px; line-height: 1.45; }
.gate-note { margin: 12px 0 0; font-size: 13px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-form[hidden], #gate [hidden] { display: none !important; }
.gate-form label, .live-agency-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}
.gate-form input, .live-agency-form input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-weight: 650;
}
.gate-form .violet, .gate-card .gold { width: 100%; margin-top: 4px; }
.gate-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.linkish {
  border: 0;
  background: transparent;
  color: #c4b5fd;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gate-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gate-or::before, .gate-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.gate-msg {
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-weight: 650;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.06);
}
.gate-msg.error { background: rgba(239, 68, 68, 0.16); color: #fecaca; }
.gate-msg.ok { background: rgba(34, 211, 154, 0.16); color: #bbf7d0; }
.logout-btn { margin-top: 10px; width: 100%; }
.integrity-alert {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1.4;
}
.integrity-alert.warn { background: rgba(245, 196, 81, 0.16); }
.integrity-alert.danger { background: rgba(239, 68, 68, 0.16); }
.empty-state {
  margin: 16px 0;
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

/* Dossier de vérification */
body.dossier-open {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(124, 58, 237, 0.35), transparent 60%),
    var(--night);
}
body.dossier-open .side,
body.dossier-open .shell,
body.dossier-open #gate { display: none !important; }
body:not(.dossier-open) #dossier { display: none; }

.dossier-page {
  width: min(680px, calc(100% - 32px));
  padding: 32px 0 48px;
}
.dossier-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.dossier-card h1 { margin: 0 0 8px; font-size: 26px; }
.siret-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.siret-row .ghost-btn { height: 44px; padding: 0 14px; white-space: nowrap; }
.siret-result {
  margin: -4px 0 8px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--muted);
}
.siret-result.ok { color: #bbf7d0; }
.siret-result.error { color: #fecaca; }
.file-set {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 12px 14px 16px;
  margin: 6px 0;
}
.file-set legend { font-weight: 800; padding: 0 6px; }
.file-set label { margin-top: 10px; }
.file-status { font-size: 13px; color: var(--muted); font-weight: 650; }
.consent {
  display: flex;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 650;
  line-height: 1.4;
}
.consent input { margin-top: 4px; width: auto; }
.gate-form textarea {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-weight: 650;
  resize: vertical;
}
.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  color: inherit;
}
.ghost-btn:hover { filter: brightness(1.08); }
#dossier-waiting .violet { margin-top: 12px; }
@media (max-width: 640px) {
  .siret-row { grid-template-columns: 1fr; }
}
