/* Panel CatMedia · estilos
   Paleta de marca: índigo 2758 CP (#27245C, #12123F, #412B79, #8F8FD8) y amarillo 604 CP (#EEE242, #BCA502, #EDCC43, #FDF798).
   Modo oscuro por defecto; modo claro con html[data-theme="light"]. */

:root {
	--bg: #0b0a22;
	--aurora: radial-gradient(55% 45% at 88% -5%, rgba(65, 43, 121, .75), transparent 70%), radial-gradient(40% 40% at 30% 110%, rgba(39, 36, 92, .9), transparent 70%), radial-gradient(25% 25% at 70% 45%, rgba(143, 143, 216, .10), transparent 70%);
	--fg: #f4f4fb;
	--muted: #c9c9ec;
	--muted2: #a6a6c8;
	--faint: #8c8cb4;
	--glass: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
	--glass-2: rgba(255, 255, 255, .05);
	--glass-3: rgba(255, 255, 255, .08);
	--border: rgba(255, 255, 255, .12);
	--border-2: rgba(255, 255, 255, .08);
	--input: rgba(11, 10, 34, .55);
	--input-solid: #17163f;
	--side: linear-gradient(180deg, rgba(39, 36, 92, .72), rgba(18, 18, 63, .86));
	--shadow: 0 20px 40px rgba(0, 0, 0, .28);
	--inset: inset 0 1px 0 rgba(255, 255, 255, .08);
	--modal: linear-gradient(160deg, #23215a, #15144a);
	--overlay: rgba(6, 5, 20, .7);
	--yel: #EEE242;
	--yel-t: #FDF798;
	--yel-bg: rgba(238, 226, 66, .14);
	--yel-grad: radial-gradient(120% 160% at 50% 130%, #fffbd8 0%, #EEE242 38%, #EDCC43 72%, #BCA502 100%);
	--lav: #8F8FD8;
	--lav-t: #c9c9ff;
	--bad: #ff5c74;
	--bad-t: #ff8496;
	--bad-bg: rgba(255, 92, 116, .14);
	--ok: #34d399;
	--ok-t: #6ee7b7;
	--ok-bg: rgba(52, 211, 153, .14);
	--c-mkt: #ff8a4c; --t-mkt: #ff8a4c;
	--c-dis: #5b8cff; --t-dis: #8fb0ff;
	--c-ani: #c77dff; --t-ani: #d9a8ff;
	--c-web: #34d399; --t-web: #6ee7b7;
	--c-adm: #EEE242; --t-adm: #FDF798;
	--f-display: "Outfit", "Segoe UI", system-ui, sans-serif;
	--f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
	color-scheme: dark;
}

html[data-theme="light"] {
	--bg: #EDEDED;
	--aurora: radial-gradient(45% 45% at 90% -5%, rgba(143, 143, 216, .55), transparent 70%), radial-gradient(35% 35% at 55% 105%, rgba(253, 247, 152, .65), transparent 70%), radial-gradient(30% 30% at 15% 10%, rgba(255, 255, 255, .9), transparent 70%);
	--fg: #12123F;
	--muted: #3c3b66;
	--muted2: #55537e;
	--faint: #6a688f;
	--glass: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .75));
	--glass-2: rgba(255, 255, 255, .7);
	--glass-3: rgba(18, 18, 63, .05);
	--border: rgba(255, 255, 255, .95);
	--border-2: #e4e4f0;
	--input: #ffffff;
	--input-solid: #ffffff;
	--side: rgba(255, 255, 255, .7);
	--shadow: 0 10px 28px rgba(18, 18, 63, .08);
	--inset: none;
	--modal: #ffffff;
	--overlay: rgba(18, 18, 63, .35);
	--yel-t: #6b5d00;
	--yel-bg: #FDF798;
	--lav-t: #412B79;
	--bad-t: #c41f3a;
	--bad-bg: #ffe1e6;
	--ok-t: #0b7a54;
	--ok-bg: #d9f6e9;
	--t-mkt: #c4521a;
	--t-dis: #2c4fc7;
	--t-ani: #7b35c2;
	--t-web: #0b7a54;
	--t-adm: #6b5d00;
	color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
	background-color: var(--bg);
	background-image: var(--aurora);
	background-attachment: fixed;
	color: var(--fg);
	font-family: var(--f-body);
	font-size: 14px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--yel-t); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--yel); outline-offset: 2px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.cm-muted { color: var(--muted2); }
.cm-center { text-align: center; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted2); font-weight: 700; }
.label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); font-weight: 800; }
.cm-grad-text { background: linear-gradient(90deg, #FDF798, #EEE242 40%, #8F8FD8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Arranque e inicio de sesión ---------- */
.cm-boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; color: var(--muted); }
.cm-logo { width: 42px; height: 42px; border-radius: 14px; background: radial-gradient(circle at 30% 20%, #8F8FD8, #412B79 55%, #12123F); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px rgba(65,43,121,.5); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cm-brand { display: flex; align-items: center; gap: 12px; }
.cm-wordmark { font-family: var(--f-display); font-weight: 800; letter-spacing: .14em; font-size: 17px; }
.cm-brand-lg .cm-wordmark { font-size: 22px; }
.cm-login { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 48px clamp(16px, 5vw, 64px); }
.cm-login-hero { flex: 1 1 420px; display: flex; flex-direction: column; gap: 26px; }
.cm-login-hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1; letter-spacing: -.03em; max-width: 560px; }
.cm-login-hero p { font-size: 17px; color: var(--muted); max-width: 470px; line-height: 1.6; }
.cm-login-side { flex: 1 1 360px; display: flex; justify-content: center; }
.cm-login-card { width: 100%; max-width: 420px; border-radius: 30px; padding: 32px; background: var(--glass); border: 1px solid var(--border); box-shadow: var(--inset), 0 30px 70px rgba(0,0,0,.35); backdrop-filter: blur(24px); display: flex; flex-direction: column; gap: 16px; }
.cm-empty-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cm-alert-bad { background: var(--bad-bg); color: var(--bad-t); border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.cm-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-check { display: inline-flex; align-items: center; gap: 8px; }
.cm-check input { width: 18px; height: 18px; accent-color: var(--yel); }

/* ---------- Estructura ---------- */
.app { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: 248px; flex: none; overflow-y: auto; background: var(--side); border-right: 1px solid var(--border-2); backdrop-filter: blur(20px); padding: 22px 14px; display: flex; flex-direction: column; gap: 20px; z-index: 30; }
.side .cm-brand { padding: 0 8px; }
.side .sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); }
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 0 12px 6px; display: flex; align-items: center; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 6px 10px; min-height: 44px; border-radius: 14px; text-decoration: none; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.nav-item:hover { color: var(--fg); background: var(--glass-2); }
.nav-item .ico { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--glass-3); box-shadow: inset 0 0 0 1px var(--border-2); color: var(--muted); }
.nav-item.on { background: linear-gradient(90deg, rgba(238,226,66,.20), rgba(238,226,66,.04)); color: var(--yel-t); border-color: rgba(238,226,66,.28); }
html[data-theme="light"] .nav-item.on { background: #27245C; color: #fff; border-color: #27245C; box-shadow: 0 10px 24px rgba(39,36,92,.3); }
.nav-item.on .ico { background: var(--yel-grad); color: #12123F; box-shadow: 0 0 16px rgba(238,226,66,.45); }
.nav-item .badge { margin-left: auto; }
.badge { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; background: var(--yel); color: #12123F; }
.badge.bad { background: var(--bad); color: #fff; box-shadow: 0 0 12px rgba(255,92,116,.5); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); text-decoration: none; }
.me-card .who { display: flex; flex-direction: column; min-width: 0; }
.me-card .who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { flex: 1; min-width: 0; padding: 26px clamp(16px, 3vw, 32px) 60px; display: flex; flex-direction: column; gap: 20px; }
.topbar-mobile { display: none; }
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head .titles { display: flex; flex-direction: column; gap: 4px; margin-right: auto; min-width: 0; }

@media (max-width: 960px) {
	.side { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.4); }
	.app.menu-open .side { transform: none; }
	.topbar-mobile { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: var(--side); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-2); }
	.app { flex-direction: column; }
	.main { padding-top: 18px; }
	h1 { font-size: 26px; }
}
.scrim { display: none; }
@media (max-width: 960px) { .app.menu-open .scrim { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 25; } }

/* ---------- Componentes ---------- */
.card { border-radius: 26px; padding: 20px 22px; background: var(--glass); border: 1px solid var(--border); box-shadow: var(--inset); }
html[data-theme="light"] .card { box-shadow: var(--shadow); }
.card-tight { padding: 14px 16px; border-radius: 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-top { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.btn { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass-2); color: var(--fg); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
html[data-theme="light"] .btn { border-color: #e2e2ee; background: #fff; }
.btn:hover { border-color: var(--muted2); color: var(--fg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary, html[data-theme="light"] .btn-primary { border: 0; background: var(--yel-grad); color: #12123F; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 26px rgba(238,226,66,.3); }
.btn-primary:hover { color: #12123F; filter: brightness(1.04); }
.btn-dark, html[data-theme="light"] .btn-dark { background: #27245C; color: #fff; border-color: #27245C; }
.btn-danger { color: var(--bad-t); }
.btn-danger.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; font-size: 16px; }
.btn-dashed { border-style: dashed; background: transparent; }
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; position: relative; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; }

.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass-2); color: var(--muted); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
html[data-theme="light"] .chip { background: #fff; border-color: #e2e2ee; }
.chip.on { border-color: rgba(253,247,152,.5); background: linear-gradient(180deg, rgba(238,226,66,.22), rgba(238,226,66,.06)); color: var(--yel-t); font-weight: 700; }
html[data-theme="light"] .chip.on { background: #27245C; color: #fff; border-color: #27245C; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.glow { box-shadow: 0 0 10px currentColor; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--border); }
html[data-theme="light"] .seg { background: rgba(18,18,63,.06); border-color: transparent; }
.seg button { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; white-space: nowrap; }
.seg button.on { background: var(--yel-grad); color: #12123F; font-weight: 800; }
.seg.soft button.on { background: rgba(255,255,255,.16); color: var(--fg); }
html[data-theme="light"] .seg.soft button.on { background: #fff; box-shadow: 0 4px 12px rgba(18,18,63,.12); }

.pill { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.p-urgente { background: linear-gradient(180deg, #ff6b81, #e8344f); color: #fff; box-shadow: 0 0 14px rgba(255,92,116,.45); }
.p-alta { background: var(--yel-bg); color: var(--yel-t); box-shadow: inset 0 0 0 1px rgba(238,226,66,.35); }
.p-normal { background: var(--glass-3); color: var(--muted); }
.p-baja { background: var(--glass-2); color: var(--muted2); }
.st-ok { background: var(--ok-bg); color: var(--ok-t); }
.st-warn { background: var(--yel-bg); color: var(--yel-t); }
.st-bad { background: var(--bad-bg); color: var(--bad-t); }
.st-lav { background: rgba(143,143,216,.18); color: var(--lav-t); }
.st-plain { background: var(--glass-3); color: var(--muted); }
.due { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted2); white-space: nowrap; }
.due.over { color: var(--bad-t); font-weight: 700; }
.due.soon { color: var(--yel-t); font-weight: 700; }
.due.done { color: var(--ok-t); font-weight: 700; }
.running { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11.5px; color: var(--ok-t); background: var(--ok-bg); border-radius: 999px; padding: 4px 10px; }
.running::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: cm-pulse 1.4s infinite; }
@keyframes cm-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .running::before { animation: none; } }

.av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; font-size: 12px; color: #12123F; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%), var(--avc, #8F8FD8); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.xs { width: 24px; height: 24px; font-size: 9.5px; }
.av.sm { width: 28px; height: 28px; font-size: 10.5px; }
.av.lg { width: 56px; height: 56px; font-size: 18px; }
.av.xl { width: 124px; height: 124px; font-size: 44px; }
.av-ring { padding: 3px; border-radius: 50%; background: conic-gradient(var(--avc, #8F8FD8), #8F8FD8, #EEE242, var(--avc, #8F8FD8)); display: inline-flex; flex: none; }
.av-ring .av { box-shadow: 0 0 0 2px var(--bg); }
.av-stack { display: inline-flex; }
.av-stack .av + .av { margin-left: -7px; }
.av-stack .av { box-shadow: 0 0 0 2px var(--bg); }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); font-weight: 700; }
.field input, .field select, .field textarea, .input { height: 48px; border: 1px solid var(--border); border-radius: 16px; padding: 0 14px; background: var(--input); color: var(--fg); width: 100%; }
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .field textarea, html[data-theme="light"] .input { border-color: #dcdcea; }
.field select { background: var(--input-solid); }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input[type="checkbox"] { width: 20px; height: 20px; }
.field .hint { font-size: 12px; color: var(--muted2); text-transform: none; letter-spacing: 0; font-weight: 500; }
.search { display: flex; align-items: center; gap: 8px; background: var(--glass-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 16px; height: 46px; flex: 0 1 300px; min-width: 180px; }
html[data-theme="light"] .search { background: #fff; border-color: #fff; box-shadow: var(--shadow); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--fg); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border-2); text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; color: var(--fg); }
.switch-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--glass-2); width: 100%; text-align: left; color: var(--fg); }
.switch { flex: none; width: 52px; height: 30px; border-radius: 999px; padding: 3px; display: flex; border: 1px solid var(--border); background: var(--glass-3); justify-content: flex-start; }
.switch::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--muted2); }
.on > .switch, .switch.on { justify-content: flex-end; border-color: rgba(253,247,152,.6); background: linear-gradient(90deg, rgba(238,226,66,.4), rgba(238,226,66,.15)); }
.on > .switch::after, .switch.on::after { background: radial-gradient(circle at 35% 30%, #fffbd8, #EEE242); }

/* KPI con brillo inferior */
.kpi { position: relative; overflow: hidden; border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--fg); background: radial-gradient(100% 80% at 50% 135%, var(--glowc, transparent), transparent 65%), var(--glass); border: 1px solid var(--border); box-shadow: var(--inset), var(--shadow); }
.kpi .v { font-family: var(--f-display); font-size: 38px; font-weight: 700; line-height: 1; }
.kpi .s { font-size: 13px; color: var(--muted); }
.kpi .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }

/* Tablero */
.board-wrap { overflow-x: auto; padding-bottom: 8px; }
.board { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 14px; min-width: 1360px; }
.col { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--border-2); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 420px; }
html[data-theme="light"] .col { background: rgba(255,255,255,.45); border-color: rgba(255,255,255,.8); }
.col.drop { outline: 2px dashed var(--yel); outline-offset: -4px; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 2px; font-weight: 700; font-size: 13.5px; }
.count { font-family: var(--f-mono); font-size: 12px; color: var(--muted); background: var(--glass-3); border-radius: 999px; padding: 2px 9px; }
.tcard { position: relative; overflow: hidden; border-radius: 18px; padding: 12px 13px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--fg); background: radial-gradient(120% 70% at 50% 130%, var(--glowc, transparent), transparent 65%), var(--glass); border: 1px solid var(--border); box-shadow: var(--inset); cursor: pointer; text-align: left; width: 100%; }
html[data-theme="light"] .tcard { box-shadow: 0 6px 18px rgba(18,18,63,.07); }
.tcard:hover { border-color: var(--muted2); color: var(--fg); }
.tcard .t { font-family: var(--f-display); font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.tcard .m { font-size: 12.5px; color: var(--muted2); }
.tcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; border-top: 1px solid var(--border-2); padding-top: 9px; }
.dept { font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.empty-col { color: var(--muted2); font-size: 13px; padding: 10px 6px; }

/* Filas de lista */
.list { display: flex; flex-direction: column; gap: 10px; }
.lrow { border-radius: 20px; padding: 14px 18px 14px 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-decoration: none; color: var(--fg); background: var(--glass); border: 1px solid var(--border); box-shadow: var(--inset); cursor: pointer; text-align: left; width: 100%; }
html[data-theme="light"] .lrow { box-shadow: 0 6px 18px rgba(18,18,63,.06); }
.lrow:hover { border-color: var(--muted2); color: var(--fg); }
.lrow .bar { width: 8px; align-self: stretch; min-height: 38px; border-radius: 999px; background: linear-gradient(180deg, var(--barc, #8F8FD8), transparent); box-shadow: 0 0 14px var(--barc, #8F8FD8); flex: none; }
.lrow .main-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 220px; }
.lrow .main-t b { font-family: var(--f-display); font-size: 15px; }
.lrow .side-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Detalle de tarea */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--border); }
.steps button { height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--muted2); font-weight: 800; font-size: 13px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps button.done { background: rgba(143,143,216,.22); color: var(--fg); }
.steps button.on { background: var(--yel-grad); color: #12123F; box-shadow: 0 6px 20px rgba(238,226,66,.35); }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 22px; } }
.auto-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 20px; padding: 12px 16px; border: 1px solid rgba(199,125,255,.5); background: radial-gradient(80% 140% at 0% 50%, rgba(199,125,255,.25), transparent 60%), var(--glass); }
.bubble { line-height: 1.6; background: var(--glass-2); border-radius: 4px 18px 18px 18px; padding: 10px 14px; white-space: pre-wrap; word-break: break-word; }
html[data-theme="light"] .bubble { background: #f3f3fa; }
.mention { background: rgba(143,143,216,.25); color: var(--lav-t); font-weight: 700; border-radius: 6px; padding: 1px 6px; }
.comment { display: flex; gap: 12px; }
.comment .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.replies { display: flex; flex-direction: column; gap: 10px; padding-left: 14px; border-left: 2px solid var(--border-2); margin-top: 4px; }
.composer { position: relative; display: flex; flex-direction: column; gap: 10px; border-radius: 22px; padding: 14px 16px; border: 1px solid transparent; background: linear-gradient(var(--input-solid), var(--input-solid)) padding-box, linear-gradient(100deg, #8F8FD8, #EEE242 50%, #5b8cff) border-box; }
.composer textarea { border: 0; outline: 0; resize: vertical; background: transparent; min-height: 54px; color: var(--fg); }
.mention-menu { position: absolute; left: 16px; bottom: 100%; margin-bottom: 6px; z-index: 5; border-radius: 16px; padding: 6px; min-width: 240px; max-height: 260px; overflow-y: auto; background: var(--modal); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.mention-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; border-radius: 12px; padding: 8px 10px; text-align: left; color: var(--fg); }
.mention-menu button:hover, .mention-menu button.on { background: var(--glass-3); }
.timer-card { border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(110% 80% at 50% 130%, rgba(52,211,153,.45), transparent 65%), linear-gradient(160deg, rgba(39,36,92,.95), rgba(18,18,63,.95)); border: 1px solid rgba(110,231,183,.3); color: #f4f4fb; }
.timer-card .clock { font-family: var(--f-mono); font-size: 40px; letter-spacing: .02em; }
.timer-card .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #f4f4fb; }
.timer-card .btn-primary { background: var(--yel-grad); color: #12123F; border: 0; }
.info-tile { border-radius: 16px; padding: 10px 12px; background: var(--glass-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html[data-theme="light"] .info-tile { background: #f3f3fa; }
.info-tile .label { font-size: 11px; }
.flow { display: flex; flex-direction: column; }
.flow-step { display: flex; gap: 12px; }
.flow-step .rail { display: flex; flex-direction: column; align-items: center; }
.flow-step .node { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #12123F; flex: none; }
.flow-step .node.done { border: 0; background: radial-gradient(circle at 50% 120%, #a7f3d0, #34d399 50%, #0f8a5f); }
.flow-step .node.now { border: 0; background: var(--yel-grad); box-shadow: 0 0 14px rgba(238,226,66,.6); }
.flow-step .line { width: 2px; flex: 1; min-height: 22px; background: var(--border); }
.flow-step .txt { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; }
.attach { display: inline-flex; align-items: center; gap: 10px; border-radius: 16px; padding: 8px 14px 8px 8px; background: var(--glass-2); border: 1px solid var(--border); text-decoration: none; font-weight: 700; font-size: 13px; }
.attach .ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; background: radial-gradient(circle at 50% 120%, #8fb0ff, #5b8cff 50%, #2c4fb8); }
.ref-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 18px; border: 1px solid var(--border); }
.hist { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }

/* Equipo y perfiles */
.person { border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--fg); background: var(--glass); border: 1px solid var(--border); box-shadow: var(--inset), var(--shadow); cursor: pointer; text-align: left; }
.person:hover { color: var(--fg); border-color: var(--muted2); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-stats > div { border-radius: 14px; padding: 8px 10px; background: var(--glass-2); display: flex; flex-direction: column; }
html[data-theme="light"] .mini-stats > div { background: #f3f3fa; }
.mini-stats b { font-family: var(--f-display); font-size: 18px; }
.mini-stats span { font-size: 11px; color: var(--muted2); }
.rank { display: flex; align-items: center; gap: 12px; border-radius: 20px; padding: 12px 16px; background: var(--glass-2); border: 1px solid var(--border-2); }
.rank.first { background: radial-gradient(120% 140% at 50% -40%, #fffbd8, #EEE242 40%, #EDCC43 70%, #BCA502); color: #12123F; border: 0; box-shadow: 0 0 40px rgba(238,226,66,.35); transform: rotate(-1deg); }
.rank .n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; opacity: .8; }
.dept-card { border-radius: 24px; padding: 18px; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background: radial-gradient(110% 80% at 50% 130%, var(--glowc), transparent 65%), var(--glass); border: 1px solid var(--border); }
.dept-glow { border-radius: 26px; padding: 18px; min-height: 220px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(120% 75% at 50% 125%, var(--glowc), transparent 75%), var(--glass); border: 1px solid var(--border); box-shadow: var(--inset); }
.dept-glow .big { font-family: var(--f-display); font-size: 44px; font-weight: 700; line-height: 1; }
.upload { position: relative; width: 100%; border: 1.5px dashed var(--border); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; cursor: pointer; background: var(--glass-2); }
html[data-theme="light"] .upload { border-color: #c9c9dc; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .orb { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #ffffff, #dfe6ff 45%, #a9bcff); color: #2c4fb8; box-shadow: 0 0 30px rgba(143,176,255,.5); }
.upload.green .orb { background: radial-gradient(circle at 50% 120%, #a7f3d0, #34d399 45%, #0f8a5f); color: #fff; box-shadow: 0 0 30px rgba(52,211,153,.45); }

/* Gráficas */
.hbar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 56px; gap: 14px; align-items: center; }
@media (max-width: 640px) { .hbar { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.hbar .track { display: flex; gap: 4px; height: 34px; }
.hbar .seg-b { border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; min-width: 26px; overflow: hidden; }
.hbar .empty { flex: 1; border-radius: 10px; background: var(--glass-2); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.chart-light { border-radius: 28px; padding: 22px 24px; background: #f7f7fb; color: #12123F; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
html[data-theme="light"] .chart-light { background: #fff; box-shadow: var(--shadow); }

/* Alertas */
.notif { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 22px; text-decoration: none; color: var(--fg); border: 1px solid var(--border-2); background: var(--glass-2); cursor: pointer; text-align: left; width: 100%; }
.notif.unread { border-color: var(--border); background: var(--glass); }
html[data-theme="light"] .notif.unread { background: #fff; box-shadow: var(--shadow); }
.notif .ic { width: 42px; height: 42px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; color: #12123F; background: var(--icg); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 18px var(--ics); }
.notif .unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yel); box-shadow: 0 0 10px var(--yel); }

/* Producciones */
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); grid-template-rows: 52px repeat(13, 56px); column-gap: 4px; min-width: 640px; background-image: linear-gradient(var(--border-2) 1px, transparent 1px); background-size: 100% 56px; background-position: 0 52px; }
.week .dayh { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); grid-row: 1; }
.week .dayh b { font-family: var(--f-display); font-size: 18px; color: var(--fg); }
.week .dayh.today b { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--yel-grad); color: #12123F; }
.week .hour { grid-column: 1; font-family: var(--f-mono); font-size: 10.5px; color: var(--faint); padding-top: 4px; white-space: nowrap; }
.ev { margin: 3px 0; border-radius: 16px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; text-align: left; color: var(--fg); overflow: hidden; border: 1px solid var(--evb); background: radial-gradient(120% 80% at 50% 130%, var(--evg), transparent 70%), var(--evbg); min-height: 0; }
.ev.mine { border: 2px dashed var(--yel); }
.ev.sel { box-shadow: 0 0 0 3px var(--evb), 0 14px 30px rgba(0,0,0,.3); }
.ev b { font-family: var(--f-display); font-size: 13px; line-height: 1.25; }
.ev small { font-size: 11px; opacity: .85; }

/* Copys y publicación */
.art { border-radius: 18px; background: radial-gradient(70% 70% at 30% 25%, var(--artc, #5b8cff), transparent 70%), radial-gradient(70% 70% at 80% 90%, rgba(238,226,66,.5), transparent 70%), linear-gradient(135deg, #27245C, #12123F); background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px; color: #fff; }
.art .tag { font-size: 11.5px; font-weight: 800; background: rgba(11,10,34,.6); border-radius: 999px; padding: 4px 10px; }
.copy-card { border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; background: var(--glass); border: 1px solid var(--border); box-shadow: var(--inset), var(--shadow); }
.copy-card .art { height: 150px; border-radius: 0; align-items: flex-start; }
.copy-text { line-height: 1.6; background: var(--input); border-radius: 16px; padding: 12px 14px; border: 1px solid var(--border-2); white-space: pre-wrap; word-break: break-word; }
.client-btn { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 700; text-align: left; width: 100%; }
.client-btn.on { border-color: rgba(253,247,152,.4); background: linear-gradient(90deg, rgba(238,226,66,.18), rgba(238,226,66,.04)); color: var(--yel-t); }
html[data-theme="light"] .client-btn.on { background: #27245C; color: #fff; }
.client-btn .lg { width: 30px; height: 30px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #12123F; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%), var(--avc); }
.info-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 20px; padding: 12px 16px; background: rgba(143,143,216,.12); border: 1px solid rgba(143,143,216,.3); color: var(--muted); }

/* Tablas */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; color: var(--muted2); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.tbl td { padding: 10px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
table.tbl td.num, table.tbl th.num { text-align: right; font-family: var(--f-mono); }
table.tbl input { height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--fg); padding: 0 10px; width: 100%; }
table.tbl tr.err td { background: var(--bad-bg); }
.totals { border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: var(--input); border: 1px solid var(--border-2); }
.totals .line { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.totals .final { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; }
.totals .final .v { font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--yel-t); }

/* Consultas */
.ask-card { border-radius: 34px; padding: 26px; display: flex; flex-direction: column; gap: 18px; min-height: 640px; background: radial-gradient(80% 50% at 50% 0%, rgba(143,143,216,.25), transparent 70%), var(--glass); border: 1px solid var(--border); box-shadow: var(--inset), 0 30px 70px rgba(0,0,0,.3); }
html[data-theme="light"] .ask-card { box-shadow: var(--shadow); }
.ask-hero { font-family: var(--f-display); font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.ask-hero span { background: linear-gradient(90deg, #8F8FD8, #EEE242); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border-2); padding-top: 16px; }
.msg-u { align-self: flex-end; max-width: 80%; border-radius: 20px 20px 6px 20px; padding: 11px 16px; line-height: 1.5; font-weight: 600; background: var(--yel-grad); color: #12123F; white-space: pre-wrap; }
.msg-a { align-self: flex-start; max-width: 92%; border-radius: 20px 20px 20px 6px; padding: 12px 16px; line-height: 1.6; background: var(--glass-3); border: 1px solid var(--border-2); white-space: pre-wrap; }
.ask-input { display: flex; gap: 10px; align-items: center; border-radius: 999px; padding: 6px 6px 6px 18px; background: var(--input); border: 1px solid var(--border); }
.ask-input input { flex: 1; border: 0; outline: 0; background: transparent; height: 44px; min-width: 0; color: var(--fg); }
.send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--yel-grad); color: #12123F; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 24px rgba(238,226,66,.4); flex: none; }
.quick { display: flex; align-items: center; gap: 12px; border-radius: 22px; padding: 14px 16px; color: var(--fg); text-align: left; min-height: 64px; border: 1px solid var(--border); background: radial-gradient(120% 100% at 0% 50%, var(--qg), transparent 60%), var(--glass); width: 100%; }
.quick .bar { width: 10px; height: 38px; border-radius: 999px; background: linear-gradient(180deg, var(--qc), transparent); box-shadow: 0 0 14px var(--qc); flex: none; }
.quick b { font-family: var(--f-display); font-size: 15px; }
.quick .n { font-family: var(--f-display); font-size: 24px; font-weight: 700; margin-left: auto; }
.gborder { border: 1px solid transparent; background: linear-gradient(var(--input-solid), var(--input-solid)) padding-box, linear-gradient(110deg, #8F8FD8, #EEE242 50%, #5b8cff) border-box; }

/* Modal */
.modal-back { position: fixed; inset: 0; z-index: 60; background: var(--overlay); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; backdrop-filter: blur(4px); }
.modal { width: min(680px, 100%); border-radius: 28px; padding: 24px; background: var(--modal); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 16px; }
html[data-theme="light"] .modal { border-color: #e4e4f0; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--glass-3); color: var(--fg); font-size: 20px; line-height: 1; flex: none; }
.modal-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Avisos */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: 0 14px 40px rgba(0,0,0,.35); max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); color: #fff; }
.float-alert { position: fixed; right: 24px; bottom: 24px; width: 330px; max-width: calc(100% - 32px); z-index: 80; border-radius: 24px; padding: 18px; background: radial-gradient(120% 90% at 50% -20%, rgba(91,140,255,.55), transparent 60%), linear-gradient(160deg, rgba(39,36,92,.96), rgba(18,18,63,.97)); border: 1px solid rgba(143,143,216,.45); box-shadow: 0 24px 60px rgba(0,0,0,.5); color: #f4f4fb; display: flex; flex-direction: column; gap: 10px; }
.float-alert .x { background: rgba(255,255,255,.1); color: #fff; }
.empty { border-radius: 26px; padding: 30px; text-align: center; color: var(--muted2); border: 1px dashed var(--border); background: var(--glass-2); }
.empty h3 { color: var(--fg); margin-bottom: 6px; }
.loading { padding: 40px; text-align: center; color: var(--muted2); }
.lock-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--yel-t); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.theme-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--input); border: 1px solid var(--border-2); }
.theme-seg button { height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.theme-seg button.on { background: rgba(255,255,255,.14); color: var(--fg); }
html[data-theme="light"] .theme-seg button.on { background: #fff; box-shadow: 0 4px 12px rgba(18,18,63,.12); }
.cm-custom-logo { max-height: 56px; max-width: 220px; object-fit: contain; }
.side .cm-custom-logo { max-height: 44px; max-width: 190px; }

/* ---------- Pop ups animados ---------- */
.fx-still, .fx-still * { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }

/* Alertas laterales: tarea atrasada, producción agendada, cotización */
.fxt-stack { position: fixed; bottom: 18px; right: 18px; max-height: calc(100vh - 36px); overflow-y: auto; scrollbar-width: none; z-index: 90; width: min(420px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
@media (max-width: 600px) { .fxt-stack { bottom: 12px; right: 12px; } }
.fxt { --acc: #3EC5F5; --tint: rgba(62,197,245,.3); --kick: #7FD8F8; --t-card: rgba(32,29,88,.55); --t-stroke: rgba(255,255,255,.16); --t-hi: rgba(255,255,255,.26); --t-btn: rgba(255,255,255,.09); --t-shadow: 0 24px 50px -14px rgba(6,4,36,.75);
  pointer-events: auto; flex-shrink: 0; position: relative; overflow: hidden; border-radius: 22px; padding: 18px 16px 22px 18px; color: var(--fg); background: linear-gradient(135deg, var(--tint), var(--t-card) 55%), var(--bg-2, #1b1a4a); border: 1px solid var(--t-stroke); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); box-shadow: inset 0 1px 0 var(--t-hi), var(--t-shadow); animation: fxt-in .62s cubic-bezier(.18,.9,.32,1.22) both; }
html[data-theme="light"] .fxt { --t-card: rgba(255,255,255,.82); --t-stroke: rgba(255,255,255,.9); --t-hi: #fff; --t-btn: rgba(39,36,92,.07); --t-shadow: 0 22px 46px -16px rgba(39,36,92,.38); background: linear-gradient(135deg, var(--tint), var(--t-card) 55%), #f7f7fb; }
.fxt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-110%); animation: fxt-shine 1.1s .35s ease-out forwards; }
.fxt.late { --acc: #FF5E62; --tint: rgba(255,94,98,.32); --kick: #FF8A8D; animation: fxt-in .62s cubic-bezier(.18,.9,.32,1.22) both, fxt-shake .55s .62s ease-in-out both, fxt-late-pulse 2s 1.2s ease-in-out infinite; }
.fxt.prod { --acc: #3EC5F5; --tint: rgba(62,197,245,.3); --kick: #7FD8F8; }
.fxt.quote { --acc: #3DDC97; --tint: rgba(61,220,151,.28); --kick: #6FE7B3; }
html[data-theme="light"] .fxt.late { --kick: #c42b3a; } html[data-theme="light"] .fxt.prod { --kick: #0d7fae; } html[data-theme="light"] .fxt.quote { --kick: #11804f; }
.fxt.leaving, .fxt.late.leaving { animation: fxt-out .4s cubic-bezier(.6,0,.8,.4) forwards; }
.fxt:hover .fxt-bar { animation-play-state: paused; }
.fxt-glow { position: absolute; left: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: var(--acc); opacity: .35; filter: blur(40px); pointer-events: none; }
.fxt-stripes { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(-45deg, rgba(255,94,98,.95) 0 9px, rgba(255,94,98,.15) 9px 18px); background-size: 25.4px 25.4px; animation: fxt-stripes .9s linear infinite; }
.fxt-row { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.fxt-chip { flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--acc); color: #12123F; display: grid; place-items: center; box-shadow: 0 10px 24px -6px var(--acc); overflow: hidden; animation: fxt-chip .5s .2s cubic-bezier(.3,1.6,.5,1) both; }
.fxt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fxt-kicker, .fxt-title { padding-right: 30px; }
.fxt-kicker { font: 800 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--kick); }
.fxt-title { font: 600 16px/1.3 var(--f-display); overflow-wrap: anywhere; }
.fxt-sub { font-size: 13px; line-height: 1.45; color: var(--muted); }
.fxt-sub strong { color: var(--fg); }
.fxt-sub.small { font-size: 12px; margin-top: 6px; }
.fxt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fxt-btn { min-height: 42px; padding: 0 13px; border-radius: 12px; border: 0; background: var(--acc); color: #12123F; font: 700 13px/1 var(--f-body); cursor: pointer; transition: filter .15s, transform .15s; }
.fxt-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fxt-btn.ghost { background: var(--t-btn); color: var(--fg); border: 1px solid var(--t-stroke); font-weight: 600; }
.fxt-btn:focus-visible, .fxt-x:focus-visible, .cel-btn:focus-visible, .cel-x:focus-visible { outline: 2px solid #EEE242; outline-offset: 2px; }
.fxt-x { position: absolute; top: -6px; right: -6px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; opacity: .65; transition: opacity .15s, background .15s; }
.fxt-x:hover { opacity: 1; background: var(--t-btn); }
.fxt-track { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--t-btn); }
.fxt-bar { height: 100%; background: var(--acc); box-shadow: 0 0 10px var(--acc); transform-origin: left; animation: fxt-bar 8s linear forwards; }
.fxt-avs { display: flex; margin-left: auto; }
.fxt-avs .fxt-av + .fxt-av { margin-left: -8px; }
.fxt-av .av { border: 2px solid rgba(18,18,63,.6); }
.fxt-late-box { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255,94,98,.16); border: 1px solid rgba(255,94,98,.35); }
.fxt-late-l { font-size: 12px; color: var(--muted); }
.fxt-count { font: 700 17px/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fx-tick { display: inline-block; animation: fxt-tick 1s steps(1) infinite; }
.fx-ring-bell { transform-origin: 50% 30%; animation: fxt-ring 1.1s .4s ease-in-out infinite; }
.fx-ringlines { animation: fxt-blink 1.1s .4s steps(1) infinite; }
.fxt-prod { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.fxt-cal { flex: none; width: 58px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.95); box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); text-align: center; color: #12123F; }
.fxt-cal .m { background: #3EC5F5; font: 800 10px/1 var(--f-body); letter-spacing: .1em; padding: 5px 0; }
.fxt-cal .d { font: 800 22px/1 var(--f-display); padding: 5px 0 1px; }
.fxt-cal .w { color: #45427A; font: 700 10px/1 var(--f-body); padding-bottom: 6px; }
.fx-flipin { transform-origin: 50% 0%; animation: fxt-flip .75s .4s cubic-bezier(.2,.9,.3,1.35) both; }
.fx-clap { transform-box: fill-box; transform-origin: 0% 100%; animation: fxt-clap 1s .55s cubic-bezier(.5,0,.4,1) both; }
.fxt-people { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.fxt-people .fxt-avs { margin-left: 0; }
.fx-pop { animation: fxt-pop .5s var(--d) cubic-bezier(.3,1.7,.5,1) both; }
.fxt-print { position: relative; width: 26px; height: 30px; overflow: hidden; }
.fx-print { animation: fxt-print 1.1s .35s cubic-bezier(.3,.7,.3,1) both; }
.fxt-receipt { position: relative; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px dashed var(--t-stroke); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
html[data-theme="light"] .fxt-receipt { background: rgba(255,255,255,.6); border-color: rgba(39,36,92,.2); }
.fxt-receipt .fx-line { display: flex; gap: 10px; }
.fxt-receipt .fx-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxt-receipt .fx-line b { margin-left: auto; color: var(--fg); font-weight: 600; white-space: nowrap; }
.fxt-receipt .sep { padding-top: 6px; border-top: 1px solid var(--t-stroke); }
.fxt-receipt .total { align-items: baseline; }
.fxt-receipt .total span { font-weight: 700; color: var(--fg); }
.fxt-receipt .total b { font: 800 20px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.fx-line { animation: fxt-line .45s var(--d) ease-out both; }
.fx-stamp { position: absolute; right: 10px; top: -13px; z-index: 3; padding: 6px 10px; border: 2.5px solid #3DDC97; border-radius: 8px; color: #3DDC97; font: 800 12px/1 var(--f-display); letter-spacing: .14em; background: rgba(18,18,63,.45); transform: rotate(-12deg); animation: fxt-stamp .5s 2.15s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes fxt-in { 0% { opacity: 0; transform: translateX(115%) scale(.9); filter: blur(8px); } 55% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes fxt-out { to { opacity: 0; transform: translateX(70%) scale(.92); filter: blur(6px); } }
@keyframes fxt-shine { to { transform: translateX(110%); } }
@keyframes fxt-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes fxt-chip { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fxt-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes fxt-late-pulse { 0%, 100% { box-shadow: inset 0 1px 0 var(--t-hi), 0 0 0 0 rgba(255,94,98,.5), var(--t-shadow); } 50% { box-shadow: inset 0 1px 0 var(--t-hi), 0 0 0 7px rgba(255,94,98,0), 0 18px 50px -10px rgba(255,94,98,.65); } }
@keyframes fxt-ring { 0%, 55%, 100% { transform: rotate(0); } 8% { transform: rotate(-18deg); } 16% { transform: rotate(16deg); } 24% { transform: rotate(-13deg); } 32% { transform: rotate(10deg); } 40% { transform: rotate(-6deg); } 48% { transform: rotate(3deg); } }
@keyframes fxt-blink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes fxt-stripes { to { background-position: 25.4px 0; } }
@keyframes fxt-tick { 0% { transform: scale(1.12); color: #FF8A8D; } 30%, 100% { transform: none; } }
@keyframes fxt-clap { 0% { transform: rotate(-30deg); } 30% { transform: rotate(0); } 48% { transform: rotate(-16deg); } 66%, 100% { transform: rotate(0); } }
@keyframes fxt-flip { from { transform: perspective(500px) rotateX(-95deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fxt-pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fxt-print { from { transform: translateY(-104%); } to { transform: none; } }
@keyframes fxt-line { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes fxt-stamp { 0% { transform: scale(2.6) rotate(-16deg); opacity: 0; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }

/* Tarea completada: celebración con Mochi */
.cel-overlay { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: rgba(10,8,40,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: cel-fade .3s ease both; }
.cel-overlay.closing { animation: cel-fade-out .32s ease forwards; }
.cel-fit { width: 520px; height: 724px; transform: scale(var(--s, 1)); transform-origin: 50% 50%; flex: none; }
.cel-card { position: relative; overflow: hidden; width: 520px; height: 724px; box-sizing: border-box; border-radius: 32px; background: rgba(22,20,70,.72); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 40px 90px -20px rgba(6,4,36,.8); color: #F4F3FF; display: flex; flex-direction: column; font-family: var(--f-body); animation: cel-card-in .55s cubic-bezier(.2,.9,.3,1.2) both; }
.cel-overlay.closing .cel-card { animation: cel-card-out .3s ease-in forwards; }
.cel-flood { position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, #A77BFF 0%, #6A3FE0 38%, #3A2690 70%, #27245C 100%); clip-path: circle(0% at 50% 30%); animation: cel-flood .9s 2.1s cubic-bezier(.3,.7,.2,1) forwards; }
.cel-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; }
.cel-x { position: absolute; top: 16px; right: 16px; z-index: 4; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: #F4F3FF; cursor: pointer; display: grid; place-items: center; opacity: .7; }
.cel-x:hover { opacity: 1; background: rgba(255,255,255,.12); }
.cel-stage { position: relative; height: 430px; flex: none; }
.cel-yarn { position: absolute; left: 50%; top: 175px; width: 130px; height: 130px; margin-left: -65px; perspective: 600px; }
.cel-yarn-life { width: 100%; height: 100%; animation: cel-yarn-life 1.45s both; }
.cel-yarn-flip { width: 100%; height: 100%; animation: cel-yarn-flip 1s .42s cubic-bezier(.55,0,.9,.6) both; }
.cel-yarn-color { animation: cel-yarn-color .5s .45s ease both; }
.cel-flash { position: absolute; left: 50%; top: 200px; width: 90px; height: 90px; margin-left: -45px; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0%, #EEE242 35%, rgba(155,107,255,0) 70%); animation: cel-flash .65s 1.3s ease-out both; }
.cel-sparks { position: absolute; left: 50%; top: 150px; width: 0; height: 0; }
.cel-spark { position: absolute; left: -5px; top: -5px; animation: cel-spark 1s var(--d) cubic-bezier(.2,.8,.3,1) both; }
.cel-shadow { position: absolute; left: 50%; bottom: 22px; width: 190px; height: 26px; margin-left: -95px; border-radius: 50%; background: radial-gradient(ellipse, rgba(10,6,40,.75), transparent 70%); animation: cel-shadow .45s 2.9s ease-out both; }
.cel-dusts { position: absolute; left: 50%; bottom: 30px; width: 0; height: 0; }
.cel-dust { position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); animation: cel-dust .7s 3s ease-out both; }
.cel-mochi { position: absolute; left: 50%; bottom: 26px; width: 240px; height: 320px; margin-left: -120px; }
.cel-rise { position: absolute; inset: 0; transform-origin: 50% 70%; animation: cel-rise 1.7s 1.3s both; }
.cel-aura { position: absolute; left: 50%; top: 44%; width: 0; height: 0; animation: cel-aura .75s 2.1s cubic-bezier(.2,.9,.3,1.45) both; }
.cel-glow { position: absolute; left: -190px; top: -190px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(196,174,255,.95) 0%, rgba(155,107,255,.7) 32%, rgba(123,77,255,.25) 55%, rgba(123,77,255,0) 70%); filter: blur(4px); animation: cel-glow 2.2s 2.8s ease-in-out infinite; }
.cel-rays { position: absolute; left: -230px; top: -230px; width: 460px; height: 460px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0deg 7deg, rgba(255,255,255,0) 7deg 24deg); -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); animation: cel-spin 8s linear infinite; }
.cel-flame { position: absolute; left: -38px; top: -190px; width: 76px; height: 190px; transform-origin: 50% 100%; border-radius: 50% 50% 46% 46% / 70% 70% 30% 30%; filter: blur(7px); animation: cel-flicker var(--t) ease-in-out infinite alternate; }
.cel-squash { position: absolute; inset: 0; transform-origin: 50% 100%; animation: cel-squash .6s 3s ease-out both; }
.cel-idle { position: absolute; inset: 0; transform-origin: 50% 100%; animation: cel-idle 2.4s 3.7s ease-in-out infinite; }
.cel-spin { position: absolute; inset: 0; transform-origin: 50% 85%; }
.cel-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cel-glasses { position: absolute; left: 64px; top: 84px; width: 116px; height: 38px; animation: cel-glasses .6s 3.1s cubic-bezier(.3,1.55,.6,1) both; }
.cel-glint { transform-box: fill-box; animation: cel-glint .8s 3.75s ease-out both; }
.cel-ting { position: absolute; right: -14px; top: -16px; animation: cel-ting .7s 3.8s ease-out both; }
.cel-text { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 44px 32px; }
.cel-text h2 { margin: 0; font: 800 40px/1.05 var(--f-display); letter-spacing: -.01em; text-shadow: 0 6px 30px rgba(155,107,255,.8); color: #fff; }
.cel-tag { margin: 0; font: 700 18px/1.3 var(--f-display); color: #EEE242; }
.cel-msg { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #DCD6FF; }
.cel-msg strong { color: #fff; }
.cel-actions { display: flex; gap: 10px; margin-top: auto; width: 100%; }
.cel-btn { flex: 1.4; min-height: 50px; border-radius: 16px; border: 0; background: #EEE242; color: #12123F; font: 700 15px/1 var(--f-display); cursor: pointer; box-shadow: 0 12px 30px -10px rgba(238,226,66,.8); transition: filter .15s, transform .15s; }
.cel-btn.ghost { flex: 1; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font: 600 14px/1 var(--f-body); box-shadow: none; }
.cel-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cel-reveal { animation: cel-reveal .6s var(--d) cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes cel-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cel-fade-out { to { opacity: 0; } }
@keyframes cel-card-in { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes cel-card-out { to { opacity: 0; transform: scale(.94); } }
@keyframes cel-flood { to { clip-path: circle(90% at 50% 30%); } }
@keyframes cel-yarn-life { 0% { transform: scale(.5); opacity: 0; } 18% { transform: scale(1); opacity: 1; } 84% { transform: scale(1); opacity: 1; } 100% { transform: scale(0) rotate(220deg); opacity: 0; } }
@keyframes cel-yarn-flip { from { transform: rotateY(0); } to { transform: rotateY(1800deg); } }
@keyframes cel-yarn-color { from { filter: grayscale(1) brightness(1.35); } to { filter: grayscale(0) brightness(1); } }
@keyframes cel-flash { 0% { transform: scale(0); opacity: 0; } 30% { opacity: .95; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes cel-rise { 0% { transform: translateY(40px) scale(.28); opacity: 0; } 8% { opacity: 1; } 35% { transform: translateY(-40px) scale(.72); } 50% { transform: translateY(-112px) scale(1.06); } 70% { transform: translateY(-122px) scale(1.06); animation-timing-function: cubic-bezier(.6,0,.95,.55); } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes cel-aura { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes cel-spin { to { transform: rotate(360deg); } }
@keyframes cel-flicker { 0% { transform: rotate(var(--r)) scale(1,1); opacity: .75; } 100% { transform: rotate(var(--r)) scale(1.1,1.22); opacity: 1; } }
@keyframes cel-glow { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes cel-spark { 0% { transform: translate(0,0) scale(.3); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
@keyframes cel-squash { 0% { transform: scale(1,1); } 22% { transform: scale(1.17,.8); } 50% { transform: scale(.94,1.07); } 75% { transform: scale(1.03,.97); } 100% { transform: scale(1,1); } }
@keyframes cel-idle { 0%, 100% { transform: none; } 50% { transform: translateY(-3px) scale(1.012,1.025); } }
@keyframes cel-shadow { from { transform: scaleX(.25); opacity: 0; } to { transform: none; opacity: .6; } }
@keyframes cel-dust { 0% { transform: translate(0,0) scale(.4); opacity: 0; } 25% { opacity: .8; } 100% { transform: translate(var(--dx), -14px) scale(1.3); opacity: 0; } }
@keyframes cel-glasses { 0% { transform: translateY(-170px) rotate(-28deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes cel-glint { 0% { opacity: 0; transform: translateX(-14px); } 40% { opacity: .95; } 100% { opacity: 0; transform: translateX(26px); } }
@keyframes cel-ting { 0% { transform: scale(0) rotate(0); opacity: 0; } 45% { transform: scale(1.1) rotate(90deg); opacity: 1; } 100% { transform: scale(0) rotate(180deg); opacity: 0; } }
@keyframes cel-reveal { from { opacity: 0; transform: translateY(20px) scale(.95); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .fxt, .fxt *, .cel-overlay, .cel-overlay * { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; } }

/* Grupos de pestañas largos: se desplazan de lado en pantallas pequeñas. */
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg > * { flex-shrink: 0; }
.table-wrap { position: relative; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-login-btn { width: 100%; margin-top: 4px; }
.cm-login-card .field input { font-size: 15px; }
.cm-login-card .cm-row-between a { font-size: 13px; }

.cm-logo.has-img { background: none; box-shadow: none; overflow: hidden; }
.cm-icon-img { width: 100%; height: 100%; object-fit: contain; display: block; }

.cm-wordmark-img { display: block; height: auto; max-height: 26px; max-width: 150px; object-fit: contain; object-position: left center; }
.cm-brand-lg .cm-wordmark-img { max-height: 36px; max-width: 240px; }

/* Pop up: nueva tarea asignada */
.fxt.assigned { --acc: #EEE242; --tint: rgba(238,226,66,.26); --kick: #FDF798; }
html[data-theme="light"] .fxt.assigned { --kick: #7a6c00; }
.fxt-cal-due .m { background: #EEE242; font-size: 8.5px; letter-spacing: .12em; }
.fxt-area { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 8px var(--ac); margin-right: 6px; vertical-align: 1px; }
.fxt-more { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--t-btn); font-size: 12.5px; color: var(--muted); }
.fxt-more > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-drop { transform-box: fill-box; transform-origin: 50% 100%; animation: fxt-drop .8s .3s cubic-bezier(.3,1.5,.5,1) both; }
.fx-plus { transform-box: fill-box; transform-origin: 50% 50%; animation: fxt-plus .6s 1s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes fxt-drop { 0% { transform: translateY(-26px) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes fxt-plus { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: none; } }

/* Archivos de la tarea */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.files-grid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.file-tile { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--glass-2); border: 1px solid var(--border); min-width: 0; }
.file-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: rgba(0,0,0,.25); overflow: hidden; }
html[data-theme="light"] .file-thumb { background: rgba(18,18,63,.06); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-ic { color: var(--muted); }
.file-meta { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.file-label { height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--input); color: var(--fg); padding: 0 8px; font-weight: 700; font-size: 13px; }
.file-label-t { font-size: 13px; }
.file-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta .btn-sm { height: 32px; padding: 0 10px; }
.pub-files { display: flex; flex-wrap: wrap; gap: 6px; }

/* Prioridad: franja de color en las tarjetas del tablero */
.tcard::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--prioc, transparent); box-shadow: 0 0 10px var(--prioc, transparent); }
