.union-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #33463e;margin-bottom:16px}.union-entry span{font-weight:700}.union-entry button{white-space:nowrap}.union-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;overflow-y:auto;color:#eaf4ed;background:#121b17;border:1px solid #385448;border-radius:20px}.union-dialog::backdrop{background:#000a}.union-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.union-heading h2{font-size:23px;margin:0}.union-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.union-tabs [aria-pressed=true]{border-color:#00c98c;color:#00dca0}.union-help{font-size:14px;line-height:1.5;color:#a8b9b0}.union-status{min-height:22px;font-size:14px}.union-status.is-error{color:#ffab9c}.union-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}.union-content>h3,.union-content>.union-form{grid-column:1/-1}.union-card{padding:16px;background:#1d2822;border:1px solid #36483e;border-radius:14px;min-width:0;overflow-wrap:anywhere}.union-card h3{margin:0 0 8px;font-size:18px}.union-card button{margin:6px 8px 0 0}.union-form{display:grid;gap:16px}.union-field{display:grid;gap:8px}.union-field input,.union-field textarea{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid #4c6256;background:#202c25;color:inherit;border-radius:9px;font:inherit}.union-field textarea{min-height:90px;resize:vertical}@media(max-width:480px){.union-dialog{padding:16px}.union-tabs{gap:6px}.union-tabs button{font-size:13px;padding:10px}.union-entry{gap:8px}.union-entry span{font-size:14px}}
.union-active-controls{border-bottom:1px solid #36483e;padding-bottom:12px}.union-active-form{display:flex;gap:8px;flex-wrap:wrap}.union-active-form select,.union-bank-form select,.union-content>label select{box-sizing:border-box;max-width:100%;min-width:0;padding:11px;border:1px solid #4c6256;background:#202c25;color:inherit;border-radius:9px;font:inherit}.union-active-form select{flex:1}.union-bank-form{padding:16px;border:1px solid #36483e;border-radius:14px;align-content:start}.union-bank-form h3{margin:0}.union-game-access{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #36483e;border-radius:12px;margin:12px 0;font-size:14px}.union-game-access[hidden]{display:none}.union-game-access span{min-width:0;overflow-wrap:anywhere}.union-game-access button{flex-shrink:0}
.union-live-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;overflow-anchor:none}.union-content,.union-active-controls{overflow-anchor:none}
@media(prefers-reduced-motion:reduce){.union-card,.union-active-controls{animation:none!important;transition:none!important}}

/* Navigation52: club directory first; secondary forms stay mounted in details. */
.union-dialog{background:#111312;border-color:#333d36;padding:0 18px 18px}.union-heading{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;min-height:58px;background:#111312;border-bottom:1px solid #313632;margin-bottom:14px}.union-heading h2{text-align:center;font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.union-back-button{border:0;background:transparent;padding:0;min-height:44px;min-width:44px;font-size:34px;line-height:1}.union-options{margin:0 0 16px;border-bottom:1px solid #313632;padding:0 0 12px}.union-options-toggle{cursor:pointer;font-size:13px;color:#b3beb6;min-height:38px;display:flex;align-items:center;gap:8px;list-style:none}.union-options-toggle::-webkit-details-marker{display:none}.union-options-toggle:after{content:"⌄";margin-left:auto;font-size:20px}.union-options[open]>.union-options-toggle:after{content:"⌃"}.union-options>.union-help{font-size:12px}.union-options .union-tabs{margin:12px 0 0;gap:6px}.union-options .union-tabs button{font-size:12px;min-height:40px}.union-status:empty{display:none}.union-status{min-height:0}.union-directory-card{padding:14px;background:#202320;border-color:#3b433d;border-radius:12px}.union-directory-card h3{font-size:18px;margin-bottom:4px}.union-directory-card p{font-size:12px;margin:6px 0 10px}.union-directory-card .primary{min-height:42px;padding:9px 18px}.union-directory-card .quiet{min-height:40px;font-size:12px}.union-options .union-active-controls{border:0;padding-bottom:0}.union-back-button:focus-visible,.union-options-toggle:focus-visible{outline:2px solid #18d487;outline-offset:2px}
@media(max-width:600px){.union-dialog{position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0 14px max(18px,env(safe-area-inset-bottom))}.union-heading{margin:0 -14px 12px;padding:0 10px}.union-content,.union-live-list{grid-template-columns:minmax(0,1fr)}}
.union-bank-form [hidden]{display:none!important}
.union-bank-form fieldset{min-width:0;margin:0;padding:8px 10px;border:1px solid #4c6256;border-radius:9px}
.union-bank-member-list{display:grid;gap:4px;max-height:216px;overflow:auto}
.union-bank-member-option{display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 6px;overflow-wrap:anywhere}
.union-bank-form .union-bank-member-option input{width:auto;min-width:1rem;accent-color:#19b77f}

.club-network-owner-summary { margin-block:6px; }
.club-network-owner-header { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.club-network-owner-header > span { font-size:.8rem; font-weight:650; }
.club-network-owner-amounts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-block:4px 0; }
.club-network-web .club-network-owner-amounts .club-network-earnings-toggle:not([hidden]) {
  display:grid; align-content:center; align-items:start; justify-content:start; gap:2px;
  min-width:0; min-height:48px; padding:5px 8px; text-align:start; overflow-wrap:anywhere;
}

.club-network-web > .club-network-sorteos-tools {
  display:flex; flex-wrap:nowrap; align-items:stretch; gap:6px;
  max-inline-size:35rem; margin-block:8px;
}
.club-network-web > .club-network-sorteos-tools[hidden],
.club-network-web > .club-network-sorteos-tools > button[hidden],
.club-network-sorteos-pending[hidden] { display:none; }
.club-network-web .club-network-sorteos-tools > button {
  position:relative; display:grid; place-content:center; flex:1 1 0; min-width:0; min-height:44px;
  margin:0; padding:5px 7px; text-align:center; font-size:clamp(.75rem, 3.9vw, .875rem);
  line-height:1.15; white-space:normal; overflow-wrap:anywhere;
}
.club-network-sorteos-tools > .club-network-history-trigger::after { content:none; }
.club-network-sorteos-pending {
  position:absolute; inset-block-start:-5px; inset-inline-end:4px;
  min-inline-size:1rem; padding:1px 4px; border-radius:1rem;
  background:#9f2d40; color:#fff; font-size:.625rem; font-weight:750;
  line-height:1.25; font-variant-numeric:tabular-nums; white-space:nowrap;
}

.club-network-web .club-network-sorteos-tools > button { min-height:54px; }
.club-network-pane-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.club-network-pane-heading h3 { margin:0; min-width:0; overflow-wrap:anywhere; }
.club-network-web .club-network-pane-close { width:44px; height:44px; min-height:44px; padding:0; font-size:1.4rem; }
.club-network-web .club-network-pane-close { touch-action:manipulation; }
.club-network-web .club-network-view-club { min-height:44px; }
.club-network-web .club-network-branch-income:not([hidden]) {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:0 6px;
  width:100%; min-height:44px; margin-block:4px; text-align:start;
}
.club-network-row-actions { display:flex; align-items:stretch; gap:6px; }
.club-network-row-actions > button { flex:1 1 0; min-width:0; min-height:44px; padding:6px; }
.club-network-affiliations :is(form,.club-network-invitation) { display:grid; gap:6px; margin-block:9px 0; }
.club-network-affiliations .club-network-invitation { padding-block-start:9px; border-top:1px solid currentColor; }
.club-network-affiliations .club-network-invitation p { margin:0; opacity:.85; }
.club-network-affiliations .club-network-row-actions input { flex:1 1 auto; min-width:0; }
.club-network-affiliations .club-network-row-actions input + button { flex:0 0 auto; }
.club-network-metrics { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 10px; margin:8px 0 0; }
.club-network-metrics dd { margin:0; font-weight:700; font-variant-numeric:tabular-nums; }
.club-network-editor.club-network-bots {
  --bot-control-text:#24372e;
  --bot-control-surface:#e9f3ed;
  --bot-control-border:#739785;
  box-sizing:border-box;
  width:min(380px,calc(100vw - 24px));
  color:var(--bot-control-text);
  background:#f6fbf7;
  border-color:#97b2a1;
}
body[data-home-theme="dark"] .club-network-editor.club-network-bots {
  --bot-control-text:#eaf4ed;
  --bot-control-surface:#273c31;
  --bot-control-border:#658979;
  background:#1d2b23;
  border-color:#496356;
}
.club-network-bots > h2 { margin:0 0 7px; }
.club-network-bots .club-network-bots-status { min-block-size:1.5em; margin:0; }
.club-network-bots .club-network-metrics { margin-block:8px 12px; }
.club-network-bots .club-network-metrics dd { text-align:end; }
.club-network-editor.club-network-bots .club-network-row-actions > button {
  padding-inline:4px;
  font-size:.81rem;
  white-space:nowrap;
}
.club-network-editor.club-network-bots .club-network-row-actions > button.quiet {
  color:var(--bot-control-text);
  background:var(--bot-control-surface);
  border-color:var(--bot-control-border);
}
.club-network-bots .club-network-row-actions > button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.club-network-bots-net-result[data-sign=positive] { color:#126d3f; }
.club-network-bots-net-result[data-sign=negative] { color:#a12a3e; }
body[data-home-theme=dark] .club-network-bots-net-result[data-sign=positive] { color:#96e5ac; }
body[data-home-theme=dark] .club-network-bots-net-result[data-sign=negative] { color:#ffa4b0; }
.club-network-bots > .club-network-row-actions {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
}
.club-network-bots-reset { grid-column:1 / -1; }
.club-network-web .club-network-player-list { display:grid; list-style:none; margin:0; padding:0; max-height:294px; overflow:auto; }
.club-network-web .club-network-player-earnings {
  display:flex; justify-content:space-between; flex-wrap:nowrap; gap:8px; min-width:0; min-height:49px; margin:0; padding:0 3px;
}
.club-network-player-identity { display:flex; align-items:center; gap:8px; min-width:0; }
.club-network-player-dot { flex:none; width:8px; height:8px; border-radius:50%; background:#73847f; }
.club-network-player-dot[data-online=true] { background:#2eb58a; }
html body .club-network-web :is(button.quiet.club-network-player-name, span.club-network-player-name) {
  display:inline-flex; align-items:center; justify-content:center; flex:0 1 auto; box-sizing:border-box;
  width:auto; max-width:100%; min-width:0; min-height:32px; height:auto; margin:0; padding:0 14px;
  border:1px solid var(--trio-edge); border-radius:999px;
  background:color-mix(in srgb, var(--trio-ink) 8%, transparent); color:var(--trio-ink);
  font-size:14px; font-weight:650; line-height:1; text-align:center; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;
}
html body .club-network-web button.quiet.club-network-player-name:is(:hover,:focus-visible) {
  background:color-mix(in srgb, var(--accion) 12%, var(--trio-surface));
  border-color:var(--accion); color:var(--trio-ink);
}
.club-network-player-currency {
  display:inline-flex;
  align-items:center;
  flex:none;
  box-sizing:border-box;
  min-height:22px;
  padding:0 8px;
  border:1px solid var(--network-edge,var(--trio-edge));
  border-radius:999px;
  background:color-mix(in srgb,var(--network-accent,var(--accion)) 12%,transparent);
  color:var(--network-accent,var(--accion));
  font-size:12px;
  font-weight:650;
  line-height:1;
  white-space:nowrap;
}
.club-network-player-amounts { display:grid; text-align:end; justify-items:end; font-size:.82rem; }
.club-network-web .club-network-player-generated:not([hidden]) {
  display:flex; align-items:center; gap:3px; line-height:1.05; justify-content:end; padding:0;
  min-height:24px; background:none; border:0; color:inherit; font-size:.81rem;
}
.club-network-player-status,.club-network-history-subtitle { margin-block:5px; opacity:.87; }
.club-network-commission-form .union-field {
  grid-template-columns:minmax(0,1fr) minmax(64px,86px) auto; align-items:center; gap:8px; margin-block:6px;
}
.club-network-commission-form .union-field input { text-align:end; min-height:44px; }
.club-network-commission-remainder { display:block; margin-block:8px; }
.club-network-editor.sorteos-history-settings .sorteos-history-settings-form { display:grid; grid-template-columns:1fr; }
.sorteos-history-settings .club-network-row-actions { margin-block-start:8px; }

.club-network-editor.club-network-currency-rates {
  --rate-text: #16333a;
  --rate-muted: #526d73;
  --rate-edge: #7bb9b3;
  --rate-paper: #f4fcfc;
  --rate-field: #fff;
  --rate-accent: #006e69;
  color:var(--rate-text); background:var(--rate-paper); border-color:var(--rate-edge);
}
body[data-home-theme="dark"] .club-network-editor.club-network-currency-rates {
  --rate-text: #ecf8fb;
  --rate-muted: #a6c6cb;
  --rate-edge: #3f807b;
  --rate-paper: #102e36;
  --rate-field: #0b242f;
  --rate-accent: #69e1d4;
}
.club-network-editor.club-network-currency-rates > p { margin-block:6px; font-size:14px; }
.club-network-editor.club-network-currency-rates :is(.club-network-hint,.club-network-rates-status) { color:var(--rate-muted); font-size:13px; }
.club-network-rates-status:empty { display:none; }
.club-network-editor.club-network-currency-rates .club-network-rate-row {
  display:grid; grid-template-columns:minmax(0,1fr); gap:3px;
  margin-block:0; padding-block:10px 6px; border:0;
}
.club-network-currency-rates .club-network-rate-row h3 { margin:0; font-size:15px; }
.club-network-editor.club-network-currency-rates .club-network-rate-row small {
  margin:0; color:var(--rate-muted); font-size:13px; 
}
.club-network-rate-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; }
.club-network-editor.club-network-currency-rates .club-network-rate-row input {
  min-width:0; min-height:48px; padding:7px 10px; border-color:var(--rate-edge);
  background:var(--rate-field); color:var(--rate-text); font-size:16px;
}
.club-network-currency-rates .club-network-rate-row input::placeholder { color:var(--rate-muted); }
.club-network-editor.club-network-currency-rates button.quiet {
  min-height:44px; margin:0; padding:6px 10px; border:1px solid var(--rate-edge); border-radius:9px;
  background:var(--rate-field); color:var(--rate-accent); overflow-wrap:normal;
}
.club-network-editor.club-network-currency-rates :is(button,input):focus-visible {
  outline:2px solid var(--rate-accent); outline-offset:2px;
}
.club-network-rates-footer { display:flex; justify-content:end; padding-block-start:9px; }

.club-network-web {
  --network-ink:#16333a;
  --network-quiet:#526d73;
  --network-accent:#006e69;
  --network-edge:#7bb9b3;
  --network-green:#17864a;
  --network-top:#f4fcfc;
  --network-bottom:#e0f0ef;
  --network-selected:#f4fcfc;
  --network-line:#4c6e72;
  --network-side:#d5eae9a4;
  --network-glow:#c7e9e2;
  --network-start:#e8f5f5;
  --network-end:#edf8f5;
  --network-sweep:#96c9bc26;
  --network-surface:linear-gradient(var(--network-top),var(--network-bottom));
  color:var(--network-ink);
  background:radial-gradient(ellipse at 100% 18%,var(--network-glow),transparent 69%),
    linear-gradient(138deg,var(--network-start),var(--network-end));
  border-radius:0;
  overflow:hidden;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
body[data-home-theme=dark] .club-network-web {
  --network-ink:#ecf8fb;
  --network-quiet:#a6c6cb;
  --network-accent:#69e1d4;
  --network-edge:#3da59e;
  --network-green:#3bea75;
  --network-top:#113a43;
  --network-bottom:#0b242f;
  --network-selected:#174a52;
  --network-line:#9ab7bc;
  --network-side:#0a202b9b;
  --network-glow:#13575a;
  --network-start:#0b2933;
  --network-end:#091820;
  --network-sweep:#15847a36;
}
.club-network-web[open] {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto auto auto minmax(0,1fr);
  grid-template-areas:"header" "totals" "owner" "actions" "scroll";
  gap:0;
  isolation:isolate;
}
.club-network-web::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--network-sweep);
  clip-path:polygon(62% 19%,78% 14%,92% 6%,100% 0%,100% 40%,87% 34%,73% 29%);
}
.club-network-web > header {
  grid-area:header;
  grid-template-columns:44px minmax(0,1fr) 44px 44px;
  gap:0;
  padding:7px 14px 5px 13px;
}
.club-network-web > header h2 {
  text-align:start;
  padding-inline:10px 6px;
  font-size:23px;
  font-weight:700;
  line-height:1.15;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.club-network-web > header .quiet {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  line-height:1;
  padding:0;
  font-size:21px;
  border-radius:10px;
}
.club-network-web > header .quiet:first-child { font-size:29px; }
.club-network-web > header .club-network-alerts-toggle { color:var(--network-accent); }
.club-network-web .quiet:not(.club-network-node,.club-network-branch-earnings),
.club-network-web .club-network-totals .club-network-stat {
  background:var(--network-surface);
  color:var(--network-ink);
  border-color:var(--network-edge);
}
.club-network-web .quiet:is(:hover,:focus-visible):not(:disabled,.club-network-node,.club-network-branch-earnings),
.club-network-web .club-network-totals .club-network-stat:is(:hover,:focus-visible):not([hidden]) {
  background:linear-gradient(var(--network-selected),var(--network-bottom));
  color:var(--network-accent);
  border-color:var(--network-accent);
}
.club-network-web > .club-network-totals {
  grid-area:totals;
  display:flex;
  flex-wrap:nowrap;
  padding:0 14px 5px 13px;
  margin:0;
}
.club-network-web > .club-network-totals[hidden],
.club-network-web .club-network-stat[hidden] { display:none; }
.club-network-web .club-network-totals .club-network-stat:not([hidden]) {
  flex:1 1 0;
  display:grid;
  align-content:center;
  justify-items:start;
  text-align:start;
  gap:2px;
  margin:0;
  min-height:44px;
  min-width:0;
  padding:3px 6px;
  font-size:13px;
  font-weight:700;
  text-align:center;
  color:var(--network-accent);
  overflow-wrap:anywhere;
}
.club-network-web > .club-network-owner-summary {
  grid-area:owner;
  margin:0;
  padding:0 14px 5px 13px;
}
.club-network-web > .club-network-sorteos-tools {
  grid-area:actions;
  margin:0 14px 5px 13px;
}
.club-network-web .club-network-sorteos-tools > button:not([hidden]) { min-height:54px; }
.club-network-scroll {
  grid-area:scroll;
  overflow:auto;
  overscroll-behavior:contain;
  padding:0 12px 20px;
}
.club-network-layout { min-width:0; }
.club-network-nav { grid-area:nav; display:none; }
.club-network-web .club-network-status {
  margin:0;
  padding:6px 8px;
  border:0;
  color:var(--network-quiet);
  font-size:13px;
}
.club-network-web .club-network-viewport {
  block-size:min(var(--network-content-height, 0px), clamp(220px,64dvh,510px));
}
.club-network-web .club-network-viewport[data-long-tree=false] { touch-action:pan-y; }
.club-network-web .club-network-zoom-reset {
  inset-block-start:0;
  inset-inline-end:0;
}
.club-network-web .club-network-graph,
.club-network-web .club-network-tree,
.club-network-web .club-network-lines,
.club-network-web .club-network-levels {
  position:absolute;
  inset:0 auto auto 0;
}
.club-network-web .club-network-tree,
.club-network-web .club-network-lines,
.club-network-web .club-network-levels {
  width:100%;
  height:100%;
  margin:0;
}
.club-network-web .club-network-lines,
.club-network-web .club-network-levels { pointer-events:none; }
.club-network-web .club-network-tree > li { display:contents; }
.club-network-web .club-network-node-box {
  display:block;
  position:absolute;
}
.club-network-web .club-network-node {
  display:flex;
  align-items:center;
  column-gap:3px;
  width:100%;
  height:100%;
  min-height:0;
  padding:6px 8px 6px 9px;
  background:var(--network-surface);
  color:var(--network-ink);
  border:1px solid var(--network-edge);
  border-radius:11px;
  text-align:start;
}
.club-network-web .club-network-node:is(:hover,:focus-visible,.network-node-selected) {
  background:linear-gradient(var(--network-selected),var(--network-bottom));
  color:var(--network-ink);
  border-color:var(--network-accent);
}
.club-network-web .club-network-node.club-network-principal:has(.club-network-principal-supply:not([hidden])) { width:100%; }
.club-network-web .club-network-node-box:has(.club-network-branch-earnings:not([hidden])) > .club-network-node {
  padding-bottom:26px;
  border-radius:11px;
}
.club-network-node-labels {
  display:grid;
  align-content:center;
  justify-items:start;
  gap:1px;
  flex:1;
  min-width:0;
}
.club-network-node-labels > strong {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:15px;
  line-height:1.12;
  overflow-wrap:anywhere;
}
.club-network-web .club-network-root:not(:has(.club-network-principal-supply:not([hidden]))) .club-network-node-labels > strong {
  font-size:20px;
}
.club-network-web .club-network-node small {
  color:var(--network-accent);
  font-size:10px;
  line-height:1.1;
  word-break:normal;
  overflow-wrap:anywhere;
}
.club-network-node[data-kind=union] .club-network-node-labels > small {
  border-radius:8px;
  padding-inline:4px;
  background:color-mix(in srgb,var(--network-accent) 17%,var(--network-bottom));
}
.club-network-icon {
  display:grid;
  place-items:center;
  flex:none;
  width:30px;
  height:30px;
  margin-right:4px;
  border-radius:9px;
  color:var(--network-accent);
  background:none;
}
.club-network-node[data-kind=principal] .club-network-icon { color:var(--gold,var(--network-accent)); background:none; }
.club-network-icon > *, .club-network-members-icon > * { display:block; }
.club-network-members-icon { display:inline-grid; place-items:center; color:currentColor; }
/* Fila «Afiliado a …»: va encima de la raíz del árbol, con una línea que la une a ella. Solo indica la unión superior: no es un botón ni muestra datos del club. */
.club-network-web .club-network-upstream {
  position:absolute;
  z-index:1;
  display:flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:min(260px,calc(100% - 16px));
  margin:0;
  padding:4px 10px 4px 6px;
  transform:translateX(-50%);
  border:1px solid var(--network-edge);
  border-radius:999px;
  background:var(--network-surface);
  color:var(--network-quiet);
  font-size:12px;
  line-height:1.2;
  pointer-events:none;
}
.club-network-web .club-network-upstream[hidden] { display:none; }
.club-network-web .club-network-upstream::after {
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  height:12px;
  width:1px;
  background:var(--network-line);
}
.club-network-web .club-network-upstream > .club-network-icon {
  width:20px;
  height:20px;
  margin:0;
  border-radius:50%;
}
.club-network-web .club-network-upstream strong { color:var(--network-ink); font-weight:650; overflow-wrap:anywhere; }
.club-network-node-counts {
  flex:none;
  display:grid;
  align-self:start;
  justify-items:end;
  gap:3px;
}
.club-network-web .club-network-online {
  position:static;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  padding:0;
  background:var(--network-bottom);
  color:var(--network-quiet);
  border-color:var(--network-edge);
  font-weight:700;
}
.club-network-web .club-network-online[data-online=true] { color:var(--network-green); border-color:currentColor; }
.club-network-web :is(.club-network-online,.club-network-node-counts:empty)[hidden] { display:none; }
.club-network-web .club-network-members {
  gap:2px;
  padding:2px 3px;
  border-color:var(--network-edge);
  background:var(--network-surface);
  color:var(--network-accent);
  border-radius:6px;
  font-size:10px;
  font-weight:700;
  line-height:1;
}
.club-network-web .club-network-principal-supply:not([hidden]) {
  flex:none;
  width:116px;
  min-height:45px;
  margin-left:3px;
  margin-right:0;
  justify-items:center;
  background:var(--network-surface);
  border-color:var(--network-edge);
  color:var(--network-accent);
}
.club-network-web .club-network-principal-supply > small { color:var(--network-quiet); }
.club-network-web .club-network-node-box > .club-network-branch-earnings:not([hidden]) {
  position:absolute;
  inset:auto 4px 4px 44px;
  min-height:22px;
  justify-content:start;
  padding:0;
  border:0;
  background:transparent;
  color:var(--network-accent);
  font-size:11px;
  gap:2px;
  white-space:normal;
  overflow-wrap:anywhere;
}
.club-network-web .club-network-branch-earnings:not([hidden])::after { content:none; }
.club-network-web .club-network-branch-earnings strong { font-weight:inherit; }
.club-network-line,.club-network-arrow {
  fill:none;
  stroke:var(--network-line);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.club-network-arrow { stroke:var(--network-green); }
.club-network-level-line {
  position:absolute;
  height:36px;
}
.club-network-web .club-network-level-line > button {
  display:grid;
  align-content:center;
  width:100%;
  height:100%;
  pointer-events:auto;
  padding:2px 5px;
  border-radius:13px;
  color:var(--network-accent);
  background:var(--network-surface);
  font-size:12px;
  font-weight:700;
  line-height:1.08;
}
.club-network-level-line > button small { color:var(--network-quiet); font-size:11px; }
.club-network-web .club-network-card {
  background:var(--network-surface);
  border-color:var(--network-edge);
  color:var(--network-ink);
}
@media (min-width:740px) {
  .club-network-web[open] {
    grid-template-columns:188px minmax(0,1fr);
    grid-template-areas:"nav header" "nav totals" "nav owner" "nav actions" "nav scroll";
  }
  .club-network-nav {
    display:flex;
    flex-direction:column;
    padding:22px 10px 12px 14px;
    background:var(--network-side);
  }
  .club-network-nav strong { font-size:24px; line-height:1.2; }
  .club-network-nav strong::after {
    content:"";
    display:block;
    width:38px;
    height:3px;
    margin:8px 0 27px;
    background:var(--network-accent);
  }
  .club-network-web .club-network-nav button:not([hidden]) {
    text-align:start;
    min-height:48px;
    border:0;
    padding:0 4px;
    background:transparent;
  }
  .club-network-web > header {
    grid-template-columns:minmax(0,1fr) 44px 44px;
    padding-inline-start:22px;
  }
  .club-network-web > header .quiet:first-child { display:none; }
  .club-network-web > header h2 { font-size:32px;padding-inline-start:0; }
  .club-network-web > header > button:last-child { grid-column:3; }
  .club-network-web > .club-network-sorteos-tools { width:min(460px, calc(100% - 27px)); justify-self:end; }
}
/* The diagram fills the screen until a detail panel uses part of its viewport. */
.club-network-web { box-sizing:border-box; block-size:100dvh; max-block-size:100dvh; }
.club-network-web > :is(header,.club-network-totals,.club-network-owner-summary,.club-network-sorteos-tools,.club-network-nav) {
  position:relative; z-index:2;
}
.club-network-web > header {
  background:linear-gradient(var(--network-start),color-mix(in srgb,var(--network-start) 84%,transparent));
  border:0;
}
.club-network-web .club-network-scroll {
  position:absolute; inset:0; grid-area:auto; z-index:0; overflow:hidden; padding:0;
}
.club-network-web .club-network-layout,
.club-network-web .club-network-graph-frame {
  position:absolute; inset:0; display:block; min-inline-size:0; margin:0;
}
.club-network-web .club-network-viewport,
.club-network-web .club-network-viewport[data-long-tree=false] {
  position:absolute; inset:0; inline-size:100%; block-size:100%; touch-action:none; pointer-events:auto;
}
.club-network-web .club-network-zoom-reset {
  inset-block-start:calc(var(--network-hud-bottom,150px) + 6px);
  inset-inline-end:max(8px,env(safe-area-inset-right)); z-index:2; pointer-events:auto;
}
.club-network-web .club-network-layout {
  --network-pane-gap:8px;
  --network-pane-height:min(44dvh,max(110px,calc(100dvh - var(--network-hud-bottom,150px) - min(34dvh,230px))));
}
.club-network-web .club-network-side {
  position:absolute; inset-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right));
  inset-block-end:max(8px,env(safe-area-inset-bottom)); z-index:3;
  block-size:var(--network-pane-height);
  overflow:auto; overscroll-behavior:contain; pointer-events:auto;
  border-radius:12px;
  background:var(--network-start);
}
.club-network-web .club-network-side:not(:has(.club-network-players:not([hidden]),.club-network-detail > :not([hidden]))) { display:none; }
.club-network-web .club-network-layout:has(.club-network-side > .club-network-players:not([hidden]),.club-network-detail > :not([hidden])) .club-network-graph-frame {
  inset-block-end:calc(var(--network-pane-height) + max(8px,env(safe-area-inset-bottom)) + var(--network-pane-gap));
}
.club-network-web .club-network-side > * { margin-block:0 8px; }
.club-network-web .club-network-status:not(:empty) {
  position:absolute; inset-inline-start:max(8px,env(safe-area-inset-left));
  inset-block-start:var(--network-hud-bottom,150px); z-index:1;
}
@media (min-width:900px) {
  .club-network-web .club-network-layout { --network-pane-width:340px; }
  .club-network-web .club-network-side {
    inset-inline-start:auto;
    inset-block-start:calc(var(--network-hud-bottom,150px) + 6px);
    inline-size:var(--network-pane-width); block-size:auto;
  }
  .club-network-web .club-network-layout:has(.club-network-side > .club-network-players:not([hidden]),.club-network-detail > :not([hidden])) .club-network-graph-frame {
    inset-block-end:0;
    inset-inline-end:calc(var(--network-pane-width) + max(8px,env(safe-area-inset-right)) + var(--network-pane-gap));
  }
}
.club-network-editor:is(.club-network-debts,.club-network-debt-recorder,:has(.club-network-debt-option,
  .club-network-bank-form[data-debt-withdrawal],.club-network-bank-form .union-counter-recharge-debt:not([hidden]))) {
 --debt-bg:#f7fbf8;
 --debt-text:#17372e;
 --debt-border:#86a99e;
 --debt-field:#fff;
 background:var(--debt-bg);
 color:var(--debt-text);
 border-color:var(--debt-border);
}
body[data-home-theme="dark"] .club-network-editor:is(.club-network-debts,.club-network-debt-recorder,:has(.club-network-debt-option,
  .club-network-bank-form[data-debt-withdrawal],.club-network-bank-form .union-counter-recharge-debt:not([hidden]))) {
 --debt-bg:#1b2c24;
 --debt-text:#edf4eb;
 --debt-border:#718a7d;
 --debt-field:#20372d;
}
.club-network-editor:has(.club-network-debt-option,.club-network-bank-form[data-debt-withdrawal],
  .club-network-bank-form .union-counter-recharge-debt:not([hidden])) .club-network-bank-form :is(input[type=number],input[type=text],button.quiet) {
 background:var(--debt-field);
 color:var(--debt-text);
 border-color:var(--debt-border);
}
.club-network-editor.club-network-debts > header {
 grid-template-columns:minmax(0,1fr) auto;
 background:var(--debt-bg);
 color:var(--debt-text);
}
.club-network-editor.club-network-debts > header h2 { grid-column:1; }
.club-network-editor.club-network-debts > header .club-network-history-icon {
 grid-column:2;
 background:var(--debt-field);
 color:var(--debt-text);
 border-color:var(--debt-border);
}
.club-network-editor.club-network-debts > header .club-network-history-icon:focus-visible {
 outline:2px solid currentColor;
 outline-offset:2px;
}
.club-network-debt-option {
 display:flex;
 align-items:center;
 gap:10px;
 padding:8px 10px;
 border:1px solid var(--debt-border);
 border-radius:9px;
}
.club-network-bank-form .club-network-debt-option input {
 width:18px;
 height:18px;
 min-height:0;
 flex:none;
 margin:0;
 accent-color:#278958;
}
.club-network-debt-option span { display:grid; gap:2px; }
.union-counter-recharge-debt.union-debt-withdrawal[hidden] { display:none; }
.union-debt-withdrawal:not([hidden]) {
  display:flex;align-items:center;gap:8px;justify-self:start;min-block-size:32px;
}
.union-debt-withdrawal input[type=checkbox] {
  appearance:auto;min-height:0;inline-size:18px;block-size:18px;flex:none;margin:0;padding:0;accent-color:#278958;
}
.club-management-form.union-recharge-form > :is(.club-debt-fund-breakdown,.union-debt-withdrawal,
  .union-withdrawal-status,.union-withdrawal-retry) { grid-column:1/-1; }
/* The Counter form uses the same dark surface in both site themes. */
.union-counter-detail .union-recharge-form { color-scheme:dark; }
.union-counter-detail .union-recharge-form select { background-color:#252729;color:#f0f1f2; }
.club-network-debt-list { gap:8px; }
.club-network-debt-list > .club-network-debt-group {
 display:block;
 padding:9px 10px;
 border:1px solid var(--debt-border);
 border-radius:9px;
 overflow-wrap:anywhere;
}
.club-network-debt-group :is(h3,p) { margin:0 0 4px; }
.club-network-debt-group h3 { font-size:15px; }
.club-network-debt-group > ul { list-style:none; padding:0; margin:0; }
.club-network-debt-entry {
 display:flex;
 justify-content:space-between;
 flex-wrap:wrap;
 gap:2px 8px;
 padding-block:4px;
}
.club-network-debt-entry time { font-size:12px; }
.club-network-debt-collections { display:grid; gap:5px; margin-block-end:10px; }
.club-network-debt-collections[hidden] { display:none; }
.club-network-debt-collections :is(h3,h4) { margin:0; font-size:15px; }
.club-network-debt-collections .club-network-debt-entry { align-items:center; }
.club-network-debt-collections [role="status"]:empty { display:none; }
.club-network-debt-recorder .club-network-bank-form :is(input[type=number],input[type=text],button.quiet) {
 background:var(--debt-field);
 color:var(--debt-text);
 border-color:var(--debt-border);
}
.club-network-debt-settings { display:grid; gap:8px; margin-block:12px; }
.club-network-debt-settings[hidden] { display:none; }
.club-network-debt-settings :is(h3,p,label) { margin:0; }
.display-player-debt {
 color:#8d2630;
 background:#fff1ef;
 border-radius:5px;
 padding:1px 3px;
 font-size:.85em;
 font-weight:750;
 white-space:nowrap;
}
body[data-home-theme="dark"] .display-player-debt {
 color:#ffc3ba;
 background:#472522;
}
.display-player-debt[hidden] { display:none; }

.club-debt-fund-breakdown {
 display:grid;
 gap:4px;
 margin:6px 0;
 padding:6px 9px;
 border:1px solid var(--debt-border,#778477);
 border-radius:8px;
}
.club-debt-fund-breakdown[hidden] { display:none; }
.club-debt-fund-breakdown > div {
 display:flex;
 align-items:baseline;
 justify-content:space-between;
 flex-wrap:wrap;
 column-gap:8px;
}
.club-debt-fund-breakdown dd { margin:0; font-weight:700; }
.club-debt-fund-breakdown .club-debt-fund-debt dd { color:#835100; }
.club-debt-fund-breakdown .club-debt-fund-net dd { color:#23653e; }
.club-debt-fund-breakdown .club-debt-fund-debit dd { color:#922c38; }
:is(body[data-home-theme="dark"],.union-counter-detail .union-recharge-form) .club-debt-fund-breakdown .club-debt-fund-debt dd { color:#ffcf78; }
:is(body[data-home-theme="dark"],.union-counter-detail .union-recharge-form) .club-debt-fund-breakdown .club-debt-fund-net dd { color:#96e5ac; }
:is(body[data-home-theme="dark"],.union-counter-detail .union-recharge-form) .club-debt-fund-breakdown .club-debt-fund-debit dd { color:#ff9aa8; }
.club-debt-settlement :is(input,select) {
 background:var(--debt-field);
 color:var(--debt-text);
 border-color:var(--debt-border);
}
.club-debt-settlement .union-field[hidden],.ctw-debt-receipt[hidden] { display:none; }
.ctw-debt-preview:empty { display:none; }
.ctw-debt-split+.ctw-debt-split { margin-block-start:8px; }

.club-network-editor.club-network-debts .club-network-debt-group button.quiet {
 background:var(--debt-field);
 color:var(--debt-text);
 border-color:var(--debt-border);
 inline-size:auto;
 min-block-size:36px;
 min-inline-size:0;
 padding:5px 11px;
 flex:0 1 auto;
 justify-self:start;
}
.club-network-editor.club-network-debts .club-network-debt-group button.quiet:focus-visible {
 outline:2px solid currentColor;
 outline-offset:2px;
}
.club-network-editor.club-network-debts .club-network-debt-group button.quiet:disabled {
 opacity:.65;
}

.counter-debt-workspace { display:grid; align-content:start; gap:9px; padding-block:8px; }
.counter-debt-workspace > button { justify-self:start; }
.counter-debt-players { display:flex; flex-wrap:wrap; gap:6px; }
.counter-debt-players button[aria-pressed="true"] { outline:2px solid currentColor; outline-offset:1px; }
.counter-debt-selection { display:grid; gap:6px; align-content:start; }
.counter-debt-selection[hidden],.counter-chip-currency[hidden] { display:none; }
.counter-chip-currency { display:grid; font-size:.9em; gap:4px; }
.counter-chip-currency select { width:100%; min-height:36px; padding:4px 7px; }
.club-network-debt-recorder .counter-chip-currency select {
 background:var(--debt-field);
 color:var(--debt-text);
 border-color:var(--debt-border);
}
.counter-debt-summary { margin:4px 0; }
.counter-debt-person { display:inline-flex; gap:4px; align-items:center; }
.counter-debt-person svg { width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7; }

.club-network-editor.counter-debt-listing {
 box-sizing:border-box;
 width:100%;
 max-height:none;
 padding:10px;
 overflow:visible;
}
.counter-debt-listing[hidden] { display:none; }
.counter-debt-listing > header { position:static; padding-block:0; }
.counter-debt-listing > header h3 { margin:0; font-size:16px; }

/* Keep personal and club balances distinct on both Union and Counter. */
.club-network-debt-sections { display:grid; gap:12px; }
.club-network-debt-sections > section {
  padding:6px 9px 2px;
  border:1px solid var(--debt-border);
  border-radius:10px;
  min-inline-size:0;
}
.club-network-debt-sections > section[hidden] { display:none; }
.club-network-debt-sections > section > h3 {
  margin:0;
  padding:4px 0 2px;
  font-size:.91rem;
}
.club-network-debt-sections .club-network-debt-list {
  margin:0;
  padding:0;
  gap:0;
}
.club-network-debt-sections .club-network-debt-list > .club-network-debt-group {
  display:grid;
  gap:5px;
  margin:0;
  padding:8px 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  min-inline-size:0;
}
.club-network-debt-sections .club-network-debt-group + .club-network-debt-group {
  border-block-start:1px solid color-mix(in srgb,var(--debt-border) 60%,transparent);
}
.club-debt-summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:5px 8px;
  align-items:start;
}
.club-debt-identity,.club-debt-balances { display:grid; gap:2px; min-inline-size:0; }
.club-debt-name,.club-debt-owner-name { overflow-wrap:anywhere; }
.club-debt-name { font-size:.94rem; line-height:1.3; }
.club-debt-owner-name,.club-debt-record-context { font-size:.79rem; }
.club-debt-balances { justify-items:end; }
.club-debt-compact-amount {
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  white-space:nowrap;
  font-size:.8rem;
}
.club-debt-compact-amount strong { font-variant-numeric:tabular-nums; }
.club-debt-remaining { color:var(--debt-due,#9e2e42); }
.club-debt-paid { color:var(--debt-settled,#23653e); }
body[data-home-theme="dark"] .club-network-debts { --debt-due:#ffa4b0; --debt-settled:#96e5ac; }
.club-debt-combined {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  padding:3px 6px;
  border-radius:5px;
  background:var(--debt-field);
}
.club-debt-combined strong { color:inherit; }
.club-debt-footer {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:4px 6px;
}
.club-debt-footer .club-debt-daily-routing { margin:0; }
.club-debt-footer .union-counter-recharge-debt {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin:0;
  min-height:32px;
  padding:0;
  font-size:.76rem;
  white-space:nowrap;
}
.club-debt-footer .union-counter-recharge-debt input {
  flex:none;
  inline-size:14px;
  block-size:14px;
  margin:0;
}
.club-debt-actions { display:flex; flex-wrap:wrap; gap:3px; margin-inline-start:auto; }
.club-network-editor.club-network-debts .club-network-debt-group button.club-debt-icon {
  display:inline-flex;
  align-items:center;
  gap:3px;
  inline-size:auto;
  block-size:auto;
  min-block-size:32px;
  margin:0;
  padding:3px 5px;
  border-radius:6px;
  font-size:.76rem;
  white-space:nowrap;
}
.club-debt-icon svg {
  inline-size:13px;
  block-size:13px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.club-debt-icon[aria-expanded="true"] svg { transform:rotate(180deg); }
.club-network-debt-group > ul:not([hidden]) {
  min-inline-size:0;
  margin:0;
  padding:4px 0 0;
  border-block-start:1px solid var(--debt-border);
}
.club-network-debt-group .club-network-debt-entry { gap:1px 6px; font-size:.83rem; }
.club-debt-entry-values {
  display:flex;
  flex-wrap:wrap;
  gap:2px 7px;
  flex:1 0 100%;
}

.club-network-bank-form .union-counter-recharge-confirm {
  grid-template-columns:minmax(0,1fr);
  gap:4px;
}
.club-network-bank-form .union-counter-recharge-confirm .union-counter-recharge-debt {
  justify-content:flex-start;
  padding-inline:0;
  min-block-size:36px;
}

.club-network-web .club-network-node.club-network-has-total {
  position:relative;
  padding-bottom:22px;
}
.club-network-web .club-network-node .club-network-club-total:not([hidden]) {
  position:absolute;
  inset:auto 8px 6px 10px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:inherit;
  font-size:11px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.club-network-web .club-network-node-box:has(.club-network-branch-earnings:not([hidden])) > .club-network-node.club-network-has-total {
  padding-bottom:42px;
}
.club-network-web .club-network-node-box:has(.club-network-branch-earnings:not([hidden])) .club-network-club-total:not([hidden]) {
  bottom:26px;
}

/* Red de uniones con los tokens del sistema (estandares.md, «Red de uniones» y «Navegación»).
   Sustituye la paleta fija en verde azulado de la red por --trio-*, en claro y en oscuro. */
.club-network-web, body[data-home-theme=dark] .club-network-web {
  --network-ink:var(--trio-ink);
  --network-quiet:var(--trio-muted);
  --network-accent:var(--accion);
  --network-edge:var(--trio-edge);
  --network-green:var(--trio-success,var(--accion));
  --network-top:var(--trio-surface);
  --network-bottom:var(--trio-tint);
  --network-selected:var(--trio-tint);
  --network-line:var(--trio-muted);
  --network-side:var(--trio-surface);
  --network-glow:transparent;
  --network-start:var(--trio-page);
  --network-end:var(--trio-page-end,var(--trio-page));
  --network-sweep:transparent;
}
.club-network-web { background:var(--trio-page); }
.club-network-web::before { display:none; }

/* Cabecera de cristal: translúcida y desenfocada sobre la red. Los iconos no llevan fondo ni borde en reposo. */
.club-network-web > header {
  background:color-mix(in srgb,var(--trio-surface) 62%,transparent);
  -webkit-backdrop-filter:blur(18px) saturate(1.35);
  backdrop-filter:blur(18px) saturate(1.35);
  box-shadow:0 6px 18px color-mix(in srgb,var(--trio-ink) 7%,transparent);
}
@media (prefers-reduced-transparency: reduce) {
  .club-network-web > header { background:var(--trio-surface); -webkit-backdrop-filter:none; backdrop-filter:none; }
}
.club-network-web > header .club-network-head-button {
  width:44px; height:44px; min-height:44px; padding:0;
  display:grid; place-items:center; border:0; background:transparent; color:var(--trio-ink);
}
.club-network-web > header .club-network-head-button > * { display:block; }
.club-network-web > header .club-network-head-button > morph-icon, .club-network-web > header .club-network-head-button > svg { width:20px; height:20px; }
.club-network-web > header .club-network-alerts-toggle { color:var(--accion); }
.club-network-web > header h2 { color:var(--trio-ink); }

/* Botones de la red: marco de botón del sistema con icono Morphicons delante. */
.club-network-web .club-network-tool {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  box-sizing:border-box; min-height:44px; margin:0; padding:7px 12px;
  border:1px solid var(--trio-edge); border-radius:7px;
  background:color-mix(in srgb,var(--trio-ink) 4%,transparent);
  color:var(--trio-ink); font:600 14px/1.2 'Trio Bricolage','Trio Bricolage Respaldo',system-ui,sans-serif;
  cursor:pointer; transition:background-color .15s,border-color .15s,transform .15s;
}
.club-network-web .club-network-tool:hover:not(:disabled) {
  background:color-mix(in srgb,var(--trio-ink) 11%,transparent);
  border-color:color-mix(in srgb,var(--trio-ink) 38%,transparent);
  transform:translateY(-1px);
}
.club-network-web .club-network-tool:active:not(:disabled) { transform:translateY(1px) scale(.985); }
.club-network-web .club-network-tool:focus-visible { outline:2px solid var(--anillo); outline-offset:-3px; }
.club-network-web .club-network-tool:disabled { opacity:.4; cursor:not-allowed; }
.club-network-web .club-network-tool-icono { display:inline-grid; place-items:center; width:18px; height:18px; flex:none; color:var(--accion); }
.club-network-web .club-network-tool-icono > * { display:block; width:100%; height:100%; }
.club-network-web .club-network-tool-texto { min-width:0; }
.club-network-web .club-network-tool .club-network-sorteos-pending { margin-inline-start:2px; }
.club-network-web .club-network-sorteos-tools > .club-network-tool {
  display:inline-flex; align-items:center; place-content:normal; flex-direction:row; flex-wrap:nowrap; min-height:44px; width:100%; justify-content:center; text-align:start; gap:8px;
}
.club-network-web .club-network-sorteos-tools > .club-network-tool .club-network-tool-texto { white-space:nowrap; }

/* Tarjeta del club al que rinde cuentas: separada, con tinte de acción y una línea discontinua hacia la raíz. */
.club-network-web .club-network-upstream {
  position:absolute; z-index:1; box-sizing:border-box;
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:6px 12px;
  margin:0; padding:12px 14px; transform:translateX(-50%);
  border:1px solid color-mix(in srgb,var(--accion) 55%,transparent); border-radius:14px;
  background:color-mix(in srgb,var(--accion) 10%,var(--trio-surface));
  box-shadow:0 8px 22px color-mix(in srgb,var(--trio-ink) 10%,transparent);
}
.club-network-web .club-network-upstream::after { content:none; }
.club-network-web .club-network-upstream[hidden] { display:none; }
.club-network-web .club-network-upstream-caption {
  grid-column:1 / -1; display:flex; align-items:center; gap:6px; margin:0;
  font-size:12px; font-weight:650; letter-spacing:.04em; text-transform:uppercase; color:var(--accion);
}
.club-network-web .club-network-upstream-caption .club-network-icon { width:14px; height:14px; margin:0; padding:0; border:0; background:none; }
.club-network-web .club-network-upstream-icon { display:grid; place-items:center; width:22px; height:22px; color:var(--accion); }
.club-network-web .club-network-upstream-icon > * { display:block; width:100%; height:100%; }
.club-network-web .club-network-upstream-text { display:grid; gap:2px; min-width:0; }
.club-network-web .club-network-upstream-text strong { font-size:15px; font-weight:650; color:var(--trio-ink); overflow-wrap:anywhere; }
.club-network-web .club-network-upstream-id { font-size:12px; color:var(--trio-muted); }
.club-network-web .club-network-upstream-line { fill:none; stroke:var(--accion); stroke-width:1.5; stroke-dasharray:5 4; }

/* Afiliaciones dentro del modal del estándar (no es una tarjeta de la red). */
.club-network-editor .club-network-affiliations { display:grid; gap:14px; }
.club-network-editor .club-network-invite-form { display:grid; gap:8px; }
.club-network-editor .club-network-invite-linea { display:flex; align-items:stretch; gap:8px; }
.club-network-editor .club-network-invite-linea > .campo-control { flex:1 1 auto; width:auto; min-width:0; min-height:40px; }
.club-network-editor .club-network-invite-linea > button.primary {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; flex:0 0 auto;
  height:auto; min-height:40px; margin:0; padding:0 14px; border:1px solid var(--accion); border-radius:8px;
  background:var(--accion); color:var(--accion-tinta); box-shadow:0 1px 2px #0000002e;
  font-size:14px; font-weight:500; line-height:1; white-space:nowrap; cursor:pointer;
}
.club-network-editor .club-network-invite-linea > button.primary .miembros-icono {
  display:inline-grid; place-items:center; width:16px; height:16px; flex:none;
}
.club-network-editor .club-network-invite-linea > button.primary .miembros-icono morph-icon,
.club-network-editor .club-network-invite-linea > button.primary .miembros-icono svg {
  display:block; width:16px; height:16px;
}
.club-network-editor .club-network-invite-linea > button.primary:disabled {
  opacity:.45; cursor:not-allowed; transform:none; box-shadow:none;
}
.club-network-editor .club-network-invite-aviso[hidden] { display:none; }
.club-network-editor .club-network-invite-linea > button.primary:hover:not(:disabled) {
  background:var(--accion-hover); border-color:var(--accion-hover);
  box-shadow:0 6px 18px color-mix(in srgb, var(--accion) 42%, transparent); transform:translateY(-1px);
}
.club-network-editor .club-network-invite-linea > button.primary:active:not(:disabled) { transform:translateY(0) scale(.985); }
.club-network-editor .club-network-aff-tabs {
  position:relative; display:flex; gap:0; margin:0; padding:0;
  border-bottom:1px solid var(--trio-edge); overflow-x:auto; scrollbar-width:none;
}
.club-network-editor .club-network-aff-tabs::-webkit-scrollbar { display:none; }
.club-network-editor .club-network-aff-tabs > button[role=tab] {
  flex:1 1 auto; min-height:44px; margin:0; padding:10px 8px 12px; border:0; border-radius:0;
  background:none; box-shadow:none; color:var(--trio-muted);
  font:600 13px/1.2 system-ui,sans-serif; text-align:center; white-space:nowrap; cursor:pointer;
}
.club-network-editor .club-network-aff-tabs > button[role=tab][aria-selected=true] { color:var(--trio-ink); }
.club-network-editor .club-network-aff-tabs > button[role=tab]:is(:hover,:focus-visible) { color:var(--trio-ink); background:none; }
.club-network-editor .club-network-aff-tabs > button[role=tab]:focus-visible { outline:2px solid var(--accion); outline-offset:-2px; border-radius:6px; }
.club-network-editor .club-network-aff-paneles { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; overflow:clip; }
.club-network-editor .club-network-aff-paneles > * { grid-area:1 / 1; align-self:start; min-width:0; }
.club-network-editor .club-network-aff-paneles.miembros-deslizando > * { will-change:transform; }
.club-network-editor .club-network-aff-lista { display:grid; gap:8px; margin-top:12px; }
.club-network-editor .club-network-aff-vacio { margin:12px 0 0; color:var(--trio-muted); font-size:13px; }
.club-network-editor .club-network-aff-panel > .aviso-paginador { justify-self:start; margin-top:8px; }
.club-network-editor .club-network-invitation {
  display:grid; gap:8px; padding:12px; border:1px solid var(--trio-edge); border-radius:12px; background:var(--trio-tint);
}
.club-network-editor .club-network-invitation strong { font-size:14px; color:var(--trio-ink); }
.club-network-editor .club-network-invitation > p { margin:0; font-size:13px; color:var(--trio-muted); }
.club-network-editor .club-network-invitation .club-network-row-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }

/* Barra lateral de cristal (escritorio) y cabecera sin el botón de volver, que ya está en la barra. */
@media (min-width:740px) {
  .club-network-web > header .club-network-head-button:first-child { display:none; }
  .club-network-nav {
    background:color-mix(in srgb,var(--trio-surface) 55%,transparent);
    -webkit-backdrop-filter:blur(18px) saturate(1.35);
    backdrop-filter:blur(18px) saturate(1.35);
  }
  @media (prefers-reduced-transparency: reduce) { .club-network-nav { background:var(--trio-surface); backdrop-filter:none; } }
  .club-network-web .club-network-nav button.club-network-tool:not([hidden]) {
    justify-content:flex-start; width:100%; min-height:44px; padding:7px 12px; margin:0 0 6px;
    border:1px solid var(--trio-edge); background:color-mix(in srgb,var(--trio-ink) 4%,transparent);
    color:var(--trio-ink); font-size:14px; font-weight:600; text-align:start;
  }
  .club-network-web .club-network-nav button.club-network-tool:not([hidden]):hover {
    background:color-mix(in srgb,var(--trio-ink) 11%,transparent);
    border-color:color-mix(in srgb,var(--trio-ink) 38%,transparent);
  }
}
@media (min-width:740px) {
  .club-network-web > header h2 { font-size:24px; white-space:nowrap; }
  .club-network-web .club-network-nav button.club-network-tool:not([hidden]) { font-size:13.5px; padding:7px 10px; gap:7px; white-space:nowrap; }
}

/* Tarjeta del club al que rinde cuentas: corona, nombre y debajo el ID copiable. */
.club-network-web .club-network-upstream {
  grid-template-columns:auto minmax(0,1fr); align-items:center; gap:2px 12px; padding:10px 14px;
}
.club-network-web .club-network-upstream-icon { grid-row:1 / span 2; }
.club-network-web .club-network-upstream-text { gap:0; }
.club-network-web .club-network-upstream-text strong { font-size:15px; line-height:1.25; }
.club-network-web .club-network-upstream-id {
  justify-self:start; min-height:24px; margin:0; padding:0 4px 0 0; border:0; background:none;
  color:var(--trio-muted); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; cursor:pointer;
}
.club-network-web .club-network-upstream-id:hover { color:var(--accion); }
.club-network-web .club-network-upstream-id[hidden] { display:none; }
.club-network-web .club-network-upstream-id .copia-icono { margin-inline-end:4px; vertical-align:-2px; }
.club-network-web .club-network-upstream-line { fill:none; stroke:var(--accion); stroke-width:1.6; stroke-dasharray:5 4; }
.club-network-web .club-network-upstream-arrow { fill:var(--accion); stroke:none; }

/* Insignias de la tarjeta: en línea y miembros, con icono y número en píldora del sistema. */
.club-network-web .club-network-node-counts { display:flex; flex-direction:row; align-items:center; gap:6px; justify-items:initial; }
.club-network-web .club-network-online,
.club-network-web .club-network-members {
  display:inline-flex; align-items:center; gap:5px; min-height:22px; padding:0 8px;
  border:1px solid var(--trio-edge); border-radius:999px; background:color-mix(in srgb,var(--trio-ink) 5%,transparent);
  color:var(--trio-ink); font-size:12px; font-weight:650; font-variant-numeric:tabular-nums;
}
.club-network-web .club-network-online[hidden],
.club-network-web .club-network-members[hidden] { display:none; }
.club-network-web .club-network-online::before {
  content:""; width:6px; height:6px; border-radius:50%; background:var(--trio-muted);
}
.club-network-web .club-network-online[data-online=true]::before { background:var(--trio-success,#3bea75); }
.club-network-web .club-network-members-icon { display:inline-grid; place-items:center; width:13px; height:13px; color:var(--accion); }
.club-network-web .club-network-members-icon > * { display:block; width:100%; height:100%; }

/* Fichas: etiqueta a la izquierda y cifra a la derecha, una fila por dato. */
.club-network-web .club-network-club-total,
.club-network-web .club-network-branch-earnings {
  display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:0; font-size:12.5px;
}
.club-network-web .club-network-club-total span { color:var(--trio-muted); }
.club-network-web .club-network-club-total strong { color:var(--trio-ink); font-weight:650; }
.club-network-web .club-network-branch-earnings { min-height:24px; padding:0; border:0; background:none; text-align:start; }
.club-network-web .club-network-branch-earnings > span { color:var(--trio-muted); }
.club-network-web .club-network-branch-earnings > strong { color:var(--accion); font-weight:650; }

/* Detalles del club: su contenido va dentro del modal, sin la tarjeta de la red. */
.club-network-players-modal .club-network-players { background:none; border:0; box-shadow:none; padding:0; }
/* Sustituye el círculo verde de 24 px y la sangría de 44 px de las reglas anteriores. */
.club-network-web .club-network-online { width:auto; height:auto; border-radius:999px; background:color-mix(in srgb,var(--trio-ink) 5%,transparent); }
.club-network-web .club-network-online[data-online=true] { color:var(--trio-ink); border-color:var(--trio-edge); }
.club-network-web .club-network-node-box > .club-network-branch-earnings:not([hidden]) {
  position:absolute; inset:auto 12px 6px 12px; min-height:22px; justify-content:space-between; font-size:12.5px; white-space:nowrap; overflow:hidden;
}
/* Tarjeta afiliada: corona junto al nombre y el ID con el mismo estilo que la cabecera del club (sin caja, con hover de acción). */
.club-network-web .club-network-upstream { display:grid; grid-template-columns:minmax(0,1fr); justify-items:start; gap:4px; padding:10px 14px; }
.club-network-web .club-network-upstream-top { display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; }
.club-network-web .club-network-upstream-icon { width:20px; height:20px; flex:none; }
.club-network-web .club-network-upstream-top strong { font-size:15px; line-height:1.25; min-width:0; overflow-wrap:anywhere; }
.club-network-web .club-network-upstream-id:not([hidden]) {
  display:inline-flex; align-items:center; gap:6px; min-height:26px; margin-inline-start:-5px; padding:2px 5px;
  border:0; border-radius:7px; background:transparent; color:var(--accion); font-size:12px; font-weight:650; font-variant-numeric:tabular-nums;
}
@media (hover:hover) and (pointer:fine) {
  .club-network-web .club-network-upstream-id:hover:not(:disabled) {
    background:color-mix(in srgb,var(--accion) 13%,var(--trio-surface)); color:var(--accion);
  }
}
.club-network-web .club-network-upstream-id .copia-icono { --tamano-copia:12px; }

/* Icono del club y logo: sin fondo ni borde. El logo ocupa la misma caja de 30 px. */
.club-network-web .club-network-icon, .club-network-web .club-network-node[data-kind=principal] .club-network-icon { background:none; border:0; padding:0; }
.club-network-web .club-network-icon-logo img { display:block; width:30px; height:30px; object-fit:cover; border-radius:8px; background:none; border:0; padding:0; }

.club-network-web .club-network-earnings-switch { display:inline-grid; place-items:center; width:13px; height:13px; margin:0; color:var(--accion); flex:none; }
/* En las casillas de la red el icono de cambio va en la esquina, sin mover el texto. */
.club-network-web .club-network-stat.club-network-earnings-toggle { position:relative; padding-inline-end:30px; }
.club-network-web .club-network-stat .club-network-earnings-switch { position:absolute; top:12px; right:12px; }
.club-network-web .club-network-earnings-switch > * { display:block; width:100%; height:100%; }

/* Comisión por club: pestañas Hoy | General con indicador deslizante (Swipe Tabs de Kokonut UI). */
.club-network-web .club-network-periodo {
  display:flex; align-items:center; gap:10px; min-height:0; margin:0; padding:0; border:0; background:none; color:var(--trio-ink);
}
.club-network-web .club-network-periodo-grupo {
  position:relative; display:inline-flex; max-width:100%; padding:3px; border:0; border-radius:999px;
  background:color-mix(in srgb,var(--trio-ink) 6%,transparent);
}
.club-network-web .club-network-periodo-opcion {
  position:relative; display:inline-flex; align-items:center; gap:6px; margin:0; padding:4px 10px;
  border:0; border-radius:999px; background:transparent; color:var(--trio-muted);
  font-weight:500; font-size:13px; line-height:1.1; white-space:nowrap; cursor:pointer; transition:color .15s ease-out;
}
.club-network-web .club-network-periodo-opcion { min-height:0; height:auto; }
.club-network-web .club-network-periodo-opcion:hover:not(:disabled) { color:var(--trio-ink); }
.club-network-web .club-network-periodo-opcion:focus-visible { outline:2px solid var(--anillo); outline-offset:2px; }
.club-network-web .club-network-periodo-opcion::after { content:""; position:absolute; inset:-7px -4px; }
.club-network-web .club-network-periodo-indicador {
  position:absolute; inset:0; display:flex; padding:3px; pointer-events:none;
  background:var(--accion); clip-path:inset(0 100% 0 0);
}
.club-network-web .club-network-periodo-opcion-activa { min-height:0; height:auto; }
.club-network-web .club-network-periodo-opcion-activa {
  display:inline-flex; align-items:center; flex:none; padding:4px 10px; border-radius:999px;
  color:var(--accion-tinta); font-weight:500; font-size:13px; line-height:1.1; white-space:nowrap;
}
.club-network-web .club-network-periodo > strong { margin-inline-start:auto; font-size:12px; font-variant-numeric:tabular-nums; }
/* Dentro de la tarjeta: saldo arriba y, debajo, el selector con su valor. */
.club-network-web .club-network-node-box > .club-network-periodo:not([hidden]) {
  position:absolute; inset:auto 12px 8px 12px; margin:0; width:auto; min-height:0; padding:0; border:0; background:none;
}
.club-network-web .club-network-node-box:has(> .club-network-periodo:not([hidden])) { min-height:108px; }
.club-network-web .club-network-node-box:has(> .club-network-periodo:not([hidden])) > .club-network-node { min-height:108px; align-items:flex-start; }
.club-network-web .club-network-node-box:has(> .club-network-periodo:not([hidden])) .club-network-club-total:not([hidden]) { bottom:42px; }

/* Herramientas de la red: tarjetas del sistema con icono, nombre, detalle y flecha de navegación. */
.club-network-web .club-network-sorteos-tools {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-inline-size:none;
}
.club-network-web .club-network-sorteos-tools > .club-network-tool {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px;
  min-height:64px; margin:0; padding:10px 12px; text-align:start;
  border:1px solid var(--trio-edge); border-radius:14px; background:var(--trio-surface); color:var(--trio-ink);
  box-shadow:0 2px 8px color-mix(in srgb,var(--trio-ink) 4%,transparent);
  transition:border-color .15s ease-out,background-color .15s ease-out,transform .15s ease-out;
}
.club-network-web .club-network-sorteos-tools > .club-network-tool[hidden] { display:none; }
@media (hover:hover) and (pointer:fine) {
  .club-network-web .club-network-sorteos-tools > .club-network-tool:hover:not(:disabled) {
    border-color:color-mix(in srgb,var(--accion) 45%,var(--trio-edge));
    background:color-mix(in srgb,var(--accion) 6%,var(--trio-surface));
    transform:translateY(-1px);
  }
  .club-network-web .club-network-sorteos-tools > .club-network-tool:hover .club-network-tool-chevron { transform:translateX(2px); color:var(--accion); }
}
.club-network-web .club-network-sorteos-tools > .club-network-tool:active:not(:disabled) { transform:translateY(1px) scale(.99); }
.club-network-web .club-network-sorteos-tools > .club-network-tool:focus-visible { outline:2px solid var(--anillo); outline-offset:2px; }
.club-network-web .club-network-sorteos-tools > .club-network-tool .club-network-tool-icono { width:20px; height:20px; color:var(--accion); }
.club-network-web .club-network-tool-cuerpo { display:grid; gap:2px; min-width:0; }
.club-network-web .club-network-tool-cuerpo > .club-network-tool-texto {
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-size:14px; font-weight:600; line-height:1.25;
}
.club-network-web .club-network-tool-detalle {
  font-size:12px; line-height:1.3; color:var(--trio-muted);
}
.club-network-web .club-network-tool-chevron { display:inline-grid; place-items:center; width:16px; height:16px; flex:none; color:var(--trio-muted); transition:transform .15s ease-out,color .15s ease-out; }
.club-network-web .club-network-tool-chevron > * { display:block; width:100%; height:100%; }
/* Badges «en línea» y «miembros»: centrados con el bloque de nombre e ID, no pegados arriba. */
.club-network-web .club-network-node-counts { align-self:flex-start; margin-block-start:12px; }
.club-network-web .club-network-node-box:has(> .club-network-periodo:not([hidden])) .club-network-node-counts { margin-block-start:6px; }

/* Historial de ganancias de la red (línea de tiempo, filtros y páginas de 10). */
.historial-red .historial-cabecera { display:flex; align-items:center; gap:8px; }
.historial-red .historial-cabecera h2 { flex:1; min-width:0; margin:0; font-size:20px; line-height:1.2; }
.historial-red .historial-subtitulo { margin:2px 0 12px; color:var(--trio-muted); font-size:13px; }
.historial-red .historial-filtros { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.historial-red .historial-pastilla {
  display:inline-flex; align-items:center; gap:6px; min-height:36px; margin:0; padding:0 12px;
  border:1px solid var(--trio-edge); border-radius:999px; background:transparent; color:var(--trio-muted);
  font:600 13px/1 'Trio Bricolage','Trio Bricolage Respaldo',system-ui,sans-serif; cursor:pointer;
  transition:background-color .2s ease-out,border-color .2s ease-out,color .2s ease-out;
}
.historial-red .historial-pastilla:hover:not(:disabled) { color:var(--trio-ink); border-color:color-mix(in srgb,var(--accion) 45%,var(--trio-edge)); }
.historial-red .historial-pastilla.is-active { background:var(--accion); border-color:var(--accion); color:var(--accion-tinta); }
.historial-red .historial-pastilla:focus-visible { outline:2px solid var(--anillo); outline-offset:2px; }
.historial-red .historial-pastilla-icono { display:inline-grid; place-items:center; width:14px; height:14px; }
.historial-red .historial-pastilla-icono > * { display:block; width:100%; height:100%; }
.historial-red .historial-pastilla small { font-variant-numeric:tabular-nums; opacity:.8; }
.historial-red .historial-vacio { margin:18px 0; color:var(--trio-muted); text-align:center; font-size:14px; }

/* Línea de tiempo: un riel vertical, una marca por día y la tarjeta del día. */
.historial-red .historial-linea, .historial-red .historial-clubes {
  position:relative; display:grid; gap:10px; margin:0; padding:0; list-style:none;
}
.historial-red .historial-linea { padding-inline-start:30px; }
.historial-red .historial-linea::before {
  content:""; position:absolute; inset:10px auto 10px 9px; width:2px; border-radius:2px;
  background:linear-gradient(color-mix(in srgb,var(--accion) 70%,transparent),var(--trio-edge));
}
.historial-red .historial-dia { position:relative; }
.historial-red .historial-marca {
  position:absolute; left:-30px; top:14px; width:20px; height:20px; border-radius:50%;
  display:grid; place-items:center; background:var(--trio-surface); border:2px solid var(--accion); color:var(--accion);
}
.historial-red .historial-dia[data-estado=posted] .historial-marca { background:color-mix(in srgb,var(--accion) 16%,var(--trio-surface)); }
.historial-red .historial-dia[data-estado=pending] .historial-marca { border-style:dashed; }
.historial-red .historial-anillo {
  position:absolute; inset:-2px; border-radius:50%; border:2px solid var(--accion); opacity:0; pointer-events:none;
}
.historial-red .historial-dia.is-pending .historial-anillo { opacity:.5; }
.historial-red .historial-marca-icono { display:inline-grid; place-items:center; width:12px; height:12px; }
.historial-red .historial-marca-icono > * { display:block; width:100%; height:100%; }
.historial-red .historial-tarjeta {
  display:grid; gap:6px; width:100%; margin:0; padding:12px 14px; box-sizing:border-box; text-align:start;
  border:1px solid var(--trio-edge); border-radius:14px; background:var(--trio-surface); color:var(--trio-ink);
  box-shadow:0 2px 8px color-mix(in srgb,var(--trio-ink) 4%,transparent); font:inherit;
  transition:border-color .2s ease-out,transform .2s ease-out,background-color .2s ease-out;
}
.historial-red .historial-tarjeta.is-pending { border-style:dashed; border-color:color-mix(in srgb,var(--accion) 55%,var(--trio-edge)); }
button.historial-red .historial-tarjeta, .historial-red button.historial-tarjeta { cursor:pointer; }
@media (hover:hover) and (pointer:fine) {
  .historial-red button.historial-tarjeta:hover:not(:disabled) { transform:translateY(-1px); border-color:color-mix(in srgb,var(--accion) 45%,var(--trio-edge)); }
}
.historial-red button.historial-tarjeta:focus-visible { outline:2px solid var(--anillo); outline-offset:2px; }
.historial-red .historial-tarjeta-cabecera { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; }
.historial-red .historial-cuando { display:flex; align-items:baseline; gap:6px; color:var(--trio-muted); font-size:12px; }
.historial-red .historial-cuando strong { color:var(--trio-ink); font-weight:650; }
.historial-red .historial-estado {
  display:inline-flex; align-items:center; gap:4px; padding:2px 9px; border-radius:999px;
  background:color-mix(in srgb,var(--accion) 12%,transparent); color:var(--accion); font-size:11.5px; font-weight:650;
}
.historial-red .historial-dia.is-pending .historial-estado { background:color-mix(in srgb,var(--trio-ink) 7%,transparent); color:var(--trio-muted); }
.historial-red .historial-estado-icono { display:inline-grid; place-items:center; width:13px; height:13px; }
.historial-red .historial-estado-icono > * { display:block; width:100%; height:100%; }
.historial-red .historial-monto { font-size:18px; font-weight:650; font-variant-numeric:tabular-nums; color:var(--trio-ink); }

/* Detalle del día: total y clubes con barra de proporción. */
.historial-red .historial-detalle h3 { margin:0 0 4px; font-size:18px; }
.historial-red .historial-total {
  display:flex; align-items:center; gap:10px; margin:10px 0 12px; padding:12px 14px; border-radius:14px;
  border:1px solid color-mix(in srgb,var(--accion) 40%,var(--trio-edge));
  background:color-mix(in srgb,var(--accion) 8%,var(--trio-surface));
}
.historial-red .historial-total[hidden] { display:none; }
.historial-red .historial-total-icono { display:inline-grid; place-items:center; width:18px; height:18px; color:var(--accion); flex:none; }
.historial-red .historial-total-icono > * { display:block; width:100%; height:100%; }
.historial-red .historial-total-texto { display:grid; gap:2px; }
.historial-red .historial-total-texto small { color:var(--trio-muted); font-size:12px; }
.historial-red .historial-total-texto strong { font-size:17px; font-variant-numeric:tabular-nums; }
.historial-red .historial-clubes { gap:8px; }
.historial-red .historial-club {
  display:grid; gap:7px; padding:10px 12px; border:1px solid var(--trio-edge); border-radius:12px; background:var(--trio-surface);
}
.historial-red .historial-club-cabecera { display:flex; align-items:baseline; justify-content:space-between; gap:10px; font-size:14px; }
.historial-red .historial-club-cabecera strong { font-variant-numeric:tabular-nums; }
.historial-red .historial-proporcion { display:block; height:6px; border-radius:999px; overflow:hidden; background:color-mix(in srgb,var(--trio-ink) 8%,transparent); }
.historial-red .historial-proporcion-barra { display:block; width:100%; height:100%; border-radius:999px; background:var(--accion); transform-origin:left center; }
.historial-red .historial-mas { width:100%; min-height:44px; margin:12px 0 0; }

/* Campana de avisos: la misma del sistema (estandares.md, «Campana de avisos»): 38 px, icono de 22 px,
   contador cobre de 16 px con «99+», anillo interior al pasar el cursor. */
.club-network-web > header :is(.cabecera-clubes-campana,.club-network-refresh-toggle) {
  position:relative; display:grid; place-items:center; flex:none; box-sizing:border-box;
  width:38px; height:38px; min-height:38px; margin:0; padding:0; border:0; border-radius:50%;
  background:transparent; color:var(--accion); box-shadow:none; transition:box-shadow 150ms ease;
}
.club-network-web > header :is(.cabecera-clubes-campana,.club-network-refresh-toggle)[hidden] { display:none; }
.club-network-web > header :is(.cabecera-clubes-campana,.club-network-refresh-toggle) > * { display:block; width:22px; height:22px; }
.club-network-web > header :is(.cabecera-clubes-campana,.club-network-refresh-toggle):hover {
  background:transparent; box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accion) 55%,transparent);
}
.club-network-web > header :is(.cabecera-clubes-campana,.club-network-refresh-toggle)[data-avisos]::after {
  content:attr(data-avisos); position:absolute; inset:0 0 auto auto; min-width:16px; height:16px; padding:0 3px;
  border-radius:999px; background:var(--accion); color:var(--accion-tinta);
  box-shadow:0 0 0 2px var(--trio-page,var(--bg)); font:700 9px/16px system-ui,sans-serif; text-align:center; pointer-events:none;
}


/* Recargar: aspecto idéntico a la campana (la comparte en hover y foco). */
.club-network-web > header .club-network-refresh-toggle[aria-busy=true] { cursor:progress; }
.club-network-web > header .club-network-refresh-toggle:disabled { opacity:1; }
