/* SII Recruitment Hub — prototipo Fase 1 (M1 + M2)
   Branding: SII "Let's Tech Together" — Lato / Lato Italic, Navy, Midnight, Fucsia, Amarillo */
:root {
  --navy: #1c2445;
  --midnight: #004278;
  --fuchsia: #da277a;
  --yellow: #ffeb7a;
  --sky: #b8d1ec;
  --blue: #007eb5;
  --blue-2: #5d94d0;
  --green: #097f03;
  --orange: #ca4e00;
  --red: #d30012;
  --purple: #550875;
  --grey-1: #434649;
  --grey-2: #828991;
  --grey-3: #d3d3d3;

  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --border: #e2e5ee;
  --text: #1c2445;
  --text-2: #4a5170;
  --text-3: #7d849c;
  --grad: linear-gradient(90deg, #ffeb7a 0%, #f2965c 45%, #da277a 100%);
  --grad-navy: linear-gradient(160deg, #1c2445 0%, #1c2445 55%, #004278 100%);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 36, 69, .06), 0 2px 8px rgba(28, 36, 69, .05);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--midnight); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); }
.it { font-style: italic; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  background: var(--grad-navy);
  color: #fff;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand .sii { display: block; width: 84px; height: auto; }
.brand .prod { margin-top: 10px; font-style: italic; font-weight: 900; font-size: 19px; letter-spacing: .1px; color: #fff; }
.brand .bar { margin-top: 12px; height: 3px; border-radius: 3px; background: var(--grad); width: 64px; }

.nav { padding: 10px 0 24px; flex: 1; }
.nav .group { padding: 16px 20px 6px; font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 8px; }
.nav .group .ms { background: rgba(255,255,255,.12); color: #fff; border-radius: 4px; padding: 1px 6px; letter-spacing: .5px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px 8px 22px; color: rgba(255,255,255,.82);
  font-size: 13.5px; position: relative; text-decoration: none;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--yellow), var(--fuchsia)); }
.nav a .ico { width: 18px; text-align: center; opacity: .9; }
.nav a .count { margin-left: auto; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; line-height: 1; background: var(--fuchsia); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; }
.nav a.locked { color: rgba(255,255,255,.42); }
.nav a.locked .tag { margin-left: auto; font-size: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 0 5px; }
.side .foot { padding: 16px 20px; font-size: 11px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; }
.side .foot .ltt { display: block; width: 100%; max-width: 196px; height: auto; margin-bottom: 8px; }
.side .foot i { color: rgba(255,255,255,.7); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 12px 28px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
}
.thread { height: 3px; background: var(--grad); position: sticky; top: calc(57px + env(safe-area-inset-top, 0px)); z-index: 19; }
.crumbs { font-size: 12.5px; color: var(--text-3); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs b { color: var(--text); }
.role { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.role select { font: inherit; font-size: 12.5px; border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; color: var(--text); background: var(--surface-2); }
.user { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--midnight); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.avatar.f { background: var(--fuchsia); }
.avatar.y { background: var(--yellow); color: var(--navy); }
.avatar.s { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.l { width: 52px; height: 52px; font-size: 18px; }

.view { padding: 26px 28px 60px; max-width: 1360px; width: 100%; }

/* ---------- Page header ---------- */
.ph { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ph .t { flex: 1; min-width: 260px; }
.ph h1 { font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: -.2px; }
.ph p { margin: 4px 0 0; color: var(--text-2); max-width: 760px; }
.ph .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--fuchsia); font-weight: 700; margin-bottom: 4px; }

/* ---------- Components ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > .hd { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.card > .hd h3 { font-size: 15px; font-weight: 900; flex: 1; }
.card > .hd .sub { font-size: 12px; color: var(--text-3); }
.card > .bd { padding: 16px 18px; }
.card > .bd.flush { padding: 0; }
.card > .ft { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.sp { flex: 1; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .l { font-size: 12px; color: var(--text-3); }
.kpi .v { font-size: 30px; font-weight: 900; color: var(--navy); line-height: 1.1; margin-top: 4px; }
.kpi .d { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent, var(--midnight)); opacity: .85; }

.btn {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  border-radius: 8px; border: 1px solid transparent; padding: 8px 14px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--fuchsia); color: #fff; }
.btn.primary:hover { background: #c21d6b; }
.btn.navy { background: var(--midnight); color: #fff; }
.btn.navy:hover { background: #00365f; }
.btn.ghost { background: var(--surface); color: var(--navy); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); border-color: #cdd2df; }
.btn.danger { background: #fff; color: var(--red); border-color: #f2c4c8; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; }
.iconbtn { background: none; border: none; cursor: pointer; color: var(--text-3); padding: 2px 4px; border-radius: 4px; font-size: 13px; }
.iconbtn:hover { background: var(--surface-2); color: var(--fuchsia); }

/* Etiquetas de estado: misma altura (22px), texto centrado, punto de color, sin saltos de línea */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; line-height: 1; font-size: 11.5px; font-weight: 700; letter-spacing: .1px; border-radius: 999px; padding: 0 9px 0 8px; white-space: nowrap; vertical-align: middle; background: #eef0f6; color: var(--text-2); }
.badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain { padding: 0 9px; }
.badge.plain::before { display: none; }
.name .badge, td .badge, h3 .badge { margin-left: 2px; }
.b-green { background: #e6f4e5; color: var(--green); }
.b-blue { background: #e4f1f8; color: var(--blue); }
.b-mid { background: #e3ebf3; color: var(--midnight); }
.b-orange { background: #fbeee4; color: var(--orange); }
.b-red { background: #fce6e8; color: var(--red); }
.b-fuch { background: #fbe6f0; color: var(--fuchsia); }
.b-purple { background: #efe5f4; color: var(--purple); }
.b-grey { background: #eef0f3; color: var(--grey-1); }
.b-yellow { background: #fff7cc; color: #7a6400; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; line-height: 1; font-size: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); border-radius: 6px; padding: 0 8px; white-space: nowrap; vertical-align: middle; }
.chip.more { color: var(--text-3); background: transparent; border-style: dashed; }
.chip.req { border-color: #f3c3da; background: #fdf1f7; color: #a01a59; }
/* Requisitos: texto largo que debe partirse en varias líneas dentro de la tarjeta */
.chip.wrap { display: flex; align-items: flex-start; height: auto; min-height: 24px; white-space: normal; line-height: 1.4; padding: 4px 9px; max-width: 100%; }

/* provenance tags */
.src { display: inline-flex; align-items: center; height: 18px; line-height: 1; font-size: 10.5px; font-weight: 700; border-radius: 4px; padding: 0 6px; letter-spacing: .2px; white-space: nowrap; vertical-align: middle; }
.src-buk { background: #e3ebf3; color: var(--midnight); }
.src-form { background: #e4f1f8; color: var(--blue); }
.src-cv { background: #e6f4e5; color: var(--green); }
.src-norm { background: #eef0f3; color: var(--grey-1); }
.src-ai { background: #efe5f4; color: var(--purple); }
.src-user { background: #fff3c4; color: #7a6400; }
.src-li { background: #e4f1f8; color: #0a66c2; }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fbf6f9; }
.tbl .name { font-weight: 700; color: var(--navy); }
.tbl .sub { font-size: 12px; color: var(--text-3); }
.tbl-wrap { overflow-x: auto; }

/* forms */
.toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.input, select.input, textarea.input {
  font: inherit; font-size: 13.5px; color: var(--text); background: #fff;
  border: 1px solid #d4d8e4; border-radius: 8px; padding: 8px 11px; width: 100%;
}
.input:focus { outline: 2px solid rgba(218, 39, 122, .25); border-color: var(--fuchsia); }
.input.err { border-color: var(--red); background: #fffafa; }
textarea.input { resize: vertical; min-height: 80px; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search .input { padding-left: 32px; }
.search::before { content: "⌕"; position: absolute; left: 11px; top: 50%; transform: translateY(-52%); color: var(--text-3); font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 700; color: var(--text-2); }
.field label .req { color: var(--fuchsia); }
.field .hint { font-size: 11.5px; color: var(--text-3); }
.field .error { font-size: 11.5px; color: var(--red); font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; }
.form-section { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fuchsia); font-weight: 900; grid-column: span 4; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border); }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* definition list */
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 0; }
.dl > div { padding: 9px 0; border-bottom: 1px solid var(--border); }
.dl > .k { color: var(--text-3); font-size: 12.5px; }
.dl > .v { font-weight: 400; color: var(--navy); }
.dl > div:nth-last-child(-n+2) { border-bottom: none; }

/* profile fields */
.pf { display: grid; grid-template-columns: 150px 1fr auto auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.pf:last-child { border-bottom: none; }
.pf .k { font-size: 12.5px; color: var(--text-3); }
.pf .v { font-weight: 400; color: var(--navy); min-width: 0; }
.pf .v.missing { color: var(--orange); font-weight: 700; font-style: italic; }
.pf .orig { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; text-decoration: line-through; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--text-3); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs a { padding: 10px 14px; font-weight: 700; font-size: 13px; color: var(--text-3); border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; cursor: pointer; }
.tabs a.on { color: var(--navy); border-image: var(--grad) 1; border-bottom: 3px solid; }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 14px 22px; }
.tl li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--fuchsia); }
.tl li::after { content: ""; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--border); }
.tl li:last-child::after { display: none; }
.tl .w { font-size: 11.5px; color: var(--text-3); }
.tl .a { font-size: 13px; }

/* pipeline */
.pipe { display: flex; align-items: center; gap: 0; }
.pipe .st { display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; flex: 1; min-width: 0; }
.pipe .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cdd2df; background: #fff; z-index: 1; }
.pipe .st.done .dot { background: var(--green); border-color: var(--green); }
.pipe .st.skip .dot { background: #eef0f3; border-style: dashed; }
.pipe .st.cur .dot { border-color: var(--fuchsia); background: #fff; box-shadow: 0 0 0 4px rgba(218,39,122,.18); animation: pulse 1s infinite; }
.pipe .st.fail .dot { background: var(--red); border-color: var(--red); }
.pipe .st.rev .dot { background: var(--yellow); border-color: #d9b800; }
.pipe .st:not(:last-child)::after { content: ""; position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: #dfe3ec; }
.pipe .st.done:not(:last-child)::after { background: var(--green); }
.pipe .lbl { font-size: 10.5px; color: var(--text-3); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pipe.mini .lbl { display: none; }
.pipe.mini .dot { width: 10px; height: 10px; }
.pipe.mini .st:not(:last-child)::after { top: 4px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(218,39,122,.05); } }

/* progress */
.prog { height: 6px; background: #eceff5; border-radius: 6px; overflow: hidden; }
.prog > span { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

/* alerts */
.alert { border-radius: 8px; padding: 11px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; border: 1px solid; }
.alert .ic { font-weight: 900; }
.alert.warn { background: #fff8e1; border-color: #f5e08a; color: #6b5300; }
.alert.info { background: #eaf3fa; border-color: #c4dcef; color: var(--midnight); }
.alert.ok { background: #eaf6e9; border-color: #bfe0bd; color: var(--green); }
.alert.err { background: #fdecee; border-color: #f4c3c8; color: #9b0010; }
.alert.fut { background: linear-gradient(90deg, rgba(255,235,122,.25), rgba(218,39,122,.08)); border-color: #f3d3e2; color: var(--navy); }

/* dropzone */
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; border: 2px dashed #c9cfdd; border-radius: 12px; padding: 34px 20px; text-align: center; background: var(--surface-2); cursor: pointer; transition: all .15s; }
.drop:hover, .drop.over { border-color: var(--fuchsia); background: #fdf3f8; }
.drop .big { color: var(--fuchsia); line-height: 0; }
.drop .big svg { width: 36px; height: 36px; }
.drop h3 { margin-top: 4px; font-size: 16px; }
.file-pill { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 74px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.file-pill .ext { flex: 0 0 40px; width: 40px; height: 48px; border-radius: 6px; letter-spacing: .3px; background: var(--midnight); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 11px; }

/* CV preview */
.cvdoc { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 28px 30px; font-family: Georgia, "Times New Roman", serif; font-size: 13px; color: #222; box-shadow: inset 0 0 0 6px #f6f7fa; max-height: 720px; overflow: auto; }
.cvdoc h2 { font-family: inherit; font-size: 21px; color: #111; }
.cvdoc h4 { font-family: inherit; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #333; margin: 16px 0 6px; border-bottom: 1px solid #ddd; padding-bottom: 3px; }
.cvdoc p { margin: 4px 0; }
.cvdoc mark { background: rgba(255,235,122,.7); padding: 0 2px; border-radius: 2px; }
.cvdoc.scan { filter: grayscale(.4) contrast(.92); background: #fcfbf7; transform: rotate(-.3deg); }

.conf { display: inline-flex; align-items: center; height: 18px; line-height: 1; font-size: 11px; font-weight: 900; border-radius: 4px; padding: 0 6px; vertical-align: middle; }
.conf.h { background: #e6f4e5; color: var(--green); }
.conf.m { background: #fff3c4; color: #7a6400; }
.conf.l { background: #fce6e8; color: var(--red); }
.xrow { display: grid; grid-template-columns: 140px 1fr 64px 92px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); }
.xrow:last-child { border-bottom: none; }
.xrow label { font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.xrow .input { padding: 6px 9px; font-size: 13px; }
.xrow.low .input { border-color: #f0b4ba; background: #fffafa; }
.xrow.edited .input { border-color: #e9cf55; background: #fffdf0; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(28, 36, 69, .45); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 12px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal.wide { width: min(860px, 100%); }
.modal .hd { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal .hd h3 { flex: 1; font-size: 17px; font-style: italic; font-weight: 900; }
.modal .bd { padding: 18px 20px; }
.modal .ft { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 12px 12px; }

/* toast */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.2); border-left: 4px solid var(--yellow); max-width: 380px; animation: tin .2s ease-out; }
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: #7fd67a; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* M1 docs */
.doc h2 { font-size: 18px; font-weight: 900; font-style: italic; margin: 6px 0 10px; }
.doc h3 { font-size: 14.5px; font-weight: 900; margin: 14px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { margin: 6px 0; padding-left: 18px; }
.doc li { margin: 3px 0; }
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; row-gap: 12px; }
.flow .n { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 10px 12px; min-width: 112px; text-align: center; font-weight: 900; font-size: 12.5px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.flow .n small { font-weight: 700; color: var(--text-3); font-size: 10.5px; }
.flow .n.m2 { border-color: var(--fuchsia); background: #fdf2f7; }
.flow .n.m3 { border-color: var(--blue-2); background: #eef5fc; }
.flow .n.m4 { border-color: #cfbf3c; background: #fffbe0; }
.flow .arr { display: grid; place-items: center; color: var(--text-3); width: 26px; font-size: 16px; }

.arch { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1.25fr 34px 1.25fr 34px 1.1fr; align-items: center; gap: 0; }
.arch .col { display: flex; flex-direction: column; gap: 8px; }
.arch .box { border-radius: 10px; padding: 10px 12px; font-size: 12.5px; font-weight: 900; color: var(--navy); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.arch .box small { display: block; font-weight: 700; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.arch .box.fe { border-top: 4px solid var(--fuchsia); }
.arch .box.edge { border-top: 4px solid var(--orange); }
.arch .box.api { border-top: 4px solid var(--midnight); }
.arch .box.data { border-top: 4px solid var(--green); }
.arch .box.ext { border-top: 4px solid var(--purple); }
.arch .a { text-align: center; color: var(--text-3); font-size: 18px; }
.arch-under { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.arch-under .box { border-radius: 10px; padding: 10px 12px; font-size: 12.5px; font-weight: 900; background: var(--surface-2); border: 1px dashed #c9cfdd; }
.arch-under .box small { display: block; font-weight: 700; font-size: 11px; color: var(--text-3); }

.ent { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.ent .eh { background: var(--navy); color: #fff; padding: 8px 12px; font-weight: 900; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ent .eh .ms { margin-left: auto; font-size: 10px; background: rgba(255,255,255,.15); border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.ent .eh.fut { background: #5b6280; }
.ent .ef { padding: 4px 12px 8px; }
.ent .ef div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dotted #e5e8ef; font-size: 12px; }
.ent .ef div:last-child { border-bottom: none; }
.ent .ef .ty { color: var(--text-3); font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.ent .ef .pk { color: var(--fuchsia); font-weight: 900; }
.ent .ef .fk { color: var(--midnight); font-weight: 700; }

.ep { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; background: #fff; }
.ep > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.ep > summary::-webkit-details-marker { display: none; }
.ep[open] > summary { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.m { font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 900; border-radius: 4px; padding: 2px 0; width: 58px; text-align: center; color: #fff; }
.m.GET { background: var(--blue); } .m.POST { background: var(--green); } .m.PATCH { background: var(--orange); } .m.PUT { background: var(--purple); } .m.DELETE { background: var(--red); }
.ep .path { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.ep .ds { color: var(--text-3); font-size: 12.5px; }
.ep pre { margin: 0; padding: 12px; background: #141a33; color: #d9e2ff; font-size: 11.5px; border-radius: 6px; overflow: auto; }
.ep .body { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* milestones */
.ms-card { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
.ms-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.ms-num { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-style: italic; font-size: 17px; color: #fff; background: var(--navy); flex-shrink: 0; }
.ms-card.cur .ms-num { background: linear-gradient(135deg, #f2965c, var(--fuchsia)); }
.ms-card.future .ms-num { background: #b9bfd0; }
.ms-head h3 { font-size: 16px; font-weight: 900; }
.ms-head .meta { font-size: 12px; color: var(--text-3); }
.ms-body { border-top: 1px solid var(--border); padding: 6px 18px 16px; }
.del { border-bottom: 1px solid var(--border); padding: 12px 0; }
.del:last-child { border-bottom: none; }
.del .dh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.del .dh b { font-size: 14px; }
.crit { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.crit li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); }
.crit input { margin-top: 3px; accent-color: var(--fuchsia); }
.crit li.ok span { color: var(--text-3); text-decoration: line-through; }

.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty .big { font-size: 34px; }

.perm td.y { color: var(--green); font-weight: 900; text-align: center; }
.perm td.n { color: #c3c7d3; text-align: center; }

.locked-hero { border-radius: 14px; padding: 34px; background: var(--grad-navy); color: #fff; position: relative; overflow: hidden; }
.locked-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.locked-hero h1 { color: #fff; font-style: italic; font-weight: 900; font-size: 28px; }
.locked-hero p { color: var(--sky); max-width: 640px; }

.sel-inline { font: inherit; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; background: #fff; color: var(--text); }

.rv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1280px) {
  .rv { grid-template-columns: 1fr; }
  .rv .cvdoc { max-height: 420px; }
}
@media (max-width: 560px) {
  .xrow { grid-template-columns: 1fr auto auto; }
  .xrow label { grid-column: 1 / -1; }
}
/* ---------- Sidebar retráctil ---------- */
.app { transition: grid-template-columns .22s ease; }
.side { overflow-x: hidden; }
.side .brand, .nav a, .nav .group { white-space: nowrap; }
.brand .sii { transition: width .22s ease, margin .22s ease; }
.nav a .ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.side-toggle {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--navy); cursor: pointer;
}
.side-toggle:hover { background: var(--surface-2); border-color: #cdd2df; }
.side-toggle:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 2px; }
.side-toggle .chev { transition: transform .22s ease; transform-origin: 14px 12px; }
.app.collapsed .side-toggle .chev { transform: scaleX(-1); }

@media (min-width: 821px) {
.app.collapsed { grid-template-columns: 76px 1fr; }
.app.collapsed .brand { padding: 20px 0 16px; display: flex; flex-direction: column; align-items: center; }
.app.collapsed .brand .sii { width: 50px; }
.app.collapsed .brand .prod { display: none; }
.app.collapsed .brand .bar { width: 28px; margin-top: 12px; }
.app.collapsed .nav .group { padding: 0; margin: 14px 18px 8px; height: 1px; background: rgba(255,255,255,.12); }
.app.collapsed .nav .group .lbl { display: none; }
.app.collapsed .nav a { justify-content: center; padding: 11px 0; gap: 0; }
.app.collapsed .nav a .lbl { display: none; }
.app.collapsed .nav a .ico { width: auto; }
.app.collapsed .nav a .count { position: absolute; top: 4px; left: calc(50% + 4px); margin: 0; font-size: 10px; padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center; }
.app.collapsed .side .foot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .app, .brand .sii, .side-toggle .chev { transition: none; } }

@media (max-width: 1100px) {
  .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .g3 { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; } .arch .a { transform: rotate(90deg); }
  .arch-under { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .app, .app.collapsed { grid-template-columns: 1fr; }
  .side-toggle { display: none; }
  .side { position: static; height: auto; }
  .g2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .span3, .span4, .form-section { grid-column: span 2; }
  .view { padding: 18px 16px 40px; }
  .top { padding: 10px 16px; flex-wrap: wrap; }
  .thread { position: static; }
  .ep .body { grid-template-columns: 1fr; }
}

/* ---------- Dropdown con branding ---------- */
.file-pill > .sp { min-width: 0; }
.file-pill > .badge { flex-shrink: 0; }
.dd { position: relative; display: block; width: 100%; min-width: 0; }
.dd.dd-inline { display: inline-block; width: auto; }
.role .dd { width: auto; }
.dd-native { display: none !important; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.dd-btn .dd-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn .dd-chev { flex-shrink: 0; color: var(--text-3); transition: transform .15s ease, color .15s; }
.dd-btn:hover .dd-chev, .dd-btn.dd-open .dd-chev { color: var(--fuchsia); }
.dd-btn.dd-open .dd-chev { transform: rotate(180deg); }
.dd-btn.dd-ph .dd-val { color: var(--text-3); }
.dd-btn.input:hover { border-color: #b9c0d3; }
.dd-btn.dd-open.input, .dd-btn.input:focus-visible { outline: 2px solid rgba(218, 39, 122, .25); border-color: var(--fuchsia); }
.dd-btn.sel-inline { gap: 4px; padding: 4px 8px; font-weight: 700; }
.dd-btn.sel-inline:focus-visible, .dd-btn.sel-inline.dd-open { outline: 2px solid rgba(218, 39, 122, .25); border-color: var(--fuchsia); }
.dd-btn:disabled { cursor: not-allowed; opacity: .55; }
.role .dd-btn { font-size: 12.5px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; background: var(--surface-2); min-width: 210px; }
.role .dd-btn:hover { border-color: #cdd2df; }
.dd-menu {
  position: fixed; z-index: 300; max-height: 300px; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(28, 36, 69, .16), 0 2px 6px rgba(28, 36, 69, .06);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif; animation: ddin .12s ease-out;
}
.dd-menu::before { content: ""; display: block; height: 3px; margin: -6px -6px 6px; border-radius: 10px 10px 0 0; background: var(--grad); }
.dd-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left;
  font: inherit; font-size: 13.5px; color: var(--navy); white-space: nowrap;
}
.dd-opt:hover, .dd-opt:focus-visible { background: #fdf1f7; outline: none; }
.dd-opt.on { color: var(--fuchsia); font-weight: 700; background: #fbe6f0; }
.dd-opt.dd-empty { color: var(--text-3); }
.dd-opt:disabled { color: var(--grey-3); cursor: not-allowed; background: none; }
.dd-opt svg { flex-shrink: 0; }
@keyframes ddin { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dd-menu { animation: none; } }

/* Pipeline BUK */
/* ---------- Pipeline (tablero) ---------- */
.kb-board > .hd { flex-wrap: wrap; }
.kb-board > .hd .sub { flex: 1 1 100%; order: 3; }
.kb-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.kb-wrap { overflow-x: auto; padding: 16px 18px 18px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.kb { display: flex; gap: 12px; align-items: flex-start; min-width: min-content; }
.kb-col { flex: 0 0 252px; width: 252px; display: flex; flex-direction: column; background: #eef0f5; border: 1px solid transparent; border-radius: 12px; min-height: 240px; transition: background .12s ease, border-color .12s ease, box-shadow .12s ease; }
.kb-col.side { background: transparent; border: 1px dashed #cdd2df; }
.kb-col.can-drop { border-color: #cdd2df; }
.kb-col.over { background: #fdf1f7; border-color: var(--fuchsia); box-shadow: inset 0 0 0 1px var(--fuchsia); }
.kb-hd { display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px; min-height: 50px; }
.kb-num { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 7px; background: var(--c, var(--midnight)); color: #fff; font-size: 11px; font-weight: 900; flex: none; letter-spacing: .2px; }
.kb-hd h4 { flex: 1; min-width: 0; font-size: 13px; font-weight: 900; line-height: 1.25; color: var(--navy); }
.kb-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.kb-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.35; padding: 0 10px 8px; min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-body { display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; flex: 1; min-height: 96px; border-top: 2px solid var(--c, var(--midnight)); }
.kb-empty { border: 1px dashed #cdd2df; border-radius: 8px; padding: 18px 8px; text-align: center; font-size: 12px; color: var(--text-3); }
.kb-col.over .kb-empty { border-color: var(--fuchsia); color: var(--fuchsia); }
.kb-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 10px 10px 13px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; position: relative; }
.kb-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, var(--midnight)); }
.kb-card[draggable="true"] { cursor: grab; }
.kb-card[draggable="true"]:active { cursor: grabbing; }
.kb-card.dragging { opacity: .35; transform: rotate(-1.5deg); }
.kb-card.off { background: #f7f8fb; }
.kb-card.off .kb-who .name { color: var(--text-2); }
.kb-top { display: flex; align-items: center; gap: 8px; }
.kb-who { flex: 1; min-width: 0; line-height: 1.25; }
.kb-who .name { display: block; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-who .sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-move { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent; color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer; }
.kb-move:hover { background: var(--surface-2); color: var(--fuchsia); }
.kb-move:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 1px; }
.kb-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.kb-sal { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.kb-sal.hi { color: var(--orange); }
.kb-foot { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kb-foot .tflag, .kb-foot .badge { height: 18px; font-size: 10.5px; padding: 0 7px; }
.kb-foot .chip { height: 18px; font-size: 10.5px; padding: 0 6px; }
.kb-days { margin-left: auto; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.kb-reason { font-size: 11.5px; color: var(--text-2); background: var(--surface-2); border-radius: 6px; padding: 4px 8px; line-height: 1.35; }
.kb-desc { padding: 0 8px 10px; }
.kb-desc summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--text-3); padding: 4px 2px; }
.kb-desc summary:hover { color: var(--navy); }
.kb-desc .kb-card { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .kb-col, .kb-card { transition: none; } .kb-card.dragging { transform: none; } }
.app-btn{padding:2px 6px;white-space:nowrap}
.app-btn:focus-visible{outline:2px solid var(--fuchsia,#d6246e);outline-offset:2px}
.qrow{display:grid;grid-template-columns:18px minmax(0,1fr) 170px 120px;gap:8px;align-items:center;margin-bottom:8px}
@media (max-width:780px){.qrow{grid-template-columns:18px 1fr}.qrow select,.qrow input[type=number]{grid-column:2}}
/* Revisión campo por campo */
.xrow2{display:grid;grid-template-columns:150px minmax(0,1fr) auto 82px 58px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border)}
.xrow2 label{font-size:12.5px;font-weight:700;color:var(--muted,#5b6478)}
.xrow2 .rv-meta{grid-column:2 / -1;font-size:11.5px;line-height:1.35;color:var(--muted,#6b7385);display:flex;gap:10px;flex-wrap:wrap}
.xrow2 .snip{font-style:italic}
.xrow2 .ai-orig{font-style:normal;color:#8a5a00;background:#fff6db;border-radius:4px;padding:0 5px}
.xrow2 .rv-st{font-size:11px;font-weight:700;text-align:center;border-radius:999px;padding:2px 6px;background:#eef1f6;color:#5b6478}
.xrow2.st-confirmed .rv-st{background:#e3f5ea;color:#1d7a43}
.xrow2.st-corrected .rv-st{background:#fff3cd;color:#8a5a00}
.xrow2.st-rejected .rv-st{background:#fde4e4;color:#b42318}
.xrow2.st-rejected input{text-decoration:line-through}
.xrow2.low input{border-color:#e9a23b}
.xrow2.edited input{background:#fffbea}
.xrow2 .rv-act{display:flex;gap:2px;justify-content:flex-end}
.iconbtn.ok{color:#1d7a43}.iconbtn.no{color:#b42318}
.cvdoc mark.hot{outline:2px solid var(--fuchsia,#d6246e);outline-offset:1px;background:#ffe2f0}
.ext-s{flex:0 0 auto;font-size:10px;font-weight:900;background:var(--navy,#1b2a4e);color:#fff;border-radius:4px;padding:3px 5px}
.count-pill{display:inline-block;background:var(--fuchsia,#d6246e);color:#fff;border-radius:999px;font-size:11px;padding:0 7px;margin-left:4px}
@media (min-width:1100px){.rv-doc{position:sticky;top:12px}}
@media (max-width:780px){.xrow2{grid-template-columns:1fr auto auto}.xrow2 label{grid-column:1 / -1}.xrow2 input{grid-column:1 / -1}}
/* Matching */
.mchip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);background:#fff;border-radius:999px;padding:3px 10px 3px 6px;cursor:pointer;font:inherit;font-size:12.5px;white-space:nowrap}
.mchip:hover{border-color:var(--fuchsia,#d6246e)}
.mchip:focus-visible,.bm:focus-visible{outline:2px solid var(--fuchsia,#d6246e);outline-offset:2px}
.mbar{display:inline-block;width:46px;height:6px;border-radius:99px;background:#e9edf3;overflow:hidden}
.mbar span{display:block;height:100%;border-radius:99px}
.hi .mbar span{background:#1d9a55}.mid .mbar span{background:#2f6fd0}.lo .mbar span{background:#d98a00}
.mchip.hi b,.bm.hi b{color:#1d7a43}.mchip.mid b,.bm.mid b{color:#1e4f8f}.mchip.lo b,.bm.lo b{color:#9a5b00}
.mchip.ex{color:#6b7385;background:#f4f5f8;padding-left:10px}
.bm{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;text-decoration:none;color:inherit}
.bm:hover{text-decoration:underline}
.mrow{display:flex;align-items:center;gap:12px;padding:11px 18px;border-bottom:1px solid var(--border)}
.mscore{display:flex;align-items:baseline;gap:10px;margin-bottom:14px}
.mscore b{font-size:40px;line-height:1;font-weight:900}
.mscore.hi b{color:#1d7a43}.mscore.mid b{color:#1e4f8f}.mscore.lo b{color:#9a5b00}
.ext.hi-bg{background:#1d9a55}.ext.mid-bg{background:#2f6fd0}.ext.lo-bg{background:#d98a00}
/* Alertas de trayectoria */
.tflag{display:inline-flex;align-items:center;gap:4px;height:22px;line-height:1;font-size:11.5px;font-weight:700;color:#8a4b00;background:#fff1dc;border:1px solid #f3cf9a;border-radius:999px;padding:0 9px;cursor:help;white-space:nowrap;vertical-align:middle;margin-left:2px}
.tflags{margin:6px 0 0;padding-left:18px;font-size:12.5px;line-height:1.45}
.tflags li{margin-bottom:3px}
.tl li.gap .a{font-style:italic}
/* ---------- Acceso ---------- */
body.auth .side, body.auth .top, body.auth .thread { display: none; }
body.auth .app, body.auth .app.collapsed { grid-template-columns: 1fr !important; }
body.auth .main { margin-left: 0; display: block; }
body.auth .view { padding: 0; max-width: none; }
body.auth { background: var(--bg) radial-gradient(60% 40% at 50% 0%, rgba(184, 209, 236, .45), transparent 70%) no-repeat; }
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.login-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(28, 36, 69, .06), 0 24px 60px -24px rgba(28, 36, 69, .35); }
.login-brand { display: flex; align-items: center; gap: 16px; background: var(--grad-navy); color: #fff; padding: 22px 28px; position: relative; }
.login-brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }
.login-brand img { height: 40px; width: auto; flex: none; }
.login-brand .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.login-brand b { font-size: 19px; font-weight: 900; font-style: italic; letter-spacing: .1px; line-height: 1.15; }
.login-brand span { font-size: 12.5px; color: var(--sky); }
.login-body { padding: 26px 28px 22px; }
.login-body h1 { font-size: 20px; font-weight: 900; font-style: italic; margin-bottom: 16px; }
.login-body .input { height: 42px; font-size: 14px; }
.login-body .btn.primary { height: 42px; justify-content: center; font-size: 14px; width: 100%; }
.login-msg { min-height: 18px; color: var(--red); font-size: 12.5px; font-weight: 700; line-height: 1.4; margin-top: -4px; }
.login-msg:empty { display: none; }
.login-card .hint { font-size: 12px; color: var(--text-3); line-height: 1.5; margin: 14px 0 0; }
.login-demo { background: var(--surface-2); border-top: 1px solid var(--border); padding: 18px 28px 22px; }
.login-demo .t { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.login-demo .t b { font-size: 12.5px; color: var(--text); }
.login-demo .t span { font-size: 12px; color: var(--text-3); }
.login-accounts { display: grid; gap: 6px; }
.login-accounts button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--text); transition: border-color .12s ease, background .12s ease; }
.login-accounts button:hover { border-color: #cdd2df; background: #fff; }
.login-accounts button:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 2px; }
.login-accounts .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.login-accounts .who b { font-size: 13px; }
.login-accounts .who span { font-size: 11.5px; color: var(--text-3); }
.login-demo .mono { font-size: 11.5px; color: var(--text-2); }
@media (max-width: 480px) {
  .login-wrap { padding: 0; align-items: start; }
  .login-card { max-width: none; border-radius: 0; min-height: 100dvh; box-shadow: none; }
  .login-brand, .login-body, .login-demo { padding-left: 20px; padding-right: 20px; }
}
.temp-pass{font-size:20px;letter-spacing:.04em;background:#f4f6fa;border:1px dashed var(--border);border-radius:8px;padding:12px 14px;text-align:center;user-select:all}


/* ---------- Duplicados ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); background: transparent; border: 0; border-radius: 7px; padding: 5px 11px; cursor: pointer; }
.seg button:hover { color: var(--navy); }
.seg button.on { background: var(--surface); color: var(--navy); box-shadow: var(--shadow); }
.seg button:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 1px; }
.seg .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; background: #e4e7f0; color: var(--text-2); }
.seg button.on .n { background: var(--navy); color: #fff; }
.card > .hd .seg { margin: -4px 0; }
.dup-who { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.dup-who .name { white-space: nowrap; }
.dup-tbl .chips { display: flex; gap: 4px; white-space: nowrap; }
.dup-tbl td .sub { margin-top: 4px; white-space: nowrap; }
.dup-tbl td.chev { width: 28px; text-align: right; color: var(--text-3); font-size: 20px; line-height: 1; padding-right: 18px; }
.dup-tbl tr.click:hover td.chev { color: var(--fuchsia); }
.ph .back { display: inline-block; font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.ph .back:hover { color: var(--fuchsia); text-decoration: none; }
.ph h1 .vs { color: var(--fuchsia); font-style: normal; font-weight: 400; margin: 0 4px; }
