/* Ordenatec: Inicio parametrizable (M4, 13/11/2026). Solo afecta a nodos propios (data-o="inicio") y, en el modo
   Personalizar, al marco de los bloques. Colores: paleta de marca y los de plazo que ya usa «Licitaciones más recientes». */
:root{--oti-texto:#13233d;--oti-suave:#607089;--oti-linea:#dde7f5;--oti-fondo:#fff;--oti-fila:linear-gradient(135deg,#f8fbfff2,#f3f7fff2);
  --oti-azul:#0b64f0;--oti-cian:#17b8f6;--oti-serie:#0b64f0;--oti-otros:#c9d4e5;--oti-niebla:#e3eaf5;--oti-nube:#f5f8fc;--oti-sombra:0 18px 36px #0e254d1a}
html[data-ot-theme=dark]{--oti-texto:#f4f8ff;--oti-suave:#a9b6cc;--oti-linea:#24375a;--oti-fondo:#0b1b33;--oti-fila:linear-gradient(135deg,#0f2342,#0c1e39);
  --oti-niebla:#1b2c4a;--oti-nube:#0f2240;--oti-serie:#0d8ef2;--oti-otros:#4a5d7e;--oti-sombra:0 18px 36px #0006}

/* ---------- Bloques nuevos ---------- */
.home-page .ot-inicio-panel{min-width:0;min-height:0}
.home-page .ot-inicio-panel .panel-head h2{display:inline}
.ot-inicio-total{display:block;margin-top:2px;color:var(--oti-suave);font-size:10.5px;font-weight:800}
.ot-inicio-cuerpo{position:relative;z-index:1;display:flex;min-height:0;flex:1 1 auto;flex-direction:column}
.ot-inicio-lista{display:grid;min-height:0;flex:1 1 auto;gap:7px;grid-auto-rows:max-content;align-content:start;padding-right:4px;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bfd0ea transparent}
.ot-inicio-lista:focus-visible{outline:2px solid var(--oti-azul);outline-offset:2px;border-radius:10px}
.ot-fila{position:relative;display:grid;grid-template-columns:6px minmax(0,1fr) auto;gap:10px;align-items:center;min-width:0;padding:9px 11px;color:inherit;
  background:var(--oti-fila);border:1px solid var(--oti-linea);border-radius:14px;text-decoration:none;transition:border-color .2s ease,box-shadow .2s ease}
.ot-fila:hover{border-color:#175cff40;box-shadow:0 12px 24px #175cff14}
.ot-fila:focus-visible{outline:3px solid var(--oti-azul);outline-offset:-3px}
.ot-fila-linea{width:6px;align-self:stretch;background:linear-gradient(180deg,#175cff,#60a5fa);border-radius:999px}
.ot-fila-texto{min-width:0}
.ot-fila-texto strong,.ot-fila-texto small{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.ot-fila-texto strong{color:var(--oti-texto);font-size:12.5px;font-weight:900;line-height:1.25}
.ot-fila-texto small{margin-top:3px;color:var(--oti-suave);font-size:10.5px;font-weight:700}
.ot-fila-cuando{display:flex;align-items:flex-end;flex-direction:column;gap:2px;white-space:nowrap;text-align:right}
.ot-fila-cuando b{color:var(--oti-texto);font-size:12.5px;font-weight:900}
.ot-fila-cuando small{color:var(--oti-suave);font-size:10px;font-weight:800}
/* Plazos: los mismos colores que la lista de recientes */
.ot-vencida .ot-fila-linea,.ot-urgente .ot-fila-linea{background:linear-gradient(180deg,#ef4444,#fb7185)}
.ot-vencida .ot-fila-cuando :is(b,small){color:#b42318}
.ot-urgente .ot-fila-cuando :is(b,small){color:#c2410c}
.ot-pronto .ot-fila-linea{background:linear-gradient(180deg,#f59e0b,#fbbf24)}
.ot-pronto .ot-fila-cuando :is(b,small){color:#b45309}
.ot-bien .ot-fila-linea{background:linear-gradient(180deg,#10b981,#34d399)}
.ot-sin .ot-fila-linea,.ot-leido .ot-fila-linea{background:#c9d4e5}
.ot-nuevo .ot-fila-linea{background:linear-gradient(180deg,#0d8ef2,#17b8f6)}
.ot-punto{display:inline-block;width:8px;height:8px;margin-top:3px;background:#0d8ef2;border-radius:50%}
html[data-ot-theme=dark] .ot-vencida .ot-fila-cuando :is(b,small),html[data-ot-theme=dark] .ot-urgente .ot-fila-cuando :is(b,small){color:#fda4a4}
html[data-ot-theme=dark] .ot-pronto .ot-fila-cuando :is(b,small){color:#f2c14e}
/* Cifras dentro de un bloque: como las tarjetas de Inicio, sin caja de color */
.ot-cifras{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:8px}
.ot-cifras-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ot-cifra{min-width:0;padding:9px 10px;background:var(--oti-nube);border:1px solid var(--oti-linea);border-radius:13px}
.ot-cifra span{display:block;overflow:hidden;color:var(--oti-suave);font-size:10.5px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.ot-cifra strong{display:block;margin-top:3px;color:var(--oti-texto);font-size:22px;font-weight:900;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.ot-cifra small{display:block;margin-top:2px;color:var(--oti-suave);font-size:10px;font-weight:800}
.ot-nota{margin:2px 0 0;color:var(--oti-suave);font-size:11.5px;font-weight:700}
.ot-nota b{color:var(--oti-texto)}
.ot-inicio-vacio{display:grid;min-height:90px;flex:1 1 auto;place-content:center;justify-items:center;gap:6px;color:#71809a;font-size:12px;font-weight:700;text-align:center}
.ot-inicio-vacio p{margin:0}
.ot-inicio-vacio>span{display:grid;width:26px;height:26px;place-items:center;color:var(--oti-azul);background:var(--oti-nube);border-radius:50%}
.ot-inicio-enlace{padding:0;color:var(--oti-azul);background:none;border:0;font:inherit;font-weight:900;cursor:pointer}
.ot-inicio-enlace:hover{text-decoration:underline}
.ot-inicio-cargando{display:grid;gap:7px}
.ot-inicio-cargando i{height:46px;background:linear-gradient(90deg,var(--oti-nube),var(--oti-niebla),var(--oti-nube));background-size:200% 100%;border-radius:14px;animation:oti-carga 1.2s ease-in-out infinite}
@keyframes oti-carga{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.ot-inicio-cargando i{animation:none}}
.ot-inicio-cuerpo .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- Botón Personalizar ---------- */
.home-page .hero-actions>.ot-inicio-personalizar{gap:6px}
.home-page .hero-actions>.ot-inicio-personalizar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* ---------- Modo Personalizar ---------- */
html[data-ot-inicio-editar] .home-page{padding-bottom:220px}   /* sitio para soltar abajo y para que el último bloque no quede bajo la barra */
html[data-ot-inicio-editar] .home-page :is(.kpi-grid>.kpi-card,.dashboard-grid>*){position:relative;outline:2px dashed #0d8ef2;outline-offset:2px}
html[data-ot-inicio-editar] .home-page .ot-inicio-destino{outline:3px solid #17b8f6;outline-offset:2px}
.ot-inicio-mandos svg,.ot-inicio-barra svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.ot-inicio-barra{position:fixed;right:0;bottom:18px;left:0;z-index:2147480000;display:flex;align-items:center;gap:14px;width:max-content;max-width:calc(100vw - 32px);
  margin:0 auto;padding:10px 12px 10px 18px;color:var(--oti-texto);background:var(--oti-fondo);border:1px solid var(--oti-linea);border-radius:16px;box-shadow:var(--oti-sombra);
  font-family:inherit;font-size:13px}
.ot-inicio-barra>strong{font-size:13px;font-weight:900;white-space:nowrap}
.ot-inicio-estado{color:var(--oti-suave);font-size:11.5px;font-weight:800;white-space:nowrap}
.ot-inicio-botones{display:flex;flex-wrap:wrap;gap:7px}
.ot-inicio-barra button,.ot-inicio-dialogo li button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 13px;color:var(--oti-texto);background:var(--oti-fondo);
  border:1px solid #dbe6f4;border-radius:12px;font:inherit;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
.ot-inicio-barra button:hover:not(:disabled),.ot-inicio-dialogo li button:hover{border-color:var(--oti-azul);color:var(--oti-azul)}
.ot-inicio-barra button:disabled{opacity:.45;cursor:default}
.ot-inicio-barra .ot-primario{color:#fff;background:linear-gradient(135deg,#175cff,#3b82ff);border-color:transparent}
.ot-inicio-barra .ot-primario:hover:not(:disabled){color:#fff}
@media (max-width:720px){
  /* A la derecha queda el hueco de la mascota (abajo) y del chat del equipo: no tapan «Guardar» */
  .ot-inicio-barra{bottom:10px;flex-wrap:wrap;gap:8px;width:calc(100vw - 20px);padding:10px 68px 10px 10px}
  .ot-inicio-barra>strong{flex:1}
  .ot-inicio-botones{width:100%}
  .ot-inicio-botones button{flex:1 1 auto;justify-content:center}
  /* «Preferencias de medición» suelto abajo a la izquierda (34 px a 10 px del borde): la barra queda encima y no lo tapa */
  body:has(>button.ot-exp-suelto[data-ot-measurement-settings]) .ot-inicio-barra{bottom:calc(52px + env(safe-area-inset-bottom,0px))}
}

.ot-inicio-dialogo{width:min(460px,calc(100vw - 24px));max-height:min(80vh,640px);padding:18px 18px 14px;color:var(--oti-texto);background:var(--oti-fondo);
  border:1px solid var(--oti-linea);border-radius:18px;box-shadow:var(--oti-sombra);font-family:inherit}
.ot-inicio-dialogo::backdrop{background:#061429a6}
.ot-inicio-dialogo header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.ot-inicio-dialogo h2{margin:0;font-size:17px;font-weight:900;letter-spacing:-.02em}
.ot-inicio-dialogo h3{margin:14px 0 6px;color:var(--oti-suave);font-size:10.5px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.ot-inicio-dialogo ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.ot-inicio-dialogo li{display:flex;align-items:center;gap:8px;padding:9px 10px;background:var(--oti-nube);border:1px solid var(--oti-linea);border-radius:12px}
.ot-inicio-dialogo li>div{min-width:0;flex:1}
.ot-inicio-dialogo li strong{display:block;font-size:13px;font-weight:900}
.ot-inicio-dialogo li small{display:block;margin-top:2px;color:var(--oti-suave);font-size:11px;font-weight:700}
.ot-inicio-dialogo .ot-cerrar{width:32px;height:32px;padding:0;color:var(--oti-suave);background:none;border:0;border-radius:9px;font-size:22px;line-height:1;cursor:pointer}
.ot-inicio-dialogo .ot-cerrar:hover{color:var(--oti-texto);background:var(--oti-nube)}
.ot-inicio-dialogo .ot-inicio-estado{margin:8px 0 0;white-space:normal}

/* ---------- Cuadrícula libre ---------- */
.ot-inicio-sombra{z-index:4;display:grid;place-items:start center;padding-top:14px;color:#0b64f0;background:#0d8ef214;border:2px dashed #0d8ef2;border-radius:18px;font-size:12px;font-weight:900;pointer-events:none}
.ot-inicio-sombra.ot-intercambio{background:#17b8f621;border-style:solid;border-color:#17b8f6}
.ot-inicio-tam{position:fixed;z-index:2147480001;display:grid;gap:6px;width:180px;padding:10px;color:var(--oti-texto);background:var(--oti-fondo);border:1px solid var(--oti-linea);
  border-radius:13px;box-shadow:var(--oti-sombra);font-size:12px;font-weight:800}
.ot-inicio-tam div{display:grid;grid-template-columns:1fr 30px 34px 30px;align-items:center;gap:4px}
.ot-inicio-tam b{text-align:center;font-variant-numeric:tabular-nums}
.ot-inicio-tam button{height:30px;color:var(--oti-texto);background:var(--oti-nube);border:1px solid var(--oti-linea);border-radius:9px;font:inherit;font-size:16px;cursor:pointer}
.ot-inicio-tam button:hover{color:var(--oti-azul);border-color:var(--oti-azul)}
.home-page .ot-inicio-medida .ot-inicio-cuerpo{overflow:hidden}

/* ---------- Gráficos de los bloques a medida ---------- */
.ot-g-cifra{display:grid;align-content:center;min-height:0;flex:1 1 auto}
.ot-g-cifra span{color:var(--oti-suave);font-size:11px;font-weight:800}
.ot-g-cifra strong{color:var(--oti-texto);font-size:28px;font-weight:900;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1.15}
.ot-g-cifra small{color:var(--oti-suave);font-size:10.5px;font-weight:700}
.ot-g-barras{display:grid;min-height:0;flex:1 1 auto;gap:6px;align-content:start;overflow-y:auto;scrollbar-width:thin}
.ot-g-fila{display:grid;grid-template-columns:minmax(70px,34%) minmax(0,1fr) auto;gap:8px;align-items:center;font-size:11.5px}
.ot-g-etq{overflow:hidden;color:var(--oti-texto);font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.ot-g-pista{height:12px;background:var(--oti-nube);border-radius:4px;overflow:hidden}
.ot-g-pista i{display:block;height:100%;background:var(--oti-serie);border-radius:0 4px 4px 0;transform-origin:left;animation:oti-llenar .6s ease-out both}
.ot-g-otros .ot-g-pista i,.ot-g-otros i{background:var(--oti-otros)}
.ot-g-fila b{color:var(--oti-texto);font-weight:900;font-variant-numeric:tabular-nums;text-align:right}
.ot-g-columnas,.ot-g-lineas{display:flex;min-height:0;flex:1 1 auto;flex-direction:column;gap:5px}
.ot-g-area{position:relative;display:flex;min-height:60px;flex:1 1 auto;align-items:flex-end;gap:2px;padding-top:16px;border-bottom:1px solid var(--oti-linea)}
.ot-g-col{position:relative;display:flex;height:100%;flex:1 1 0;align-items:flex-end;justify-content:center}
.ot-g-col i{display:block;width:min(100%,34px);background:var(--oti-serie);border-radius:4px 4px 0 0;transform-origin:bottom;animation:oti-subir .6s ease-out both}
.ot-g-col b{position:absolute;top:-16px;color:var(--oti-texto);font-size:11px;font-weight:900;white-space:nowrap}
.ot-g-ejes{display:flex;gap:2px;color:var(--oti-suave);font-size:9.5px;font-weight:700}
.ot-g-ejes span{overflow:hidden;flex:1 1 0;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.ot-g-ejes-l{justify-content:space-between}
.ot-g-ejes-l span{flex:0 1 auto}
.ot-g-lienzo{position:relative;min-height:60px;flex:1 1 auto;margin-right:44px}
.ot-g-lienzo svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ot-g-linea{fill:none;stroke:var(--oti-serie);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.ot-g-base{stroke:var(--oti-linea);stroke-width:1;vector-effect:non-scaling-stroke}
.ot-g-punto{position:absolute;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%}
.ot-g-punto::after{position:absolute;inset:3px;background:var(--oti-serie);border:2px solid var(--oti-fondo);border-radius:50%;content:"";opacity:0}
.ot-g-punto:hover::after,.ot-g-punto:last-of-type::after{opacity:1}
.ot-g-ultimo{position:absolute;right:-44px;width:40px;margin-top:-8px;color:var(--oti-texto);font-size:11px;font-weight:900}
.ot-g-anillo{display:grid;grid-template-columns:minmax(90px,40%) minmax(0,1fr);gap:12px;align-items:center;min-height:0;flex:1 1 auto}
.ot-g-anillo svg{width:100%;max-height:100%;aspect-ratio:1}
.ot-g-anillo circle{fill:none;stroke-width:14}
.ot-g-tot{fill:var(--oti-texto);font-size:13px;font-weight:900;text-anchor:middle}
.ot-g-totl{fill:var(--oti-suave);font-size:7px;font-weight:700;text-anchor:middle}
.ot-g-anillo ul{display:grid;gap:6px;margin:0;padding:0;list-style:none;font-size:11.5px}
.ot-g-anillo li{display:grid;grid-template-columns:10px minmax(0,1fr) auto 34px;gap:7px;align-items:center}
.ot-g-anillo li i{width:10px;height:10px;border-radius:3px}
.ot-g-anillo li span{overflow:hidden;color:var(--oti-texto);font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.ot-g-anillo li b{color:var(--oti-texto);font-weight:900;font-variant-numeric:tabular-nums}
.ot-g-anillo li small{color:var(--oti-suave);font-weight:800;text-align:right}
.ot-g-tabla{min-height:0;flex:1 1 auto;overflow:auto;scrollbar-width:thin}
.ot-g-tabla table{width:100%;border-collapse:collapse;font-size:11.5px}
.ot-g-tabla th{position:sticky;top:0;padding:5px 6px;color:var(--oti-suave);background:var(--oti-fondo);font-size:10px;font-weight:900;text-align:left;text-transform:uppercase;letter-spacing:.06em}
.ot-g-tabla td{padding:6px;color:var(--oti-texto);border-top:1px solid var(--oti-linea);font-weight:700}
.ot-g-tabla :is(th,td):last-child{text-align:right;font-variant-numeric:tabular-nums}
@keyframes oti-llenar{from{transform:scaleX(0)}}
@keyframes oti-subir{from{transform:scaleY(0)}}
@media (prefers-reduced-motion:reduce){.ot-g-pista i,.ot-g-col i{animation:none}}

/* ---------- Crear bloque ---------- */
.ot-inicio-dialogo.ot-dialogo-ancho{width:min(860px,calc(100vw - 24px))}
.ot-crear{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:16px}
.ot-crear-campos{display:grid;gap:10px;align-content:start}
.ot-crear label,.ot-crear legend{display:grid;gap:4px;color:var(--oti-suave);font-size:11px;font-weight:900}
.ot-crear :is(select,input){width:100%;min-height:36px;padding:0 10px;color:var(--oti-texto);background:var(--oti-fondo);border:1px solid #dbe6f4;border-radius:10px;font:inherit;font-size:13px;font-weight:700}
.ot-crear fieldset{margin:0;padding:0;border:0}
.ot-crear-graficos{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.ot-crear-graficos button{display:grid;justify-items:center;gap:3px;padding:7px 2px;color:var(--oti-texto);background:var(--oti-fondo);border:1px solid #dbe6f4;border-radius:10px;font:inherit;font-size:10.5px;font-weight:800;cursor:pointer}
.ot-crear-graficos button[aria-pressed=true]{color:var(--oti-azul);border-color:var(--oti-azul);background:var(--oti-nube)}
.ot-crear-graficos svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ot-crear-vista{display:grid;grid-template-rows:auto 1fr;gap:6px}
.ot-crear-vista>span{color:var(--oti-suave);font-size:11px;font-weight:900}
.ot-crear-panel{display:flex;min-height:260px;padding:14px;flex-direction:column;background:var(--oti-fondo);border:1px solid var(--oti-linea);border-radius:18px}
.ot-crear footer{display:flex;grid-column:1/-1;justify-content:flex-end;gap:8px}
.ot-crear footer button{min-height:36px;padding:0 16px;color:var(--oti-texto);background:var(--oti-fondo);border:1px solid #dbe6f4;border-radius:12px;font:inherit;font-size:12.5px;font-weight:900;cursor:pointer}
.ot-crear footer .ot-primario{color:#fff;background:linear-gradient(135deg,#175cff,#3b82ff);border-color:transparent}
.ot-crear [hidden]{display:none!important}

/* Pulido 14/11 */
/* Confirmación tras guardar: el botón dice «Guardado» con su marca en azul de marca unos segundos */
.home-page .hero-actions>.ot-inicio-personalizar.ot-guardado{color:var(--oti-azul);border-color:var(--oti-azul)}
/* Novedad (primera vez): dentro de la cabecera, en su flujo; no flota, no tapa nada y no se anima */
.home-page .hero-actions>.ot-inicio-novedad{display:flex;flex:1 1 100%;align-items:center;gap:12px;max-width:520px;margin-left:auto;padding:10px 12px;color:var(--oti-texto);
  background:color-mix(in srgb,var(--oti-azul) 7%,var(--oti-fondo));border:1px solid color-mix(in srgb,var(--oti-azul) 30%,var(--oti-linea));border-radius:12px;text-align:left}
.ot-inicio-novedad p{min-width:0;flex:1;margin:0;font-size:12.5px;font-weight:600;line-height:1.45}
.ot-inicio-novedad strong{display:block;margin-bottom:1px;font-size:13px;font-weight:900}
.ot-inicio-novedad button{flex:0 0 auto;min-height:32px;padding:0 13px;color:var(--oti-azul);background:var(--oti-fondo);border:1px solid var(--oti-azul);border-radius:10px;
  font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
.ot-inicio-novedad button:hover{color:#fff;background:var(--oti-azul)}
.ot-inicio-novedad button:focus-visible{outline:2px solid var(--oti-azul);outline-offset:2px}
@media (min-width:721px){.home-page .hero-actions:has(>.ot-inicio-novedad){justify-content:flex-end}}
@media (max-width:720px){.home-page .hero-actions>.ot-inicio-novedad{max-width:none;margin-left:0}}
#ot-inicio-anuncio{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Aviso de cambios sin guardar al ir a otra pantalla */
.ot-inicio-acciones{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:14px}
.ot-inicio-acciones button{min-height:36px;padding:0 16px;color:var(--oti-texto);background:var(--oti-fondo);border:1px solid #dbe6f4;border-radius:12px;font:inherit;font-size:12.5px;font-weight:900;cursor:pointer}
.ot-inicio-acciones button:hover:not(:disabled){border-color:var(--oti-azul);color:var(--oti-azul)}
.ot-inicio-acciones .ot-primario,.ot-inicio-acciones .ot-primario:hover:not(:disabled){color:#fff;background:linear-gradient(135deg,#175cff,#3b82ff);border-color:transparent}
.ot-inicio-acciones button:disabled{opacity:.55;cursor:default}
.ot-inicio-dialogo>.ot-inicio-estado{margin:8px 0 0;white-space:normal}
/* En Personalizar, la pestaña del chat del equipo (fija en el borde derecho) no tapa los mandos del último bloque */
@media (min-width:1101px){html[data-ot-inicio-editar][data-ot-inicio-dock] .home-page{padding-right:var(--ot-inicio-dock-pd,46px)}
  html[data-ot-inicio-editar][data-ot-inicio-dock] .home-page>.hero{margin-right:calc(-1 * var(--ot-inicio-dock-extra,0px))}}
@media (max-width:720px){.ot-crear{grid-template-columns:1fr}.ot-crear-graficos{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- Franja de mandos encima de cada bloque (no tapa nada del bloque) ---------- */
.ot-inicio-mandos{position:relative;z-index:5;display:flex;align-items:center;gap:1px;min-width:0;height:31px;padding:0 3px;color:var(--oti-texto);
  background:var(--oti-fondo);border:1px solid var(--oti-linea);border-radius:10px;box-shadow:0 6px 14px #0e254d14}
.ot-inicio-mandos .ot-nombre{min-width:0;flex:1 1 auto;padding:0 4px;overflow:hidden;color:var(--oti-suave);font-size:11px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.ot-inicio-mandos button{display:grid;flex:0 0 26px;width:26px;height:26px;padding:0;place-items:center;color:var(--oti-texto);background:transparent;border:0;border-radius:7px;cursor:pointer}
.ot-inicio-mandos button:hover:not(:disabled){color:var(--oti-azul);background:var(--oti-nube)}
.ot-inicio-mandos button:disabled{opacity:.3;cursor:default}
.ot-inicio-mandos button:focus-visible{outline:2px solid var(--oti-azul);outline-offset:-1px}
.ot-inicio-mandos .ot-asa{cursor:grab;touch-action:none}
.ot-inicio-mandos [data-a=tam]{cursor:nwse-resize;touch-action:none}
.ot-inicio-mandos.ot-compacto .ot-nombre{display:none}
.ot-inicio-mandos.ot-compacto{justify-content:space-between}
.ot-inicio-mandos.ot-compacto button{flex-basis:22px;width:22px}
@media (max-width:1100px){.ot-inicio-mandos .ot-asa{display:none}.ot-inicio-mandos [data-a=tam]{cursor:pointer}.ot-inicio-mandos.ot-compacto .ot-nombre{display:block}.ot-inicio-mandos.ot-compacto{justify-content:flex-start}
  /* Cifra a media fila: franja corta con los mismos mandos (el nombre ya se lee en la cifra, justo debajo) */
  .ot-inicio-mandos.ot-medio .ot-nombre,.ot-inicio-mandos.ot-medio.ot-compacto .ot-nombre{display:none}.ot-inicio-mandos.ot-medio{justify-content:space-between}}

/* ---------- Arrastre fluido ---------- */
.ot-inicio-mandos{cursor:grab;touch-action:none;user-select:none}
.ot-inicio-mandos button:not(.ot-asa){cursor:pointer}
.ot-inicio-mandos:hover{border-color:#0d8ef2}
html[data-ot-inicio-editar] .home-page :is(.kpi-grid>.kpi-card,.dashboard-grid>*){transition:outline-color .15s ease}
html[data-ot-inicio-arrastre],html[data-ot-inicio-arrastre] *{user-select:none!important}
html[data-ot-inicio-arrastre=mover],html[data-ot-inicio-arrastre=mover] *{cursor:grabbing!important}
html[data-ot-inicio-arrastre=se],html[data-ot-inicio-arrastre=se] *{cursor:nwse-resize!important}
html[data-ot-inicio-arrastre=e],html[data-ot-inicio-arrastre=e] *{cursor:ew-resize!important}
html[data-ot-inicio-arrastre=s],html[data-ot-inicio-arrastre=s] *{cursor:ns-resize!important}
/* Bordes y esquina para cambiar el tamaño: fuera del contenido, en el hueco entre bloques */
.ot-inicio-marco{position:relative;z-index:6;pointer-events:none}
.ot-inicio-marco [data-r]{position:absolute;pointer-events:auto;touch-action:none}
.ot-inicio-marco [data-r=e]{top:16px;right:-9px;bottom:22px;width:10px;cursor:ew-resize}
.ot-inicio-marco [data-r=s]{right:22px;bottom:-8px;left:16px;height:10px;cursor:ns-resize}
.ot-inicio-marco [data-r=se]{right:-7px;bottom:-7px;width:20px;height:20px;cursor:nwse-resize}
.ot-inicio-marco [data-r=e]::after,.ot-inicio-marco [data-r=s]::after{position:absolute;content:"";background:#0d8ef2;border-radius:3px;opacity:0;transition:opacity .15s ease}
.ot-inicio-marco [data-r=e]::after{top:50%;left:3px;width:4px;height:34px;margin-top:-17px}
.ot-inicio-marco [data-r=s]::after{top:3px;left:50%;width:34px;height:4px;margin-left:-17px}
.ot-inicio-marco [data-r]:hover::after{opacity:.9}
.ot-inicio-marco [data-r=se]::after{position:absolute;right:5px;bottom:5px;width:10px;height:10px;content:"";border-right:2.5px solid #0d8ef2;border-bottom:2.5px solid #0d8ef2;border-radius:0 0 4px 0;opacity:.55;transition:opacity .15s ease}
.ot-inicio-marco [data-r=se]:hover::after{opacity:1}
html[data-ot-inicio-arrastre] .ot-inicio-marco{opacity:0}
@media (max-width:1100px){.ot-inicio-marco{display:none}}
/* Guía que sigue al puntero mientras se cambia el tamaño */
.ot-inicio-guia{position:fixed;z-index:2147480002;display:grid;place-items:end;padding:8px 10px;color:#0b64f0;background:#0d8ef20f;border:2px solid #0d8ef2;
  border-radius:16px;font-size:12px;font-weight:900;pointer-events:none}
.ot-inicio-sombra{transition:none}

/* En el móvil, «Personalizar» con su texto: «Personalizar» y «Actualizar» en una fila, «Ir al buscador» debajo a todo el ancho */
@media (max-width:720px){
  .home-page .hero-actions{flex-wrap:wrap}
  .home-page .hero-actions>.ot-inicio-personalizar,.home-page .hero-actions>.ot-inicio-personalizar~.btn.ghost{flex:1 1 40%;width:auto;min-width:0;justify-content:center}
  .home-page .hero-actions>.ot-inicio-personalizar~.btn:not(.ghost){flex:1 1 100%}
}
