/* Approved B3 workspace. Every rule is limited to mounted desktop mode. */
@media(min-width:1024px){
  html:has(body.ld-desktop){background:#fff}
  body.ld-desktop{
    --e-bg:#fff;--e-panel:#fff;--e-soft:#f6f2ff;--e-text:#18314f;--e-muted:#54627a;
    --e-line:#ded4f2;--e-accent:#7450d0;--e-blue:#7346cb;--e-on-accent:#fff;
    --ld-surface:#fff;--ld-selected:#ece4fb;--ld-shadow:0 5px 22px #49316d12;
    background:#fff;color:var(--e-text);font:14px/1.45 system-ui,-apple-system,'Segoe UI',sans-serif;
    overflow:hidden;
  }
  html[data-studio-theme=dark] body.ld-desktop{
    --e-bg:#101422;--e-panel:#181e30;--e-soft:#25233b;--e-text:#f1edff;--e-muted:#b9b4cd;
    --e-line:#48405f;--e-accent:#a387ed;--e-blue:#b79df2;--e-on-accent:#101422;
    --ld-surface:#181e30;--ld-selected:#393050;--ld-shadow:0 8px 24px #0003;background:var(--e-bg);
  }
  body.ld-desktop > main.ancho,body.ld-desktop > footer{display:none}
  body.ld-desktop::before,body.ld-desktop::after{display:none}
  body.ld-desktop .ld-app{height:100dvh;display:flex;flex-direction:column;background:var(--e-bg)}
  body.ld-desktop .ld-app > header{
    width:100%;max-width:none;min-height:58px;flex-shrink:0;height:58px;margin:0;padding:7px 20px;gap:14px;
    background:var(--e-panel);border-bottom:1px solid var(--e-line);flex-wrap:nowrap;z-index:40;
  }
  body.ld-desktop .marca{display:flex;align-items:center;gap:9px;color:var(--e-text);font:600 25px Georgia,serif;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap}
  body.ld-desktop .ld-logo{width:41px;height:34px;object-fit:contain}
  body.ld-desktop header .nav{margin-left:auto;gap:14px;flex-wrap:nowrap;display:flex;align-items:center}
  body.ld-desktop header :is(a,button,summary){font-family:inherit;text-transform:none;letter-spacing:0}
  body.ld-desktop header .nav a{font-size:12px;white-space:nowrap;color:var(--e-text)}
  body.ld-desktop .astro-site-nav{margin-left:0;gap:8px;flex-wrap:nowrap}
  body.ld-desktop .astro-site-nav :is(a,summary){font:12px/1.3 system-ui,sans-serif}
  body.ld-desktop .astro-nav-directo,body.ld-desktop .astro-nav-predicciones{padding:8px;border:0;white-space:nowrap}
  body.ld-desktop .astro-nav-menu > summary{min-height:34px;padding:8px}
  body.ld-desktop .ld-top{display:flex;align-items:center;gap:12px;min-height:49px;padding:7px 20px;flex-shrink:0;border-bottom:1px solid var(--e-line)}
  body.ld-desktop .ld-top h1{font:600 23px/1.2 Georgia,serif;margin:0;color:var(--e-text)}
  body.ld-desktop .ld-count{font-size:12px;color:var(--e-muted);margin-right:auto}
  body.ld-desktop .ld-metadata{font-size:11px;color:var(--e-muted);padding:5px 22px;min-height:26px;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.ld-desktop :is(.ld-button,.ld-top .boton,.ld-dock button,.ld-rail-button,.ld-fold){
    display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 11px;
    border:1px solid var(--e-line);border-radius:7px;background:var(--ld-surface);color:var(--e-text);
    font:500 12px/1.3 system-ui,sans-serif;text-transform:none;letter-spacing:0;cursor:pointer;box-shadow:none;
  }
  body.ld-desktop :is(.ld-primary,.ld-top .boton:not(.sec)){background:#7450d0;color:#fff;border-color:#7450d0}
  body.ld-desktop :is(.ld-button,.ld-dock button,.ld-rail-button,.ld-fold):hover{border-color:var(--e-accent);background:var(--e-soft)}
  body.ld-desktop .ld-primary:hover{background:#603bb7;color:#fff}
  body.ld-desktop .ld-stage{position:relative;flex:1;min-height:0;overflow:hidden;--ld-left:248px;--ld-right:316px;--ld-rail:58px}
  body.ld-desktop .ld-wheel{position:absolute;inset:0 15px 78px 74px;display:grid;place-items:center;transition:inset .2s ease;min-width:0}
  body.ld-desktop .ld-stage.ld-left-open .ld-wheel{left:calc(var(--ld-rail) + var(--ld-left) + 24px)}
  body.ld-desktop .ld-stage.ld-right-open .ld-wheel{right:calc(var(--ld-right) + 30px)}
  body.ld-desktop .ld-wheel .rueda-area{width:100%;height:100%;position:relative;display:grid;place-items:center;min-width:0;container-type:size}
  body.ld-desktop .ld-wheel .rueda-lotes{width:min(100cqw,calc(100cqh - 24px));height:auto;aspect-ratio:1;max-width:100%;margin:0;transform:none!important;filter:none;transition:none}
  body.ld-desktop .ld-wheel .lineas-clave{position:absolute;bottom:0;left:0;right:0;margin:0;gap:10px;font:10px system-ui,sans-serif;color:var(--e-muted)}
  body.ld-desktop .ld-wheel .lineas-clave span:first-child i{background:#914bdc}
  body.ld-desktop .ld-wheel .lineas-clave .arm{background:#176de3}
  body.ld-desktop .ld-wheel .lineas-clave .ten{background:#df443e}
  body.ld-desktop .ld-wheel .lineas-clave .uni{background:#8d42d6}
  body.ld-desktop .ld-rail{position:absolute;top:8px;bottom:82px;left:0;width:58px;display:flex;flex-direction:column;gap:16px;padding:8px 3px;border-right:1px solid var(--e-line);z-index:3;background:var(--e-panel);border-radius:0 10px 10px 0}
  body.ld-desktop .ld-rail-button{border:0;background:transparent;min-height:57px;display:flex;flex-direction:column;padding:4px 0;font-size:10px;gap:4px}
  body.ld-desktop .ld-icon{font:24px/1.2 system-ui,sans-serif;color:var(--e-accent)}
  body.ld-desktop .ld-rail-button[aria-expanded=true]{background:var(--e-soft);color:var(--e-accent)}
  body.ld-desktop .ld-fold{margin-top:auto;width:32px;align-self:center;font-size:20px;padding:1px}
  body.ld-desktop .ld-rail.ld-folded{width:33px}
  body.ld-desktop .ld-folded .ld-rail-button{display:none}
  body.ld-desktop .ld-window{position:absolute;top:8px;max-height:calc(100% - 90px);display:flex;flex-direction:column;background:var(--ld-surface);border:1px solid var(--e-line);border-radius:11px;box-shadow:var(--ld-shadow);overflow:hidden;z-index:5}
  body.ld-desktop .ld-lots{left:calc(var(--ld-rail) + 12px);width:var(--ld-left)}
  body.ld-desktop .ld-detail{right:14px;width:var(--ld-right)}
  body.ld-desktop :is(.ld-chart,.ld-formula,.ld-info){top:20px;left:calc(50% - 240px);width:480px;max-height:calc(100% - 110px);box-shadow:0 16px 65px #2916442e}
  body.ld-desktop .ld-window-head{display:flex;align-items:center;gap:6px;min-height:41px;padding:6px 10px 6px 14px;background:linear-gradient(110deg,#9470e5,#7450d0);color:#fff;cursor:grab;touch-action:none;flex-shrink:0}
  body.ld-desktop .ld-window-head:active{cursor:grabbing}
  body.ld-desktop .ld-window-head h2{font:600 15px/1.2 system-ui,sans-serif;color:#fff;margin:0 auto 0 0;max-width:calc(100% - 64px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.ld-desktop .ld-window-action{width:26px;min-height:27px;border:0;border-radius:5px;background:transparent;color:#fff;font:22px/1 system-ui,sans-serif;cursor:pointer}
  body.ld-desktop .ld-window-action:hover{background:#ffffff26}
  body.ld-desktop .ld-window-body{padding:12px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9b6ed transparent}
  body.ld-desktop .ld-minimized .ld-window-body{display:none}
  body.ld-desktop .ld-categories{margin-bottom:9px}
  body.ld-desktop .ld-categories > summary{list-style:none;cursor:pointer;background:var(--e-soft);border:1px solid var(--e-line);padding:9px 27px 9px 9px;font-size:12px;border-radius:6px;position:relative;font-weight:600}
  body.ld-desktop .ld-categories > summary::after{content:'⌄';position:absolute;right:9px;top:8px}
  body.ld-desktop .ld-categories > summary::-webkit-details-marker{display:none}
  body.ld-desktop .ld-categories .grupo-controles{display:grid;grid-template-columns:1fr;gap:3px;margin-top:5px;padding:4px;border:1px solid var(--e-line);border-radius:7px;background:var(--ld-surface)}
  body.ld-desktop .ld-categories .grupo-btn{min-height:33px;padding:6px 7px;border:0;color:var(--e-text);background:var(--ld-surface)}
  body.ld-desktop .ld-categories .grupo-btn b{font:500 11px/1.25 system-ui,sans-serif;text-transform:none}
  body.ld-desktop .ld-categories .grupo-btn small{display:inline;font:10px system-ui,sans-serif;color:var(--e-muted);margin-left:5px}
  body.ld-desktop .ld-categories .grupo-btn.activo{background:var(--ld-selected);color:var(--e-accent);box-shadow:inset 3px 0 var(--e-accent)}
  body.ld-desktop .buscador-lotes{margin:0 0 9px;padding:0}
  body.ld-desktop .buscador-lotes label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  body.ld-desktop :is(input,select){background:var(--e-soft);border-color:var(--e-line);font:12px/1.35 system-ui,sans-serif;min-height:35px;letter-spacing:0;max-width:100%}
  body.ld-desktop .buscador-lotes input{width:100%;padding:8px}
  body.ld-desktop .leyenda-lista{display:flex;flex-direction:column;gap:3px;max-height:none;padding:0;overflow:visible}
  body.ld-desktop .leyenda-item{display:grid;grid-template-columns:28px 1fr;gap:0 8px;align-items:center;width:100%;min-height:48px;padding:6px 9px;border:1px solid transparent;border-bottom-color:var(--e-line);border-radius:6px;background:transparent;text-align:left;color:var(--e-text);box-shadow:none;cursor:pointer;transform:none}
  body.ld-desktop .leyenda-item i{grid-row:1/3;display:grid;place-items:center;width:26px;height:26px;font:600 10px system-ui,sans-serif;font-style:normal;background:var(--e-soft);color:var(--e-accent);border:1px solid var(--e-line);border-radius:50%;box-shadow:none}
  body.ld-desktop .leyenda-item b{font:600 12px/1.25 system-ui,sans-serif;color:inherit}
  body.ld-desktop .leyenda-item > span{font:11px/1.4 system-ui,sans-serif;color:var(--e-muted);text-align:left}
  body.ld-desktop .leyenda-item.activo{background:var(--ld-selected);border-color:var(--e-line);box-shadow:inset 3px 0 var(--e-accent)}
  body.ld-desktop .leyenda-item.activo i{background:#7450d0;color:white;border-color:#d1b16a}
  body.ld-desktop .ld-detail-tabs{display:flex;border-bottom:1px solid var(--e-line);margin:-3px 0 12px}
  body.ld-desktop .ld-detail-tabs button{flex:1;border:0;border-radius:0;border-bottom:3px solid transparent;font-size:11px;background:transparent;padding:7px 3px}
  body.ld-desktop .ld-detail-tabs [aria-selected=true]{color:var(--e-accent);border-bottom-color:var(--e-accent);font-weight:700}
  body.ld-desktop #resultados{display:block;margin:0}
  body.ld-desktop #resultados .lote{padding:0;margin:0;border:0;background:transparent;box-shadow:none;cursor:default}
  body.ld-desktop #resultados .lote::before{display:none}
  body.ld-desktop #resultados .lectura-ceja{display:none}
  body.ld-desktop #resultados .lote-cabeza{display:block;margin:0 0 9px;padding:0}
  body.ld-desktop #resultados h3{font:600 28px/1.2 Georgia,serif;margin:0 0 8px;color:var(--e-text)}
  body.ld-desktop #resultados .pos{display:block;font:600 22px/1.2 system-ui,sans-serif;color:var(--e-accent);background:none;padding:0}
  body.ld-desktop #resultados .lectura-tema{font:13px/1.5 system-ui,sans-serif;margin:12px 0;color:var(--e-text)}
  body.ld-desktop #resultados .meta{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}
  body.ld-desktop #resultados .meta span{border:1px solid var(--e-line);border-radius:5px;background:var(--e-soft);padding:4px 6px;font:11px/1.4 system-ui,sans-serif;color:var(--e-text)}
  body.ld-desktop #resultados .formula{font:500 13px/1.5 system-ui,sans-serif;margin:13px 0;padding:10px;border:1px solid var(--e-line);background:var(--e-soft);border-radius:7px;overflow-wrap:anywhere;color:var(--e-text)}
  body.ld-desktop #resultados .formula small{display:block;font-size:10px;color:var(--e-muted);margin-bottom:4px;text-transform:uppercase}
  body.ld-desktop .aspectos-bloque{padding-top:10px;margin-top:12px;border-top:1px solid var(--e-line)}
  body.ld-desktop .aspectos-bloque h4{font:600 13px system-ui,sans-serif;margin:0 0 8px;color:var(--e-text)}
  body.ld-desktop .aspectos-bloque ul{display:block;padding:0;list-style:none;margin:0}
  body.ld-desktop .aspectos-bloque li{padding:9px;margin:0 0 7px;border:1px solid var(--e-line);background:var(--e-soft);border-radius:7px}
  body.ld-desktop .aspecto-cab{display:flex;flex-wrap:wrap;gap:4px}
  body.ld-desktop .aspecto-cab b{font:600 12px/1.5 system-ui,sans-serif;color:var(--e-text)}
  body.ld-desktop .aspecto-cab em{font:500 9px/1.3 system-ui,sans-serif;border:0;padding:3px 5px;border-radius:4px;background:var(--ld-selected);color:var(--e-accent);margin:0}
  body.ld-desktop .aspectos-bloque li > span{display:block;font:11px/1.5 system-ui,sans-serif;color:var(--e-muted);margin-top:4px}
  body.ld-desktop .aspectos-bloque :is(p,small){font:12px/1.6 system-ui,sans-serif;color:var(--e-muted)}
  body.ld-desktop .ld-detail:not(.ld-reading) .aspectos-bloque :is(li p,small){display:none}
  body.ld-desktop .ld-chart .estudio-editor-contenido{padding:0}
  body.ld-desktop .ld-chart .fila{display:block}
  body.ld-desktop .ld-chart select{width:100%}
  body.ld-desktop .ld-chart .estado{font:12px/1.5 system-ui,sans-serif}
  body.ld-desktop .ld-formula .formula-avanzada{padding:0;margin:0;border:0;background:none}
  body.ld-desktop .ld-formula .formula-avanzada > summary{display:none}
  body.ld-desktop .ld-formula .formula-contenido{padding:0}
  body.ld-desktop .ld-formula .personal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  body.ld-desktop .ld-formula .personal .campo:first-child{grid-column:1/-1}
  body.ld-desktop .ld-formula .personal .campo input,body.ld-desktop .ld-formula .personal select{width:100%}
  body.ld-desktop .ld-formula .personal button{grid-column:1/-1}
  body.ld-desktop .ld-formula .aviso{font:12px/1.5 system-ui,sans-serif}
  body.ld-desktop .ld-formula .check{display:flex;align-items:center;gap:8px;margin:13px 0;font-size:12px}
  body.ld-desktop .ld-formula .resultados{display:block}
  body.ld-desktop .ld-formula .lote{padding:10px;margin:10px 0}
  body.ld-desktop .ld-formula .lote h3{font-size:17px}
  body.ld-desktop .ld-info .hero{padding:0;max-width:none;display:block}
  body.ld-desktop .ld-info .hero h1{font-size:20px}
  body.ld-desktop .ld-info .hero p{font-size:13px}
  body.ld-desktop .ld-info .cumpleanos-fila{display:block}
  body.ld-desktop .ld-info .pie{display:block;width:100%;max-width:none;font:11px/1.7 system-ui,sans-serif;padding:10px 0;margin:10px 0}
  body.ld-desktop .ld-dock{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;max-width:calc(100% - 100px);padding:9px 11px;background:var(--ld-surface);border:1px solid var(--e-line);border-radius:11px;box-shadow:var(--ld-shadow);z-index:50;white-space:nowrap}
  body.ld-desktop .ld-dock .selector-linea{display:grid;grid-template-columns:29px minmax(110px,165px) 29px;gap:3px;align-items:center}
  body.ld-desktop .ld-dock .selector-linea button{padding:4px;min-height:34px}
  body.ld-desktop .ld-dock #progresoLote{font:11px system-ui,sans-serif;color:var(--e-muted);margin:0;text-transform:none;letter-spacing:0;min-width:38px}
  body.ld-desktop .ld-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px}
  body.ld-desktop .ld-empty h2{font:500 23px Georgia,serif;max-width:390px}
  body.ld-desktop .ld-no-chart .rueda-area{visibility:hidden}
  /* The wheel keeps its white paper, regardless of the surrounding theme. */
  body.ld-desktop .rueda-lotes svg{filter:none;background:transparent;overflow:visible}
  body.ld-desktop .rueda-lotes :is(.fondo-rueda,.anillo,.centro-rueda){fill:#fff;stroke:#394955;stroke-width:.65}
  body.ld-desktop .rueda-lotes .fondo-rueda{stroke:none}
  body.ld-desktop .rueda-lotes :is(.zodiaco,.grado,.centro-ceja,.centro-nombre,.centro-pos,.lote-halo){display:none}
  body.ld-desktop .rueda-lotes .anillo.exterior{stroke-width:.8}
  body.ld-desktop .rueda-lotes .division{stroke:#394955;stroke-width:.6}
  body.ld-desktop .rueda-lotes .cuspide{stroke:#172735;stroke-width:.6}
  body.ld-desktop .rueda-lotes .cuspide.angular{stroke:#172735;stroke-width:1.3}
  body.ld-desktop .rueda-lotes .casa{fill:#153140;font:600 8px system-ui,sans-serif}
  body.ld-desktop .rueda-lotes .eje-label{fill:#172735;font:700 8px system-ui,sans-serif}
  body.ld-desktop .rueda-lotes .signo{font-size:22px}
  body.ld-desktop .rueda-lotes :is(.planeta,.planeta.relacionado){font-size:21px;stroke:none;paint-order:normal}
  body.ld-desktop .rueda-lotes .ld-planet-degree{font:600 7px system-ui,sans-serif;text-anchor:middle;stroke:none}
  body.ld-desktop .rueda-lotes .ld-leader{stroke:#697d8c;stroke-width:.45}
  body.ld-desktop .rueda-lotes .ld-tick{stroke:#60717e;stroke-width:.4}
  body.ld-desktop .rueda-lotes .conexion{stroke:#9142dc;stroke-width:.9;opacity:.85;animation:none}
  body.ld-desktop .rueda-lotes .conexion.suma{stroke:#079d61}
  body.ld-desktop .rueda-lotes .aspecto-linea{opacity:.9;stroke-width:1}
  body.ld-desktop .rueda-lotes .aspecto-linea.armonico{stroke:#176de3}
  body.ld-desktop .rueda-lotes .aspecto-linea.tension{stroke:#e34742}
  body.ld-desktop .rueda-lotes .aspecto-linea.union{stroke:#973cec}
  body.ld-desktop .rueda-lotes .lote-punto{fill:#7444c5;stroke:#c6a351;stroke-width:1.5}
  body.ld-desktop .rueda-lotes .lote-texto{fill:#fff;font:700 8px system-ui,sans-serif}
  @media(max-width:1199px){
    body.ld-desktop .ld-stage{--ld-left:210px;--ld-right:265px;--ld-rail:50px}
    body.ld-desktop .ld-rail{width:50px}
    body.ld-desktop header .astro-nav-directo,body.ld-desktop header .astro-nav-predicciones{display:none}
    body.ld-desktop .marca{font-size:21px}
    body.ld-desktop #resultados h3{font-size:24px}
    body.ld-desktop .ld-window-body{padding:10px}
    body.ld-desktop .ld-top h1{font-size:21px}
  }
  @media(prefers-reduced-motion:reduce){body.ld-desktop .ld-wheel{transition:none}}
}
