/* =========================================================================
   TaskFlow 2 · Sistema de diseño
   ========================================================================= */
:root {
  --navy: #0A3A73; --navy-2: #11509A; --navy-3: #1560B8; --navy-d: #062549;
  --primary: #0A3A73; --primary-2: #11509A; --primary-soft: #EAF3FC; --sky: #2F80D1;
  --gold: #F4B400; --gold-d: #D99A00; --gold-soft: #FFF6D6; --cyan: #0EA5B7;
  --bg: #F3F5F9; --surface: #fff; --surface-2: #F7F9FC;
  --line: #E4E8EF; --line-2: #F0F2F6; --text: #15202E; --text-2: #4A5568; --muted: #8792A2;
  --ok: #22A55A; --ok-soft: #E4F6EB; --bad: #E5484D; --bad-soft: #FDECEC; --warn: #B7791F; --warn-soft: #FFF4DB;
  --radius: 16px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-m: 0 4px 16px -4px rgba(16, 24, 40, .10), 0 2px 6px -2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 24px 60px -12px rgba(8, 25, 55, .35);
  --side-w: 248px;
  --font: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-h: "Plus Jakarta Sans", Poppins, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 13.5px/1.55 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
h2 { font-size: 17px; margin: 0; font-weight: 650; color: var(--navy); }
h3 { font-size: 15px; margin: 0; font-weight: 650; color: var(--navy); }
h4 { margin: 14px 0 4px; font-size: 13px; }
p { margin: 4px 0; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; background: #eef1f6; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.ic.xs { width: 12px; height: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pad { padding: 10px 16px; }
.late { color: var(--bad) !important; }
.ok { color: var(--ok); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; }
[hidden] { display: none !important; }

/* ---------------- estructura: barra lateral + contenido ---------------- */
body.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--navy); color: #c5d0e2; display: flex; flex-direction: column; padding: 14px 12px; gap: 6px; scrollbar-width: thin; scrollbar-color: #2a4670 transparent; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; padding: 4px 8px 12px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), #e3c35a); color: var(--navy); display: grid; place-items: center; flex: none; }
.logo .ic { width: 18px; height: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-nav a, .side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: #c5d0e2; font-weight: 500; font-size: 13.5px; }
.side-nav a:hover, .side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.side-nav a.on { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side-nav a .ic, .side-link .ic { opacity: .85; }
.side-project { margin: 8px 0 4px; padding: 10px 6px 8px; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.side-project-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; }
.side-project-head b { display: block; color: #fff; font-size: 14px; }
.side-project-head small { color: #8ea0bd; font-size: 11.5px; }
.pdot { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--c); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; flex: none; }
.pdot.lg { min-width: 38px; height: 38px; border-radius: 9px; font-size: 12px; }
.side-section { margin-top: 6px; }
.side-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7688a6; padding: 6px 10px; font-weight: 600; }
.side-nav.projects a { font-size: 13px; }
.side-nav.projects a.current { color: #fff; background: rgba(255, 255, 255, .06); }
.side-empty { color: #7688a6; font-size: 12px; padding: 4px 10px; }
.side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 2px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #fff; }
.me-card:hover, .me-card.on { background: rgba(255, 255, 255, .08); text-decoration: none; }
.me-card b { display: block; font-size: 13px; font-weight: 600; }
.me-card small { color: #8ea0bd; font-size: 11.5px; }
.me-card .avatar { background: var(--gold); color: var(--navy); }
.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 58px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; min-width: 0; flex: 1; }
.crumbs a { color: var(--muted); }
.crumbs #crumbView { color: var(--text); font-weight: 600; }
.crumbs .sep { width: 14px; height: 14px; opacity: .5; }
.search { position: relative; width: min(340px, 34vw); }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 34px; background: var(--surface-2); border-color: var(--line); height: 36px; }
.content { padding: 24px 28px 64px; max-width: 1560px; width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: #eef1f6; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.danger:hover { color: var(--bad); background: var(--bad-soft); }
.only-mobile { display: none; }

/* ---------------- botones y formularios ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 14px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 550; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s; }
.btn:hover { background: #f1f4f9; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn.ghost:hover { background: #eef1f6; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.danger { color: var(--bad); border-color: #f2c7c7; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.block { width: 100%; height: 42px; margin-top: 6px; }
.link-btn { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; font-weight: 550; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { text-decoration: underline; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid #d3dae6; border-radius: var(--radius-sm); padding: 7px 10px; background: #fff; width: 100%; transition: border-color .12s, box-shadow .12s; }
input, select { height: 36px; }
textarea { line-height: 1.5; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--primary); }
input[type=color] { padding: 2px; width: 44px; height: 32px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #86a8ec; box-shadow: 0 0 0 3px rgba(36, 86, 201, .15); }
input:disabled, select:disabled, textarea:disabled { background: #f5f7fa; color: var(--text-2); }
label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 550; margin-bottom: 12px; }
label > input, label > select, label > textarea { margin-top: 5px; }
label small { display: block; font-weight: 400; margin-top: 3px; }
label.chk { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 500; white-space: nowrap; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid2 > *, .grid3 > * { min-width: 0; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline select { width: auto; height: 30px; padding: 0 8px; font-size: 12.5px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 12px 0; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 4px; margin: 0 0 14px; }
legend { font-weight: 650; color: var(--navy); padding: 0 6px; }
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.switch input { display: none; }
.switch > span { width: 38px; height: 22px; border-radius: 99px; background: #cfd6e2; position: relative; flex: none; transition: .15s; margin-top: 2px; }
.switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { left: 19px; }
.switch b { display: block; color: var(--text); }
.method-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.radio-card { margin: 0; cursor: pointer; }
.radio-card input { display: none; }
.radio-card > span { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; height: 100%; transition: .12s; }
.radio-card .ic { grid-row: span 2; width: 20px; height: 20px; color: var(--muted); }
.radio-card b { color: var(--text); font-size: 13.5px; }
.radio-card small { color: var(--muted); font-weight: 400; font-size: 12px; }
.radio-card input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.radio-card input:checked + span .ic { color: var(--primary); }

/* ---------------- alertas y avisos ---------------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 9px; margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.alert .ic { margin-top: 2px; }
.alert.ok { background: var(--ok-soft); border-color: #bde5d1; color: #0f6a47; }
.alert.err { background: var(--bad-soft); border-color: #f4c4c4; color: #a12b2b; }
.alert.warn { background: var(--warn-soft); border-color: #f3dba8; color: #7a5210; }
.alert ul { margin: 0; padding-left: 16px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: .22s; z-index: 3000; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; max-width: 90vw; font-weight: 500; }
.toast.err { background: #b42323; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- encabezados de página ---------------- */
.page-head, .view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p, .view-head p { margin-top: 4px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions select { width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------------- tarjetas ---------------- */
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow, .panel.narrow { max-width: 560px; }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-top h3 { display: flex; align-items: center; gap: 8px; }
.card-top.sep { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 6px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-bottom: 20px; }
.grid-cards > .card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.grid-cards.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-cards.compact .card { gap: 7px; padding: 14px; }
a.card { color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { text-decoration: none; border-color: #c3cfe2; box-shadow: 0 8px 24px -12px rgba(11, 31, 58, .25); transform: translateY(-1px); }
.pcard-head { display: flex; align-items: center; gap: 12px; }
.pcard-head h3 { font-size: 15.5px; }
.pcard-progress { display: flex; flex-direction: column; gap: 6px; }
.pcard-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: auto; }
.pcard-foot .ic { width: 14px; height: 14px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini-stats.five { grid-template-columns: repeat(5, 1fr); }
.mini-stats > div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 6px; text-align: center; }
.mini-stats b { display: block; font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.mini-stats small { color: var(--muted); font-size: 11px; }
.mini-stats .bad b { color: var(--bad); }
.mini-stats .accent { background: var(--gold-soft); border-color: #f0e2b0; }
.big-pct { display: flex; align-items: baseline; gap: 10px; }
.big-pct b { font-size: 28px; color: var(--navy); letter-spacing: -.02em; }
.avatars { display: flex; }
.avatars .avatar { margin-left: -6px; border: 2px solid #fff; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: #eef1f6; color: var(--text-2); white-space: nowrap; }
.chip .ic { width: 12px; height: 12px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.r-lider { background: var(--gold-soft); color: #7a5d05; }
.chip.r-dev { background: #e5eeff; color: #2556b3; }
.chip.r-analista { background: #e2f6f7; color: #0b7580; }
.chip.r-qa { background: #f1ebff; color: #6d43d6; }
.chip.r-cliente { background: #eef1f6; color: #4a5568; }
.chip.vs-en_curso { background: #e5eeff; color: #2556b3; }
.chip.vs-liberada { background: var(--ok-soft); color: var(--ok); }
.badge-active { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 5px; background: #dcfce7; color: #166534; }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed #cdd6e3; border-radius: 12px; }
.empty-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; }
.empty-ic .ic { width: 26px; height: 26px; }
.empty .btn { margin: 12px 4px 0; }

/* ---------------- progreso ---------------- */
.progress { height: 7px; background: #e7ebf2; border-radius: 99px; overflow: hidden; flex: 1; min-width: 50px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #2f6fdb, #4c8af0); border-radius: 99px; transition: width .3s; }
.progress.sm { height: 5px; }
.progress.load span { background: linear-gradient(90deg, var(--gold), #e0bd4a); }
.stackbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #e7ebf2; gap: 1px; }
.stackbar span { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* ---------------- avatares, insignias y chips ---------------- */
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dbe4f3; color: var(--navy-2); font-size: 11px; font-weight: 700; flex: none; letter-spacing: .02em; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.avatar.lg { width: 42px; height: 42px; font-size: 14px; }
.avatar.me { background: var(--gold); color: var(--navy); }
.avatar.unassigned { background: #fff; border: 1.5px dashed #b8c2d3; color: #98a3b6; }
.avatar.unassigned .ic { width: 13px; height: 13px; }
.avatar.more { background: #eef1f6; color: var(--muted); }
.avatar.bot { background: #f1ebff; color: #6d43d6; }
.avatar.bot .ic { width: 11px; height: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap; color: color-mix(in srgb, var(--c) 78%, #000); background: color-mix(in srgb, var(--c) 13%, #fff); text-transform: uppercase; letter-spacing: .02em; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.tbadge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; flex: none; color: #fff; }
.tbadge .ic { width: 12px; height: 12px; stroke-width: 2.5; }
.t-historia { background: #36b37e; } .t-tarea { background: #4c9aff; } .t-bug { background: #e5493a; } .t-mejora { background: #f59e0b; } .t-epica { background: #8b5cf6; }
.prio { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.prio .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.p-critica { color: #d23f3f; } .p-alta { color: #e8641b; } .p-media { color: #d4a017; } .p-baja { color: #2f6fdb; }
.lchip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 15%, #fff); border: 1px solid color-mix(in srgb, var(--c) 28%, #fff); white-space: nowrap; }
.lchip.more { --c: #6b778c; }
button.lchip { cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; padding: 3px 9px; }
button.lchip.off { background: #fff; color: var(--muted); border-color: var(--line); }
button.lchip.off:hover { border-color: var(--c); color: var(--c); }
.vchip { display: inline-flex; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 600; background: #eef1f6; color: var(--text-2); white-space: nowrap; }
.mchip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.mchip .ic { width: 13px; height: 13px; }
.mchip.ok { color: var(--ok); }
.mchip.late { color: var(--bad); }
.mchip.dev { color: #6d43d6; }
.pts { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: #e7ebf2; color: var(--text-2); font-size: 11px; font-weight: 700; }
.pts.na { background: transparent; color: #c0c8d6; }
.tkey { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tkey.done { text-decoration: line-through; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------------- barra de filtros ---------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.toolbar select { width: auto; max-width: 190px; height: 34px; font-size: 13px; }
.tsearch { position: relative; }
.tsearch .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tsearch input { width: 220px; padding-left: 32px; height: 34px; }
.avatar-filter { display: flex; padding-left: 4px; }
.avatar-filter button { border: 0; background: none; padding: 0; margin-left: -4px; cursor: pointer; border-radius: 50%; }
.avatar-filter button .avatar { border: 2px solid var(--bg); transition: transform .1s; }
.avatar-filter button:hover .avatar { transform: translateY(-2px); }
.avatar-filter button.on .avatar { box-shadow: 0 0 0 2px var(--primary); border-color: #fff; }
.view-opts { display: flex; gap: 8px; align-items: center; }
.opt { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.opt select { margin: 0; height: 34px; }
.seg { display: inline-flex; background: #e9edf3; border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 6px; font: inherit; font-size: 12.5px; font-weight: 550; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------------- backlog ---------------- */
.backlog { display: flex; flex-direction: column; gap: 14px; }
.bl-section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.bl-section.sprint.active { border-color: #9fbdf5; box-shadow: 0 0 0 3px rgba(36, 86, 201, .08), var(--shadow); }
.bl-section.backlog { background: var(--surface-2); }
.bl-head { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.bl-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sprint-goal { display: flex; gap: 6px; align-items: center; color: var(--text-2); font-size: 12.5px; margin-top: 4px; }
.sprint-goal .ic { color: var(--gold); width: 14px; height: 14px; }
.bl-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-pts { display: inline-flex; gap: 3px; }
.cat-pts i { font-style: normal; font-size: 11px; font-weight: 700; min-width: 24px; height: 20px; display: grid; place-items: center; border-radius: 99px; padding: 0 6px; }
.cat-pts .c-todo { background: #e7ebf2; color: var(--text-2); } .cat-pts .c-progress { background: #dbe7fd; color: #1f55c2; } .cat-pts .c-done { background: #d9f2e4; color: #13754f; }
.bl-list { min-height: 44px; padding: 4px 0; transition: background .12s; }
.bl-list.over { background: #f0f5ff; }
.bl-row { display: grid; grid-template-columns: 16px 20px auto minmax(120px, 1fr) auto auto auto 20px 24px; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-top: 1px solid transparent; cursor: pointer; background: var(--surface); }
.bl-section.backlog .bl-row { background: transparent; }
.bl-row + .bl-row { border-top-color: var(--line-2); }
.bl-row:hover { background: #f5f8fd; }
.bl-row.dragging { opacity: .45; }
.bl-row.is-done .bl-title { color: var(--muted); text-decoration: line-through; }
.grip { color: #b7c0cf; cursor: grab; display: grid; place-items: center; }
.bl-row:hover .grip { color: var(--muted); }
.bl-title { font-weight: 500; }
.bl-meta { display: flex; gap: 6px; align-items: center; justify-content: flex-end; overflow: hidden; }
.bl-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 12.5px; border: 1.5px dashed var(--line); border-radius: 8px; margin: 6px 12px; }
.bl-add { padding: 6px 16px 10px; }
.inline-create { display: flex; gap: 8px; }
.inline-create select { width: 130px; }
.bl-new-sprint { display: flex; align-items: center; gap: 12px; }

/* ---------------- tablero ---------------- */
.sprint-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.sprint-banner > .ic { color: var(--primary); }
.sprint-banner .goal { display: inline-flex; gap: 5px; align-items: center; color: var(--text-2); font-size: 12.5px; flex: 1; min-width: 200px; }
.sprint-banner .goal .ic { color: var(--gold); }
.board { display: grid; grid-template-columns: repeat(var(--cols), minmax(250px, 1fr)); gap: 0 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.board-row { display: contents; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #e9edf3; border-radius: 10px 10px 0 0; position: sticky; top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.col-head .dot { background: var(--c); }
.col-head b { font-weight: 700; }
.col-head .count { margin-left: auto; background: #fff; border-radius: 99px; padding: 0 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: none; }
.col-head .count.over { background: var(--bad); color: #fff; }
.lane-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 14px 4px 6px; font-size: 13px; }
.col-body { background: #e9edf3; padding: 6px 8px 10px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; transition: background .12s, opacity .12s; }
.board-row:last-child .col-body, .col-body:last-child { border-radius: 0 0 10px 10px; }
.lane-title + .board-row .col-body { border-radius: 10px; }
.col-body.over { background: #dce5f5; box-shadow: inset 0 0 0 2px #9fbdf5; }
.col-body.deny { opacity: .45; background: repeating-linear-gradient(45deg, #e9edf3, #e9edf3 8px, #e2e6ed 8px, #e2e6ed 16px); }
.tcard { background: #fff; border-radius: 8px; padding: 10px 11px 9px; box-shadow: 0 1px 2px rgba(16, 24, 40, .1); cursor: pointer; border: 1px solid transparent; display: flex; flex-direction: column; gap: 8px; }
.tcard:hover { border-color: #b8c6dc; box-shadow: 0 4px 12px -4px rgba(16, 24, 40, .18); }
.tcard[draggable=true] { cursor: grab; }
.tcard.dragging { opacity: .4; transform: rotate(1.5deg); }
.tcard.is-late { box-shadow: inset 3px 0 0 var(--bad), 0 1px 2px rgba(16, 24, 40, .1); }
.tcard.is-done .tc-title { color: var(--muted); }
.tc-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.tc-title { font-weight: 500; line-height: 1.4; color: var(--text); }
.tc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-foot { display: flex; align-items: center; gap: 6px; }

/* ---------------- lista ---------------- */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; }
.group.current { border-color: #9fbdf5; box-shadow: 0 0 0 3px rgba(36, 86, 201, .08); }
.group.late-group { border-color: #f1bcbc; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; background: var(--surface-2); }
.gtitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gstats { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); min-width: 260px; }
.gstats b { color: var(--navy); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
table.tasks { min-width: 980px; }
table.tasks th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: #fff; }
table.tasks th.sortable { cursor: pointer; }
table.tasks th.sortable:hover, table.tasks th.sorted { color: var(--primary); }
table.tasks td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tasks tbody tr { cursor: pointer; }
table.tasks tbody tr:hover { background: #f7f9fd; }
table.tasks tr:last-child td { border-bottom: 0; }
table.tasks tr.is-done .ttl { color: var(--muted); text-decoration: line-through; }
table.tasks tr.is-late { background: #fffafa; }
table.preview tbody tr { cursor: default; }
td.c-key { white-space: nowrap; width: 110px; }
td.c-key .tbadge { margin-right: 7px; vertical-align: middle; }
td.c-title { min-width: 280px; }
td.c-title .ttl { font-weight: 500; margin-right: 8px; }
td.c-title .lchip, td.c-title .mchip { margin-right: 5px; }
.c-status { width: 150px; }
td.c-person { width: 170px; max-width: 170px; }
td.c-person { display: table-cell; }
td.c-person .avatar { margin-right: 7px; vertical-align: middle; }
td.c-person .ellipsis { display: inline-block; max-width: 120px; vertical-align: middle; }
.c-prio { width: 56px; text-align: center; }
td.c-sprint { max-width: 180px; }
td.c-sprint .vchip { margin-left: 5px; }
.c-dates { width: 120px; white-space: nowrap; }
.c-pts { width: 50px; text-align: center; font-weight: 600; color: var(--text-2); }
.c-prog { width: 130px; white-space: nowrap; }
.c-prog .mchip + .mchip { margin-left: 8px; }
.st-select { width: auto; height: 28px; padding: 0 26px 0 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; border-radius: 6px; cursor: pointer;
  color: color-mix(in srgb, var(--c) 78%, #000); background-color: color-mix(in srgb, var(--c) 13%, #fff); border-color: color-mix(in srgb, var(--c) 25%, #fff); }
table.simple { font-size: 13px; }
table.simple th, table.simple td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.simple th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
table.simple th.num, table.simple td.num { text-align: right; }
table.simple input, table.simple select { height: 32px; }
.perms td:not(:first-child), .perms th:not(:first-child) { text-align: center; }

/* ---------------- cronograma (Gantt) ---------------- */
.gantt-wrap { overflow: auto; max-height: calc(100vh - 250px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.gantt { position: relative; width: calc(var(--lw) + var(--w)); }
.g-row { display: flex; min-height: 36px; border-bottom: 1px solid var(--line-2); }
.g-label { position: sticky; left: 0; z-index: 2; width: var(--lw); flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; cursor: pointer; overflow: hidden; }
.g-label:hover { background: #f7f9fd; }
.g-label .tkey { font-size: 11.5px; }
.g-track { position: relative; width: var(--w); flex: none; background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px); background-size: var(--wk) 100%; }
.g-track::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--tx); width: 2px; background: var(--gold); opacity: .8; z-index: 1; pointer-events: none; }
.g-header { position: sticky; top: 0; z-index: 5; min-height: 58px; background: #fff; }
.g-header .g-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; cursor: default; z-index: 6; }
.g-header .g-track { background: #fff; background-image: none; }
.g-months { position: relative; height: 24px; border-bottom: 1px solid var(--line-2); }
.g-month { position: absolute; top: 0; height: 24px; padding: 4px 8px; font-size: 11.5px; font-weight: 650; color: var(--text-2); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.g-ticks { position: relative; height: 34px; }
.g-tick { position: absolute; top: 0; height: 34px; font-size: 10.5px; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--line-2); line-height: 1.1; }
.g-tick b { font-size: 11.5px; color: var(--text-2); }
.g-tick.we { background: #f7f8fb; }
.g-tick.today { background: var(--gold-soft); }
.g-tick.today b { color: #7a5d05; }
.g-sprint { position: absolute; bottom: 0; height: 6px; background: #c7d7f7; border-radius: 3px 3px 0 0; font-size: 0; }
.g-sprint.active { background: var(--primary); }
.g-group { background: var(--surface-2); min-height: 34px; }
.g-group .g-label { background: var(--surface-2); cursor: default; justify-content: space-between; }
.g-span { position: absolute; top: 14px; height: 8px; border-radius: 99px; background: #d5deec; overflow: hidden; }
.g-span i { display: block; height: 100%; background: #8aa6d6; }
.g-milestone { position: absolute; top: 10px; width: 14px; height: 14px; background: var(--gold); transform: translateX(-50%) rotate(45deg); border-radius: 2px; box-shadow: 0 0 0 2px #fff; }
.g-bar { position: absolute; top: 7px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--c) 22%, #fff); border: 1px solid color-mix(in srgb, var(--c) 55%, #fff); overflow: hidden; display: flex; align-items: center; cursor: pointer; z-index: 2; user-select: none; touch-action: none; }
.g-bar.editable { cursor: grab; }
.g-bar.editable:active { cursor: grabbing; }
.g-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--c) 55%, #fff); }
.g-bar span { position: relative; padding: 0 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: color-mix(in srgb, var(--c) 30%, #000); }
.g-bar.late { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.g-bar.done { opacity: .6; }
.g-resize { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.g-resize:hover { background: rgba(0, 0, 0, .12); }
.g-after { position: absolute; top: 9px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; z-index: 2; pointer-events: none; }
.gantt-note { margin-top: 10px; display: flex; align-items: center; gap: 6px; }

/* ---------------- calendario ---------------- */
.cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-nav h3 { min-width: 170px; text-align: center; font-size: 17px; }
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 8px 10px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal-day { min-height: 122px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: background .12s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.we { background: #fbfcfd; }
.cal-day.out { background: #f6f7fa; }
.cal-day.out .cal-num { color: #b3bccb; }
.cal-day.today { background: #f5f8ff; }
.cal-day.today .cal-num span, .cal-day.today .cal-num { color: var(--primary); font-weight: 800; }
.cal-day.over { background: #e8efff; box-shadow: inset 0 0 0 2px #9fbdf5; }
.cal-num { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 0 2px 2px; }
.cal-add { opacity: 0; border: 0; background: #eef1f6; border-radius: 5px; width: 20px; height: 20px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.cal-add .ic { width: 12px; height: 12px; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-chip { display: flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 6px 2px 3px; border-radius: 5px; background: color-mix(in srgb, var(--c) 12%, #fff); border-left: 3px solid var(--c); cursor: pointer; min-width: 0; }
.cal-chip:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.cal-chip .tbadge { width: 16px; height: 16px; }
.cal-chip .tbadge .ic { width: 10px; height: 10px; }
.cal-chip small { color: var(--muted); font-size: 10px; margin-left: auto; }
.cal-chip.done { opacity: .6; }
.cal-chip.done span { text-decoration: line-through; }
.cal-chip.late { border-left-color: var(--bad); }
.cal-more { border: 0; background: none; color: var(--primary); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; text-align: left; padding: 2px 4px; }
.cal-mark { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 650; color: #1f55c2; background: #e8efff; border-radius: 4px; padding: 1px 5px; }
.cal-mark .ic { width: 11px; height: 11px; }
.cal-mark.end { color: #7a5d05; background: var(--gold-soft); }
.cal-mark.ver { color: #6d43d6; background: #f1ebff; }

/* ---------------- informes ---------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.kpi > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.kpi b { display: block; font-size: 22px; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi.accent > .ic { background: var(--gold-soft); color: #9a7b12; }
.kpi.bad > .ic { background: var(--bad-soft); color: var(--bad); }
.kpi.bad b { color: var(--bad); }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-grid > .card { margin: 0; }
.span2 { grid-column: 1 / -1; }
.chart-box { position: relative; height: 280px; }
.chart-card.span2 .chart-box { height: 320px; }
.chart-empty { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); gap: 6px; text-align: center; }
.chart-empty .ic { width: 30px; height: 30px; opacity: .5; }
.team-table td { white-space: nowrap; }
.team-table td:first-child .avatar { margin-right: 8px; vertical-align: middle; }
.loading { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 60px; color: var(--muted); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- ventanas modales ---------------- */
dialog.modal { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal.lg { width: min(760px, calc(100vw - 24px)); }
dialog.modal.xl { width: min(1120px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(11, 31, 58, .5); backdrop-filter: blur(2px); }
dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); margin: 0; }
dialog header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
dialog header .x { margin-left: auto; }
dialog .body { padding: 18px; overflow-y: auto; }
dialog footer { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.x { border: 0; background: transparent; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; display: inline-grid; place-items: center; }
.x:hover { background: #eef1f6; color: var(--text); }
.x .ic { width: 18px; height: 18px; }
.x.sm .ic { width: 14px; height: 14px; }
.task-head { justify-content: space-between; }
.th-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.th-key { font-weight: 700; color: var(--text-2); }
.th-actions { display: flex; gap: 2px; }
.task-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 18px 22px !important; }
.tmain { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.title-input { font-size: 21px; font-weight: 650; border-color: transparent; padding: 6px 8px; margin-left: -8px; resize: none; overflow: hidden; color: var(--navy); line-height: 1.3; }
.title-input:hover:not(:disabled) { border-color: var(--line); }
.title-input:disabled { background: transparent; }
.field .flabel, .flabel { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.bug-box { border: 1px solid #f5c6c0; background: #fff8f7; border-radius: 10px; padding: 12px 14px 2px; }
.bug-box .flabel { color: #b42318; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.box-head b { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--navy); }
.box .progress { margin-bottom: 8px; }
.check-list { list-style: none; padding: 0; margin: 0 0 8px; }
.check-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.check-list li.done .ctext, .check-list li.done span { text-decoration: line-through; color: var(--muted); }
.check-list .ctext { border-color: transparent; background: transparent; height: 30px; padding: 4px 6px; }
.check-list .ctext:hover, .check-list .ctext:focus { border-color: var(--line); background: #fff; }
.check-list li .x { opacity: 0; }
.check-list li:hover .x { opacity: 1; }
.empty-li { padding: 4px 0 !important; }
.add-row { display: flex; gap: 6px; }
.add-row input { height: 32px; }
.hint { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #7a5d05; margin-top: 6px; }
.tside { display: flex; flex-direction: column; gap: 12px; align-self: start; position: sticky; top: 0; }
.status-select { height: 38px; font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .02em; color: color-mix(in srgb, var(--c) 78%, #000); background-color: color-mix(in srgb, var(--c) 14%, #fff); border-color: color-mix(in srgb, var(--c) 30%, #fff); }
dl.props { display: grid; grid-template-columns: 92px 1fr; gap: 8px 10px; margin: 0; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
dl.props dt { font-size: 12px; color: var(--muted); font-weight: 550; }
dl.props dd { margin: 0; min-width: 0; }
dl.props select, dl.props input { height: 32px; font-size: 13px; }
.label-pick { display: flex; flex-wrap: wrap; gap: 5px; }
.lab-new { width: 90px !important; height: 26px !important; font-size: 12px; padding: 2px 8px; }
.quick { display: flex; flex-wrap: wrap; gap: 5px; }
.quick button { border: 1px solid var(--line); background: #fff; border-radius: 99px; font: inherit; font-size: 11.5px; padding: 3px 10px; cursor: pointer; color: var(--text-2); }
.quick button:hover { border-color: var(--primary); color: var(--primary); }
.repeat { border: 1px dashed #cbd4e1; border-radius: 10px; padding: 10px; }
.repeat .grid2 { gap: 6px; }
.repeat select, .repeat input { height: 32px; font-size: 12.5px; }
.note { display: flex; gap: 7px; font-size: 12px; background: var(--warn-soft); padding: 8px 10px; border-radius: 8px; color: #7a5210; margin: 0; }
.meta-line { text-align: right; }
.tabs-mini { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs-mini button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 13px; padding: 8px 10px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.tabs-mini button.on { color: var(--primary); border-bottom-color: var(--primary); }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment + .comment { border-top: 1px solid var(--line-2); }
.cbody { flex: 1; min-width: 0; }
.chead { display: flex; align-items: center; gap: 8px; }
.cbody p { margin: 3px 0 0; }
.composer { border: 1px solid #d3dae6; border-radius: 10px; padding: 8px; margin-top: 8px; transition: .12s; }
.composer:focus-within { border-color: #86a8ec; box-shadow: 0 0 0 3px rgba(36, 86, 201, .12); }
.composer.over { border-color: var(--gold); background: var(--gold-soft); }
.composer textarea { border: 0; box-shadow: none !important; padding: 4px; }
.composer-actions { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line-2); padding-top: 6px; margin-top: 4px; }
.composer-actions label { margin: 0; }
.history { list-style: none; padding: 8px 0; margin: 0; }
.history li { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; }
.dev-hint { display: grid; gap: 6px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.dev-hint > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dev-hint .muted { width: 120px; flex: none; }
.dev-hint code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-group { margin-bottom: 8px; }
.dev-group > .muted { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.dev-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 7px; margin-bottom: 4px; font-size: 13px; }
.prov { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.pr-state { font-size: 10.5px; font-weight: 700; text-transform: uppercase; padding: 1px 7px; border-radius: 5px; }
.pr-state.s-open { background: #dcfce7; color: #166534; } .pr-state.s-merged { background: #f1ebff; color: #6d43d6; } .pr-state.s-closed { background: #fee2e2; color: #b42323; }

/* adjuntos */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.file-grid.sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: 6px 0 0; }
.file-grid > p { grid-column: 1 / -1; margin: 0; }
.fitem { position: relative; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.fitem.img > a { display: block; aspect-ratio: 4 / 3; background: #eef1f6; }
.fitem.img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.fitem.doc { flex-direction: row; align-items: center; gap: 8px; padding: 8px; }
.ficon { display: flex; flex-direction: column; align-items: center; color: var(--primary); flex: none; }
.ficon .ic { width: 22px; height: 22px; }
.ficon small { font-size: 9px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.fname { padding: 5px 8px; font-size: 12px; min-width: 0; }
.fitem.doc .fname { padding: 0; }
.fname a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.fmeta { display: block; color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdel { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(11, 31, 58, .75); color: #fff; cursor: pointer; opacity: 0; transition: .15s; display: grid; place-items: center; }
.fdel .ic { width: 12px; height: 12px; }
.fitem:hover .fdel, .fdel:focus { opacity: 1; }
.dropzone { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; text-align: center; border: 1.5px dashed #c9d2df; border-radius: 9px; padding: 12px; font-size: 12.5px; color: var(--muted); cursor: pointer; margin: 0; font-weight: 400; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pending { display: flex; flex-wrap: wrap; gap: 6px; }
.pending:empty { display: none; }
.pchip { display: inline-flex; align-items: center; gap: 6px; background: #eef1f6; border-radius: 8px; padding: 3px 6px; font-size: 12px; max-width: 260px; }
.pchip img { width: 32px; height: 32px; object-fit: cover; border-radius: 5px; }
.pchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip small { color: var(--muted); white-space: nowrap; }
.pchip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); display: grid; }
.lightbox { position: fixed; inset: 0; background: rgba(8, 18, 34, .9); z-index: 4000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #fff; }
.lb-bar { display: flex; gap: 8px; }
.complete-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.complete-sum div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.complete-sum b { display: block; font-size: 26px; color: var(--navy); }
.complete-sum span { color: var(--muted); font-size: 12px; }

/* ---------------- configuración ---------------- */
.form-card { max-width: none; }
.card-top select { width: auto; height: 32px; }
.card .progress, .grid-cards .progress { flex: none; }
.pcard-head h3 { white-space: normal; overflow: visible; }
.avatars .avatar { width: 26px; height: 26px; font-size: 9px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: #f4c4c4; flex-wrap: wrap; }
.wf-table td { vertical-align: middle; }
.w-num { width: 70px !important; }
.roles-cell { display: flex; gap: 10px; flex-wrap: wrap; }
.del-status { position: relative; }
.del-status summary { list-style: none; cursor: pointer; }
.del-status summary::-webkit-details-marker { display: none; }
.del-status .pop { position: absolute; right: 0; top: 32px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; box-shadow: var(--shadow-lg); width: 240px; }
.add-status { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.add-status input:not([type=color]) { max-width: 280px; }
.add-status select { width: auto; }
.matrix th, .matrix td { text-align: center; }
.matrix th:first-child { text-align: left; }
.copy-field { display: flex; gap: 8px; margin-top: 5px; }
.copy-field input { font-family: ui-monospace, Consolas, monospace; font-size: 12px; margin: 0; }
.providers { margin: 14px 0; }
.prov-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.prov-card ol { padding-left: 18px; margin: 6px 0 0; }
.prov-card li { margin-bottom: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 10px; }
.working-on { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.working-on a { color: var(--text-2); }

/* importación y actividad */
.import-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.import-grid h3 { margin: 4px 0 10px; }
.drop { border: 2px dashed #c3cedf; border-radius: 12px; padding: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; background: var(--surface-2); position: relative; margin: 0; }
.drop:hover { border-color: var(--primary); background: var(--primary-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; }
.drop > .ic { width: 28px; height: 28px; color: var(--primary); }
.drop span { font-size: 14px; color: var(--text); }
.help table td { vertical-align: top; }
.mapping { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.timeline li.day { border: 0; padding: 14px 0 4px; font-weight: 700; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------------- acceso e instalación ---------------- */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% 0%, #1d3f70 0%, transparent 60%), var(--navy); }
.auth-wrap { display: grid; grid-template-columns: 1.1fr 1fr; width: min(940px, 100%); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth-side { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #c5d0e2; padding: 44px 40px; display: flex; flex-direction: column; gap: 22px; }
.auth-side h2 { color: #fff; font-size: 24px; line-height: 1.3; font-weight: 700; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li .ic { color: var(--gold); width: 18px; height: 18px; }
.brand.big { font-size: 20px; padding: 0; }
.auth-card { padding: 44px 40px; background: #fff; width: 100%; }
.auth-card h1 { margin-bottom: 4px; }
.auth-card > p.muted { margin-bottom: 20px; }
.auth-card.wide { width: min(640px, 100%); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .task-body { grid-template-columns: 1fr; }
  .tside { position: static; }
  .report-grid { grid-template-columns: 1fr; }
  .import-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body.app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 100; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(11, 31, 58, .4); z-index: 90; }
  .only-mobile { display: inline-grid; }
  .hide-mobile { display: none !important; }
  .topbar { padding: 0 12px; gap: 8px; }
  .content { padding: 16px 14px 60px; }
  .bl-row { grid-template-columns: 16px 20px auto minmax(0, 1fr) 24px; gap: 8px; }
  .bl-row .bl-meta, .bl-row .pts, .bl-row .prio, .bl-row .status-pill { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .grid2, .grid3, .method-pick { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .toolbar select, .tsearch input { max-width: none; width: 100%; }
  .toolbar > * { flex: 1 1 45%; }
  .tsearch { flex-basis: 100%; }
  .board { grid-template-columns: repeat(var(--cols), 80vw); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .mini-stats.five { grid-template-columns: repeat(3, 1fr); }
  .cal-day { min-height: 80px; padding: 3px; }
  .cal-chip span, .cal-chip small { display: none; }
  h1 { font-size: 19px; }
  dl.props { grid-template-columns: 80px 1fr; }
}
@media print {
  .sidebar, .topbar, .toolbar, #viewActions, .scrim { display: none !important; }
  body.app { display: block; background: #fff; }
  .content { padding: 0; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
}


/* =========================================================================
   Tema corporativo (azul marino + dorado) · estilo del prototipo de referencia
   ========================================================================= */
h1, h2, h3, .brand, .big-pct b, .kpi b, .mini-stats b, .complete-sum b, .cal-nav h3 { font-family: var(--font-h); }
h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
h2, h3 { font-weight: 700; color: var(--text); }
a { color: var(--sky); }

/* barra lateral */
.sidebar { background: linear-gradient(180deg, #0B3E7B 0%, #082F5E 55%, #06244A 100%); box-shadow: inset -1px 0 0 rgba(255,255,255,.04); padding: 0 0 12px; gap: 0; color: rgba(255,255,255,.78); }
.brand { padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 18px; font-weight: 800; }
.logo { background: var(--gold); color: #2B1F00; border-radius: 9px; }
.side-user { display: flex; align-items: center; gap: 10px; margin: 14px 16px 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.08); color: #fff; }
.side-user:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.side-user .avatar { width: 36px; height: 36px; background: var(--gold); color: #2B1F00; font-size: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.side-user b { display: block; font-size: 13px; font-weight: 600; }
.side-user small { display: block; color: rgba(255,255,255,.65); font-size: 11.5px; }
.side-user .online { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.25); margin-left: auto; flex: none; }
.side-title { font-size: 10.5px; letter-spacing: .12em; color: rgba(255,255,255,.45); padding: 16px 26px 6px; font-weight: 600; }
.side-nav a, .side-link { margin: 2px 12px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; color: rgba(255,255,255,.78); font-weight: 500; position: relative; }
.side-nav a:hover, .side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.on { background: rgba(255,255,255,.13); color: #fff; box-shadow: none; font-weight: 600; }
.side-nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.side-nav a .ic, .side-link .ic { width: 18px; height: 18px; }
.side-project { margin: 6px 0 0; padding: 0; border: 0; }
.side-project-head { margin: 4px 16px 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.side-project-head b { font-size: 13px; }
.side-section { margin-top: 0; }
.side-nav.projects a { font-size: 13px; padding: 8px 14px; }
.side-empty { padding: 4px 26px; }
.side-foot { border-top: 1px solid rgba(255,255,255,.07); padding-top: 4px; margin-top: auto; }

/* encabezado */
.topbar { height: 68px; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(10px); padding: 0 28px; gap: 14px; }
.head-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.head-title .crumbs { font-size: 11.5px; gap: 5px; flex: none; }
.head-title .crumbs .sep { width: 11px; height: 11px; }
.head-title .crumbs .ic.home { width: 12px; height: 12px; }
.head-title h1#crumbView { font-size: 17px; margin: 1px 0 0; font-weight: 800; }
.search input { border-radius: 12px; background: var(--surface-2); height: 40px; padding-right: 36px; }
.search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #fff; }
.head-user { display: flex; align-items: center; gap: 10px; text-align: right; line-height: 1.2; color: var(--text); padding-left: 6px; }
.head-user:hover { text-decoration: none; }
.head-user small { display: block; color: var(--muted); font-size: 11.5px; }
.head-user b { font-weight: 600; font-size: 13.5px; }
.head-user .avatar { width: 38px; height: 38px; background: var(--navy); color: #fff; font-size: 12.5px; }
.content { padding: 26px 28px 64px; }

/* botones */
.btn { height: 38px; border-radius: 10px; font-weight: 600; font-size: 13px; }
.btn.primary { background: var(--navy); border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2B1F00; }
.btn.gold:hover { background: var(--gold-d); }
.btn.teal { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.btn.teal:hover { background: #0B8796; }
.btn.sm { height: 32px; border-radius: 8px; }
input, select, textarea { border-radius: 10px; border-color: #D9DFE8; }
input, select { height: 40px; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(47, 128, 209, .15); }

/* tarjetas y bloques */
.card, .panel, .group, .bl-section, .calendar, .gantt-wrap, .kpi, .empty { border-radius: var(--radius); }
.card, .panel, .group, .bl-section, .kpi { box-shadow: var(--shadow); }
a.card:hover { box-shadow: var(--shadow-m); }
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 30px 28px; border-radius: var(--radius); color: #fff; margin-bottom: 20px;
  background: linear-gradient(115deg, #0A3A73 0%, #1560B8 60%, #2F80D1 100%); box-shadow: 0 10px 30px -12px rgba(10, 58, 115, .55); }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244,180,0,.35), transparent 65%); }
.hero h1 { color: #fff; font-size: 26px; }
.hero p { color: rgba(255,255,255,.85); margin-top: 6px; }
.hero .actions { position: relative; z-index: 1; }
.hero .btn:not(.gold) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; box-shadow: none; }
.hero .btn:not(.gold):hover { background: rgba(255,255,255,.2); }
.hero select { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.hero select option { color: var(--text); }
.hero .late { color: #FFD166 !important; }

/* indicadores con borde de color (KPI) */
.kpi { position: relative; border-left: 4px solid var(--k, var(--sky)); padding: 16px; gap: 14px; }
.kpi > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: color-mix(in srgb, var(--k, var(--sky)) 12%, #fff); color: var(--k, var(--sky)); }
.kpi span { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; font-weight: 700; color: var(--muted); display: block; }
.kpi b { font-size: 24px; font-weight: 800; color: var(--text); order: 2; }
.kpi > div { display: flex; flex-direction: column-reverse; }
.kpi:nth-child(5n+1) { --k: #1F6FB8; } .kpi:nth-child(5n+2) { --k: #22A55A; } .kpi:nth-child(5n+3) { --k: #9B4FC0; } .kpi:nth-child(5n+4) { --k: #E08A1E; } .kpi:nth-child(5n+5) { --k: #0E9AAB; }
.kpi.accent { --k: #F4B400; } .kpi.bad { --k: #E5484D; }
.kpi.accent > .ic { background: var(--gold-soft); color: #B58500; }
.mini-stats > div { border-radius: 12px; }
.mini-stats .accent { background: var(--gold-soft); border-color: #F5E3A6; }

/* tablas */
table.tasks th, table.simple th { background: var(--surface-2); color: #5B6678; font-size: 11px; letter-spacing: .06em; font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.tasks td, table.simple td { padding: 11px 14px; }
.group-head { background: #fff; padding: 14px 18px; }
.status-pill, .st-select { border-radius: 99px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; }
.status-pill { padding: 3px 11px 3px 9px; }
.st-select { padding-left: 12px; }
.status-select { border-radius: 12px; text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.chip { border-radius: 99px; font-weight: 600; }
.badge-active { border-radius: 99px; background: var(--ok-soft); color: #15803D; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); border-bottom-width: 3px; }
.seg { background: #EEF1F5; border-radius: 10px; }
.progress span { background: linear-gradient(90deg, #1560B8, #2F80D1); }
.avatar { background: #DCE7F5; color: var(--navy); }
.avatar.me { background: var(--gold); color: #2B1F00; }
.toast { background: #15202E; border-radius: 12px; }
.alert.warn { background: var(--warn-soft); border-color: #F3DDA0; color: #6B4B00; }
.col-head, .col-body { background: #EBEFF5; }
.col-head { border-radius: 14px 14px 0 0; }
.board-row:last-child .col-body, .col-body:last-child { border-radius: 0 0 14px 14px; }
.tcard { border-radius: 12px; }
dialog.modal { border-radius: 18px; }
.empty-ic { background: var(--primary-soft); color: var(--navy); border-radius: 18px; }
.side-nav a .badge-n { margin-left: auto; background: var(--gold); color: #3A2A00; font-size: 11px; font-weight: 700; border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; }

/* acceso: pantalla dividida */
body.auth { padding: 0; place-items: stretch; background: #fff; }
.auth-wrap { grid-template-columns: 1.05fr 1fr; width: 100%; min-height: 100vh; border-radius: 0; box-shadow: none; }
.auth-side { position: relative; overflow: hidden; justify-content: center; padding: 48px 56px; gap: 18px;
  background: linear-gradient(135deg, rgba(6,36,74,.96), rgba(10,58,115,.88) 50%, rgba(21,96,184,.8)), repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px), #0A3A73; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(244,180,0,.28), transparent 65%); }
.auth-side .brand.big { position: absolute; top: 36px; left: 56px; color: #fff; }
.auth-side h2 { font-family: var(--font-h); font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; max-width: 520px; }
.auth-side h2 em { font-style: normal; color: var(--gold); display: block; }
.auth-side p { color: rgba(255,255,255,.85); font-size: 15px; max-width: 520px; }
.auth-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; max-width: 580px; }
.auth-feats div { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px; font-size: 12px; color: rgba(255,255,255,.8); }
.auth-feats b { display: block; color: #fff; font-size: 12.5px; margin: 6px 0 2px; }
.auth-feats .ic { color: var(--gold); width: 20px; height: 20px; }
.auth-side .copy { position: absolute; bottom: 30px; left: 56px; font-size: 12px; color: rgba(255,255,255,.6); }
.auth-card { display: flex; flex-direction: column; justify-content: center; max-width: 440px; margin: 0 auto; padding: 48px 32px; }
.auth-card .brand.big { color: var(--navy); margin-bottom: 18px; font-size: 22px; }
.auth-card h1 { font-size: 26px; }
.auth-card .btn.block { height: 46px; border-radius: 12px; }
.auth-card .foot { margin-top: auto; padding-top: 30px; text-align: center; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } .head-user span { display: none; } }
.view-head h1 { display: none; }
.view-head { align-items: center; margin-bottom: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi span { line-height: 1.3; }
.kpi > div { min-width: 0; }
body.auth > .auth-card.wide { max-width: 640px; margin: 40px auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-m); padding: 32px; display: block; }
body.auth:has(> .auth-card.wide) { background: var(--bg); display: block; }
