
  /* Capa visual aditiva: no reemplaza lógica de pedidos, viajes, trabajador o negocio */
  header{
    grid-template-columns:auto minmax(0,1fr) auto!important;
    gap:14px!important;
  }
  #loginButton{display:none!important}
  #pylHeaderNavV1{grid-column:2;justify-self:center;width:min(760px,100%)}
  .pyl-unified-nav{
    display:flex;
    align-items:stretch;
    justify-content:center;
    gap:4px;
    min-width:0;
  }
  .pyl-unified-nav-btn{
    border:0;
    background:transparent;
    color:#111;
    border-radius:13px;
    min-width:74px;
    padding:7px 9px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    font-weight:900;
    font-size:11px;
    line-height:1.1;
    cursor:pointer;
    white-space:nowrap;
  }
  .pyl-unified-nav-btn:hover{background:rgba(255,255,255,.48)}
  .pyl-unified-nav-btn.active{background:#111;color:#fff}
  .pyl-unified-nav-icon{width:23px;height:23px;display:block}
  .pyl-unified-nav-icon svg{width:100%;height:100%;display:block;stroke:currentColor}
  .pyl-unified-nav-btn.active .pyl-unified-nav-icon{color:#ffd400}
  .pyl-panel-nav-shell{
    background:#ffd400;
    border-radius:20px 20px 0 0;
    margin:-1px -1px 20px;
    padding:11px 16px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:18px;
    align-items:center;
    position:relative;
    z-index:3;
  }
  .pyl-panel-nav-logo img{display:block;width:150px;max-height:62px;object-fit:contain}
  .pyl-panel-nav-shell .pyl-unified-nav{justify-content:flex-end;overflow-x:auto;scrollbar-width:none}
  .pyl-panel-nav-shell .pyl-unified-nav::-webkit-scrollbar{display:none}
  #workerPanelModal .worker-panel-content,
  #businessPanelModal .business-panel-content{
    width:min(1180px,96vw)!important;
    max-width:1180px!important;
    border-radius:22px!important;
    padding:0 24px 28px!important;
    background:#f8f9fb!important;
  }
  #workerPanelModal .worker-panel-body,
  #businessPanelModal .business-panel-body{background:transparent!important}
  #workerPanelModal section,
  #businessPanelModal section{
    border-radius:16px;
  }

  /* Los accesos antiguos siguen existiendo para permisos/lógica, pero ya no duplican la navegación */
  #accountModal #workerPanelButton,
  #accountModal #businessPanelButton,
  #accountModal #adminPanelButton,
  #accountModal #supportAccountButton,
  #accountModal #pylTrackOrderButton,
  #accountModal #pylCustomerActivityButton{display:none!important}

  /* MIS PEDIDOS */
  #pylMyOrdersModalV1{z-index:1900}
  #pylMyOrdersModalV1 .pyl-my-orders-shell{
    width:min(1180px,96vw);
    max-width:1180px;
    padding:0 24px 28px;
    border-radius:22px;
    background:#f8f9fb;
    max-height:94vh;
    overflow:auto;
  }
  .pyl-my-orders-head{padding:4px 4px 16px}
  .pyl-my-orders-head h2{font-size:34px;margin:0 0 3px;padding:0}
  .pyl-my-orders-head p{margin:0;color:#68707a;font-size:14px}
  .pyl-my-orders-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}
  .pyl-my-orders-main{display:grid;gap:16px}
  .pyl-my-orders-card{
    background:#fff;
    border:1px solid #e6e8eb;
    border-radius:18px;
    padding:16px;
    box-shadow:0 5px 18px rgba(0,0,0,.04);
  }
  .pyl-my-orders-section-title{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    margin:0 0 12px;font-size:22px;font-weight:950
  }
  .pyl-my-orders-empty{padding:24px 12px;text-align:center;color:#777;font-size:13px}
  .pyl-order-live{
    border:1px solid #e5e5e5;border-radius:15px;padding:14px;
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center
  }
  .pyl-order-live + .pyl-order-live{margin-top:10px}
  .pyl-order-live strong{font-size:15px;display:block}
  .pyl-order-live small{display:block;color:#707780;margin-top:4px;line-height:1.4}
  .pyl-order-status{
    display:inline-flex;align-items:center;gap:6px;margin-top:8px;
    background:#fff1a8;color:#5b4b00;border-radius:999px;padding:6px 10px;
    font-size:11px;font-weight:900
  }
  .pyl-order-action{
    border:0;background:#111;color:#ffd400;border-radius:12px;padding:12px 15px;
    font-weight:950;cursor:pointer;white-space:nowrap
  }
  .pyl-history-list{display:grid;gap:9px}
  .pyl-history-row{
    border:1px solid #e8e8e8;border-radius:14px;padding:12px;
    display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;background:#fff
  }
  .pyl-history-type{
    width:44px;height:44px;border-radius:13px;background:#ffd400;color:#111;
    display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:950
  }
  .pyl-history-copy strong{font-size:14px;display:block}
  .pyl-history-copy small{display:block;color:#737981;margin-top:3px;font-size:11px}
  .pyl-history-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
  .pyl-history-rate{
    border:1px solid #cfcfcf;background:#fff;color:#111;border-radius:10px;
    padding:8px 10px;font-size:11px;font-weight:900;cursor:pointer
  }
  .pyl-history-rate.done{background:#edf8ef;border-color:#cbe8d0;color:#176c2c}
  .pyl-orders-side{display:grid;gap:14px;align-content:start}
  .pyl-orders-note{
    background:linear-gradient(145deg,#fff8d7,#fff3a7);
    border:1px solid #f2d35c;border-radius:18px;padding:18px
  }
  .pyl-orders-note strong{display:block;font-size:17px;margin-bottom:7px}
  .pyl-orders-note p{margin:0;color:#5e5531;font-size:12px;line-height:1.5}
  .pyl-orders-help{
    background:#fff;border:1px solid #e6e8eb;border-radius:18px;padding:18px
  }
  .pyl-orders-help strong{display:block;font-size:16px}
  .pyl-orders-help p{font-size:12px;color:#737981;line-height:1.5}
  .pyl-orders-help button{
    width:100%;border:1px solid #111;background:#fff;border-radius:11px;
    padding:10px;font-weight:900;cursor:pointer
  }

  @media(max-width:900px){
    header{grid-template-columns:auto auto!important}
    header .logo{grid-column:1;grid-row:1}
    .header-actions{grid-column:2!important;grid-row:1!important;min-width:150px!important}
    #pylHeaderNavV1{
      grid-column:1/-1!important;grid-row:2!important;width:100%;overflow-x:auto;
      justify-self:stretch;padding-top:2px;scrollbar-width:none
    }
    #pylHeaderNavV1::-webkit-scrollbar{display:none}
    #pylHeaderNavV1 .pyl-unified-nav{justify-content:flex-start;width:max-content;min-width:100%}
    .pyl-unified-nav-btn{min-width:72px;padding:7px 8px}
    .pyl-panel-nav-shell{grid-template-columns:1fr;padding:9px 10px}
    .pyl-panel-nav-logo{display:none}
    .pyl-panel-nav-shell .pyl-unified-nav{justify-content:flex-start}
    #workerPanelModal .worker-panel-content,
    #businessPanelModal .business-panel-content{
      width:100%!important;max-width:none!important;min-height:100dvh!important;
      border-radius:0!important;padding:0 12px 24px!important;max-height:none!important
    }
    #pylMyOrdersModalV1{padding:0!important}
    #pylMyOrdersModalV1 .pyl-my-orders-shell{
      width:100%;max-width:none;min-height:100dvh;max-height:none;border-radius:0;padding:0 12px 24px
    }
    .pyl-my-orders-layout{grid-template-columns:1fr}
    .pyl-orders-side{grid-row:3}
    .pyl-my-orders-head{padding:5px 2px 13px}
    .pyl-my-orders-head h2{font-size:29px}
    .pyl-order-live{grid-template-columns:1fr}
    .pyl-order-action{width:100%}
    .pyl-history-row{grid-template-columns:42px minmax(0,1fr)}
    .pyl-history-actions{grid-column:1/-1;justify-content:stretch}
    .pyl-history-rate{flex:1}
  }
