/* Base (igual a la vista previa): márgenes de zona segura y reset. */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}
/* Tipografías IBM Plex alojadas en la app (SIL OFL 1.1, fonts/LICENSE-IBM-Plex-OFL.txt): sin pedidos a terceros y idénticas sin conexión. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSansCondensed-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSansCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); }
/* Misma línea visual que Protocolos UTI: barra superior, índice lateral, una columna en el teléfono. */
:root {
  --bg: #90dfc1; --surface: #ffffff; --surface-2: #def4ea; --ink: #11241c; --ink-2: #3d5148;
  --line: #76c7a6; --step-line: #5aa886; --accent: #0a5f40; --accent-ink: #ffffff; --accent-soft: #d3eee3;
  --warn-bg: #fff4d6; --warn-ink: #6b4a00;
  --hi: #a4161a; --hi-bg: #fadcdc; --med: #7a6200; --med-bg: #fbf0c9; --lo: #0b6e80; --lo-bg: #d6f1f6;
  --ok: #1f7a3f; --ok-bg: #e1f2e6;
  --shadow: rgba(10,40,28,.18);
  --p3: #c0161c; --p3-ink: #ffffff; --p2: #e8c21a; --p2-ink: #2b2300; --p1: #33b7cc; --p1-ink: #032a31; --p0: #8a7ab8; --p0-ink: #ffffff;
  --f-display: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1b15; --surface: #14241e; --surface-2: #1b2d25; --ink: #e3efe9; --ink-2: #9db5aa;
    --line: #2a4138; --step-line: #3d5a4d; --accent: #4cc795; --accent-ink: #04261a; --accent-soft: #163a2c;
    --warn-bg: #3a2f10; --warn-ink: #f3d98a;
    --hi: #ff8f8f; --hi-bg: #461a1c; --med: #e8cf6a; --med-bg: #3a3212; --lo: #7fd9ea; --lo-bg: #133a43;
    --ok: #7fd49a; --ok-bg: #173524; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1b15; --surface: #14241e; --surface-2: #1b2d25; --ink: #e3efe9; --ink-2: #9db5aa;
  --line: #2a4138; --step-line: #3d5a4d; --accent: #4cc795; --accent-ink: #04261a; --accent-soft: #163a2c;
  --warn-bg: #3a2f10; --warn-ink: #f3d98a;
  --hi: #ff8f8f; --hi-bg: #461a1c; --med: #e8cf6a; --med-bg: #3a3212; --lo: #7fd9ea; --lo-bg: #133a43;
  --ok: #7fd49a; --ok-bg: #173524; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--f-body); font-size: 15px; line-height: 1.55; margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); text-wrap: balance; line-height: 1.2; margin: 0; }
h1 { font-size: 1.9rem; font-weight: 600; } h2 { font-size: 1.35rem; font-weight: 600; margin-top: 6px; } h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; } a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.note { font-size: .85rem; color: var(--ink-2); }

/* Barra superior */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; min-width: 0; }
.brand .logo { height: 30px; width: 30px; flex: none; display: block; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .01em; }
.brand-dev { font-size: .58rem; color: var(--ink-2); letter-spacing: .03em; margin-top: 1px; }
.search { flex: 1; min-width: 0; max-width: 420px; margin-left: auto; }
.search input { width: 100%; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r); padding: 6px 10px; cursor: pointer; }

/* Estructura */
.shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.rail { border-right: 1px solid var(--line); background: var(--surface); padding: 16px 12px 40px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.rail h4 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); margin: 18px 8px 6px; }
.rail h4:first-child { margin-top: 0; }
.rail a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.rail a small { display: block; font-size: .72rem; color: var(--ink-2); }
.rail a:hover { background: var(--surface-2); }
.rail a[aria-current="page"] { background: var(--accent-soft); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.draft { background: var(--med); } .dot.valid { background: var(--ok); } .dot.todo { background: var(--line); }
main { padding-block: 24px 64px; padding-inline: 16px; min-width: 0; }
.wrap { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.wrap > *, .section > *, .fb > * { min-width: 0; }
.section, .fb { grid-template-columns: minmax(0, 1fr); }
.banner { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r); padding: 10px 14px; font-size: .88rem; }

/* Inicio */
.hero { display: grid; gap: 8px; } .hero p { color: var(--ink-2); max-width: 62ch; }
.group { display: grid; gap: 10px; }
.group-title { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.group-title::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-left: 7px solid var(--accent); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--accent); }
.tile .name { font-weight: 600; } .tile .meta { font-size: .82rem; color: var(--ink-2); }
.tile .st { font-size: .76rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.tile.todo { background: transparent; border-style: dashed; border-left-width: 1px; }
.tile.todo .name { color: var(--ink-2); font-weight: 500; }
.scheme { margin: 0; padding-left: 22px; columns: 2 220px; font-size: .92rem; }
.foot { border-top: 1px solid var(--line); padding-top: 12px; font-size: .8rem; color: var(--ink-2); display: grid; gap: 4px; }
.credit b { color: var(--ink); }

/* Página de equipo */
.p-head { display: grid; gap: 8px; }
.eyebrow { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); letter-spacing: .03em; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--ink-2); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; position: sticky; top: 56px; background: var(--bg); z-index: 5; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; cursor: pointer; white-space: nowrap; color: var(--ink-2); font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.section { display: grid; gap: 14px; }
.prose { display: grid; gap: 10px; max-width: 72ch; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

.facts { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.facts dd { margin: 0; }
@media (max-width: 600px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

.opts-box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 8px; }
.opts-box h3 { font-size: .98rem; }
.opts-box p { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opts-box .lbl { font-size: .78rem; color: var(--ink-2); width: 100%; }
.opt { font-family: var(--f-mono); font-size: .72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; display: inline-block; vertical-align: middle; }
.opt.yes { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.opt.unk { border-color: var(--med); color: var(--med); background: var(--med-bg); }
td .opt { font-size: .66rem; padding: 0 6px; margin-left: 4px; }

/* Pasos numerados */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; position: relative; }
.steps > li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; font-size: .9rem; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--step-line); }
.steps .body { display: grid; gap: 6px; min-width: 0; }
.steps .body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.steps .body ul > li::marker { color: var(--accent); }

/* Caja institucional */
.local { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; }
.local h3 { font-size: .98rem; } .local ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.todo-note { font-family: var(--f-mono); font-size: .74rem; background: var(--warn-bg); color: var(--warn-ink); padding: 1px 6px; border-radius: 4px; }

/* Advertencias del fabricante */
.warn { border-radius: var(--r); padding: 10px 14px; display: grid; gap: 4px; border-left: 6px solid; }
.warn.w { background: var(--hi-bg); border-color: var(--hi); }
.warn.c { background: var(--med-bg); border-color: var(--med); }
.warn b { font-size: .82rem; letter-spacing: .02em; }
.warn.w b { color: var(--hi); } .warn.c b { color: var(--med); }
.warnline { margin-top: 10px; padding: 8px 12px; border-left: 4px solid var(--hi); background: var(--hi-bg); border-radius: 6px; font-size: .9rem; }

/* Tarjetas de función (desplegables) */
.func { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); scroll-margin-top: 110px; }
.func > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.func > summary::-webkit-details-marker { display: none; }
.func > summary::before { content: "▸"; color: var(--accent); transition: transform .15s; flex: none; }
.func[open] > summary::before { transform: rotate(90deg); }
.func > summary .ft { font-family: var(--f-display); font-weight: 600; font-size: 1.04rem; flex: 1; }
.func > summary .fp { font-size: .72rem; color: var(--ink-2); white-space: nowrap; }
.func[open] > summary { border-bottom: 1px solid var(--line); }
.fb { padding: 12px 14px 14px; display: grid; gap: 10px; }
.fb ul, .fb ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.fb .tbl-wrap { margin: 2px 0; }
@media (prefers-reduced-motion: reduce) { .func > summary::before { transition: none; } }

/* Tablas */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.pgc { white-space: nowrap; }

/* Cita de página */
.pg { font: 600 .72rem/1.2 var(--f-mono); color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 4px; padding: 1px 5px; cursor: pointer; white-space: nowrap; vertical-align: baseline; }
.pg:hover, .pg[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }
.pg-pop { position: absolute; z-index: 30; width: min(360px, calc(100vw - 16px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 6px 24px var(--shadow); padding: 12px 34px 12px 14px; display: grid; gap: 6px; font-size: .84rem; line-height: 1.45; }
.pg-loc { display: flex; flex-wrap: wrap; gap: 4px 8px; } .pg-loc span { font-family: var(--f-mono); color: var(--accent); }
.pg-ref { color: var(--ink-2); font-size: .78rem; overflow-wrap: anywhere; }
.pg-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.2rem; padding: 4px 6px; cursor: pointer; color: var(--ink-2); }

/* Alarmas */
.pr { font: 700 .74rem/1 var(--f-mono); padding: 3px 6px; border-radius: 4px; display: inline-block; min-width: 30px; text-align: center; }
.pr.p3 { background: var(--p3); color: var(--p3-ink); } .pr.p2 { background: var(--p2); color: var(--p2-ink); } .pr.p1 { background: var(--p1); color: var(--p1-ink); } .pr.p0 { background: var(--p0); color: var(--p0-ink); font-weight: 600; }
.al-tools { display: grid; gap: 10px; position: sticky; top: 98px; z-index: 4; background: var(--bg); padding: 6px 0 8px; }
.al-tools input[type=search] { width: 100%; padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.al-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: .85rem; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.al-opt { font-size: .84rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.al-count { font-size: .8rem; color: var(--ink-2); }
.al-list { display: grid; gap: 8px; }
.al { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid; border-radius: var(--r); padding: 10px 12px; display: grid; gap: 8px; }
.al.p3 { border-left-color: var(--p3); } .al.p2 { border-left-color: var(--p2); } .al.p1 { border-left-color: var(--p1); } .al.p0 { border-left-color: var(--p0); }
.al header { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.al-n { font-size: .7rem; color: var(--ink-2); padding-top: 3px; }
.al-msg { display: grid; flex: 1; min-width: 180px; } .al-msg b { font-family: var(--f-mono); font-size: .9rem; } .al-msg span { font-size: .85rem; color: var(--ink-2); }
.al ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.al li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 14px; font-size: .88rem; }
.al-c { color: var(--ink-2); } .al-r { font-weight: 500; }
.al-r::before { content: "→ "; color: var(--accent); }
@media (max-width: 600px) { .al li { grid-template-columns: 1fr; } }

.refs { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .9rem; }


/* Tarjetas de modo (Ficha rápida) */
.mode { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 8px; }
.mode header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.mode h3 { font-size: 1.25rem; }
.mode .mtag { color: var(--ink-2); font-size: .9rem; flex: 1; min-width: 160px; }
.mode .fp { font-size: .72rem; color: var(--ink-2); }
.mpath { font-size: .8rem; color: var(--ink-2); }
.mset { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 6px; }
.mset > div { background: var(--surface-2); border-radius: 6px; padding: 6px 10px; display: grid; gap: 1px; }
.mset dt { font-family: var(--f-mono); font-weight: 600; font-size: .86rem; color: var(--accent); }
.mset dd { margin: 0; font-size: .86rem; font-variant-numeric: tabular-nums; }
.mextra { font-size: .88rem; border-left: 3px solid var(--line); padding-left: 10px; }
.warn ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }

.minst p { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Sección de servicio técnico (desplegable, solo ingeniería hospitalaria) */
:root { --eng: #4a5560; --eng-bg: #eef1f4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --eng: #b7c2cc; --eng-bg: #1c2329; } }
:root[data-theme="dark"] { --eng: #b7c2cc; --eng-bg: #1c2329; }
.eng { border: 2px dashed var(--eng); border-radius: var(--r); background: var(--eng-bg); scroll-margin-top: 110px; margin-top: 10px; }
.eng > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; color: var(--eng); }
.eng > summary::-webkit-details-marker { display: none; }
.eng > summary::before { content: "▸"; flex: none; transition: transform .15s; }
.eng[open] > summary::before { transform: rotate(90deg); }
.eng[open] > summary { border-bottom: 1px dashed var(--eng); }
.eng .eng-ico { width: 20px; height: 20px; flex: none; }
.eng > summary .ft { font-family: var(--f-display); font-weight: 600; font-size: 1.06rem; flex: 1; min-width: 55%; color: var(--ink); }
.eng-tag { font: 600 .7rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--eng); color: var(--eng-bg); white-space: nowrap; }
.eng-note { border-left: 6px solid var(--eng); background: var(--surface); border-radius: 6px; padding: 10px 14px; display: grid; gap: 4px; font-size: .9rem; }
.eng-note b { font-size: .8rem; letter-spacing: .03em; color: var(--eng); }
.eng .fb h2 { font-size: 1.12rem; }
@media (prefers-reduced-motion: reduce) { .eng > summary::before { transition: none; } }
.func > summary { flex-wrap: wrap; }
.func > summary .ft { min-width: 60%; }
.opts-box .opt { white-space: normal; }
/* Teléfono */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 56px 0 0 0; height: auto; z-index: 20; display: none; border-right: 0; }
  .rail.open { display: block; }
  .menu-btn { display: inline-block; }
  .brand-dev { display: none; }
  .al-tools { position: static; }
  h1 { font-size: 1.6rem; }
}
@media (max-width: 420px) { .brand b { font-size: 1rem; } .topbar { gap: 8px; } }

/* Marca Define (igual que Guías UTI): «Define» chico arriba del nombre de la app; la «i» con la curva de TAM en azul eléctrico. */
:root { --def-i: #1f6fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --def-i: #6ea8ff; } }
:root[data-theme="dark"] { --def-i: #6ea8ff; }
.brand .logo-app { height: 34px; width: 34px; display: block; flex: none; }
.brand .brand-define { height: 17px; width: auto; display: block; align-self: flex-start; margin: 0 0 1px -1px; color: var(--ink); }
.brand-define .di, .hero-define .di, .def-apps-i .di { fill: var(--def-i); }
.brand-define .dc { fill: none; stroke: var(--def-i); stroke-width: 72; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .brand .logo-app { height: 32px; width: 32px; } .brand .brand-define { height: 15px; } }
.def-top { display: flex; justify-content: flex-end; margin: -4px 0 -10px; }
.def-apps { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .86rem; line-height: 1; width: max-content; }
.def-apps:hover { border-color: var(--def-i); }
.def-apps b { font-family: var(--f-display); font-weight: 600; }
.def-apps-arr { color: var(--ink-2); }
.def-apps .def-apps-i { width: auto; height: 22px; margin: -3px 0 -1px; display: block; overflow: visible; }
.def-apps-i .dc { fill: none; stroke: var(--def-i); stroke-width: 80; stroke-linecap: round; stroke-linejoin: round; }
.hero-lock { display: flex; align-items: center; gap: 22px; }
.hero-ico { width: 92px; height: 92px; flex: none; display: block; }
.hero-tt { display: grid; gap: 10px; min-width: 0; }
.hero-define { display: block; height: 42px; width: auto; color: var(--ink); }
.hero-define .dc { fill: none; stroke: var(--def-i); stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .hero-lock { gap: 16px; } .hero-ico { width: 74px; height: 74px; } .hero-tt { gap: 8px; } .hero-define { height: 34px; } .hero-tt h1 { font-size: 1.3rem; } }
.jc { margin: 0; font-size: .74rem; font-style: italic; line-height: 1.4; color: var(--ink-2); opacity: .85; }
.upd-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 6px 24px var(--shadow); font-size: .9rem; }
.upd-bar span { flex: 1; }
.upd-bar .btn { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 6px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.upd-x { background: none; border: 0; font-size: 1.2rem; color: var(--ink-2); cursor: pointer; }

/* Color por grupo de equipos (misma lógica que Guías UTI, paleta propia). */
:root { --g1: #1f4fb5; --g2: #863070; --g3: #b3261e; --g4: #0a6f78; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g1: #8fb2ff; --g2: #e6a2d6; --g3: #ff958a; --g4: #6fd3da; } }
:root[data-theme="dark"] { --g1: #8fb2ff; --g2: #e6a2d6; --g3: #ff958a; --g4: #6fd3da; }
.g1 { --gc: var(--g1); } .g2 { --gc: var(--g2); } .g3 { --gc: var(--g3); } .g4 { --gc: var(--g4); }
.group[class*=" g"] .group-title { color: var(--gc); }
.group[class*=" g"] .group-title::before { background: var(--gc); }
.group[class*=" g"] .tile:not(.todo) { border-left: 7px solid color-mix(in srgb, var(--gc) 85%, transparent); }
.group[class*=" g"] .tile:hover { border-color: var(--gc); }
.rail h4[class^="g"] { display: flex; align-items: center; gap: 7px; color: var(--gc); }
.rail h4[class^="g"]::before { content: ""; width: 5px; height: 14px; border-radius: 2px; background: var(--gc); flex: none; }
.p-head .eyebrow[class*=" g"] { color: var(--gc); }

/* Ícono de la página de cada equipo, al lado del título: el mismo ícono de la app, con sus colores. */
.p-title { display: flex; align-items: center; gap: 12px; }
.p-title h1 { margin: 0; min-width: 0; }
.p-logo { width: 40px; height: 40px; flex: none; display: block; }
.p-mon { --mx: #0b6e4a; }
.p-mon .mb { fill: url(#lgpage); } .p-mon .mw { fill: #fff; } .p-mon .mi { fill: var(--mx); }
.p-mon .ml { fill: none; stroke: var(--mx); stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
.p-mon .mc { fill: none; stroke: var(--mx); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .p-mon .mb { stroke: rgba(255,255,255,.18); stroke-width: 1.2; } }
:root[data-theme="dark"] .p-mon .mb { stroke: rgba(255,255,255,.18); stroke-width: 1.2; }
@media (max-width: 600px) { .p-title { gap: 10px; } .p-logo { width: 34px; height: 34px; } }
.p-sub { color: var(--ink-2); }
.rail-empty { padding: 8px; }
