/* MET · Mapa Estratégico de Talento — sistema visual */
:root {
  --navy: #0B1F4B; --navy-2: #13306E; --navy-3: #1C3F8A; --soft: #9FB0D6; --blue: #2F6FED;
  --red: #E4032E; --yellow: #F7B500; --green: #1FA24A; --purple: #7C3AED; --teal: #0EA5B7; --orange: #F97316;
  --bg: #F2F4F9; --card: #FFFFFF; --ink: #0F172A; --ink-2: #475569; --muted: #64748B; --line: #E4E8F1; --hover: #F5F8FF;
  --r: 18px; --sh: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px rgba(15, 23, 42, .06); --sh-2: 0 12px 40px rgba(11, 31, 75, .14);
  --side: 248px; --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: Montserrat, Inter, sans-serif; margin: 0; color: var(--navy); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); } .small { font-size: 12px; } .center { text-align: center; } .mt { margin-top: 22px; }
.ico { width: 20px; height: 20px; flex: none; } .ico.xs { width: 14px; height: 14px; vertical-align: -2px; } .ico.lg { width: 38px; height: 38px; }
.ok-t, .green-t { color: var(--green); } .bad-t, .red-t { color: var(--red); } .warn-t { color: #B45309; } .yellow-t { color: #C58F00; }
.navy-t { color: var(--blue); } .purple-t { color: var(--purple); } .teal-t { color: var(--teal); } .muted-t { color: var(--muted); }

/* ——— Marca ——— */
.logo { width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(from 200deg, var(--red) 0 55%, #FF6A00 55% 75%, var(--yellow) 75%); display: grid; place-items: center; flex: none; }
.logo i { width: 17px; height: 17px; border-radius: 50%; background: var(--navy); transform: translate(3px, -2px); }
.logo.lg { width: 58px; height: 58px; } .logo.lg i { width: 26px; height: 26px; }
.wordmark { font: 800 26px/1 Montserrat, sans-serif; letter-spacing: -.02em; color: var(--navy); }
.wordmark.lg { font-size: 44px; color: #fff; }

/* ——— Sidebar ——— */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: linear-gradient(180deg, var(--navy) 0%, #0A1A40 100%); color: #fff; display: flex; flex-direction: column; z-index: 20; transition: transform .3s var(--ease); }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.side-txt { display: flex; flex-direction: column; min-width: 0; }
.side-txt b { font: 800 18px Montserrat, sans-serif; letter-spacing: .02em; }
.side-txt small { font-size: 11px; color: #8FB3FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #C9D6F5; font-weight: 500; transition: background .2s, color .2s, transform .2s; position: relative; }
.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(2px); }
.side-nav a.on { background: rgba(255, 255, 255, .12); color: #fff; 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(--red); }
.side-sec { margin: 16px 12px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #6F86C0; font-weight: 700; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user .side-txt { flex: 1; } .side-user .side-txt b { font: 600 13px Inter, sans-serif; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .icon-btn { color: #C9D6F5; } .side-user .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ——— Shell ——— */
.shell { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.burger { display: none; }
.tb-title { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.tb-title .wordmark { padding-right: 18px; border-right: 1px solid var(--line); }
.tb-title h1 { font-size: 21px; }
.tb-title p { margin: 0; color: var(--blue); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { display: flex; align-items: center; gap: 16px; }
.upd { text-align: right; } .upd small { display: block; font-size: 11px; color: var(--muted); } .upd span { font-weight: 600; color: var(--navy); }

.filterbar { display: flex; align-items: center; gap: 10px; padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 10; box-shadow: 0 6px 16px -12px rgba(11, 31, 75, .25); }
.fb-lbl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); font-size: 13px; margin-right: 4px; }
.fb-lbl .ico { width: 16px; height: 16px; }
.pill { background: var(--red); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.fsel { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px 5px; min-width: 150px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.fsel:hover { border-color: var(--soft); }
.fsel.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 237, .12); background: #F7FAFF; }
.fsel small { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.fsel select { border: 0; padding: 0; background: transparent; font: 600 13px Inter, sans-serif; color: var(--ink); outline: none; max-width: 230px; cursor: pointer; }
.fsel.locked { background: #F1F4FA; } .fsel.locked span { font-weight: 600; font-size: 13px; color: var(--navy); }
.fb-clear { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 10px; }
.fb-clear:hover { background: #FFF1F3; }

.content { padding: 24px 28px; flex: 1; max-width: 1600px; width: 100%; }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding: 18px 28px 90px; }

/* ——— Componentes ——— */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-h h2 small { text-transform: none; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.card-h .hl { font-size: 13px; color: var(--ink-2); } .card-h .hl b { font: 800 20px Montserrat, sans-serif; color: var(--blue); }
.grid { display: grid; gap: 20px; margin-bottom: 0; }
.grid > .card { margin-bottom: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.g-chat { grid-template-columns: minmax(0, 1fr) 320px; }
.page-intro { background: linear-gradient(90deg, #EAF0FF, #F7F9FF); border: 1px solid #DCE5FB; border-radius: 14px; padding: 12px 18px; margin-bottom: 20px; color: var(--ink-2); }
.page-intro p { margin: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 600; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { background: var(--navy-3); box-shadow: 0 6px 16px rgba(11, 31, 75, .25); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 16px; height: 16px; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--soft); background: var(--hover); box-shadow: none; }
.btn.ghost.danger { color: var(--red); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 13px 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.disabled { opacity: .4; pointer-events: none; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; } .btns form { margin: 0; }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 10px; display: inline-grid; place-items: center; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--bg); color: var(--navy); }
.lnk { color: var(--blue); font-weight: 600; cursor: pointer; } .lnk:hover { text-decoration: underline; }
.more { display: inline-flex; align-items: center; gap: 4px; float: right; margin-top: 8px; color: var(--blue); font-weight: 600; font-size: 13px; }
.more .ico { width: 16px; height: 16px; transition: transform .2s; } .more:hover .ico { transform: translateX(3px); }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: #fff; font: 700 14px Montserrat, sans-serif; display: inline-grid; place-items: center; flex: none; }
.avatar.xs { width: 30px; height: 30px; font-size: 11px; } .avatar.sm { width: 36px; height: 36px; font-size: 12px; } .avatar.lg { width: 62px; height: 62px; font-size: 20px; }
.side .avatar { background: linear-gradient(135deg, var(--red), #FF6A00); }

.chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; margin: 2px 4px 2px 0; white-space: nowrap; }
.chip.red { background: #FDE2E6; color: #B00020; } .chip.purple { background: #EDE4FE; color: #5B21B6; } .chip.yellow { background: #FFF1C7; color: #8A6100; }
.chip.gray { background: #EEF1F6; color: #475569; } .chip.navy { background: #E6ECFA; color: var(--navy); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #EEF1F6; color: var(--ink-2); }
.badge.ok { background: #DCF5E4; color: #146C33; } .badge.warn { background: #FFF1C7; color: #8A6100; } .badge.bad { background: #FDE2E6; color: #B00020; } .badge.muted { background: #EEF1F6; color: var(--muted); font-weight: 600; }
.empty { color: var(--muted); padding: 28px; text-align: center; background: #F8FAFC; border-radius: 14px; border: 1px dashed var(--line); margin: 0; }
.nbtag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 800; font-size: 12px; color: var(--navy); }

/* Tooltip de ayuda */
.tip { position: relative; display: inline-grid; place-items: center; color: #94A3B8; cursor: help; vertical-align: middle; outline: none; }
.tip .ico { width: 15px; height: 15px; }
.tip:hover, .tip:focus { color: var(--blue); }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); width: max-content; max-width: 280px; background: var(--navy); color: #fff; font: 500 12.5px/1.45 Inter, sans-serif; text-transform: none; letter-spacing: 0; padding: 10px 12px; border-radius: 10px; box-shadow: var(--sh-2); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s var(--ease); z-index: 50; white-space: normal; text-align: left; }
.tip::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); border: 6px solid transparent; border-top-color: var(--navy); transform: translateX(-50%); opacity: 0; transition: opacity .18s; z-index: 50; }
.tip:hover::after, .tip:focus::after { opacity: 1; transform: translate(-50%, 0); }
.tip:hover::before, .tip:focus::before { opacity: 1; }

/* Flash */
.flash { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 500; animation: slideDown .45s var(--ease) both; }
.flash span { flex: 1; } .flash.ok { background: #E3F7EA; color: #146C33; } .flash.bad { background: #FDE8EB; color: #9F0020; } .flash.info { background: #E8EFFE; color: var(--navy); }

/* ——— KPIs ——— */
.kpi-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 18px; display: flex; flex-direction: column; gap: 2px; transition: transform .25s var(--ease), box-shadow .25s; overflow: hidden; animation: fadeUp .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.kpi::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: currentColor; opacity: 0; transition: opacity .25s; }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.kpi-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; }
.kpi-ic .ico { width: 22px; height: 22px; }
.kpi-tip { position: absolute; top: 14px; right: 14px; }
.kpi b { font: 800 28px/1.1 Montserrat, sans-serif; color: var(--navy); }
.kpi-lbl { font-weight: 600; font-size: 13px; color: var(--ink); }
.kpi em { font-style: normal; font-size: 12px; font-weight: 600; }
.navy { background: linear-gradient(135deg, var(--navy-3), var(--navy)); } .yellow { background: linear-gradient(135deg, #FFCB3D, var(--yellow)); } .green { background: linear-gradient(135deg, #34C46A, var(--green)); }
.red { background: linear-gradient(135deg, #FF3B5C, var(--red)); } .purple { background: linear-gradient(135deg, #9D6BFF, var(--purple)); } .teal { background: linear-gradient(135deg, #2CC6D8, var(--teal)); }
.delta { font-size: 11.5px; font-weight: 700; margin-top: 4px; } .delta.up { color: var(--green); } .delta.down { color: var(--red); }

/* ——— Índice ——— */
.indice { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: center; }
.gauge { position: relative; max-width: 330px; width: 100%; margin: 0 auto; }
.gauge-c { position: absolute; inset: 24% 0 auto; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.gauge-c .big { font: 800 68px/1 Montserrat, sans-serif; color: var(--navy); }
.gauge-c > span { font: 600 20px Montserrat, sans-serif; color: var(--ink-2); }
.gauge-c em { font: normal 800 20px Montserrat, sans-serif; margin-top: 4px; }
.gauge-c small { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.comps { border-left: 1px solid var(--line); padding-left: 24px; }
.comps h3 { font-size: 13px; margin-bottom: 8px; }
.comp { display: grid; grid-template-columns: minmax(140px, 1fr) 1.2fr 66px; align-items: center; gap: 12px; padding: 10px 0; }
.comp > span { font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.comp b { font: 700 17px Montserrat, sans-serif; color: var(--navy); text-align: right; } .comp b small { font-size: 11px; color: var(--muted); }
.bar { height: 9px; border-radius: 99px; background: #EDF0F6; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 0); background: var(--navy); border-radius: 99px; animation: grow 1.3s var(--ease) both .2s; }
.bar i.ok { background: linear-gradient(90deg, #34C46A, var(--green)); } .bar i.warn { background: linear-gradient(90deg, #FFCB3D, var(--yellow)); } .bar i.bad { background: linear-gradient(90deg, #FF5A76, var(--red)); }
.formula { margin-top: 18px; background: #F7F9FF; border: 1px dashed var(--soft); border-radius: 14px; padding: 16px 18px; animation: fadeUp .4s var(--ease) both; }
.formula ol { margin: 10px 0; padding-left: 20px; } .formula li { margin: 7px 0; }

/* ——— Insights ——— */
.insights { display: flex; flex-direction: column; gap: 10px; }
.insight { display: flex; gap: 12px; align-items: flex-start; background: #F7F9FC; border-radius: 14px; padding: 12px 14px; font-size: 13px; transition: background .2s, transform .2s; animation: slideIn .6s var(--ease) both; animation-delay: calc(200ms + var(--i) * 90ms); }
.insight:hover { background: #EDF3FF; transform: translateX(3px); }
.insight .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.insight .dot .ico { width: 16px; height: 16px; }
.insight.ok .dot { background: var(--green); } .insight.warn .dot { background: #F59E0B; } .insight.bad .dot { background: var(--red); } .insight.info .dot { background: var(--blue); }

/* ——— Donut / leyenda ——— */
.donut-row { display: flex; align-items: center; gap: 12px; }
.donut-row .apx { flex: 1 1 55%; min-width: 0; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; flex: 1 1 45%; }
.legend li { display: grid; grid-template-columns: 12px auto 1fr; gap: 2px 8px; align-items: center; font-size: 13px; }
.legend li small { grid-column: 2 / -1; color: var(--muted); }
.legend i { width: 12px; height: 12px; border-radius: 50%; }
.legend b { font: 800 18px Montserrat, sans-serif; color: var(--navy); }

/* ——— Nine Box ——— */
.nb { display: grid; grid-template-columns: 22px repeat(3, 1fr); grid-template-rows: repeat(3, auto) 22px; gap: 8px; }
.nb-y { grid-row: 1 / 4; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; }
.nb-x { grid-column: 2 / -1; text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; }
.nb-c { border: 2px solid transparent; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; min-height: 66px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; animation: pop .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.nb-c:hover { transform: scale(1.03); box-shadow: var(--sh); border-color: rgba(11, 31, 75, .35); }
.nb-c.sel { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 31, 75, .12); }
.nb-c b { font: 800 22px Montserrat, sans-serif; color: var(--navy); } .nb-c span { font-weight: 700; font-size: 12px; } .nb-c small { font-size: 11px; color: var(--ink-2); margin-top: 4px; line-height: 1.3; }
.nb.big .nb-c { min-height: 120px; padding: 14px; } .nb.big .nb-c b { font-size: 34px; } .nb.big .nb-c span { font-size: 13.5px; }
.c9 { background: #C9EFD6; } .c8, .c6 { background: #E0F4E6; } .c7, .c5, .c3 { background: #FFF3CE; } .c4, .c2 { background: #FDE5D3; } .c1 { background: #FAD2D8; }
.nb-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .nb-legend .nb-c { animation: none; min-height: 0; }

/* ——— Stats ——— */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 16px 18px; border-top: 4px solid var(--navy); animation: fadeUp .55s var(--ease) both; }
.stat:nth-child(2) { animation-delay: 60ms; } .stat:nth-child(3) { animation-delay: 120ms; } .stat:nth-child(4) { animation-delay: 180ms; } .stat:nth-child(5) { animation-delay: 240ms; }
.stat.ok { border-color: var(--green); } .stat.warn { border-color: var(--yellow); } .stat.bad { border-color: var(--red); }
.stat b { display: block; font: 800 30px Montserrat, sans-serif; color: var(--navy); } .stat b small { font-size: 16px; color: var(--muted); }
.stat span { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.seg { display: inline-flex; background: #fff; border-radius: 14px; padding: 4px; box-shadow: var(--sh); }
.seg a { padding: 9px 16px; border-radius: 11px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.seg a b { margin-left: 6px; color: var(--muted); font-size: 12px; }
.seg a.on { background: var(--navy); color: #fff; } .seg a.on b { color: #8FB3FF; }
.seg a:not(.on):hover { background: var(--hover); }

/* ——— Tablas ——— */
.tbl-wrap { overflow-x: auto; margin: 0 -6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover td { background: var(--hover); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-p, .row-link { cursor: pointer; }
.row-p:focus, .row-link:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.who { display: flex; align-items: center; gap: 10px; } .who div { display: flex; flex-direction: column; } .who small { font-size: 11.5px; }
.tbl small.d { display: block; font-size: 11.5px; }
.ed { display: inline-block; min-width: 36px; text-align: center; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.ed0 { background: #FDE2E6; color: #B00020; } .ed1 { background: #EEF1F6; color: var(--ink); } .ed2 { background: #DCF5E4; color: #146C33; }
.actions { display: flex; gap: 6px; justify-content: flex-end; } .actions form { margin: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; color: var(--ink-2); }

/* ——— Formularios ——— */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink); }
.field.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.field.row span { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.field.row input { width: 200px; }
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), select, .chat-in input {
  font: 500 14px Inter, sans-serif; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 237, .14); }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pwd { position: relative; display: block; } .pwd input { width: 100%; padding-right: 44px; } .pwd .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.searchbar .search { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; box-shadow: var(--sh); }
.searchbar .search input { border: 0; box-shadow: none; flex: 1; padding: 12px 0; background: transparent; }
.searchbar select { box-shadow: var(--sh); }

/* ——— Datos ——— */
.fuente { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.fuente-ic { width: 46px; height: 46px; border-radius: 14px; background: #DCF5E4; color: var(--green); display: grid; place-items: center; flex: none; }
.fuente-ic.demo { background: #FFF1C7; color: #B07F00; }
.fuente p { margin: 2px 0; }
.dropzone { border: 2px dashed #C9D4EE; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--navy); background: #F9FBFF; transition: background .2s, border-color .2s, transform .2s; cursor: pointer; }
.dropzone .ico { color: var(--blue); }
.dropzone.over { background: #EAF1FF; border-color: var(--blue); transform: scale(1.01); }
.dz-file { font-weight: 600; color: var(--green); }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px 32px; }
.comp-grid h3 { font-size: 13px; margin-bottom: 6px; }
.cline { display: grid; grid-template-columns: 160px 1fr 46px; gap: 10px; align-items: center; font-size: 12.5px; padding: 4px 0; }
.cline b { text-align: right; font-weight: 600; }
.timeline { display: flex; flex-direction: column; gap: 12px; }
.tl-i { display: flex; gap: 12px; } .tl-i p { margin: 0; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-top: 5px; box-shadow: 0 0 0 4px #DCF5E4; flex: none; }
.tl-dot.demo { background: var(--yellow); box-shadow: 0 0 0 4px #FFF1C7; }
.log { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; } .log li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.roadmap div { background: #F8FAFC; border-radius: 14px; padding: 16px; border-left: 4px solid var(--soft); } .roadmap .now { border-color: var(--red); }
.roadmap p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }

/* ——— Ayuda ——— */
.acc details { border-bottom: 1px solid var(--line); padding: 12px 4px; }
.acc summary { font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.acc summary::after { content: "+"; font-size: 18px; color: var(--muted); transition: transform .2s; } .acc details[open] summary::after { transform: rotate(45deg); }
.acc p { margin: 8px 0 0; color: var(--ink-2); animation: fadeUp .3s var(--ease); }
.steps { padding-left: 18px; margin: 0; } .steps li { margin: 8px 0; color: var(--ink-2); }
.rules { padding-left: 18px; margin: 0; } .rules li { margin: 7px 0; }
.note { background: #F7F9FF; border-radius: 14px; padding: 14px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.note b { display: flex; align-items: center; gap: 6px; color: var(--navy); } .note .ico { width: 16px; }

/* ——— Chat ——— */
.chat { display: flex; flex-direction: column; }
.chat-log { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 4px 14px; scroll-behavior: smooth; }
.chat-log.big { min-height: 420px; max-height: 62vh; }
.msg { max-width: 82%; border-radius: 16px; padding: 12px 14px; animation: bubble .4s var(--ease) both; }
.msg p { margin: 0; }
.msg.bot { background: #F1F5FD; align-self: flex-start; border-top-left-radius: 4px; }
.msg.me { background: var(--navy); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.msg.typing p { display: flex; gap: 4px; } .msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); animation: blink 1s infinite; } .msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pchip { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; text-align: left; max-width: 280px; transition: border-color .2s, transform .2s; animation: fadeUp .35s var(--ease) both; }
.pchip:hover { border-color: var(--blue); transform: translateY(-2px); }
.pchip span { display: flex; flex-direction: column; } .pchip small { color: var(--muted); font-size: 11px; }
.rank { display: grid; gap: 6px; margin-top: 10px; } .rank div { display: grid; grid-template-columns: 1fr 120px 30px; gap: 8px; align-items: center; font-size: 12px; }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; } .sugs.col { flex-direction: column; align-items: stretch; }
.sug { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 13px; font-size: 12.5px; color: var(--navy); font-weight: 600; text-align: left; transition: background .2s, border-color .2s; }
.sugs.col .sug { border-radius: 12px; }
.sug:hover { background: #EDF3FF; border-color: #C9D8FB; }
.chat-in { display: flex; gap: 10px; } .chat-in input { flex: 1; }

.fab { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #FF2D55, var(--red)); color: #fff; border: 0; border-radius: 99px; padding: 13px 20px; font-weight: 700; box-shadow: 0 10px 28px rgba(228, 3, 46, .38); transition: transform .2s var(--ease); animation: pulse 2.8s infinite 2s; }
.fab:hover { transform: translateY(-3px) scale(1.02); }
.chatw-panel { position: fixed; right: 24px; bottom: 90px; width: min(400px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px)); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 31, 75, .28); z-index: 30; display: flex; flex-direction: column; overflow: hidden; animation: popUp .35s var(--ease) both; }
.chatw-panel[hidden] { display: none; }
.chatw-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--navy); color: #fff; } .chatw-panel header b { flex: 1; } .chatw-panel header .icon-btn { color: #fff; }
.chatw-panel .chat-log { flex: 1; padding: 14px; }
.chatw-panel .sugs { margin: 0; padding: 0 14px; } .chatw-panel .chat-in { padding: 12px 14px; border-top: 1px solid var(--line); }

/* ——— Drawer ——— */
.drawer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(11, 31, 75, .38); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100%); background: #fff; box-shadow: -12px 0 40px rgba(0, 0, 0, .15); transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; padding: 26px; }
.drawer.open { pointer-events: auto; } .drawer.open .drawer-bg { opacity: 1; } .drawer.open .drawer-panel { transform: none; }
.drawer .close { position: absolute; right: 16px; top: 16px; }
.skeleton { background: linear-gradient(90deg, #EEF1F6 0%, #F7F9FC 50%, #EEF1F6 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
.ficha-h { display: flex; gap: 16px; align-items: flex-start; padding-right: 34px; margin-bottom: 18px; }
.ficha-h h2 { font-size: 21px; } .ficha-h p { margin: 2px 0; }
.acciones { background: linear-gradient(135deg, #FFF8E4, #FFF3D0); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.acciones h3 { font-size: 13px; display: flex; align-items: center; gap: 6px; color: #8A6100; } .acciones .ico { width: 16px; }
.accion { display: flex; gap: 10px; justify-content: space-between; padding: 6px 0; font-size: 13px; border-top: 1px solid rgba(138, 97, 0, .12); margin-top: 6px; }
.ficha-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.blk { background: #F8FAFC; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.blk h3 { font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; } .blk p { margin: 4px 0; }
.big { font: 800 26px Montserrat, sans-serif; color: var(--navy); }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.dl dt { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; } .dl dd { margin: 0; font-weight: 500; word-break: break-word; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 14px; transition: transform .35s var(--ease); z-index: 60; box-shadow: var(--sh-2); }
.toast.show { transform: translate(-50%, 0); }

/* ApexCharts */
.apx { min-height: 120px; }
.apexcharts-tooltip { border-radius: 12px !important; box-shadow: var(--sh-2) !important; border: 0 !important; }
.apx-tt { padding: 10px 12px; font: 13px Inter, sans-serif; } .apx-tt b { display: block; color: var(--navy); } .apx-tt small { color: var(--muted); }
.apexcharts-bar-area, .apexcharts-pie-area, .apexcharts-series-markers, .apexcharts-heatmap-rect { cursor: pointer; }

/* Tour (driver.js) */
.driver-popover.met-pop { border-radius: 16px; padding: 18px 20px; font-family: Inter, sans-serif; }
.driver-popover.met-pop .driver-popover-title { font: 800 17px Montserrat, sans-serif; color: var(--navy); }
.driver-popover.met-pop .driver-popover-description { color: var(--ink-2); font-size: 13.5px; }
.driver-popover.met-pop .driver-popover-next-btn { background: var(--navy); color: #fff; text-shadow: none; border: 0; border-radius: 10px; padding: 7px 14px; }
.driver-popover.met-pop .driver-popover-prev-btn { border-radius: 10px; }


/* ——— Exportación ——— */
.menu { position: relative; }
.menu summary { list-style: none; } .menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 330px; background: #fff; border-radius: 16px; box-shadow: var(--sh-2); padding: 8px; z-index: 30; animation: popUp .25s var(--ease) both; }
.menu-pop a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; transition: background .15s; }
.menu-pop a:hover { background: var(--hover); }
.menu-pop a .ico { color: var(--blue); margin-top: 2px; }
.menu-pop a span { display: flex; flex-direction: column; } .menu-pop a b { color: var(--navy); font-size: 13px; } .menu-pop a small { color: var(--muted); font-size: 11.5px; }
.menu-pop p { margin: 6px 12px 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.exp-group { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 3px 4px 3px 10px; background: #fff; color: var(--muted); }
.exp-group .ico { width: 15px; height: 15px; margin-right: 4px; }
.exp-group a { font-size: 12.5px; font-weight: 600; color: var(--navy); padding: 4px 9px; border-radius: 7px; transition: background .15s; }
.exp-group a:hover { background: #EDF3FF; color: var(--blue); }
.hgroup { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-h > .exp-group:first-child { order: 2; }
.spacer { flex: 1; }

/* ——— Hoja de vida ——— */
.avatar.xl { width: 84px; height: 84px; font-size: 28px; background: linear-gradient(135deg, var(--red), #FF6A00); box-shadow: 0 8px 22px rgba(228, 3, 46, .3); }
.hv-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: linear-gradient(120deg, #fff 60%, #F4F7FF); }
.hv-id { flex: 1; min-width: 240px; }
.hv-id h2 { font-size: 24px; } .hv-id p { margin: 3px 0; } .hv-cargo { font-weight: 600; font-size: 15px; color: var(--ink); }
.hv-stats { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 10px; }
.hv-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-align: center; }
.hv-stats b { display: block; font: 800 22px Montserrat, sans-serif; color: var(--navy); } .hv-stats span { font-size: 11.5px; color: var(--muted); }
.acc-list { display: grid; gap: 8px; }
.acc-i { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: #FFF8E6; animation: slideIn .5s var(--ease) both; }
.acc-i span:nth-child(2) { flex: 1; font-weight: 500; }
.acc-i .dot { width: 10px; height: 10px; border-radius: 50%; background: #F59E0B; flex: none; }
.acc-i.bad { background: #FFF0F2; } .acc-i.bad .dot { background: var(--red); }
.acc-i.ok { background: #EAF8EF; } .acc-i.ok .dot { background: var(--green); }
.hv-nb { margin-top: 10px; } .hv-nb .nb-c.dim { opacity: .45; } .hv-nb .nb-c.here { opacity: 1; transform: scale(1.06); box-shadow: 0 6px 18px rgba(11, 31, 75, .2); }
.hv-nb .nb-c b { font-size: 16px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #F8FAFC; color: var(--muted); }
.checklist li.on { background: #EAF8EF; color: var(--ink); font-weight: 600; }
.checklist li em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--green); font-weight: 700; }
.checklist .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #CBD5E1; display: grid; place-items: center; flex: none; }
.checklist li.on .ck { background: var(--green); border-color: var(--green); color: #fff; } .checklist .ck .ico { width: 13px; height: 13px; }
.tline { list-style: none; padding: 0; margin: 0; position: relative; }
.tline::before { content: ""; position: absolute; left: 70px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tline li { display: grid; grid-template-columns: 56px 30px 1fr; align-items: start; padding: 8px 0; animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
.tline .tl-y { font: 800 14px Montserrat, sans-serif; color: var(--navy); text-align: right; padding-right: 4px; }
.tline .tl-dot { margin: 3px 0 0 9px; position: relative; z-index: 1; }
.tline p { margin: 2px 0 0; }
.tl-dot.navy { background: var(--navy); box-shadow: 0 0 0 4px #E6ECFA; } .tl-dot.ok { background: var(--green); box-shadow: 0 0 0 4px #DCF5E4; }
.tl-dot.bad { background: var(--red); box-shadow: 0 0 0 4px #FDE2E6; } .tl-dot.yellow { background: var(--yellow); box-shadow: 0 0 0 4px #FFF1C7; } .tl-dot.gray { background: var(--gray, #94A3B8); box-shadow: 0 0 0 4px #EEF1F6; }
.ficha-btns { display: flex; gap: 8px; margin: -6px 0 16px; flex-wrap: wrap; }
@media (max-width: 820px) { .hv-stats { grid-template-columns: repeat(2, 1fr); width: 100%; } .menu-pop { position: fixed; left: 16px; right: 16px; width: auto; top: 70px; } }

/* ——— Animaciones ——— */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
@keyframes popUp { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes bubble { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes grow { from { width: 0; } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 28px rgba(228, 3, 46, .38); } 50% { box-shadow: 0 10px 28px rgba(228, 3, 46, .38), 0 0 0 10px rgba(228, 3, 46, .12); } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -40px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ——— Login ——— */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: #fff; }
.login-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 10% 0%, #1C3F8A 0%, var(--navy) 55%, #07143A 100%); color: #fff; display: flex; align-items: center; padding: 56px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 14s ease-in-out infinite; }
.b1 { width: 380px; height: 380px; background: var(--red); top: -100px; right: -80px; }
.b2 { width: 320px; height: 320px; background: var(--yellow); bottom: -120px; left: 10%; opacity: .35; animation-delay: -5s; }
.b3 { width: 260px; height: 260px; background: var(--blue); top: 40%; right: 20%; opacity: .4; animation-delay: -9s; }
.hero-in { position: relative; max-width: 560px; animation: fadeUp .9s var(--ease) both; }
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 42px; }
.login-hero h1 { color: #fff; font-size: 46px; line-height: 1.08; margin-bottom: 18px; }
.lead { font-size: 17px; color: #C9D6F5; margin: 0 0 28px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.hero-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.hero-list span { font: 800 12px Montserrat, sans-serif; background: rgba(255, 255, 255, .12); border-radius: 8px; padding: 5px 8px; color: var(--yellow); }
.hero-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.hc { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 14px 18px; backdrop-filter: blur(6px); min-width: 140px; }
.hc b { display: block; font: 800 28px Montserrat, sans-serif; } .hc small { color: #C9D6F5; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--bg); }
.lf-in { width: 100%; max-width: 460px; animation: fadeUp .8s var(--ease) both .15s; }
.lf-in h2 { font-size: 28px; }
.lf-in .form { background: #fff; padding: 24px; border-radius: 20px; box-shadow: var(--sh); margin: 18px 0; }
.demo-box { margin-top: 8px; }
.demo-t { display: flex; flex-direction: column; margin: 0 0 10px; } .demo-t small { color: var(--muted); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.demo-grid form { margin: 0; }
.demo-btn { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.demo-btn:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--sh); }
.demo-btn span:last-child { display: flex; flex-direction: column; min-width: 0; } .demo-btn b { font-size: 12.5px; color: var(--navy); } .demo-btn small { font-size: 11px; color: var(--muted); }
.demo-btn.presidencia { grid-column: 1 / -1; background: linear-gradient(135deg, #F4F7FF, #fff); }
.demo-btn.presidencia .avatar { background: linear-gradient(135deg, var(--red), #FF6A00); }

/* ——— Impresión (infografía) ——— */
@media print {
  .side, .filterbar, .fab, .chatw, .topbar .tb-right, .foot, .more, .tip { display: none !important; }
  .shell { margin: 0; } .card, .kpi { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
}

/* ——— Responsive ——— */
@media (max-width: 1360px) { .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1200px) {
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .indice { grid-template-columns: 1fr; }
  .comps { border: 0; padding: 0; }
}
@media (max-width: 960px) {
  .side { transform: translateX(-100%); box-shadow: var(--sh-2); }
  body.side-open .side { transform: none; }
  .shell { margin-left: 0; }
  .burger { display: inline-grid; }
  .login { grid-template-columns: 1fr; } .login-hero { padding: 36px 24px; } .login-hero h1 { font-size: 34px; } .hero-list, .hero-cards { display: none; } .brand-row { margin-bottom: 20px; }
}
@media (max-width: 820px) {
  .content, .topbar, .filterbar { padding-left: 16px; padding-right: 16px; }
  .tb-title .wordmark, .upd { display: none; }
  .filterbar { position: static; } .fsel { flex: 1 1 140px; min-width: 0; } .fsel select { max-width: 100%; }
  .g-2, .g-3, .g-chat, .roadmap, .ficha-grid, .dl, .nb-legend { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .donut-row { flex-direction: column; }
  .comp { grid-template-columns: 1fr 1fr 56px; }
  .fab span { display: none; }
  .demo-grid { grid-template-columns: 1fr; }
  .field.row { flex-direction: column; align-items: stretch; } .field.row input { width: 100%; }
  .cline { grid-template-columns: 120px 1fr 40px; }
  .msg { max-width: 94%; }
}
