/* =====================================================================
   Torneos FC – App web (estilo panel moderno, modo claro / oscuro)
   ===================================================================== */
:root {
	--p: var(--tfc-primary, #7c3aed);
	--p-strong: color-mix(in srgb, var(--p) 82%, #000);
	--p-soft: color-mix(in srgb, var(--p) 11%, transparent);
	--p-soft-2: color-mix(in srgb, var(--p) 20%, transparent);
	--ac: var(--tfc-accent, #f5b301);
	--sec: var(--tfc-secondary, #1e1b2e);
	--fz-bg: var(--tfc-bg, #f5f2fb);
	--fz-surface: #ffffff;
	--fz-surface-2: color-mix(in srgb, var(--p) 3%, #fbfafd);
	--fz-border: #e7e3ee;
	--fz-border-strong: #d6d0e2;
	--fz-text: #1d1b26;
	--fz-muted: #6f6b80;
	--fz-nav-active: #e7e5ec;
	--fz-input: #ffffff;
	--fz-ok: #16a34a; --fz-ok-bg: #dcfce7;
	--fz-bad: #dc2626; --fz-bad-bg: #fee2e2;
	--fz-warn: #b45309; --fz-warn-bg: #fef3c7;
	--fz-radius: 12px;
	--fz-shadow: 0 1px 2px rgba(24, 16, 48, .05);
	--fz-shadow-lg: 0 12px 32px rgba(24, 16, 48, .12);
	--fz-side-w: 268px;
	color-scheme: light;
}
[data-theme=dark] {
	--fz-bg: #0f0d15;
	--fz-surface: #17141f;
	--fz-surface-2: #1c1926;
	--fz-border: #2b2738;
	--fz-border-strong: #3a3548;
	--fz-text: #ece9f5;
	--fz-muted: #9d98b0;
	--fz-nav-active: #262232;
	--fz-input: #120f19;
	--p-soft: color-mix(in srgb, var(--p) 20%, transparent);
	--p-soft-2: color-mix(in srgb, var(--p) 32%, transparent);
	--fz-ok-bg: rgba(22, 163, 74, .18); --fz-ok: #4ade80;
	--fz-bad-bg: rgba(220, 38, 38, .2); --fz-bad: #f87171;
	--fz-warn-bg: rgba(245, 158, 11, .18); --fz-warn: #fbbf24;
	--fz-shadow: 0 1px 2px rgba(0, 0, 0, .4);
	--fz-shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.5; color: var(--fz-text); background: var(--fz-bg); -webkit-font-smoothing: antialiased; }
a { color: var(--p); }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--fz-text); line-height: 1.25; }
code { background: var(--fz-surface-2); border: 1px solid var(--fz-border); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.fz-ico { flex: none; display: inline-block; vertical-align: middle; }
.fz-muted, .description { color: var(--fz-muted); }
.description { font-size: 13px; }
.fz-accent { color: var(--p); }

/* ---------------------------- Layout ---------------------------- */
.fz-shell { display: flex; min-height: 100vh; }
.fz-side { position: fixed; inset: 0 auto 0 0; width: var(--fz-side-w); background: var(--fz-side-bg, var(--fz-surface)); color: var(--fz-side-fg, var(--fz-text)); border-right: 1px solid var(--fz-side-border, var(--fz-border)); display: flex; flex-direction: column; z-index: 40; transition: width .2s ease, transform .25s ease; }
.fz-main { flex: 1; min-width: 0; margin-left: var(--fz-side-w); transition: margin .2s ease; display: flex; flex-direction: column; }
.fz-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 18px; }
.fz-side-head > a { text-decoration: none; min-width: 0; }
.fz-brand { display: inline-flex; align-items: center; gap: 8px; }
.fz-brand img { border-radius: 8px; object-fit: contain; }
.fz-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--p); background: var(--p-soft); }
.fz-brand-name { font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: -.02em; background: linear-gradient(90deg, var(--p), color-mix(in srgb, var(--p) 60%, #ec4899)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--p); cursor: pointer; text-decoration: none; }
.fz-icon-btn:hover { background: var(--p-soft); }
.fz-nav { flex: 1; overflow-y: auto; padding: 6px 8px 12px; scrollbar-width: thin; }
.fz-nav-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fz-side-muted, var(--fz-muted)); padding: 18px 12px 8px; }
.fz-nav-item { display: flex; align-items: center; gap: 16px; padding: 10px 14px; margin: 2px 0; border-radius: 999px; color: var(--fz-side-fg, var(--fz-text)); text-decoration: none; font-weight: 500; font-size: 14.5px; position: relative; }
.fz-nav-item .fz-ico { color: currentColor; opacity: .9; }
.fz-nav-item:hover { background: var(--fz-side-hover, var(--fz-surface-2)); }
.fz-nav-item.is-active { background: var(--fz-side-active, var(--fz-nav-active)); font-weight: 700; }
.fz-nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-lock { margin-left: auto; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .06em; background: linear-gradient(135deg, var(--ac), #f97316); color: #111; padding: 2px 6px; border-radius: 4px; }
.fz-count { margin-left: auto; background: var(--p); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.fz-side-foot { border-top: 1px solid var(--fz-side-border, var(--fz-border)); padding: 10px 12px 12px; }
.fz-theme-row { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--fz-side-muted, var(--fz-muted)); font: inherit; font-weight: 600; padding: 10px; border-radius: 10px; cursor: pointer; }
.fz-theme-row:hover { background: var(--fz-side-hover, var(--fz-surface-2)); }
.fz-theme-ico, .fz-theme-btn, .fz-top-theme { position: relative; }
.ico-sun { display: none; }
[data-theme=dark] .ico-sun { display: inline-block; }
[data-theme=dark] .ico-moon { display: none; }
.fz-user { display: flex; align-items: center; gap: 10px; background: var(--fz-side-hover, var(--fz-surface-2)); border: 1px solid var(--fz-side-border, var(--fz-border)); border-radius: 12px; padding: 10px; margin-top: 8px; }
.fz-user-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fz-user-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-user-txt small { color: var(--fz-side-muted, var(--fz-muted)); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--p); color: #fff; font-weight: 700; font-size: 14px; object-fit: cover; }
.fz-avatar-sm { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
.fz-avatar-xl { width: 110px; height: 110px; font-size: 36px; border-radius: 24px; }

/* Menú contraído */
.side-min .fz-side { width: 76px; }
.side-min .fz-main { margin-left: 76px; }
.side-min .fz-brand-name, .side-min .fz-nav-item span, .side-min .fz-nav-label, .side-min .fz-lock, .side-min .fz-user-txt, .side-min .fz-theme-label, .side-min .fz-user .fz-icon-btn { display: none; }
.side-min .fz-side-head { flex-direction: column; gap: 6px; padding: 14px 8px; }
.side-min .fz-nav-item { justify-content: center; padding: 11px; }
.side-min .fz-nav-label { height: 10px; padding: 0; }
.side-min .fz-count { position: absolute; top: 2px; right: 6px; }
.side-min .fz-user { justify-content: center; padding: 8px; }
.side-min .fz-theme-row { justify-content: center; }

/* Barra superior */
.fz-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 16px 28px; background: color-mix(in srgb, var(--fz-bg) 88%, transparent); backdrop-filter: blur(10px); }
.fz-top-title { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.fz-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fz-tsel { display: inline-flex; align-items: center; gap: 6px; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 999px; padding: 4px 6px 4px 12px; color: var(--p); }
.fz-tsel select { border: 0; background: transparent; color: var(--fz-text); font: inherit; font-weight: 600; max-width: 220px; padding: 4px 6px; cursor: pointer; }
.fz-tsel select:focus { outline: none; }
.fz-plan { font-size: 12px; font-weight: 700; background: var(--ac); color: #111; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.fz-top-theme { display: none; }

/* Contenido */
.fz-content { padding: 4px 28px 40px; max-width: 1480px; width: 100%; }
.fz-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; background: var(--fz-surface-2); border: 1px solid var(--fz-border); border-radius: 16px; padding: 18px 18px 22px; margin-bottom: 18px; }
.fz-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fz-muted); }
.fz-hero h2 { margin: 2px 0 4px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.fz-hero p { margin: 0; color: var(--fz-muted); }
.fz-hero-actions { display: flex; gap: 8px; flex: none; }
.fz-search { position: relative; display: block; width: min(440px, 100%); margin-top: 14px; }
.fz-search input { width: 100%; height: 42px; padding: 0 42px 0 14px; border: 1px solid var(--fz-border-strong); border-radius: 8px; background: var(--fz-input); color: var(--fz-text); font: inherit; font-size: 15px; }
.fz-search .fz-ico { position: absolute; right: 12px; top: 11px; color: var(--fz-muted); pointer-events: none; }
.fz-body { background: var(--fz-surface-2); border: 1px solid var(--fz-border); border-radius: 16px; padding: 14px; min-height: 60vh; }

/* ---------------------------- Botones ---------------------------- */
.fz-btn, .button, .button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--fz-border-strong); background: var(--fz-surface); color: var(--fz-text); font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; line-height: 1; }
.fz-btn:hover, .button:hover { border-color: var(--p); color: var(--p); }
.fz-btn:active, .button:active { transform: translateY(1px); }
.fz-btn-primary, .button-primary, .button.button-primary { background: var(--p); border-color: var(--p); color: #fff !important; }
.fz-btn-primary:hover, .button-primary:hover, .button.button-primary:hover { background: var(--p-strong); border-color: var(--p-strong); color: #fff; }
.fz-btn-outline { border-color: var(--p); color: var(--p); background: transparent; letter-spacing: .03em; }
.fz-btn-outline:hover { background: var(--p-soft); }
.fz-btn-ghost { background: transparent; }
.fz-btn-sm, .button-small, .button.button-small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.button-hero, .button.button-hero { min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.fz-btn-block { width: 100%; min-height: 46px; font-size: 15px; }
.button-link, .fz-link-btn { background: none; border: 0; padding: 4px 6px; color: var(--p); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; letter-spacing: .03em; }
.button-link:hover, .fz-link-btn:hover { text-decoration: underline; }
.fz-link { color: var(--p); font-weight: 600; text-decoration: none; }
.fz-link:hover { text-decoration: underline; }
.tfc-danger, .button-link.tfc-danger, .fz-link-btn.tfc-danger { color: var(--fz-bad) !important; }
.button.tfc-danger { border-color: color-mix(in srgb, var(--fz-bad) 40%, transparent); }
button:disabled, .button:disabled { opacity: .5; cursor: not-allowed; }
.tfc-inline-form, .tfc-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; }
.tfc-actions { white-space: nowrap; }
.tfc-actions > * { vertical-align: middle; }

/* ---------------------------- Formularios ---------------------------- */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=url], input[type=password], input[type=search], select, textarea { background: var(--fz-input); color: var(--fz-text); border: 1px solid var(--fz-border-strong); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; min-height: 38px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--p-soft-2); border-color: var(--p); }
input[type=color] { width: 56px; height: 36px; padding: 2px; border: 1px solid var(--fz-border-strong); border-radius: 8px; background: var(--fz-input); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--p); width: 16px; height: 16px; }
.tfc-form label, .fz-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; margin-bottom: 12px; color: var(--fz-text); }
.tfc-form label small, .fz-form label small { font-weight: 400; color: var(--fz-muted); }
.tfc-form input[type=text], .tfc-form input[type=email], .tfc-form input[type=tel], .tfc-form input[type=number], .tfc-form input[type=date], .tfc-form input[type=time], .tfc-form input[type=datetime-local], .tfc-form input[type=url], .tfc-form select, .tfc-form textarea { width: 100%; }
.tfc-form .tfc-check, .tfc-check, .fz-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.large-text { width: 100%; }
.small-text, input.tiny { width: 70px !important; }
.tfc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tfc-row .w2 { grid-column: span 2; }
.tfc-geo { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tfc-media { margin-bottom: 12px; }
.tfc-media .tfc-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.tfc-media-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tfc-media-prev { width: 84px; height: 84px; border-radius: 14px; border: 1px dashed var(--fz-border-strong); background: var(--fz-surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--fz-muted); }
.tfc-media-prev img { width: 100%; height: 100%; object-fit: contain; }
.tfc-file { position: relative; overflow: hidden; }
.tfc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tfc-file.has-file { border-color: var(--p); color: var(--p); }
.tfc-hint { display: block; color: var(--fz-muted); font-size: 12px; margin-top: 6px; }
.tfc-remove { margin: 0 0 0 8px !important; display: inline-flex !important; }

/* ---------------------------- Tarjetas ---------------------------- */
.tfc-card { background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: var(--fz-radius); padding: 18px; margin: 0 0 14px; box-shadow: var(--fz-shadow); }
.tfc-card h2 { margin: 0 0 12px; font-size: 17px; }
.tfc-card h3 { margin: 0 0 10px; font-size: 15px; }
.tfc-card h4 { margin: 14px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--fz-muted); }
.fz-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.fz-card-head h3 { margin: 0; }
.tfc-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; align-items: start; }
.tfc-grid-2 > .tfc-card, .tfc-grid-2 > form.tfc-card { margin: 0; }
.tfc-grid-2 + .tfc-card, .tfc-grid-2 + form { margin-top: 14px; }
.tfc-flex { display: flex; gap: 12px; align-items: center; }
.tfc-flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tfc-center { text-align: center; }
.tfc-empty { text-align: center; padding: 48px 16px; background: var(--fz-surface); border: 1px dashed var(--fz-border-strong); border-radius: var(--fz-radius); color: var(--fz-muted); }
.tfc-empty .fz-ico { color: var(--p); margin-bottom: 6px; }
.tfc-empty h3 { margin: 6px 0 14px; }
.tfc-upgrade { display: flex; gap: 14px; align-items: flex-start; background: color-mix(in srgb, var(--ac) 12%, var(--fz-surface)); border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); border-radius: var(--fz-radius); padding: 16px; margin-bottom: 14px; }
.tfc-upgrade p { margin: 4px 0 10px; }
.tfc-pro { display: inline-block; background: linear-gradient(135deg, var(--ac), #f97316); color: #111; font-weight: 800; font-size: 10px; padding: 2px 7px; border-radius: 4px; letter-spacing: .05em; }
.tfc-deadline { padding: 8px 12px; border-radius: 8px; background: var(--fz-ok-bg); color: var(--fz-ok); display: inline-block; margin: 0 0 12px; }
.tfc-deadline.bad { background: var(--fz-bad-bg); color: var(--fz-bad); }
.tfc-tag, .fz-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; background: var(--fz-nav-active); color: var(--fz-muted); padding: 2px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.6; }
.tfc-tag.ok, .fz-chip-ok { background: var(--fz-ok-bg); color: var(--fz-ok); }
.tfc-tag.bad, .fz-chip-bad { background: var(--fz-bad-bg); color: var(--fz-bad); }
.tfc-tag.warn, .fz-chip-warn { background: var(--fz-warn-bg); color: var(--fz-warn); }
.fz-chip-primary { background: var(--p-soft); color: var(--p); }
.fz-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* Avisos */
.notice { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; border: 1px solid var(--fz-border); background: var(--fz-surface); box-shadow: var(--fz-shadow); }
.notice p { margin: 0; flex: 1; }
.notice-success { border-color: color-mix(in srgb, var(--fz-ok) 40%, transparent); background: var(--fz-ok-bg); color: var(--fz-ok); }
.notice-error { border-color: color-mix(in srgb, var(--fz-bad) 40%, transparent); background: var(--fz-bad-bg); color: var(--fz-bad); }
.notice-warning { border-color: color-mix(in srgb, var(--fz-warn) 40%, transparent); background: var(--fz-warn-bg); color: var(--fz-warn); }
.notice p, .notice strong { color: inherit; }
.fz-toast-x { border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; line-height: 1; }

/* Pestañas */
.nav-tab-wrapper, .tfc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; border: 0; padding: 0; }
.nav-tab { text-decoration: none; background: var(--fz-surface); border: 1px solid var(--fz-border); color: var(--fz-text); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }
.nav-tab:hover { border-color: var(--p); color: var(--p); }
.nav-tab-active, .nav-tab-active:hover { background: var(--p); border-color: var(--p); color: #fff; }
.nav-tab small { opacity: .8; font-weight: 500; }
.subsubsub { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 12px; font-size: 0; }
.subsubsub li { font-size: 13px; }
.subsubsub a { display: inline-block; text-decoration: none; padding: 5px 12px; border-radius: 999px; color: var(--fz-muted); background: var(--fz-surface); border: 1px solid var(--fz-border); }
.subsubsub a.current { background: var(--p-soft); color: var(--p); border-color: transparent; font-weight: 700; }
.clear { clear: both; }

/* Tablas */
.widefat, .fz-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 10px; overflow: hidden; font-size: 13.5px; }
.widefat th, .fz-table th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--fz-muted); background: var(--fz-surface-2); padding: 10px 12px; border-bottom: 1px solid var(--fz-border); font-weight: 600; }
.widefat td, .fz-table td { padding: 10px 12px; border-bottom: 1px solid var(--fz-border); vertical-align: middle; }
.widefat tr:last-child td, .fz-table tr:last-child td { border-bottom: 0; }
.widefat.striped tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--fz-surface-2) 60%, transparent); }
.widefat tbody tr:hover td { background: var(--p-soft); }
.fz-table th, .fz-table td { text-align: center; }
.fz-table .tl { text-align: left; }
.tfc-table tr.st-sancionado td, tr.st-sancionado td { background: var(--fz-bad-bg) !important; }
tr.st-inactivo td { opacity: .55; }
.tfc-card > .widefat, .tfc-card .widefat { box-shadow: none; }
.tfc-card > table, .fz-body > table, .tfc-card .tfc-table { overflow-x: auto; }
.ta-r { text-align: right; }
.tfc-score, .fz-score { text-align: center; font-weight: 800; font-size: 15px; white-space: nowrap; }
.tfc-matches .w-date { width: 110px; }
.tfc-status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--p-soft); color: var(--p); white-space: nowrap; }
.tfc-status.s-finalizado { background: var(--fz-ok-bg); color: var(--fz-ok); }
.tfc-status.s-jugado { background: var(--fz-warn-bg); color: var(--fz-warn); }
.tfc-status.s-aplazado, .tfc-status.s-cancelado { background: var(--fz-bad-bg); color: var(--fz-bad); }
.tfc-round { margin: 18px 0 8px; font-size: 14px; border-left: 4px solid var(--p); padding-left: 8px; }
.tfc-round small { font-weight: 400; color: var(--fz-muted); }
.tfc-team { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tfc-team img, .tfc-logo { border-radius: 6px; object-fit: contain; }
.tfc-avatar { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; display: inline-block; background: var(--fz-nav-active); }

/* ---------------------------- Listas (filas) ---------------------------- */
.fz-list { display: flex; flex-direction: column; gap: 10px; }
.fz-row { display: flex; align-items: center; gap: 14px; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 12px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.fz-row:hover { border-color: var(--fz-border-strong); box-shadow: var(--fz-shadow); }
.fz-row.status-pendiente { border-left: 4px solid var(--ac); }
.fz-row.st-sancionado { border-left: 4px solid var(--fz-bad); }
.fz-row-logo { flex: none; width: 48px; display: flex; justify-content: center; }
.fz-row-logo img, .fz-row-logo svg { width: 46px; height: 46px; object-fit: contain; }
.fz-row-logo .fz-avatar { width: 44px; height: 44px; }
.fz-row-main { flex: 1; min-width: 0; }
.fz-row-title { font-weight: 700; font-size: 15px; color: var(--fz-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
a.fz-row-title:hover { color: var(--p); }
.fz-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; color: var(--fz-muted); font-size: 12.5px; }
.fz-meta-ico { display: inline-flex; align-items: center; gap: 4px; }
.fz-stats { display: flex; gap: 22px; margin-right: 10px; }
.fz-stats div { display: flex; flex-direction: column; align-items: center; min-width: 30px; }
.fz-stats small { font-size: 10.5px; font-weight: 600; color: var(--fz-muted); letter-spacing: .04em; }
.fz-stats b { font-size: 16px; }
.fz-mini-stats { display: flex; gap: 14px; color: var(--fz-text); font-weight: 600; margin-right: 12px; }
.fz-mini-stats span { display: inline-flex; align-items: center; gap: 4px; }
.fz-row-actions { display: flex; align-items: center; gap: 10px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.fz-noresults { text-align: center; color: var(--fz-muted); padding: 24px; }
.fz-listbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.fz-filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 12px; }
.fz-field { position: relative; display: flex; flex-direction: column; }
.fz-field span { position: absolute; top: -8px; left: 10px; font-size: 11.5px; color: var(--fz-muted); background: var(--fz-surface-2); padding: 0 4px; }
.fz-field select { min-width: 210px; height: 42px; font-size: 15px; }
.fz-filters-count { margin-left: auto; }

/* Chips de posición */
.fz-pos-portero { background: #fff1e6; color: #c2410c; border: 1px solid #fdba74; }
.fz-pos-defensa, .fz-pos-defensa-central { background: #e0ecff; color: #1d4ed8; border: 1px solid #93c5fd; }
.fz-pos-mediocampista { background: #e7f8ee; color: #15803d; border: 1px solid #86efac; }
.fz-pos-delantero { background: #fde8ef; color: #be123c; border: 1px solid #fda4af; }
[data-theme=dark] .fz-pos-portero { background: rgba(234,88,12,.15); color: #fdba74; border-color: rgba(234,88,12,.4); }
[data-theme=dark] .fz-pos-defensa, [data-theme=dark] .fz-pos-defensa-central { background: rgba(37,99,235,.15); color: #93c5fd; border-color: rgba(37,99,235,.4); }
[data-theme=dark] .fz-pos-mediocampista { background: rgba(22,163,74,.15); color: #86efac; border-color: rgba(22,163,74,.4); }
[data-theme=dark] .fz-pos-delantero { background: rgba(225,29,72,.15); color: #fda4af; border-color: rgba(225,29,72,.4); }

/* Desplegable */
.fz-dd { position: relative; }
.fz-dd summary { list-style: none; }
.fz-dd summary::-webkit-details-marker { display: none; }
.fz-dd-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 12px; box-shadow: var(--fz-shadow-lg); padding: 6px; z-index: 30; }
.fz-dd-menu a, .fz-dd-menu .fz-dd-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--fz-text); text-decoration: none; background: none; border: 0; font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.fz-dd-menu a:hover, .fz-dd-menu .fz-dd-btn:hover { background: var(--p-soft); color: var(--p); }
.fz-dd-menu form { display: block; width: 100%; }

/* ---------------------------- Dashboard ---------------------------- */
.fz-kpis, .tfc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fz-kpi { display: flex; align-items: center; gap: 12px; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--fz-text); transition: transform .12s, box-shadow .12s; }
.fz-kpi:hover { transform: translateY(-2px); box-shadow: var(--fz-shadow-lg); }
.fz-kpi-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--p-soft); color: var(--p); display: flex; align-items: center; justify-content: center; flex: none; }
.fz-kpi-txt { display: flex; flex-direction: column; min-width: 0; }
.fz-kpi-txt small { color: var(--fz-muted); font-size: 12.5px; }
.fz-kpi-txt strong { font-size: 22px; font-weight: 800; }
.tfc-kpi { background: var(--fz-surface); border: 1px solid var(--fz-border); border-left: 4px solid var(--p); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.tfc-kpi span { font-size: 12px; color: var(--fz-muted); }
.tfc-kpi strong { font-size: 24px; }
.fz-dash { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.fz-dash-col { min-width: 0; }
.fz-progress { height: 10px; background: var(--fz-nav-active); border-radius: 99px; overflow: hidden; }
.fz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--p), color-mix(in srgb, var(--p) 55%, var(--ac))); border-radius: 99px; }
.fz-mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.fz-mini-kpis div { background: var(--fz-surface-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; }
.fz-mini-kpis small { color: var(--fz-muted); font-size: 12px; }
.fz-mini-kpis b { font-size: 18px; }
.fz-sub { margin: 10px 0 6px !important; }
.fz-match { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--fz-text); border: 1px solid var(--fz-border); margin-bottom: 8px; }
.fz-match:hover { border-color: var(--p); }
.fz-match-date { font-size: 12px; color: var(--fz-muted); text-align: center; min-width: 66px; }
.fz-match-date b { color: var(--fz-text); font-size: 14px; }
.fz-match-teams { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.fz-match-teams em { color: var(--fz-muted); font-style: normal; font-size: 12px; }
.fz-rank { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--fz-border); }
.fz-rank:last-child { border-bottom: 0; }
.fz-rank-n { width: 20px; text-align: center; font-weight: 700; color: var(--fz-muted); }
.fz-rank-name { flex: 1; display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.fz-rank-name small { color: var(--fz-muted); font-weight: 400; }
.fz-rank b { font-size: 18px; color: var(--p); }
.fz-checklist { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.fz-checklist li { counter-increment: s; display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.fz-checklist li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--fz-border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--fz-muted); flex: none; }
.fz-checklist li.done::before { content: '✓'; background: var(--fz-ok); border-color: var(--fz-ok); color: #fff; }
.fz-checklist a { color: var(--fz-text); text-decoration: none; font-weight: 500; }
.fz-checklist li.done a { color: var(--fz-muted); text-decoration: line-through; }
.tfc-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.tfc-limits li { background: var(--fz-surface-2); border-radius: 8px; padding: 8px 12px; display: flex; justify-content: space-between; }
.tfc-features { display: flex; flex-wrap: wrap; gap: 6px; }
.tfc-feature { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--fz-ok-bg); color: var(--fz-ok); }
.tfc-feature.off { background: var(--fz-nav-active); color: var(--fz-muted); }
.fz-welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--sec), var(--p)); color: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; }
.fz-welcome h3 { color: #fff; margin: 2px 0 6px; font-size: 20px; }
.fz-welcome p { margin: 0; opacity: .9; max-width: 640px; }
.fz-welcome .fz-eyebrow { color: rgba(255,255,255,.8); }
.fz-steps-inline { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: w; }
.fz-steps-inline li { counter-increment: w; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.fz-steps-inline li::before { content: counter(w) '. '; }
.fz-steps-inline li.on { background: #fff; color: var(--p); }

/* Perfil de jugador */
.fz-profile { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.fz-profile-card { background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 16px; padding: 22px; text-align: center; position: sticky; top: 80px; }
.fz-profile-card h2 { margin: 12px 0 4px; }
.fz-profile-photo { width: 130px; height: 150px; object-fit: cover; border-radius: 18px; border: 3px solid var(--p-soft-2); }
.fz-profile-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.fz-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; margin: 0; }
.fz-dl dt { font-size: 12px; color: var(--fz-muted); }
.fz-dl dd { margin: 2px 0 0; font-weight: 600; }
.fz-timeline { margin: 0; padding-left: 18px; }
.fz-timeline li { padding: 4px 0; }

/* Equipos / uniformes */
.tfc-uniform-editor h4 { margin: 0 0 8px; text-transform: none; letter-spacing: 0; color: var(--fz-text); font-size: 14px; }
.tfc-uniform-flex { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tfc-uniform-preview { background: repeating-conic-gradient(var(--fz-surface-2) 0% 25%, var(--fz-surface) 0% 50%) 50% / 16px 16px; border-radius: 14px; padding: 8px; border: 1px solid var(--fz-border); }
.tfc-uniform-controls label { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; min-width: 220px; margin-bottom: 8px; }
.tfc-player-form { display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.tfc-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tfc-chip { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 500 !important; background: var(--fz-surface-2); border: 1px solid var(--fz-border); padding: 6px 12px; border-radius: 999px; margin: 0 6px 6px 0 !important; cursor: pointer; }
.tfc-chip:has(input:checked) { background: var(--p-soft); border-color: var(--p); color: var(--p); }
.tfc-teams-pick { border: 1px solid var(--fz-border); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.tfc-teams-pick legend, fieldset legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
fieldset { border: 1px solid var(--fz-border); border-radius: 10px; margin: 0 0 12px; }
.tfc-manual select { min-width: 130px; max-width: 200px; }
.tfc-manual td { padding: 8px 6px; }

/* Planilla */
.tfc-match-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.tfc-match-head > div:first-child { text-align: right; }
.tfc-match-head .tfc-team { font-size: 18px; }
.tfc-bigscore { font-size: 36px; font-weight: 900; background: var(--sec); color: #fff; padding: 6px 20px; border-radius: 12px; }
[data-theme=dark] .tfc-bigscore { background: var(--p); }
.tfc-events tr[data-type=amarilla] td:first-child { border-left: 5px solid #facc15; }
.tfc-events tr[data-type=roja] td:first-child, .tfc-events tr[data-type=doble_amarilla] td:first-child { border-left: 5px solid #dc2626; }
.tfc-events tr[data-type=gol] td:first-child, .tfc-events tr[data-type=penal] td:first-child { border-left: 5px solid #16a34a; }
.tfc-events tr[data-type=autogol] td:first-child { border-left: 5px solid #7c3aed; }
.tfc-sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--fz-bg) 92%, transparent); backdrop-filter: blur(6px); padding: 10px 0; z-index: 5; display: flex; gap: 8px; margin: 0; }
.tfc-sheet-preview { background: #fff; color: #111; border: 1px solid var(--fz-border); border-radius: var(--fz-radius); padding: 12px; overflow-x: auto; margin-bottom: 14px; }
.tfc-review { border-color: var(--ac); }
.tfc-progress { height: 6px; background: var(--fz-nav-active); border-radius: 99px; overflow: hidden; width: 90px; margin-bottom: 3px; }
.tfc-progress span { display: block; height: 100%; background: var(--p); }

/* Planes, carnets, veredas */
.tfc-plans-matrix { overflow-x: auto; }
.tfc-plans-matrix .tfc-group-row th { background: var(--p-soft); color: var(--p); }
.tfc-plan-name { font-weight: 700; }
.tfc-cols { columns: 3 220px; }
.tfc-fields-pick td { padding: 4px 8px; }
.tfc-carnet-preview { display: flex; justify-content: center; padding: 20px; background: var(--fz-surface-2); border-radius: 12px; }

/* Colores por torneo */
.fz-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.fz-theme-card.is-focus { outline: 3px solid var(--p-soft-2); }
.fz-theme-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--fz-border); margin-bottom: 12px; background: var(--pv-b); }
.fz-theme-preview .pv-hero { background: linear-gradient(135deg, var(--pv-s), var(--pv-p)); color: #fff; padding: 14px; display: flex; justify-content: space-between; align-items: center; }
.fz-theme-preview .pv-chip { background: var(--pv-a); color: #111; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.fz-theme-preview .pv-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.fz-theme-preview .pv-btn { align-self: flex-start; background: var(--pv-p); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 7px; }
.fz-theme-preview .pv-line { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--pv-s) 14%, transparent); }
.fz-theme-preview .pv-line.short { width: 60%; }
.fz-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.fz-preset { display: inline-flex; border: 1px solid var(--fz-border); border-radius: 8px; padding: 4px; background: var(--fz-surface); cursor: pointer; gap: 2px; }
.fz-preset i { width: 14px; height: 18px; border-radius: 3px; display: block; }
.fz-preset:hover { border-color: var(--p); }

/* Estadísticas embebidas (página pública) */
.fz-body .tfc-pub { margin: 0; background: transparent; padding: 0; }

/* ---------------------------- Acceso ---------------------------- */
.fz-auth-body { background: var(--fz-bg); }
.fz-auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.fz-auth-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 0% 0%, color-mix(in srgb, var(--p) 55%, transparent), transparent), linear-gradient(150deg, var(--sec), color-mix(in srgb, var(--p) 70%, var(--sec))); color: #fff; display: flex; align-items: center; padding: 48px; }
.fz-auth-hero::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.fz-auth-hero-in { position: relative; z-index: 1; max-width: 520px; }
.fz-auth-hero .fz-brand-name { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: 28px; }
.fz-auth-hero .fz-mark { background: rgba(255,255,255,.15); color: #fff; width: 44px; height: 44px; }
.fz-auth-hero h1 { color: #fff; font-size: 40px; letter-spacing: -.03em; margin: 34px 0 12px; }
.fz-auth-hero p { font-size: 16px; opacity: .88; margin: 0 0 22px; }
.fz-auth-feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.fz-auth-feats li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.fz-auth-feats .fz-ico { background: rgba(255,255,255,.15); padding: 6px; border-radius: 8px; width: 30px; height: 30px; }
.fz-auth-plan { display: inline-flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 16px; }
.fz-auth-plan strong { color: var(--ac); }
.fz-auth-plan span { opacity: .9; font-size: 13px; }
.fz-auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.fz-auth-theme { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fz-border); background: var(--fz-surface); color: var(--fz-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fz-auth-card { width: min(440px, 100%); background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 18px; padding: 28px; box-shadow: var(--fz-shadow-lg); }
.fz-auth-card h2 { margin: 18px 0 4px; font-size: 24px; letter-spacing: -.02em; }
.fz-auth-card .fz-muted { margin: 0 0 18px; }
.fz-auth-mobile-brand { display: none; margin-bottom: 12px; }
.fz-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--fz-surface-2); border: 1px solid var(--fz-border); border-radius: 12px; padding: 4px; }
.fz-seg a { text-align: center; padding: 9px; border-radius: 9px; text-decoration: none; color: var(--fz-muted); font-weight: 600; font-size: 13.5px; }
.fz-seg a.on { background: var(--fz-surface); color: var(--p); box-shadow: var(--fz-shadow); }
.fz-form input[type=text], .fz-form input[type=email], .fz-form input[type=tel], .fz-form input[type=password] { width: 100%; min-height: 44px; font-size: 15px; }
.fz-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fz-pass { position: relative; display: block; }
.fz-pass button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--fz-muted); cursor: pointer; padding: 6px; }
.fz-row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 14px; flex-wrap: wrap; }
.fz-row-between .fz-check { margin: 0; }
.fz-auth-alt { text-align: center; margin: 18px 0 0; color: var(--fz-muted); }
.fz-auth-alt a { color: var(--p); font-weight: 700; text-decoration: none; }
.fz-hp { position: absolute; left: -9999px; }
.fz-auth-card .notice { margin-top: 14px; }
.fz-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }

/* ---------------------------- v1.2 ---------------------------- */
.fz-side .fz-icon-btn { color: var(--fz-side-fg, var(--p)); }
.fz-brand.has-logo img { display: block; width: auto; max-width: 200px; object-fit: contain; border-radius: 6px; }
.side-min .fz-brand.has-logo img { max-width: 48px; }
.fz-auth-hero .fz-brand.has-logo img { max-width: 260px; background: rgba(255,255,255,.92); padding: 6px 10px; border-radius: 12px; }
.fz-btn-accent { background: var(--ac); border-color: var(--ac); color: #111 !important; }
.fz-btn-accent:hover { filter: brightness(.95); color: #111; border-color: var(--ac); }
.fz-pub-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--fz-nav-active); color: var(--fz-muted); white-space: nowrap; }
.fz-pub-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fz-pub-state.on { background: var(--fz-ok-bg); color: var(--fz-ok); }
.fz-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 14px; padding: 12px 14px; margin: -6px 0 16px; box-shadow: var(--fz-shadow); position: sticky; top: 70px; z-index: 15; }
.fz-actionbar-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fz-actionbar-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fz-actionbar-btns form { margin: 0; }
.fz-plan-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; align-self: end; }
.fz-restore { margin: 0 0 0 auto; }
.fz-tpick { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 12px; }
.fz-tpick .tfc-chip small { font-size: 11px; }
.fz-dd-wide .fz-dd-menu { min-width: 340px; max-width: 90vw; padding: 14px; }
.fz-dd-form label { margin-bottom: 10px; }
.fz-user-row .fz-row-meta .fz-chip { font-size: 11px; }
.fz-backup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.fz-backup { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--fz-border); border-radius: 12px; padding: 14px; background: var(--fz-surface-2); }
.fz-backup p { margin: 4px 0 10px; font-size: 13px; }
.fz-carnet-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.fz-carnet-sticky { position: sticky; top: 80px; }
.tfc-carnet-preview { overflow-x: auto; }
.tfc-carnet-preview .cn-pair { flex-wrap: wrap; justify-content: center; }
.fz-side-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.fz-side-pick label { margin: 0 !important; }
.fz-theme-preview { display: flex; }
.fz-theme-preview .pv-side { width: 46px; flex: none; background: var(--pv-side, #fff); border-right: 1px solid var(--fz-border); display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; }
.fz-theme-preview .pv-side i { display: block; height: 8px; border-radius: 4px; background: var(--pv-side-fg, #1d1b26); opacity: .25; }
.fz-theme-preview .pv-side i.on { opacity: .7; }
.fz-theme-preview .pv-main { flex: 1; min-width: 0; }

/* Copias de seguridad */
.fz-backup-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fz-backup-step { display: flex; gap: 12px; align-items: flex-start; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 12px; padding: 12px 14px; }
.fz-backup-step div { display: flex; flex-direction: column; }
.fz-backup-step small { color: var(--fz-muted); }
.fz-backup-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0 16px; }
.fz-inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.fz-inline-form input[type=text] { min-width: 280px; }
.fz-drop { position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 12px !important; border: 2px dashed var(--fz-border-strong); border-radius: 12px; padding: 16px; background: var(--fz-surface-2); color: var(--fz-muted); cursor: pointer; font-weight: 500 !important; }
.fz-drop:hover, .fz-drop.has-file { border-color: var(--p); color: var(--p); }
.fz-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fz-radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.fz-radio-cards label { display: flex !important; flex-direction: row !important; gap: 10px !important; align-items: flex-start; border: 1px solid var(--fz-border); border-radius: 12px; padding: 12px; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.fz-radio-cards label:has(input:checked) { border-color: var(--p); background: var(--p-soft); }
.fz-radio-cards span { display: flex; flex-direction: column; gap: 2px; }
.fz-radio-cards small { color: var(--fz-muted); }
.fz-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 8px; }
.fz-total { border-top: 4px solid var(--p); }
.fz-confirm input { border-color: var(--fz-bad) !important; }

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 1100px) {
	.fz-dash, .fz-carnet-layout { grid-template-columns: 1fr; }
	.fz-carnet-sticky { position: static; order: -1; }
	.fz-stats { gap: 14px; }
}
@media (max-width: 960px) {
	.fz-side { transform: translateX(-100%); width: 280px !important; box-shadow: var(--fz-shadow-lg); }
	.side-open .fz-side { transform: none; }
	.fz-main, .side-min .fz-main { margin-left: 0; }
	.side-min .fz-brand-name, .side-min .fz-nav-item span, .side-min .fz-nav-label, .side-min .fz-user-txt, .side-min .fz-theme-label { display: initial; }
	.fz-scrim { position: fixed; inset: 0; background: rgba(10, 8, 20, .45); z-index: 35; display: none; }
	.side-open .fz-scrim { display: block; }
	.fz-collapse { display: none; }
	.fz-top { padding: 12px 16px; }
	.fz-top-title { font-size: 20px; }
	.fz-top-theme { display: inline-flex; }
	.fz-pub-state { display: none; }
	.fz-actionbar { position: static; }
	.fz-actionbar .fz-pub-state { display: inline-flex; }
	.fz-plan { display: none; }
	.fz-content { padding: 4px 12px 30px; }
	.fz-hero { flex-direction: column; }
	.fz-hero h2 { font-size: 22px; }
	.fz-hero-actions { width: 100%; }
	.fz-hero-actions .fz-btn { flex: 1; }
	.fz-body { padding: 8px; }
	.tfc-grid-2 { grid-template-columns: 1fr; }
	.tfc-player-form, .fz-profile { grid-template-columns: 1fr; }
	.fz-profile-card { position: static; }
	.tfc-row .w2 { grid-column: auto; }
	.fz-auth { grid-template-columns: 1fr; }
	.fz-auth-hero { display: none; }
	.fz-auth-mobile-brand { display: block; }
}
@media (max-width: 640px) {
	.fz-tsel select { max-width: 130px; }
	.fz-row { flex-wrap: wrap; padding: 12px; }
	.fz-row-main { flex-basis: calc(100% - 64px); }
	.fz-stats { margin: 0; }
	.fz-row-actions { width: 100%; justify-content: flex-start; }
	.fz-field select { min-width: 0; width: 100%; }
	.fz-filters .fz-field { flex: 1 1 140px; }
	.fz-2 { grid-template-columns: 1fr; }
	.widefat { display: block; overflow-x: auto; white-space: nowrap; }
	.fz-auth-card { padding: 20px; }
}
